Skip to content

Commit

Permalink
Release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostbuster91 committed Jun 23, 2021
1 parent 49f32cd commit b6e3460
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 26 deletions.
2 changes: 1 addition & 1 deletion generated-docs/out/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ compare(left, right)
// "bar" -> DiffResultObject(
// name = "Bar",
// fields = ListMap(
// "s" -> Identical(value = "asdf"),
// "s" -> IdenticalValue(value = "asdf"),
// "i" -> DiffResultValue(left = 66, right = 5)
// )
// ),
Expand Down
4 changes: 2 additions & 2 deletions generated-docs/out/integrations/cats.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This module contains integration layer between [org.typelevel.cats](https://gith
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-cats" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-cats" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-cats::0.5.1"
ivy"com.softwaremill.diffx::diffx-cats::0.5.2"
```

## Usage
Expand Down
6 changes: 3 additions & 3 deletions generated-docs/out/integrations/refined.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This module contains integration layer between [eu.timepit.refined](https://gith
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-refined" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-refined" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-refined::0.5.1"
ivy"com.softwaremill.diffx::diffx-refined::0.5.2"
```

## Usage
Expand Down Expand Up @@ -40,7 +40,7 @@ compare(t1, t2)
// res0: com.softwaremill.diffx.DiffResult = DiffResultObject(
// name = "TestData",
// fields = ListMap(
// "posInt" -> Identical(value = 1),
// "posInt" -> IdenticalValue(value = 1),
// "nonEmptyString" -> DiffResultString(
// diffs = List(DiffResultValue(left = "foo", right = "bar"))
// )
Expand Down
6 changes: 3 additions & 3 deletions generated-docs/out/integrations/tagging.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This module contains integration layer between [com.softwaremill.common.tagging]
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-tagging" % "0.5.1"
"com.softwaremill.diffx" %% "diffx-tagging" % "0.5.2"
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-tagging::0.5.1"
ivy"com.softwaremill.diffx::diffx-tagging::0.5.2"
```

## Usage
Expand Down Expand Up @@ -39,7 +39,7 @@ compare(t1, t2)
// res0: com.softwaremill.diffx.DiffResult = DiffResultObject(
// name = "TestData",
// fields = ListMap(
// "p1" -> Identical(value = 1),
// "p1" -> IdenticalValue(value = 1),
// "p2" -> DiffResultValue(left = 1, right = 3)
// )
// )
Expand Down
4 changes: 2 additions & 2 deletions generated-docs/out/test-frameworks/munit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ To use with munit, add following dependency:
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-munit" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-munit" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-munit::0.5.1"
ivy"com.softwaremill.diffx::diffx-munit::0.5.2"
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions generated-docs/out/test-frameworks/scalatest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ To use with scalatest, add the following dependency:
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-scalatest" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-scalatest" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-scalatest::0.5.1"
ivy"com.softwaremill.diffx::diffx-scalatest::0.5.2"
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions generated-docs/out/test-frameworks/specs2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ To use with specs2, add the following dependency:
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-specs2" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-specs2" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-specs2::0.5.1"
ivy"com.softwaremill.diffx::diffx-specs2::0.5.2"
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions generated-docs/out/test-frameworks/utest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ To use with utest, add following dependency:
## sbt

```scala
"com.softwaremill.diffx" %% "diffx-utest" % "0.5.1" % Test
"com.softwaremill.diffx" %% "diffx-utest" % "0.5.2" % Test
```

## mill

```scala
ivy"com.softwaremill.diffx::diffx-utest::0.5.1"
ivy"com.softwaremill.diffx::diffx-utest::0.5.2"
```

## Usage
Expand Down
8 changes: 7 additions & 1 deletion generated-docs/out/usage/ignoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ implicit val modifiedDiff: Diff[Person] = Derived[Diff[Person]].ignore(_.age)
```
```scala
compare(Person("bob", 25), Person("bob", 30))
// res1: DiffResult = Identical(value = Person(name = "bob", age = 25))
// res1: DiffResult = DiffResultObject(
// name = "Person",
// fields = ListMap(
// "name" -> IdenticalValue(value = "bob"),
// "age" -> IdenticalValue(value = "<ignored>")
// )
// )
```
2 changes: 1 addition & 1 deletion generated-docs/out/usage/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ val result = compare(Person("Bob", 23), Person("Alice", 23))
// "name" -> DiffResultString(
// diffs = List(DiffResultValue(left = "Bob", right = "Alice"))
// ),
// "age" -> Identical(value = 23)
// "age" -> IdenticalValue(value = 23)
// )
// )
result.show(renderIdentical = false)
Expand Down
8 changes: 7 additions & 1 deletion generated-docs/out/usage/replacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ implicit val diffPerson: Derived[Diff[Person]] = Diff.derived[Person].modify(_.w

```scala
compare(Person(23, 60), Person(23, 62))
// res0: DiffResult = Identical(value = Person(age = 23, weight = 60))
// res0: DiffResult = DiffResultObject(
// name = "Person",
// fields = ListMap(
// "age" -> IdenticalValue(value = 23),
// "weight" -> IdenticalValue(value = 60)
// )
// )
```

In fact, replacement is so powerful that ignoring is implemented as a replacement
Expand Down
38 changes: 32 additions & 6 deletions generated-docs/out/usage/sequences.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ compare(Set(bob), Set(bob, Person("2","Alice")))
// res1: DiffResult = DiffResultSet(
// diffs = List(
// DiffResultMissing(value = Person(id = "2", name = "Alice")),
// Identical(value = Person(id = "1", name = "Bob"))
// DiffResultObject(
// name = "Person",
// fields = ListMap(
// "id" -> IdenticalValue(value = "1"),
// "name" -> IdenticalValue(value = "Bob")
// )
// )
// )
// )
```
Expand All @@ -50,9 +56,13 @@ val bob = Person("1","Bob")
```scala
compare(Map("1" -> bob), Map("2" -> bob))
// res3: DiffResult = DiffResultMap(
// fields = Map(
// DiffResultString(diffs = List(DiffResultValue(left = "1", right = "2"))) -> Identical(
// value = Person(id = "1", name = "Bob")
// entries = Map(
// DiffResultString(diffs = List(DiffResultValue(left = "1", right = "2"))) -> DiffResultObject(
// name = "Person",
// fields = ListMap(
// "id" -> IdenticalValue(value = "1"),
// "name" -> IdenticalValue(value = "Bob")
// )
// )
// )
// )
Expand All @@ -73,8 +83,24 @@ val alice = Person("2","Alice")
```
```scala
compare(List(bob, alice), List(alice, bob))
// res5: DiffResult = Identical(
// value = List(Person(id = "1", name = "Bob"), Person(id = "2", name = "Alice"))
// res5: DiffResult = DiffResultObject(
// name = "List",
// fields = ListMap(
// "0" -> DiffResultObject(
// name = "Person",
// fields = ListMap(
// "id" -> IdenticalValue(value = "1"),
// "name" -> IdenticalValue(value = "Bob")
// )
// ),
// "1" -> DiffResultObject(
// name = "Person",
// fields = ListMap(
// "id" -> IdenticalValue(value = "2"),
// "name" -> IdenticalValue(value = "Alice")
// )
// )
// )
// )
```

Expand Down

0 comments on commit b6e3460

Please sign in to comment.