Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sbt-fix to 0.6.0 #208

Merged
merged 4 commits into from
Jul 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- [Typeclasses](#typeclasses)
- [Constructors](#constructors)
- [Scalacheck](#scalacheck)
- [Benchmarking](#benchmarking)
- [References](#references)

## Rationale
Expand Down Expand Up @@ -212,7 +213,7 @@ val example = uuid"58d61328-1b08-1171-1ee7-1283ed639e77"
_ <- insert(example).run.transact(transactor)
u <- select(example).unique.transact(transactor)
} yield u
}.unsafeRunSync
}.unsafeRunSync()
// res10: UUID = 58d61328-1b08-1171-1ee7-1283ed639e77
```

Expand Down Expand Up @@ -328,6 +329,14 @@ arbitrary[UUID.V4]
arbitrary[UUID.V5]
```

## Benchmarking

[``sbt-jmh``](https://github.com/ktoso/sbt-jmh) is used for executing the benchmarking tests.

There are 2 kind of benchmarking:
- ``runAvgtime``: Measures the average time it takes for the benchmark method to execute (a single execution). Generates the ``master.avgtime.csv`` file in the ``bench`` folder.
- ``runThroughput``: Measures the number of operations per second, meaning the number of times per second your benchmark method could be executed. Generates the ``master.throughput.csv`` file in the ``bench`` folder.


## References

Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](design-assets/other-file-formats/readme-header.png)
\![](design-assets/other-file-formats/readme-header.png)

`memeid` is a JVM library for generating [RFC-compliant](https://www.ietf.org/rfc/rfc4122.txt) Universal Unique Identifiers (UUIDs).

Expand Down Expand Up @@ -180,7 +180,7 @@ val transactor: Transactor[IO] =
pass = ""
)

sql"CREATE TABLE IF NOT EXISTS test (id UUID NOT NULL)".update.run.transact(transactor).unsafeRunSync
sql"CREATE TABLE IF NOT EXISTS test (id UUID NOT NULL)".update.run.transact(transactor).unsafeRunSync()
```

```scala mdoc:silent
Expand All @@ -201,7 +201,7 @@ val example = uuid"58d61328-1b08-1171-1ee7-1283ed639e77"
_ <- insert(example).run.transact(transactor)
u <- select(example).unique.transact(transactor)
} yield u
}.unsafeRunSync
}.unsafeRunSync()
```

##### Circe
Expand Down
4 changes: 2 additions & 2 deletions microsite/docs/docs/memeid4s_doobie.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ val transactor: Transactor[IO] =
pass = ""
)

sql"CREATE TABLE IF NOT EXISTS test (id UUID NOT NULL)".update.run.transact(transactor).unsafeRunSync
sql"CREATE TABLE IF NOT EXISTS test (id UUID NOT NULL)".update.run.transact(transactor).unsafeRunSync()
```

```scala mdoc:silent
Expand All @@ -56,6 +56,6 @@ val example = uuid"58d61328-1b08-1171-1ee7-1283ed639e77"
_ <- insert(example).run.transact(transactor)
u <- select(example).unique.transact(transactor)
} yield u
}.unsafeRunSync
}.unsafeRunSync()
```

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DoobieSpec extends Specification with IOChecker with BeforeAll with IOMatc
)

def beforeAll(): Unit =
sql"CREATE TABLE test (id UUID NOT NULL)".update.run.transact(transactor).void.unsafeRunSync
sql"CREATE TABLE test (id UUID NOT NULL)".update.run.transact(transactor).void.unsafeRunSync()

def select(uuid: UUID): Query0[UUID] =
sql"""SELECT id from test where id = $uuid""".query[UUID]
Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.17")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.19")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.2.1")
addSbtPlugin("com.alejandrohdezma" % "sbt-codecov" % "0.2.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.5.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.6.0")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.8.2")
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.8.2")
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % "0.2")
Expand Down