Skip to content

Commit

Permalink
Prepare for 1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotaev committed Jul 28, 2019
1 parent 69853f7 commit f7c8f5c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log


## 1.1.0 - [2019-07-28]

Added:

- Construction of an Id object can be done with it's byte-array representation.


## 1.0.1

Added:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sortable property of the ID.
In your `build.sbt` add
```scala
resolvers += Resolver.jcenterRepo
libraryDependencies += "com.github.kolotaev" %% "ride" % "1.0.1"
libraryDependencies += "com.github.kolotaev" %% "ride" % "1.1.0"
```

#### Generating IDs
Expand Down Expand Up @@ -77,6 +77,13 @@ println(s"$guid" == s"$guid2")

// Creating ID from malformed string throws IllegalArgumentException exception
val guid3 = Id("bad-string")


// Id can be reconstructed with byte-array representation (useful when you save it as bytes, for example in DB)
val guid4 = Id(Array[Byte](90, 61, 13, 107, 88, -105, 98, 106, -53, -1, -1, -3))

// Creating ID from incorrect byte-array throws IllegalArgumentException exception
val guid5 = Id(Array[Byte](90, 61, 13))
```

#### Obtaining embedded info
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val repo = "ride"

name := "ride"
organization := s"com.github.$username"
version := "1.0.2-SNAPSHOT"
version := "1.1.0"

scalaVersion := "2.12.2"
javacOptions ++= Seq(
Expand Down

0 comments on commit f7c8f5c

Please sign in to comment.