Skip to content

Commit cc270b0

Browse files
author
Rob Rix
committed
Merge pull request #22 from Carthage/swift-1.2
Swift 1.2b3
2 parents eb37de2 + 2798ecb commit cc270b0

File tree

9 files changed

+18
-22
lines changed

9 files changed

+18
-22
lines changed

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Cartfile

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

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
2-
github "Quick/Nimble" ~> 0.3
1+
github "Quick/Quick" "master"
2+
github "Quick/Nimble" "master"
33
github "jspahrsummers/xcconfigs" >= 0.6

Cartfile.resolved

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "LlamaKit/LlamaKit" "v0.5.0"
2-
github "Quick/Nimble" "v0.3.0"
3-
github "Quick/Quick" "v0.2.2"
1+
github "LlamaKit/LlamaKit" "v0.6.0"
2+
github "Quick/Nimble" "6a679cbf20da3fe570c26296b3029dd168b72c00"
3+
github "Quick/Quick" "155f858bce082373fc60d0c0a63415bf336c676b"
44
github "jspahrsummers/xcconfigs" "0.7.2"

Carthage/Checkouts/LlamaKit

Carthage/Checkouts/Nimble

Submodule Nimble updated 44 files

Carthage/Checkouts/Quick

Commandant/HelpCommand.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public struct HelpCommand: CommandType {
4545

4646
println("Available commands:\n")
4747

48-
let maxVerbLength = maxElement(self.registry.commands.map { countElements($0.verb) })
48+
let maxVerbLength = maxElement(self.registry.commands.map { count($0.verb) })
4949

5050
for command in self.registry.commands {
51-
let padding = Repeat<Character>(count: maxVerbLength - countElements(command.verb), repeatedValue: " ")
51+
let padding = Repeat<Character>(count: maxVerbLength - count(command.verb), repeatedValue: " ")
5252

5353
var formattedVerb = command.verb
5454
formattedVerb.extend(padding)
@@ -63,6 +63,10 @@ public struct HelpCommand: CommandType {
6363

6464
private struct HelpOptions: OptionsType {
6565
let verb: String?
66+
67+
init(verb: String?) {
68+
self.verb = verb
69+
}
6670

6771
static func create(verb: String) -> HelpOptions {
6872
return self(verb: (verb == "" ? nil : verb))

Commandant/Option.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public protocol OptionsType {
3838
///
3939
/// Returns the parsed options, or an `InvalidArgument` error containing
4040
/// usage information.
41-
class func evaluate(m: CommandMode) -> Result<Self, CommandantError>
41+
static func evaluate(m: CommandMode) -> Result<Self, CommandantError>
4242
}
4343

4444
/// Describes an option that can be provided on the command line.
@@ -93,10 +93,10 @@ extension Option: Printable {
9393
/// Represents a value that can be converted from a command-line argument.
9494
public protocol ArgumentType {
9595
/// A human-readable name for this type.
96-
class var name: String { get }
96+
static var name: String { get }
9797

9898
/// Attempts to parse a value from the given command-line argument.
99-
class func fromString(string: String) -> Self?
99+
static func fromString(string: String) -> Self?
100100
}
101101

102102
extension Int: ArgumentType {

0 commit comments

Comments
 (0)