Skip to content

Commit

Permalink
#35 hotfix selectReader signature
Browse files Browse the repository at this point in the history
  • Loading branch information
eld0727 committed Sep 25, 2018
1 parent 59a0d66 commit 7466aec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tethys is a JSON parsing/writing library for Scala
Add dependencies to your `build.sbt`

```scala
val tethysVersion = "0.7.0.1"
val tethysVersion = "0.7.0.2"
libraryDependecies ++= Seq(
"com.tethys-json" %% "tethys-core" % tethysVersion,
"com.tethys-json" %% "tethys-jackson" % tethysVchrersion,
Expand All @@ -22,7 +22,7 @@ or just

```scala
libraryDependecies ++= Seq(
"com.tethys-json" %% "tethys" % "0.7.0.1"
"com.tethys-json" %% "tethys" % "0.7.0.2"
)
```

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lazy val scalaTestVersion = "3.0.5"

lazy val commonSettings = Seq(
version := "0.7.0.1",
version := "0.7.0.2",
organization := "com.tethys-json",
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12", "2.12.6", "2.13.0-M2"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object JsonReaderBuilder {
new SimpleJsonReader[Res](fields())(m => fun(value(m)))
}

def selectReader[Res](fun: PartialFunction[A1, JsonReader[_ <: Res]])(implicit Res: ClassTag[Res], A1: ClassTag[A1]): JsonReader[Res] = {
def selectReader[Res](fun: A1 => JsonReader[_ <: Res])(implicit Res: ClassTag[Res], A1: ClassTag[A1]): JsonReader[Res] = {
val simpleJsonReader = new SimpleJsonReader[A1](fields())(m => value(m))
new SelectingJsonReader[A1, Res](simpleJsonReader)(fun)
}
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.2.0
sbt.version = 1.2.1

0 comments on commit 7466aec

Please sign in to comment.