Skip to content

Commit

Permalink
Merge pull request #51 from ReactiveCocoa/xcode-10
Browse files Browse the repository at this point in the history
Xcode 10 support
  • Loading branch information
sharplet authored Jun 8, 2018
2 parents 30f84d2 + ca0b714 commit 5d0209b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Quick/Nimble" "v7.0.3"
github "Quick/Nimble" "v7.1.2"
github "Quick/Quick" "v1.2.0"
github "ReactiveCocoa/ReactiveObjC" "3.1.0"
github "ReactiveCocoa/ReactiveSwift" "3.1.0"
Expand Down
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 34 files
+1 −1 Cartfile.private
+1 −1 Cartfile.resolved
+0 −2 Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift
+2 −0 Carthage/Checkouts/CwlPreconditionTesting/LICENSE.txt
+4 −2 Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift
+1 −1 Gemfile
+39 −36 Gemfile.lock
+2 −3 Nimble.podspec
+57 −19 Nimble.xcodeproj/project.pbxproj
+8 −0 Nimble.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+1 −3 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-iOS.xcscheme
+1 −3 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-macOS.xcscheme
+1 −3 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-tvOS.xcscheme
+42 −42 README.md
+2 −2 Sources/Nimble/Adapters/NMBExpectation.swift
+2 −2 Sources/Nimble/Adapters/NMBObjCMatcher.swift
+1 −1 Sources/Nimble/DSL+Wait.swift
+2 −2 Sources/Nimble/Matchers/BeCloseTo.swift
+2 −2 Sources/Nimble/Matchers/MatcherProtocols.swift
+8 −8 Sources/Nimble/Matchers/Predicate.swift
+2 −2 Sources/Nimble/Matchers/RaisesException.swift
+101 −0 Sources/Nimble/Matchers/SatisfyAllOf.swift
+3 −9 Sources/Nimble/Utils/Stringers.swift
+0 −9 Sources/NimbleObjectiveC/CurrentTestCaseTracker.h
+6 −0 Sources/NimbleObjectiveC/DSL.h
+9 −8 Sources/NimbleObjectiveC/DSL.m
+1 −1 Sources/NimbleObjectiveC/NMBExceptionCapture.m
+5 −0 Sources/NimbleObjectiveC/NMBStringify.m
+6 −1 Sources/NimbleObjectiveC/XCTestObservationCenter+Register.m
+12 −0 Tests/NimbleTests/AsynchronousTest.swift
+57 −0 Tests/NimbleTests/Matchers/SatisfyAllOfTest.swift
+0 −0 Tests/NimbleTests/objc/ObjCContainElementSatisfyingTest.m
+0 −0 Tests/NimbleTests/objc/ObjCHaveCountTest.m
+32 −0 Tests/NimbleTests/objc/ObjCSatisfyAllOfTest.m
4 changes: 4 additions & 0 deletions ReactiveObjCBridge.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@
"$(PROJECT_DIR)/build/Debug",
);
INFOPLIST_FILE = ReactiveObjCBridgeTests/Info.plist;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = "$(PROJECT_NAME)Tests";
};
name = Debug;
Expand All @@ -1127,6 +1128,7 @@
"$(PROJECT_DIR)/build/Debug",
);
INFOPLIST_FILE = ReactiveObjCBridgeTests/Info.plist;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = "$(PROJECT_NAME)Tests";
};
name = Release;
Expand Down Expand Up @@ -1236,6 +1238,7 @@
"$(PROJECT_DIR)/build/Debug",
);
INFOPLIST_FILE = ReactiveObjCBridgeTests/Info.plist;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = "$(PROJECT_NAME)Tests";
};
name = Profile;
Expand Down Expand Up @@ -1315,6 +1318,7 @@
"$(PROJECT_DIR)/build/Debug",
);
INFOPLIST_FILE = ReactiveObjCBridgeTests/Info.plist;
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = "$(PROJECT_NAME)Tests";
};
name = Test;
Expand Down
16 changes: 8 additions & 8 deletions ReactiveObjCBridge/ObjectiveCBridging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private final class RACSwiftScheduler: RACScheduler {
}
}

open override func schedule(_ block: @escaping () -> Void) -> RACDisposable? {
override func schedule(_ block: @escaping () -> Void) -> RACDisposable? {
switch base {
case let .scheduler(scheduler):
return scheduler.schedule(wrap(block)).map(RACDisposable.init)
Expand All @@ -174,7 +174,7 @@ private final class RACSwiftScheduler: RACScheduler {
}
}

open override func after(_ date: Date, schedule block: @escaping () -> Swift.Void) -> RACDisposable? {
override func after(_ date: Date, schedule block: @escaping () -> Swift.Void) -> RACDisposable? {
switch base {
case let .scheduler(scheduler):
Thread.sleep(until: date)
Expand All @@ -186,7 +186,7 @@ private final class RACSwiftScheduler: RACScheduler {
}
}

open override func after(_ date: Date, repeatingEvery interval: TimeInterval, withLeeway leeway: TimeInterval, schedule block: @escaping () -> Void) -> RACDisposable? {
override func after(_ date: Date, repeatingEvery interval: TimeInterval, withLeeway leeway: TimeInterval, schedule block: @escaping () -> Void) -> RACDisposable? {
switch base {
case let .scheduler(scheduler):
assertionFailure("Undefined behavior.")
Expand Down Expand Up @@ -418,7 +418,7 @@ extension SignalProtocol where Value: OptionalProtocol, Value.Wrapped: AnyObject
}

extension Action {
fileprivate var isEnabled: RACSignal<NSNumber> {
fileprivate var isEnabledSignal: RACSignal<NSNumber> {
return self.isEnabled.producer.map { $0 as NSNumber }.bridged
}
}
Expand Down Expand Up @@ -462,7 +462,7 @@ extension Action where Input: AnyObject, Output: AnyObject {
/// when the action is. However, the reverse is always true: the Action
/// will always be marked as executing when the `RACCommand` is.
public var bridged: RACCommand<Input, Output> {
return RACCommand<Input, Output>(enabled: isEnabled) { input -> RACSignal<Output> in
return RACCommand<Input, Output>(enabled: isEnabledSignal) { input -> RACSignal<Output> in
return self.apply(input!).bridged
}
}
Expand All @@ -478,7 +478,7 @@ extension Action where Input: OptionalProtocol, Input.Wrapped: AnyObject, Output
/// when the action is. However, the reverse is always true: the Action
/// will always be marked as executing when the `RACCommand` is.
public var bridged: RACCommand<Input.Wrapped, Output> {
return RACCommand<Input.Wrapped, Output>(enabled: isEnabled) { input -> RACSignal<Output> in
return RACCommand<Input.Wrapped, Output>(enabled: isEnabledSignal) { input -> RACSignal<Output> in
return self.apply(Input(reconstructing: input)).bridged
}
}
Expand All @@ -494,7 +494,7 @@ extension Action where Input: AnyObject, Output: OptionalProtocol, Output.Wrappe
/// when the action is. However, the reverse is always true: the Action
/// will always be marked as executing when the `RACCommand` is.
public var bridged: RACCommand<Input, Output.Wrapped> {
return RACCommand<Input, Output.Wrapped>(enabled: isEnabled) { input -> RACSignal<Output.Wrapped> in
return RACCommand<Input, Output.Wrapped>(enabled: isEnabledSignal) { input -> RACSignal<Output.Wrapped> in
return self.apply(input!).bridged
}
}
Expand All @@ -510,7 +510,7 @@ extension Action where Input: OptionalProtocol, Input.Wrapped: AnyObject, Output
/// when the action is. However, the reverse is always true: the Action
/// will always be marked as executing when the RACCommand is.
public var bridged: RACCommand<Input.Wrapped, Output.Wrapped> {
return RACCommand<Input.Wrapped, Output.Wrapped>(enabled: isEnabled) { input -> RACSignal<Output.Wrapped> in
return RACCommand<Input.Wrapped, Output.Wrapped>(enabled: isEnabledSignal) { input -> RACSignal<Output.Wrapped> in
return self.apply(Input(reconstructing: input)).bridged
}
}
Expand Down

0 comments on commit 5d0209b

Please sign in to comment.