Skip to content

Commit

Permalink
Merge pull request #9 from Carthage/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
robrix committed Mar 1, 2015
2 parents 3c62094 + 39ac48d commit a42e9fe
Show file tree
Hide file tree
Showing 12 changed files with 155 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "Carthage.checkout/LlamaKit"]
path = Carthage/Checkouts/LlamaKit
url = https://github.com/Carthage/LlamaKit.git
url = https://github.com/LlamaKit/LlamaKit.git
[submodule "Carthage.checkout/Nimble"]
path = Carthage/Checkouts/Nimble
url = https://github.com/Quick/Nimble.git
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "ReactiveCocoa/ReactiveCocoa" "swift-development"
github "Carthage/LlamaKit" == 0.1.1
github "LlamaKit/LlamaKit" == 0.5
4 changes: 2 additions & 2 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "Quick/Quick" == 0.2.0
github "Quick/Nimble"
github "Quick/Quick" ~> 0.2
github "Quick/Nimble" ~> 0.3
github "jspahrsummers/xcconfigs" >= 0.6
10 changes: 5 additions & 5 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "Carthage/LlamaKit" "carthage-0.1.1"
github "Quick/Nimble" "v0.2.0"
github "Quick/Quick" "v0.2.0"
github "jspahrsummers/xcconfigs" "0.7"
github "ReactiveCocoa/ReactiveCocoa" "e94a432e6c47e03f47cb263225ceccffe9b7bea6"
github "LlamaKit/LlamaKit" "v0.5.0"
github "Quick/Nimble" "v0.3.0"
github "Quick/Quick" "v0.2.2"
github "jspahrsummers/xcconfigs" "0.7.2"
github "ReactiveCocoa/ReactiveCocoa" "240140c14d023cdb49f4ddf9622c3131619b2197"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/LlamaKit
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
2 changes: 1 addition & 1 deletion Carthage/Checkouts/ReactiveCocoa
Submodule ReactiveCocoa updated 73 files
+1 −1 .gitignore
+5 −5 .gitmodules
+7 −5 .travis.yml
+1 −4 Cartfile
+0 −4 Cartfile.lock
+3 −0 Cartfile.private
+4 −0 Cartfile.resolved
+0 −1 Carthage.checkout/LlamaKit
+0 −1 Carthage.checkout/Nimble
+0 −1 Carthage.checkout/Quick
+0 −1 Carthage.checkout/xcconfigs
+1 −0 Carthage/Checkouts/LlamaKit
+1 −0 Carthage/Checkouts/Nimble
+1 −0 Carthage/Checkouts/Quick
+1 −0 Carthage/Checkouts/xcconfigs
+1 −1 LICENSE.md
+1 −1 README.md
+96 −66 ReactiveCocoa.xcodeproj/project.pbxproj
+1 −1 ReactiveCocoa.xcodeproj/xcshareddata/xcschemes/ReactiveCocoa Mac.xcscheme
+1 −1 ReactiveCocoa.xcodeproj/xcshareddata/xcschemes/ReactiveCocoa iOS.xcscheme
+3 −3 ReactiveCocoa.xcworkspace/contents.xcworkspacedata
+1 −1 ReactiveCocoa/Objective-C/NSControl+RACTextSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/NSDictionary+RACSequenceAdditions.m
+2 −1 ReactiveCocoa/Objective-C/NSFileHandle+RACSupport.m
+3 −3 ReactiveCocoa/Objective-C/NSObject+RACLifting.m
+1 −1 ReactiveCocoa/Objective-C/NSText+RACSignalSupport.m
+34 −0 ReactiveCocoa/Objective-C/RACKVOProxy.h
+70 −0 ReactiveCocoa/Objective-C/RACKVOProxy.m
+7 −5 ReactiveCocoa/Objective-C/RACKVOTrampoline.m
+1 −1 ReactiveCocoa/Objective-C/RACReplaySubject.m
+3 −1 ReactiveCocoa/Objective-C/RACScheduler.m
+1 −1 ReactiveCocoa/Objective-C/RACSequence.m
+6 −6 ReactiveCocoa/Objective-C/RACSignal+Operations.m
+3 −3 ReactiveCocoa/Objective-C/RACSignal.m
+3 −3 ReactiveCocoa/Objective-C/RACStream.m
+1 −1 ReactiveCocoa/Objective-C/RACTuple.m
+1 −1 ReactiveCocoa/Objective-C/UIActionSheet+RACSignalSupport.m
+3 −3 ReactiveCocoa/Objective-C/UIAlertView+RACSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/UIControl+RACSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/UIGestureRecognizer+RACSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/UIImagePickerController+RACSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/UITextField+RACSignalSupport.m
+1 −1 ReactiveCocoa/Objective-C/UITextView+RACSignalSupport.m
+187 −165 ReactiveCocoa/Swift/Action.swift
+0 −1 ReactiveCocoa/Swift/Atomic.swift
+0 −1,309 ReactiveCocoa/Swift/ColdSignal.swift
+19 −33 ReactiveCocoa/Swift/Errors.swift
+144 −0 ReactiveCocoa/Swift/Event.swift
+28 −11 ReactiveCocoa/Swift/FoundationExtensions.swift
+0 −659 ReactiveCocoa/Swift/HotSignal.swift
+0 −35 ReactiveCocoa/Swift/Identity.swift
+120 −57 ReactiveCocoa/Swift/ObjectiveCBridging.swift
+0 −169 ReactiveCocoa/Swift/ObservableProperty.swift
+0 −23 ReactiveCocoa/Swift/OptionalExtensions.swift
+207 −0 ReactiveCocoa/Swift/Property.swift
+43 −27 ReactiveCocoa/Swift/Scheduler.swift
+907 −0 ReactiveCocoa/Swift/Signal.swift
+1,064 −0 ReactiveCocoa/Swift/SignalProducer.swift
+52 −0 ReactiveCocoa/Swift/TupleExtensions.swift
+221 −0 ReactiveCocoaTests/Objective-C/RACKVOProxySpec.m
+1 −1 ReactiveCocoaTests/Objective-C/RACSequenceAdditionsSpec.m
+1 −1 ReactiveCocoaTests/Objective-C/RACSignalSpec.m
+57 −46 ReactiveCocoaTests/Swift/ActionSpec.swift
+0 −1,454 ReactiveCocoaTests/Swift/ColdSignalSpec.swift
+0 −973 ReactiveCocoaTests/Swift/HotSignalSpec.swift
+122 −3 ReactiveCocoaTests/Swift/ObjectiveCBridgingSpec.swift
+0 −105 ReactiveCocoaTests/Swift/ObservablePropertySpec.swift
+313 −0 ReactiveCocoaTests/Swift/PropertySpec.swift
+74 −25 ReactiveCocoaTests/Swift/SchedulerSpec.swift
+52 −0 ReactiveCocoaTests/Swift/SignalProducerNimbleMatchers.swift
+832 −0 ReactiveCocoaTests/Swift/SignalProducerSpec.swift
+1,401 −0 ReactiveCocoaTests/Swift/SignalSpec.swift
+24 −0 ReactiveCocoaTests/Swift/TestError.swift
2 changes: 1 addition & 1 deletion Carthage/Checkouts/xcconfigs
48 changes: 36 additions & 12 deletions ReactiveTask/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,44 @@
//

import Foundation
import ReactiveCocoa

/// Possible error codes within `ReactiveTaskErrorDomain`.
public enum ReactiveTaskError: Int {
/// The domain for all errors originating within ReactiveTask.
public static let domain: NSString = "org.carthage.ReactiveTask"
/// An error originating from ReactiveTask.
public enum ReactiveTaskError {
/// A shell task exited unsuccessfully.
case ShellTaskFailed(exitCode: Int32, standardError: String?)

/// In a user info dictionary, associated with the exit code from a child
/// process.
public static let exitCodeKey: NSString = "ReactiveTaskErrorExitCode"
/// An error was returned from a POSIX API.
case POSIXError(Int32)
}

/// In a user info dictionary, associated with any accumulated stderr
/// string.
public static let standardErrorKey: NSString = "ReactiveTaskErrorStandardError"
extension ReactiveTaskError: ErrorType {
public var nsError: NSError {
switch self {
case let .POSIXError(code):
return NSError(domain: NSPOSIXErrorDomain, code: Int(code), userInfo: nil)

/// A shell task exited unsuccessfully.
case ShellTaskFailed
default:
return NSError(domain: "org.carthage.ReactiveTask", code: 0, userInfo: [
NSLocalizedDescriptionKey: self.description
])
}
}
}

extension ReactiveTaskError: Printable {
public var description: String {
switch self {
case let .ShellTaskFailed(exitCode, standardError):
var description = "A shell task failed with exit code \(exitCode)"
if let standardError = standardError {
description += ":\n\(standardError)"
}

return description

case let .POSIXError:
return nsError.description
}
}
}
Loading

0 comments on commit a42e9fe

Please sign in to comment.