calabash-cucumber 0.9.126 → 0.9.127.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,5 +24,6 @@ Gem::Specification.new do |s|
24
24
  s.add_dependency( "location-one", "~>0.0.8")
25
25
  s.add_dependency( "httpclient","2.2.7")
26
26
  s.add_dependency( "bundler", "~> 1.1")
27
+ s.add_dependency( "run_loop", "0.0.3" )
27
28
 
28
29
  end
@@ -442,6 +442,29 @@ EOF
442
442
  res['results']
443
443
  end
444
444
 
445
+
446
+ def start_app_in_background(path=nil, sdk = nil, version = 'iphone', args = nil)
447
+
448
+ if path.nil?
449
+ path = ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
450
+ end
451
+ app_bundle_path = Calabash::Cucumber::SimulatorHelper.app_bundle_or_raise(path)
452
+
453
+ @ios_device = RunLoop.run(:app => app_bundle_path)
454
+ end
455
+
456
+ def send_uia_command(opts ={})
457
+ RunLoop.send_command(opts[:device] ||@ios_device, opts[:command])
458
+ end
459
+
460
+ def stop_background_app(stop_spec = nil)
461
+
462
+ @ios_device = RunLoop.stop(stop_spec || @ios_device)
463
+
464
+ end
465
+
466
+
467
+
445
468
  def http(options, data=nil)
446
469
  options[:uri] = url_for(options[:path])
447
470
  options[:method] = options[:method] || :get
@@ -1,5 +1,6 @@
1
1
  require 'sim_launcher'
2
2
  require 'json'
3
+ require 'run_loop'
3
4
  require 'net/http'
4
5
  require 'cfpropertylist'
5
6
 
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.126"
3
+ VERSION = "0.9.127.pre1"
4
4
  FRAMEWORK_VERSION = "0.9.126"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.126
5
- prerelease:
4
+ version: 0.9.127.pre1
5
+ prerelease: 8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Karl Krukow
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-03 00:00:00.000000000 Z
12
+ date: 2012-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -139,6 +139,22 @@ dependencies:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
141
  version: '1.1'
142
+ - !ruby/object:Gem::Dependency
143
+ name: run_loop
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - '='
148
+ - !ruby/object:Gem::Version
149
+ version: 0.0.3
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - '='
156
+ - !ruby/object:Gem::Version
157
+ version: 0.0.3
142
158
  description: calabash-cucumber drives tests for native iOS apps. You must link your
143
159
  app with calabash-ios-server framework to execute tests.
144
160
  email:
@@ -283,9 +299,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
299
  required_rubygems_version: !ruby/object:Gem::Requirement
284
300
  none: false
285
301
  requirements:
286
- - - ! '>='
302
+ - - ! '>'
287
303
  - !ruby/object:Gem::Version
288
- version: '0'
304
+ version: 1.3.1
289
305
  requirements: []
290
306
  rubyforge_project:
291
307
  rubygems_version: 1.8.23