Skip to content

Commit

Permalink
Merge pull request #30 from mrackwitz/swift-2.0
Browse files Browse the repository at this point in the history
Update for Xcode 7 Beta 5
  • Loading branch information
jpsim committed Aug 23, 2015
2 parents 78fbc95 + 7012e82 commit 5c73856
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Quick/Nimble" "6f356f2db6de77883cab0e86a1fa5ebb20b6679f"
github "Quick/Quick" "a4ef16170097a2e4828a71961f1e2d9ed7b012cf"
github "Quick/Nimble" "decf8c6be4139cbbadbb15c6505628ec168662f4"
github "Quick/Quick" "4f7480ff9560e3791096e1a58ce09b6c0a8c926c"
github "antitypical/Result" "932ac1aabf6d881ead74c4e6911d1271e95d2859"
github "jspahrsummers/xcconfigs" "0.8.1"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 46 files
+1 −7 CONTRIBUTING.md
+1 −1 Nimble.podspec
+37 −13 Nimble.xcodeproj/project.pbxproj
+6 −6 Nimble/Adapters/AssertionRecorder.swift
+9 −3 Nimble/DSL+Wait.swift
+2 −2 Nimble/DSL.swift
+28 −16 Nimble/Expectation.swift
+9 −9 Nimble/Expression.swift
+10 −3 Nimble/FailureMessage.swift
+10 −8 Nimble/Matchers/AllPass.swift
+2 −2 Nimble/Matchers/BeAKindOf.swift
+2 −2 Nimble/Matchers/BeAnInstanceOf.swift
+10 −7 Nimble/Matchers/BeCloseTo.swift
+9 −9 Nimble/Matchers/BeEmpty.swift
+3 −3 Nimble/Matchers/BeGreaterThan.swift
+3 −3 Nimble/Matchers/BeGreaterThanOrEqualTo.swift
+2 −2 Nimble/Matchers/BeIdenticalTo.swift
+3 −3 Nimble/Matchers/BeLessThan.swift
+3 −3 Nimble/Matchers/BeLessThanOrEqual.swift
+8 −8 Nimble/Matchers/BeLogical.swift
+2 −2 Nimble/Matchers/BeNil.swift
+6 −6 Nimble/Matchers/BeginWith.swift
+29 −10 Nimble/Matchers/Contain.swift
+6 −6 Nimble/Matchers/EndWith.swift
+11 −8 Nimble/Matchers/Equal.swift
+2 −2 Nimble/Matchers/Match.swift
+2 −2 Nimble/Matchers/MatcherProtocols.swift
+3 −3 Nimble/Matchers/RaisesException.swift
+181 −0 Nimble/Matchers/ThrowError.swift
+49 −7 Nimble/ObjCExpectation.swift
+21 −11 Nimble/Utils/Poll.swift
+3 −3 Nimble/Utils/SourceLocation.swift
+26 −18 Nimble/Wrappers/AsyncMatcherWrapper.swift
+22 −22 Nimble/Wrappers/MatcherFunc.swift
+10 −3 Nimble/Wrappers/ObjCMatcher.swift
+5 −3 Nimble/objc/DSL.h
+16 −2 Nimble/objc/DSL.m
+23 −2 NimbleTests/AsynchronousTest.swift
+1 −1 NimbleTests/Helpers/utils.swift
+137 −0 NimbleTests/Matchers/ThrowErrorTest.swift
+22 −8 NimbleTests/SynchronousTests.swift
+54 −0 NimbleTests/UserDescriptionTest.swift
+17 −0 NimbleTests/objc/ObjCContainTest.m
+52 −0 NimbleTests/objc/ObjCUserDescriptionTest.m
+68 −8 README.md
+164 −0 script/release
6 changes: 3 additions & 3 deletions Commandant/ArgumentParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public final class ArgumentParser {
/// Initializes the generator from a simple list of command-line arguments.
public init(_ arguments: [String]) {
// The first instance of `--` terminates the option list.
let params = split(arguments, maxSplit: 1, allowEmptySlices: true) { $0 == "--" }
let params = arguments.split(2, allowEmptySlices: true) { $0 == "--" }

// Parse out the keyed and flag options.
let options = params.first!
rawArguments.extend(options.map { arg in
if arg.hasPrefix("-") {
// Do we have `--{key}` or `-{flags}`.
let opt = dropFirst(arg.characters)
return String(opt).hasPrefix("-") ? .Key(String(dropFirst(opt))) : .Flag(Set(opt))
let opt = arg.characters.dropFirst()
return String(opt).hasPrefix("-") ? .Key(String(opt.dropFirst())) : .Flag(Set(opt))
} else {
return .Value(arg)
}
Expand Down

0 comments on commit 5c73856

Please # to comment.