From 8d634f065592c9a2e5241cfeb6479cc28338cf0d Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Tue, 25 Aug 2015 13:21:11 +0100 Subject: [PATCH] xcode 7 beta 6 fixes --- Podfile | 2 +- Podfile.lock | 6 +++--- XcodeServerSDK.podspec | 6 +++--- XcodeServerSDK/XcodeServer.swift | 2 +- XcodeServerSDKTests/IntegrationTests.swift | 2 +- XcodeServerSDKTests/XcodeServerConfigTests.swift | 6 +++--- XcodeServerSDKTests/XcodeServerTests.swift | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Podfile b/Podfile index 359c3db..74d75c2 100644 --- a/Podfile +++ b/Podfile @@ -2,7 +2,7 @@ use_frameworks! utils_name = 'BuildaUtils' -utils_version = '0.0.10' +utils_version = '0.0.11' target 'XcodeServerSDK - OS X' do pod utils_name, utils_version diff --git a/Podfile.lock b/Podfile.lock index 25b8869..1ecc5bf 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,9 +1,9 @@ PODS: - - BuildaUtils (0.0.10) + - BuildaUtils (0.0.11) - DVR (0.0.4-czechboy0) DEPENDENCIES: - - BuildaUtils (= 0.0.10) + - BuildaUtils (= 0.0.11) - DVR (from `https://github.com/czechboy0/DVR.git`, tag `v0.0.4-czechboy0`) EXTERNAL SOURCES: @@ -17,7 +17,7 @@ CHECKOUT OPTIONS: :tag: v0.0.4-czechboy0 SPEC CHECKSUMS: - BuildaUtils: a6d3a5d27d4b96c86e4ce2ef6f2ba9d1ea32fa92 + BuildaUtils: be29c9977230329a330a02c6f97454a7422ae534 DVR: 386f347071f55f3f9105239db6764483009ec875 COCOAPODS: 0.38.2 diff --git a/XcodeServerSDK.podspec b/XcodeServerSDK.podspec index b0b2888..f9f1d9c 100644 --- a/XcodeServerSDK.podspec +++ b/XcodeServerSDK.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "XcodeServerSDK" - s.version = "0.1.9" + s.version = "0.1.10" s.summary = "Access Xcode Server API with native Swift objects." s.homepage = "https://github.com/czechboy0/XcodeServerSDK" @@ -14,10 +14,10 @@ Pod::Spec.new do |s| s.osx.deployment_target = "10.10" s.watchos.deployment_target = "2.0" - s.source = { :git => "https://github.com/czechboy0/XcodeServerSDK.git", :tag => "v0.1.9" } + s.source = { :git => "https://github.com/czechboy0/XcodeServerSDK.git", :tag => "v0.1.10" } s.source_files = "XcodeServerSDK/**/*.{swift}" - s.dependency "BuildaUtils", "0.0.10" + s.dependency "BuildaUtils", "0.0.11" end diff --git a/XcodeServerSDK/XcodeServer.swift b/XcodeServerSDK/XcodeServer.swift index 61736c2..c2be281 100644 --- a/XcodeServerSDK/XcodeServer.swift +++ b/XcodeServerSDK/XcodeServer.swift @@ -71,7 +71,7 @@ extension XcodeServer : NSURLSessionDelegate { // MARK: Header constants let Headers_APIVersion = "X-XCSAPIVersion" -let SupportedAPIVersion: Int = 5 //will change with time, this codebase supports this version +let SupportedAPIVersion: Int = 6 //will change with time, this codebase supports this version // MARK: XcodeServer API methods public extension XcodeServer { diff --git a/XcodeServerSDKTests/IntegrationTests.swift b/XcodeServerSDKTests/IntegrationTests.swift index 0d621ba..707adf4 100644 --- a/XcodeServerSDKTests/IntegrationTests.swift +++ b/XcodeServerSDKTests/IntegrationTests.swift @@ -17,7 +17,7 @@ class IntegrationTests: XCTestCase { let exp = self.expectationWithDescription("Network") let server = self.getRecordingXcodeServer("get_integration") server.getIntegration("ad2fac04895bd1bb06c1d50e3400fd35") { (integration, error) in - print() + print("") exp.fulfill() } self.waitForExpectationsWithTimeout(10, handler: nil) diff --git a/XcodeServerSDKTests/XcodeServerConfigTests.swift b/XcodeServerSDKTests/XcodeServerConfigTests.swift index f70c741..80769c7 100644 --- a/XcodeServerSDKTests/XcodeServerConfigTests.swift +++ b/XcodeServerSDKTests/XcodeServerConfigTests.swift @@ -54,7 +54,7 @@ class XcodeServerConfigTests: XCTestCase { func testInvalidHostProvidingForManualInit() { XCTempAssertThrowsSpecificError(ConfigurationErrors.InvalidHostProvided("Invalid host name provided, please double check your host name")) { - try XcodeServerConfig(host: "<>127.0.0.1", user: "ICanCreateBots", password: "superSecr3t") + _ = try XcodeServerConfig(host: "<>127.0.0.1", user: "ICanCreateBots", password: "superSecr3t") } } @@ -81,13 +81,13 @@ class XcodeServerConfigTests: XCTestCase { ] XCTempAssertThrowsSpecificError(ConfigurationErrors.NoHostProvided) { - try XcodeServerConfig(json: json) + _ = try XcodeServerConfig(json: json) } } func testInvalidSchemeProvided() { XCTempAssertThrowsSpecificError(ConfigurationErrors.InvalidSchemeProvided("Xcode Server generally uses https, please double check your hostname")) { - try XcodeServerConfig(host: "http://127.0.0.1") + _ = try XcodeServerConfig(host: "http://127.0.0.1") } } diff --git a/XcodeServerSDKTests/XcodeServerTests.swift b/XcodeServerSDKTests/XcodeServerTests.swift index d9c72a3..7b14c4a 100644 --- a/XcodeServerSDKTests/XcodeServerTests.swift +++ b/XcodeServerSDKTests/XcodeServerTests.swift @@ -52,7 +52,7 @@ class XcodeServerTests: XCTestCase { let exp = self.expectationWithDescription("Network") self.server.getBots { (bots, error) in - print() + print("") exp.fulfill() } self.waitForExpectationsWithTimeout(10, handler: nil) @@ -64,7 +64,7 @@ class XcodeServerTests: XCTestCase { let server = self.getRecordingXcodeServer("test_bot") server.getBots { (bots, error) in - print() + print("") exp.fulfill() } @@ -94,13 +94,13 @@ class XcodeServerTests: XCTestCase { self.server.createBot(bot) { (response) -> () in - print() + print("") switch response { case .Success(let newBot): self.server.postIntegration(newBot.id) { (integration, error) -> () in - print() + print("") exp.fulfill() }