Skip to content

Commit

Permalink
v++, fix for triggerconditions
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Aug 17, 2016
1 parent d5b2d8a commit 98e16a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Podfile
Expand Up @@ -2,20 +2,20 @@
use_frameworks!

def utils
pod 'BuildaUtils', '~> 0.3.2'
pod 'BuildaUtils', '~> 0.3.2'
end

def tests
pod 'DVR', :git => "https://github.com/czechboy0/DVR.git", :tag => "v0.0.5-czechboy0"
# pod 'Nimble', '~> 3.1.0'
pod 'DVR', :git => "https://github.com/czechboy0/DVR.git", :tag => "v0.0.5-czechboy0"
# pod 'Nimble', '~> 3.1.0'
pod 'Nimble', :git => "https://github.com/Quick/Nimble.git", :commit => "b9256b0bdecc4ef1f659b7663dcd3aab6f43fb5f"
end

target 'XcodeServerSDK' do
utils
utils
end

target 'XcodeServerSDKTests' do
utils
tests
utils
tests
end
2 changes: 1 addition & 1 deletion XcodeServerSDK.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

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

s.homepage = "https://github.com/czechboy0/XcodeServerSDK"
Expand Down
5 changes: 4 additions & 1 deletion XcodeServerSDK/Server Entities/TriggerConditions.swift
Expand Up @@ -52,7 +52,10 @@ public class TriggerConditions : XcodeServerEntity {
self.onAnalyzerWarnings = try json.boolForKey("onAnalyzerWarnings")
self.onBuildErrors = try json.boolForKey("onBuildErrors")
self.onFailingTests = try json.boolForKey("onFailingTests")
self.onInternalErrors = try? json.boolForKey("onInternalErrors") ?? false

//not present in Xcode 8 anymore, make it optional & default to false
let internalErrors = try? json.boolForKey("onInternalErrors")
self.onInternalErrors = internalErrors ?? false
self.onSuccess = try json.boolForKey("onSuccess")
self.onWarnings = try json.boolForKey("onWarnings")

Expand Down

0 comments on commit 98e16a5

Please sign in to comment.