Skip to content

Commit

Permalink
Merge pull request #598 from scala-steward/update/sbt-mdoc-2.5.2
Browse files Browse the repository at this point in the history
Update sbt-mdoc to 2.5.2
  • Loading branch information
jcazevedo authored Jan 12, 2024
2 parents a557132 + 7de24d6 commit e41a117
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ W.delete("http://www.google.com/").getStatus
// res3: Int = 405

W.head("http://www.google.com/").getStatus
// res4: Int = 302
```

The POST and PUT methods can also receive the body as `JSON` (of [circe](https://github.com/circe/circe)), which adds the `Content-type` header accordingly.
Expand Down Expand Up @@ -181,6 +182,7 @@ The JreVersionHelper object provides helper methods to check the two most signif
import com.velocidi.apso.JreVersionHelper

JreVersionHelper.jreVersion
// res0: (Int, Int) = (1, 8)
```

### ProgressBar
Expand Down Expand Up @@ -208,6 +210,7 @@ progress.tick(20)
// 34% [==================> ] / [ 0.46 ] ops/s

progress.tick(30)
// 64% [=================================> ] - [ 0.77 ] ops/s
```

### Reflect
Expand Down Expand Up @@ -675,6 +678,16 @@ ResourceUtil.getResourceStream("reference.conf")
// res1: java.io.InputStream = java.io.BufferedInputStream@6f16d172

ResourceUtil.getResourceAsString("reference.conf")
// res2: String =
// "apso {
// io {
// file-descriptor {
// sftp.max-connections-per-host = 8
// sftp.max-idle-time = 10s
// }
// }
// }
// "
```

## JSON
Expand Down Expand Up @@ -858,7 +871,7 @@ import com.velocidi.apso.time.Implicits._
// 2012-02-27T00:00:00.000Z,
// 2012-02-28T00:00:00.000Z,
// 2012-02-29T00:00:00.000Z
// ))
// )

(new DateTime("2012-01-01") until new DateTime("2012-02-01") by 2.minutes)
// res71: IterableInterval = IndexedSeq(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.3.0")
addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")

0 comments on commit e41a117

Please sign in to comment.