Skip to content

Commit

Permalink
quick fix of an unnecessary failable initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Oct 3, 2015
1 parent fb0ccce commit 4a1dd72
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Podfile
Expand Up @@ -2,7 +2,7 @@
use_frameworks!

def utils
pod 'BuildaUtils', '~> 0.1.0'
pod 'BuildaUtils', '~> 0.1.3'
end

def tests
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
@@ -1,5 +1,5 @@
PODS:
- BuildaUtils (0.1.0)
- BuildaUtils (0.1.3)
- DVR (0.0.4-czechboy0)
- Nimble (2.0.0-rc.3)

Expand All @@ -19,8 +19,8 @@ CHECKOUT OPTIONS:
:tag: v0.0.5-czechboy0

SPEC CHECKSUMS:
BuildaUtils: cf7756290492ca286935d996c8bf4a3085662514
BuildaUtils: a9ece265022c420198d28aed5fc56a5ae019f6f1
DVR: 386f347071f55f3f9105239db6764483009ec875
Nimble: 9dff98ee195ffe7351d3b2fb01d3a1420fd97948

COCOAPODS: 0.39.0.beta.3
COCOAPODS: 0.39.0.beta.5
2 changes: 1 addition & 1 deletion XcodeServerSDK.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "XcodeServerSDK"
s.version = "0.3.1"
s.version = "0.3.2"
s.summary = "Access Xcode Server API with native Swift objects."

s.homepage = "https://github.com/czechboy0/XcodeServerSDK"
Expand Down
2 changes: 1 addition & 1 deletion XcodeServerSDK/XcodeServerConfig.swift
Expand Up @@ -121,7 +121,7 @@ public class XcodeServerConfig : JSONSerializable {
- `InvalidHostProvided`: When the host provided doesn't produce a valid `URL`
- `InvalidSchemeProvided`: When the provided scheme is not `HTTPS`
*/
public required convenience init?(json: NSDictionary) throws {
public required convenience init(json: NSDictionary) throws {
guard let host = json.optionalStringForKey("host") else {
throw ConfigurationErrors.NoHostProvided
}
Expand Down
6 changes: 3 additions & 3 deletions XcodeServerSDKTests/XcodeServerConfigTests.swift
Expand Up @@ -68,9 +68,9 @@ class XcodeServerConfigTests: XCTestCase {

let config = try XcodeServerConfig(json: json)

XCTAssertEqual(config!.host, "https://127.0.0.1", "Should create proper host address")
XCTAssertEqual(config!.user!, "ICanCreateBots")
XCTAssertEqual(config!.password!, "superSecr3t")
XCTAssertEqual(config.host, "https://127.0.0.1", "Should create proper host address")
XCTAssertEqual(config.user!, "ICanCreateBots")
XCTAssertEqual(config.password!, "superSecr3t")
}
}

Expand Down

0 comments on commit 4a1dd72

Please sign in to comment.