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 #141

Closed
wants to merge 5 commits into from
Closed

Conversation

juanpedromoreno
Copy link
Member

@juanpedromoreno juanpedromoreno commented Sep 22, 2019

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.

Copy link
Member

@pepegar pepegar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @juanpedromoreno !

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 marked this pull request as ready for review September 23, 2019 07:27
@juanpedromoreno juanpedromoreno changed the title WIP - Upgrades skeuomorph Build Upgrades skeuomorph Build Sep 23, 2019
@juanpedromoreno
Copy link
Member Author

Superseded by #145

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.

None yet

2 participants