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

Upgrades skeuomorph Build #145

Merged
merged 10 commits into from
Sep 23, 2019
Merged

Upgrades skeuomorph Build #145

merged 10 commits into from
Sep 23, 2019

Conversation

juanpedromoreno
Copy link
Member

Supersedes #141

This PR upgrades skeuomorph to cats and cats-effect 2.0.0, along with the rest of dependencies except droste (maybe it can be tackled in a different PR).

After upgrading to the latest cats ecosystem version two test files need to be fixed since now the laws are broken:

  • higherkindness.skeuomorph.openapi.OpenApiSchemaSpec
  • higherkindness.skeuomorph.PrinterSpec

Additionally, this PR removes the Scala 2.11 compatibility (circe 0.12.x doesn't support it anymore).

Update: OpenApiSchemaSpec was failing because of the new version of Scalacheck (1.14.1) and how generators are currently built.

def mapStringToGen[A](gen: Gen[A]): Gen[Map[String, A]] = Gen.mapOfN(2, Gen.zip(nonEmptyString.map(_.take(4)), gen))
// TODO: after Scalacheck 1.14.1 upgrade this generator doesn't work anymore
//def mapStringToGen[A](gen: Gen[A]): Gen[Map[String, A]] = Gen.mapOfN(2, Gen.zip(nonEmptyString.map(_.take(4)), gen))
def mapStringToGen[A](gen: Gen[A]): Gen[Map[String, A]] = gen.map(a => Map(UUID.randomUUID.toString.take(4) -> a))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would need to be fixed in a separate PR: #142

@juanpedromoreno juanpedromoreno mentioned this pull request Sep 23, 2019
2 tasks
@juanpedromoreno juanpedromoreno merged commit a37b493 into master Sep 23, 2019
@juanpedromoreno juanpedromoreno deleted the jp-upgrades-build branch September 23, 2019 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants