Skip to content

Commit eb37de2

Browse files
author
Rob Rix
committed
Merge pull request #21 from Carthage/upgrade-dependencies
Upgrade dependencies
2 parents 981cf9e + 88b2b3a commit eb37de2

File tree

14 files changed

+91
-82
lines changed

14 files changed

+91
-82
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "Carthage.checkout/LlamaKit"]
22
path = Carthage/Checkouts/LlamaKit
3-
url = https://github.com/Carthage/LlamaKit.git
3+
url = https://github.com/LlamaKit/LlamaKit.git
44
[submodule "Carthage.checkout/Nimble"]
55
path = Carthage/Checkouts/Nimble
66
url = https://github.com/Quick/Nimble.git

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "Carthage/LlamaKit" == 0.1.1
1+
github "LlamaKit/LlamaKit" == 0.5

Cartfile.private

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "Quick/Quick" == 0.2.0
2-
github "Quick/Nimble"
1+
github "Quick/Quick" ~> 0.2
2+
github "Quick/Nimble" ~> 0.3
33
github "jspahrsummers/xcconfigs" >= 0.6

Cartfile.resolved

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "Carthage/LlamaKit" "carthage-0.1.1"
2-
github "Quick/Nimble" "v0.2.0"
3-
github "Quick/Quick" "v0.2.0"
4-
github "jspahrsummers/xcconfigs" "0.7"
1+
github "LlamaKit/LlamaKit" "v0.5.0"
2+
github "Quick/Nimble" "v0.3.0"
3+
github "Quick/Quick" "v0.2.2"
4+
github "jspahrsummers/xcconfigs" "0.7.2"

Carthage/Checkouts/LlamaKit

Carthage/Checkouts/Nimble

Submodule Nimble updated 82 files

Carthage/Checkouts/xcconfigs

Commandant/ArgumentParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public final class ArgumentParser {
100100
///
101101
/// If a value is found, the key and the value are both removed from the
102102
/// list of arguments remaining to be parsed.
103-
internal func consumeValueForKey(key: String) -> Result<String?> {
103+
internal func consumeValueForKey(key: String) -> Result<String?, CommandantError> {
104104
let oldArguments = rawArguments
105105
rawArguments.removeAll()
106106

Commandant/Command.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public protocol CommandType {
2020
var function: String { get }
2121

2222
/// Runs this subcommand in the given mode.
23-
func run(mode: CommandMode) -> Result<()>
23+
func run(mode: CommandMode) -> Result<(), CommandantError>
2424
}
2525

2626
/// Describes the "mode" in which a command should run.
@@ -56,7 +56,7 @@ public final class CommandRegistry {
5656
/// arguments.
5757
///
5858
/// Returns the results of the execution, or nil if no such command exists.
59-
public func runCommand(verb: String, arguments: [String]) -> Result<()>? {
59+
public func runCommand(verb: String, arguments: [String]) -> Result<(), CommandantError>? {
6060
return self[verb]?.run(.Arguments(ArgumentParser(arguments)))
6161
}
6262

@@ -81,7 +81,7 @@ extension CommandRegistry {
8181
/// If a matching command could not be found, a helpful error message will
8282
/// be written to `stderr`, then the process will exit with a failure error
8383
/// code.
84-
@noreturn public func main(#defaultCommand: CommandType, errorHandler: NSError -> ()) {
84+
@noreturn public func main(#defaultCommand: CommandType, errorHandler: CommandantError -> ()) {
8585
var arguments = Process.arguments
8686
assert(arguments.count >= 1)
8787

@@ -100,7 +100,7 @@ extension CommandRegistry {
100100
exit(EXIT_SUCCESS)
101101

102102
case let .Some(.Failure(error)):
103-
errorHandler(error)
103+
errorHandler(error.unbox)
104104
exit(EXIT_FAILURE)
105105

106106
case .None:

0 commit comments

Comments
 (0)