Skip to content

Commit

Permalink
Update ReactiveSwift to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Nov 18, 2017
1 parent d14a884 commit 1a35dc1
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 32 deletions.
6 changes: 3 additions & 3 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github "antitypical/Result" ~> 3.2
github "Carthage/ReactiveTask" ~> 0.13
github "Carthage/ReactiveTask" "reactiveswift-3.0"
github "Carthage/Commandant" ~> 0.12
github "jdhealy/PrettyColors" ~> 5.0
github "ReactiveCocoa/ReactiveSwift" ~> 2.0
github "mdiep/Tentacle" ~> 0.10
github "ReactiveCocoa/ReactiveSwift" ~> 3.0
github "mdiep/Tentacle" "reactiveswift-3.0"
github "thoughtbot/Curry" ~> 3.0
8 changes: 4 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
github "Carthage/Commandant" "0.12.0"
github "Carthage/ReactiveTask" "0.13.0"
github "Carthage/ReactiveTask" "a61a9689ce433c54fd1d097a166751c19967630f"
github "Quick/Nimble" "v7.0.2"
github "Quick/Quick" "v1.2.0"
github "ReactiveCocoa/ReactiveSwift" "2.0.1"
github "ReactiveCocoa/ReactiveSwift" "3.0.0"
github "antitypical/Result" "3.2.4"
github "jdhealy/PrettyColors" "v5.0.0"
github "jdhealy/PrettyColors" "5.0.1"
github "jspahrsummers/xcconfigs" "0.9"
github "mdiep/Tentacle" "0.10.0"
github "mdiep/Tentacle" "66c71c8390a710ed505be8d0c2b6557e285c77b2"
github "thoughtbot/Curry" "v3.0.0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/ReactiveSwift
Submodule ReactiveSwift updated 48 files
+1 −0 .gitignore
+1 −1 .swift-version
+29 −99 .travis.yml
+38 −0 CHANGELOG.md
+2 −2 Cartfile.private
+3 −3 Cartfile.resolved
+1 −1 Carthage/Checkouts/Nimble
+1 −1 Carthage/Checkouts/Quick
+1 −1 Carthage/Checkouts/Result
+2 −4 Documentation/APIContracts.md
+1 −1 Documentation/FrameworkOverview.md
+3 −3 Package.pins
+4 −2 Package.swift
+13 −17 README.md
+1 −0 ReactiveSwift-UIExamples.playground/Pages/ValidatingProperty.xcplaygroundpage/Sources/FormView.swift
+1 −1 ReactiveSwift.podspec
+21 −22 ReactiveSwift.xcodeproj/project.pbxproj
+2 −0 ReactiveSwift.xcodeproj/xcshareddata/xcschemes/ReactiveSwift-iOS.xcscheme
+2 −0 ReactiveSwift.xcodeproj/xcshareddata/xcschemes/ReactiveSwift-macOS.xcscheme
+2 −0 ReactiveSwift.xcodeproj/xcshareddata/xcschemes/ReactiveSwift-tvOS.xcscheme
+4 −1 ReactiveSwift.xcodeproj/xcshareddata/xcschemes/ReactiveSwift-watchOS.xcscheme
+2 −3 Sources/Action.swift
+5 −5 Sources/Atomic.swift
+1 −1 Sources/Bag.swift
+6 −187 Sources/Deprecations+Removals.swift
+26 −1 Sources/Disposable.swift
+551 −7 Sources/Event.swift
+18 −34 Sources/Flatten.swift
+38 −68 Sources/FoundationExtensions.swift
+1 −1 Sources/Info.plist
+4 −3 Sources/Lifetime.swift
+60 −9 Sources/Observer.swift
+42 −53 Sources/Property.swift
+8 −0 Sources/Scheduler.swift
+115 −526 Sources/Signal.swift
+306 −157 Sources/SignalProducer.swift
+5 −5 Sources/UnidirectionalBinding.swift
+42 −42 Sources/UninhabitedTypeGuards.swift
+9 −6 Tests/ReactiveSwiftTests/FoundationExtensionsSpec.swift
+1 −1 Tests/ReactiveSwiftTests/Info.plist
+4 −2 Tests/ReactiveSwiftTests/PropertySpec.swift
+51 −32 Tests/ReactiveSwiftTests/SignalLifetimeSpec.swift
+3 −0 Tests/ReactiveSwiftTests/SignalProducerLiftingSpec.swift
+3 −3 Tests/ReactiveSwiftTests/SignalProducerNimbleMatchers.swift
+29 −0 Tests/ReactiveSwiftTests/SignalProducerSpec.swift
+22 −31 Tests/ReactiveSwiftTests/SignalSpec.swift
+0 −2 Tests/ReactiveSwiftTests/UnidirectionalBindingSpec.swift
+5 −9 script/build
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Result
20 changes: 10 additions & 10 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/jdhealy/PrettyColors.git",
"state": {
"branch": null,
"revision": "40dba7f0390e6daf855448acbe8762b40a2366cc",
"version": "5.0.0"
"revision": "1954a28331668a706134dc315fe264b15b74984e",
"version": "5.0.1"
}
},
{
Expand All @@ -51,17 +51,17 @@
"repositoryURL": "https://github.com/ReactiveCocoa/ReactiveSwift.git",
"state": {
"branch": null,
"revision": "b9d5b350a446b85704396ce332a1f9e4960cfc6b",
"version": "2.0.1"
"revision": "2ec944c43ef9cf6b1380629e3ea483f62a7afaef",
"version": "3.0.0"
}
},
{
"package": "ReactiveTask",
"repositoryURL": "https://github.com/Carthage/ReactiveTask.git",
"state": {
"branch": null,
"revision": "c4ac2a770d9991157561084ec7b9a4fe40fed87a",
"version": "0.13.0"
"branch": "reactiveswift-3.0",
"revision": "a61a9689ce433c54fd1d097a166751c19967630f",
"version": null
}
},
{
Expand All @@ -77,9 +77,9 @@
"package": "Tentacle",
"repositoryURL": "https://github.com/mdiep/Tentacle.git",
"state": {
"branch": null,
"revision": "90c57572d15c56d591e671bbe4fc37f7288df060",
"version": "0.10.0"
"branch": "reactiveswift-3.0",
"revision": "66c71c8390a710ed505be8d0c2b6557e285c77b2",
"version": null
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/antitypical/Result.git", from: "3.2.1"),
.package(url: "https://github.com/Carthage/ReactiveTask.git", from: "0.13.0"),
.package(url: "https://github.com/Carthage/ReactiveTask.git", .branch("reactiveswift-3.0")),
.package(url: "https://github.com/Carthage/Commandant.git", from: "0.12.0"),
.package(url: "https://github.com/jdhealy/PrettyColors.git", from: "5.0.0"),
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", from: "2.0.0"),
.package(url: "https://github.com/mdiep/Tentacle.git", from: "0.10.0"),
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", from: "3.0.0"),
.package(url: "https://github.com/mdiep/Tentacle.git", .branch("reactiveswift-3.0")),
.package(url: "https://github.com/thoughtbot/Curry.git", from: "3.0.0"),
.package(url: "https://github.com/Quick/Quick.git", from: "1.2.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "7.0.2"),
Expand Down
9 changes: 4 additions & 5 deletions Source/CarthageKit/FrameworkExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension Signal {
/// occurs on `otherSignal` (repeats included).
fileprivate func permute<U>(with otherSignal: Signal<U, Error>) -> Signal<(Value, U), Error> {
// swiftlint:disable:previous cyclomatic_complexity function_body_length
return Signal<(Value, U), Error> { observer in
return Signal<(Value, U), Error> { observer, lifetime in
let lock = NSLock()
lock.name = "org.carthage.CarthageKit.permute"

Expand All @@ -45,6 +45,7 @@ extension Signal {
var otherCompleted = false

let compositeDisposable = CompositeDisposable()
lifetime += compositeDisposable

compositeDisposable += self.observe { event in
switch event {
Expand Down Expand Up @@ -105,8 +106,6 @@ extension Signal {
observer.sendInterrupted()
}
}

return compositeDisposable
}
}
}
Expand Down Expand Up @@ -155,11 +154,11 @@ extension Signal where Value: EventProtocol, Value.Error == Error {
/// Dematerializes the signal, like dematerialize(), but only yields inner
/// Error events if no values were sent.
internal func dematerializeErrorsIfEmpty() -> Signal<Value.Value, Error> {
return Signal<Value.Value, Error> { observer in
return Signal<Value.Value, Error> { observer, lifetime in
var receivedValue = false
var receivedError: Error?

return self.observe { event in
lifetime += self.observe { event in
switch event {
case let .value(innerEvent):
switch innerEvent.event {
Expand Down
4 changes: 2 additions & 2 deletions Source/CarthageKit/Xcode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ extension Signal where Value: TaskEventType {
fileprivate func collectTaskEvents() -> Signal<TaskEvent<[Value.T]>, Error> {
var taskValues: [Value.T] = []

return Signal<TaskEvent<[Value.T]>, Error> { observer in
return self.observe { event in
return Signal<TaskEvent<[Value.T]>, Error> { observer, lifetime in
lifetime += self.observe { event in
switch event {
case let .value(value):
if let taskValue = value.value {
Expand Down

0 comments on commit 1a35dc1

Please sign in to comment.