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

Updating to RxSwift 5. #195

Merged
merged 12 commits into from
May 2, 2019
Merged

Conversation

LucianoPAlmeida
Copy link
Member

Just updating to the new version :))

@rxswiftcommunity
Copy link

Warnings
⚠️

It looks like code was changed without adding anything to the Changelog. If this is a trivial PR that doesn't need a changelog, add #trivial to the PR title or body.

Generated by 🚫 dangerJS

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

Seems to be conflicting @LucianoPAlmeida

@LucianoPAlmeida
Copy link
Member Author

Hey @freak4pc :)
What do you mean by conflicting?

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

@LucianoPAlmeida
image

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

Can you rebase on top of master?

@LucianoPAlmeida
Copy link
Member Author

That weird this is what I'm seeing haha
Screen Shot 2019-05-01 at 13 02 16

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

Becuase you're doing a merge and I'm trying a rebase :)

@LucianoPAlmeida
Copy link
Member Author

Huum sorry, didn't notice, rebasing :)

Copy link
Member

@freak4pc freak4pc left a comment

Choose a reason for hiding this comment

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

Good work! Just a few quick notes.

Action.podspec Outdated
@@ -20,8 +20,8 @@ Pod::Spec.new do |s|
s.source_files = "Sources/**/*.{swift}"

s.frameworks = "Foundation"
s.dependency "RxSwift", "~> 4.0"
s.dependency "RxCocoa", "~> 4.0"
s.dependency "RxSwift", "~> 5.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

Let's do ~> 5.0 everywhere

@@ -31,8 +31,8 @@ class ActionTests: QuickSpec {
action.inputs.bind(to: inputs).disposed(by: disposeBag)
scheduler.start()
XCTAssertEqual(inputs.events, [
Copy link
Member

@freak4pc freak4pc May 1, 2019

Choose a reason for hiding this comment

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

FYI you can do

Recorded.events([
 .next(...),
 .next(....)
])

I'd actually prefer you'd do it for readability if possible.

next(20, "b"),
completed(20),
Recorded.next(10, "a"),
Recorded.completed(10),
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

Copy link
Member Author

Choose a reason for hiding this comment

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

Thought swiftlint autocorrect would fix it :(

next(20, "b"),
completed(20),
Recorded.next(10, "a"),
Recorded.next(10, "a"),
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

it("first element receives single value") {
XCTAssertEqual(element.events, [
next(30, "a"),
completed(30),
Recorded.next(30, "a"),
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

next(30, "a"),
completed(30),
Recorded.next(30, "a"),
Recorded.completed(30)
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

it("second element fails with notEnabled error") {
XCTAssertEqual(secondElement.events, [
error(20, ActionError.notEnabled)
Recorded.error(20, ActionError.notEnabled)
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

error(10, ActionError.notEnabled),
error(20, ActionError.notEnabled),
Recorded.error(10, ActionError.notEnabled),
Recorded.error(20, ActionError.notEnabled)
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

it("element fails with underlyingError") {
XCTAssertEqual(element.events, [
error(10, ActionError.underlyingError(TestError)),
error(20, ActionError.underlyingError(TestError)),
Recorded.error(10, ActionError.underlyingError(TestError)),
Copy link
Member

Choose a reason for hiding this comment

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

misaligned

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

I need to resolve this on master first: #193

@LucianoPAlmeida
Copy link
Member Author

Sure @freak4pc, but anything left on this one?

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

There will be issues here once I merge this because we removed InputSubject, for example. You'll have to rebase again after, hopefully It'd be fine :)

@LucianoPAlmeida
Copy link
Member Author

Nice @freak4pc, thank's for the review :))

@freak4pc
Copy link
Member

freak4pc commented May 1, 2019

@LucianoPAlmeida I think that would do it. Can you rebase one final time on master and resolve any conflicts ? Thanks.

@LucianoPAlmeida
Copy link
Member Author

@freak4pc Rebase done \o/

Copy link
Member

@freak4pc freak4pc 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.

@freak4pc freak4pc merged commit 956e0e6 into RxSwiftCommunity:master May 2, 2019
@freak4pc
Copy link
Member

freak4pc commented May 2, 2019

@LucianoPAlmeida Mind paying back with a review? ^_^
RxSwiftCommunity/RxSwiftExt#205

@LucianoPAlmeida
Copy link
Member Author

Sure :))

@freak4pc
Copy link
Member

freak4pc commented May 2, 2019

Already got a review there haha. Thank you!

@LucianoPAlmeida
Copy link
Member Author

Haha no problem, feel free to ping me anytime. I’ll be happy if I can help :)

Sent with GitHawk

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