xcjobs 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e30b293b9bc2b02ee9c32292d7479bd13cf431b8
4
- data.tar.gz: c3e089fb2aa22b588ea9126c39ef43340621097f
3
+ metadata.gz: 245e4612964b80fa4694e5cfc6094205453604dc
4
+ data.tar.gz: 0efe7ca0a68adf1f8e66a576244bcadce358d78a
5
5
  SHA512:
6
- metadata.gz: 177ab93ff45a3e4efaacd0f80d1f20211b584b2991474d5e64d6bbfca90fa6ab2f20c8dfafbc66f391ffe05419172fad58d1047231799ff41ccd37bd9af02567
7
- data.tar.gz: 711fec97985a1cadbb5fc997de38e4ade283bdcbcfc54344611bf5d877dcdbe05c28af28224371ab1cbd0e3a5d96bf22991dda97ecfd02563b0fb6fcd59c63af
6
+ metadata.gz: 483064a428f388c21b659523bb9afa2f7f007faa2d5f0afb2c91da6d4a4990d8c8979c0a2f35418f9e3a584024a6837553ffc6ff3108fbb00ab220eb4f235629
7
+ data.tar.gz: 546c879966a9b52ea02bc8c4659ced0c19f4f758913c0bbcaa24d13486e1acd437f1f6a2abf1f9d477ac6880417c450cc6d25cc46f7880aeef833bdfadccafbc
@@ -1,3 +1,3 @@
1
1
  module XCJobs
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -36,6 +36,7 @@ module XCJobs
36
36
  @destinations = []
37
37
  @only_testings = []
38
38
  @skip_testings = []
39
+ @build_options = {}
39
40
  @build_settings = {}
40
41
  @unsetenv_others = false
41
42
  end
@@ -81,6 +82,10 @@ module XCJobs
81
82
  @skip_testings << skip_testing
82
83
  end
83
84
 
85
+ def add_build_option(option, value)
86
+ @build_options[option] = value
87
+ end
88
+
84
89
  def add_build_setting(setting, value)
85
90
  @build_settings[setting] = value
86
91
  end
@@ -154,6 +159,9 @@ module XCJobs
154
159
  opts.concat(["-skip-testing:#{skip_testing}"])
155
160
  end
156
161
 
162
+ @build_options.each do |option, value|
163
+ opts.concat([option, value])
164
+ end
157
165
  @build_settings.each do |setting, value|
158
166
  opts << "#{setting}=#{value}"
159
167
  end
@@ -104,7 +104,7 @@ describe XCJobs::Xcodebuild do
104
104
 
105
105
  it 'executes the appropriate commands' do
106
106
  subject.invoke
107
- expect(@commands).to eq ['xcodebuild test -project Example.xcodeproj -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO GCC_SYMBOLS_PRIVATE_EXTERN=NO']
107
+ expect(@commands).to eq ['xcodebuild test -project Example.xcodeproj -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 GCC_SYMBOLS_PRIVATE_EXTERN=NO']
108
108
  end
109
109
  end
110
110
  end
@@ -144,7 +144,7 @@ describe XCJobs::Xcodebuild do
144
144
 
145
145
  it 'executes the appropriate commands' do
146
146
  subject.invoke
147
- expect(@commands).to eq ['xcodebuild test -workspace Example.xcworkspace -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO GCC_SYMBOLS_PRIVATE_EXTERN=NO']
147
+ expect(@commands).to eq ['xcodebuild test -workspace Example.xcworkspace -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 GCC_SYMBOLS_PRIVATE_EXTERN=NO']
148
148
  end
149
149
  end
150
150
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcjobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kishikawa katsumi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler