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

Updated to be compatible with Nimble 6.1 & newer Swift #17

Merged
merged 6 commits into from
Apr 25, 2017

Conversation

vhbit
Copy link
Contributor

@vhbit vhbit commented Apr 25, 2017

This is continuation of work started in #14. I've fixed all the warnings and provided a workaround for building errors through introducing a new == operator (more details here: 59bb147). As API has a breaking change I've also bumped major version.

Rafael da Silva Ferreira and others added 6 commits April 25, 2017 11:09
1. It seems that nowadays Swift compiler can't deduce the right type
while going through `ObservableType`, as a temporary workaround I've
added implementation `==` for `Observable<T>` and `Observablle<T?>`
which should cover most cases.

2. `equalFirst` signature was simplified a bit to be more consistent
with other `Nimble` matchers. That might be a bit more verbose
`expect(something).to(equalFirst(expectedValue))` than
`expect(something) == expectedValue` but it also is more explicit. That
is API breaking change, so major version bumped, although it should be
easily fixed by search/replace.
@vhbit
Copy link
Contributor Author

vhbit commented Apr 25, 2017

cc @ashfurrow

Copy link
Member

@ashfurrow ashfurrow left a comment

Choose a reason for hiding this comment

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

Looks fantastic, thanks!

@ashfurrow ashfurrow merged commit c8e97f3 into RxSwiftCommunity:master Apr 25, 2017
@ashfurrow
Copy link
Member

Thanks a lot for contributing! I've invited you to join the RxSwiftCommunity GitHub organization – no pressure to accept! If you'd like more information on what that means, check out our contributor guidelines and feel free to reach out with any questions.

@ashfurrow
Copy link
Member

This has been pushed to CocoaPods trunk, thanks again 🙇

@vhbit vhbit deleted the nimble61andSwift branch April 25, 2017 09:46
@vhbit vhbit mentioned this pull request Apr 25, 2017
@RafaelPlantard
Copy link
Contributor

@vhbit awesome, congrats!

Copy link
Contributor

@RafaelPlantard RafaelPlantard left a comment

Choose a reason for hiding this comment

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

👍

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

3 participants