briar 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dc083bb49a386f6ec6f6f0c6f428e3d134dd20c
4
- data.tar.gz: 7682fcffd04acdf2442455b7528e822e35f0a7cd
3
+ metadata.gz: f3ec91b5d8dd7e8a57428d254e1896dc367b881d
4
+ data.tar.gz: 27f583cd5ac44fc13d06c715b1c6fe3a321d0afa
5
5
  SHA512:
6
- metadata.gz: 4474787eca57364bf70b2c4d63145a7decd75eec6f54d2957312ac568626f036a09430233b59006eede68860de69e289b1f4624f91aa51bf9a2e86e1c00a6ad7
7
- data.tar.gz: 912ef0e5830bc3d5014b8b26f0630f1277577fc7a5056ee1f55f9d2dbcdba32b9c028c0aab9c9965d252e69bdacd1c2f087eb2f8b6d72f51d19a32a964417a30
6
+ metadata.gz: e462f868530f37b4dd156a56111010ec559175ac131ea95865869ac37192e753043756ca10cb242ca788b38b27d018592ae141fb4a6d38431b1f883e3b276413
7
+ data.tar.gz: 4be5d62ed47dedae5fa1a5146c665fd889c9ac20179c005a6bb17c1cb2b08fac65fe05de3669f0fb02057b6964d098e29f5421d157652e6a006ace92dc6cc90e
@@ -1,3 +1,7 @@
1
+ ### 2.0.3
2
+
3
+ * XTC submit supports test parameters #71
4
+
1
5
  ### 2.0.2
2
6
 
3
7
  * Remove references to Calabash::Cucumber modules that have been removed
@@ -21,6 +21,7 @@ def briar_xtc_submit(device_set, profile, opts={})
21
21
  :user => ENV['XTC_USER'],
22
22
  :dsym => ENV['XTC_DSYM'],
23
23
  :priority => ENV['XTC_HIGH_PRIORITY'] == '1',
24
+ :test_params => ENV["XTC_TEST_PARAMS"],
24
25
  :rebuild => true,
25
26
  # Unused.
26
27
  :briar_dev => ENV['XTC_BRIAR_GEM_DEV'] == '1'
@@ -180,6 +181,12 @@ def briar_xtc_submit(device_set, profile, opts={})
180
181
  args << File.expand_path(opts[:dsym])
181
182
  end
182
183
 
184
+ test_params = opts[:test_params]
185
+ if test_params
186
+ args << "--test-parameters"
187
+ args << test_params
188
+ end
189
+
183
190
  print_args = args.dup
184
191
 
185
192
  obscured_key = "#{api_key[0,1]}***#{api_key[api_key.length-1,1]}"
@@ -195,11 +202,15 @@ def briar_xtc_submit(device_set, profile, opts={})
195
202
  puts Rainbow("EXEC: test-cloud #{print_args.join(' ')}").cyan
196
203
 
197
204
  Dir.chdir(staging_dir) do
205
+ File.open("xtc.sh", "w:UTF-8") do |file|
206
+ file.puts("#!/usr/bin/env bash")
207
+ file.puts("bundle exec test-cloud #{args.join(' ')}")
208
+ end
209
+ `chmod +x xtc.sh`
198
210
  exec('test-cloud', *args)
199
211
  end
200
212
  end
201
213
 
202
-
203
214
  def briar_xtc(args)
204
215
  arg_len = args.length
205
216
  if arg_len == 0
@@ -1,3 +1,3 @@
1
1
  module Briar
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: briar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbx-require-relative
@@ -384,6 +384,6 @@ rubyforge_project:
384
384
  rubygems_version: 2.4.8
385
385
  signing_key:
386
386
  specification_version: 4
387
- summary: briar-2.0.2
387
+ summary: briar-2.0.3
388
388
  test_files: []
389
389
  has_rdoc: