calabash-cucumber 0.9.157 → 0.9.158

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: bf0f204dd4bfa1ef9a3fb65156d60064f1aa39ff
4
- data.tar.gz: cd89efebec79f86f9cda89ce2f6d3e52d285940e
3
+ metadata.gz: 5bfbd9864b3aa54110b7ca5284da7e023ddbb78b
4
+ data.tar.gz: a7a5084bcf888bd776e7df8bb9d2500db5d19ab3
5
5
  SHA512:
6
- metadata.gz: a4eee6bc0bcf795ce013c48e5f075c4943d9e2c95db2ccc92ada7d7dcdc43a68fe4be0b33576de239f4baf0988099bfcf617d91bc325fbf659a289f3dea05205
7
- data.tar.gz: 7821e5a78b37d87351904536444ad46a31d0c981eb8cc84653e292cba70120d28fac39d261104f898881e38012efb1ac9dcb4a96006a9e12563868b5aa1864b5
6
+ metadata.gz: 77a27cb69fa24f4b51d659c1c8c1f32c0a408a8e13100eed32fff424dde535a7c67da042f610918dc8ee6580daa3167c8ca2454f494912c1f2ad48e30aaab6b1
7
+ data.tar.gz: b3ea523d415ebb7d49bee9408a0662d3b37ccdd94b9c9e1aeef0956f30943abe298df0b3329fd6518a3a69c2985b0718e4c48a8e1e933886d1002dbe3f6bea55
@@ -26,7 +26,8 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency( "location-one", "~>0.0.10")
27
27
  s.add_dependency( "httpclient","~> 2.3.3")
28
28
  s.add_dependency( "bundler", "~> 1.1")
29
- s.add_dependency( "run_loop", "~> 0.0.20" )
29
+ s.add_dependency( "run_loop", "~> 0.0.21" )
30
30
  s.add_dependency( "awesome_print")
31
+ s.add_dependency( "xamarin-test-cloud", "~> 0.9.25")
31
32
 
32
33
  end
@@ -7,6 +7,7 @@ require 'cfpropertylist'
7
7
  class Calabash::Cucumber::Launcher
8
8
  attr_accessor :run_loop
9
9
  attr_accessor :device
10
+ attr_accessor :launch_args
10
11
 
11
12
  @@launcher = nil
12
13
 
@@ -104,7 +105,7 @@ class Calabash::Cucumber::Launcher
104
105
  end
105
106
 
106
107
  def default_launch_method
107
- return :instruments unless sdk_version
108
+ return :instruments unless sdk_version || use_instruments_env?
108
109
  return :instruments if sdk_version.start_with?('7') # Only instruments supported for iOS7+
109
110
  sim_detector = SimLauncher::SdkDetector.new()
110
111
  available = sim_detector.available_sdk_versions.reject { |v| v.start_with?('7') }
@@ -158,7 +159,7 @@ class Calabash::Cucumber::Launcher
158
159
  path = Calabash::Cucumber::SimulatorHelper.app_bundle_or_raise(app_path)
159
160
  Calabash::Cucumber::SimulatorHelper.relaunch(path, sdk, args[:device].to_s, args)
160
161
  end
161
- before = Time.now
162
+ self.launch_args = args
162
163
  ensure_connectivity
163
164
  end
164
165
 
@@ -334,6 +335,10 @@ class Calabash::Cucumber::Launcher
334
335
  ENV['SDK_VERSION']
335
336
  end
336
337
 
338
+ def use_instruments_env?
339
+ ENV['LAUNCH_VIA'] == 'instruments'
340
+ end
341
+
337
342
  def reset_between_scenarios?
338
343
  ENV['RESET_BETWEEN_SCENARIOS']=="1"
339
344
  end
@@ -354,6 +359,14 @@ class Calabash::Cucumber::Launcher
354
359
  not run_loop.nil?
355
360
  end
356
361
 
362
+ def inspect
363
+ msg = ["#{self.class}: Launch Method #{launch_args[:launch_method]}"]
364
+ if run_with_instruments?(self.launch_args) && self.run_loop
365
+ msg << "Log file: #{self.run_loop[:log_file]}"
366
+ end
367
+ msg.join("\n")
368
+ end
369
+
357
370
 
358
371
  end
359
372
 
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.157'
3
+ VERSION = '0.9.158'
4
4
  FRAMEWORK_VERSION = '0.9.155'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.157
4
+ version: 0.9.158
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-15 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - ~>
158
158
  - !ruby/object:Gem::Version
159
- version: 0.0.20
159
+ version: 0.0.21
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ~>
165
165
  - !ruby/object:Gem::Version
166
- version: 0.0.20
166
+ version: 0.0.21
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: awesome_print
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: xamarin-test-cloud
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 0.9.25
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: 0.9.25
181
195
  description: calabash-cucumber drives tests for native iOS apps. You must link your
182
196
  app with calabash-ios-server framework to execute tests.
183
197
  email:
@@ -344,10 +358,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
358
  version: '0'
345
359
  requirements: []
346
360
  rubyforge_project:
347
- rubygems_version: 2.0.2
361
+ rubygems_version: 2.0.3
348
362
  signing_key:
349
363
  specification_version: 4
350
364
  summary: Client for calabash-ios-server for automated functional testing on iOS
351
365
  test_files:
352
366
  - features/step_definitions/calabash_steps.rb
353
- has_rdoc: