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

Version 0.7.1 mismatch with readme.md #209

Closed
icanswiftabit opened this issue Feb 7, 2017 · 4 comments
Closed

Version 0.7.1 mismatch with readme.md #209

icanswiftabit opened this issue Feb 7, 2017 · 4 comments

Comments

@icanswiftabit
Copy link

The newest version installed by cocoapods is 0.7.1

According to readme.md Gen<T> should have method fromElements(in:) but in fact there is only fromElementsIn().

Which also throws error No '...' candidates produce the expected contextual result type 'ClosedRange<R>'

let lowercaseChars = Gen<Character>.fromElementsIn("a"..."z") 
@icanswiftabit
Copy link
Author

icanswiftabit commented Feb 7, 2017

Officially SwiftCheck is not available in cocoapods.
What's more, if you want to use ClosedRange<Characters> in fromElementsIn it should looks like

let lowercaseChars: Gen<Character> = Gen<Character>.fromElementsIn("a"..."z")

But I'm not sure why ilowercaseChars should be explicitly Gen<Character>.

@CodaFi
Copy link
Member

CodaFi commented Feb 7, 2017

Officially SwiftCheck is not available in cocoapods.

Not quite:

CocoaPods broke this repository every time I tried to migrate and push a new version. I'll check this afternoon and try again, but for now I can only recommend git submodules or SwiftPM. Officially we support CocoaPods, we just haven't pushed the latest version at their trunk.

@CodaFi
Copy link
Member

CodaFi commented Feb 7, 2017

This explains your confusion too: I recently went through and refactored some prototypes to use labels and updated the README (but not your version in pods). The README is correct, and the prototype you cite is formally deprecated.

@icanswiftabit
Copy link
Author

I've switched to Carthage and it is working just fine 👍

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

No branches or pull requests

2 participants