calabash-cucumber 0.9.162 → 0.9.163.pre1

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: 5b8134e2f83edca8edd8edddca519b5189a427a2
4
- data.tar.gz: 4a105d3ae28b247712a531a1d78df6205a976395
3
+ metadata.gz: cb9435164c3c6e1fbb27d115c6ff95695103d92e
4
+ data.tar.gz: 6d2ee3912d659216fd6196d8746c5bf35d00aa1c
5
5
  SHA512:
6
- metadata.gz: 1b40fbdca41785f04e10c94326ceb946c14083c90faab97ebd40583a29c6d4bc14e3ed1c820451e08496a9b5571df8dd9db5b2aeea1bc53c168596cc668df069
7
- data.tar.gz: 07002708b43689e9a1a5b7f4ec20a59b88f8c226e3aa39b60070e4f44d0d8ada75cede0244872c219c4510b3ae2b6beb9454c5c929159429e0916994f3cf745a
6
+ metadata.gz: 14e98c7878f6cc256c2931e55f5bc19d58b91c33433a0aeb23771de5e59c28e0ec153b923dbeccd5560207bdd09c69271c422071afddcc9b78267c8c83e6ad8c
7
+ data.tar.gz: 9d271ee5d68b714bb05629b3b9a394c4df5d7b0869458f624d987212e03c8495a2a2cc9fcb8524bf029effbac942239efe93c62da5cf5e4f46dcc43bc45acd63
@@ -26,7 +26,7 @@ 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.22" )
29
+ s.add_dependency( "run_loop", "~> 0.1.0.pre1" )
30
30
  s.add_dependency( "awesome_print")
31
31
  s.add_dependency( "xamarin-test-cloud", "~> 0.9.25")
32
32
 
@@ -5,6 +5,7 @@ require 'run_loop'
5
5
  require 'cfpropertylist'
6
6
 
7
7
  class Calabash::Cucumber::Launcher
8
+
8
9
  attr_accessor :run_loop
9
10
  attr_accessor :device
10
11
  attr_accessor :launch_args
@@ -217,7 +218,7 @@ class Calabash::Cucumber::Launcher
217
218
 
218
219
  def new_run_loop(args)
219
220
  last_err = nil
220
- 3.times do
221
+ 5.times do
221
222
  begin
222
223
  return RunLoop.run(args)
223
224
  rescue RunLoop::TimeoutError => e
@@ -6,12 +6,19 @@ module Calabash
6
6
  module UIA
7
7
 
8
8
  def send_uia_command(opts ={})
9
- launcher = @calabash_launcher || Calabash::Cucumber::Launcher.launcher_if_used
10
- run_loop = opts[:run_loop] || (launcher && launcher.active? && launcher.run_loop)
9
+ #launcher = @calabash_launcher || Calabash::Cucumber::Launcher.launcher_if_used
10
+ #run_loop = opts[:run_loop] || (launcher && launcher.active? && launcher.run_loop)
11
11
  command = opts[:command]
12
- raise ArgumentError, 'please supply :run_loop or instance var @calabash_launcher' unless run_loop
13
- raise ArgumentError, 'please supply :command' unless command
14
- RunLoop.send_command(run_loop, opts[:command])
12
+ #raise ArgumentError, 'please supply :run_loop or instance var @calabash_launcher' unless run_loop
13
+ #raise ArgumentError, 'please supply :command' unless command
14
+ #RunLoop.send_command(run_loop, opts[:command])
15
+ res = http({:method => :post, :path => 'uia'}, {command:command})
16
+ res = JSON.parse(res)
17
+ if res['outcome'] != 'SUCCESS'
18
+ screenshot_and_raise "uia send failed because: #{res['reason']}\n#{res['details']}"
19
+ end
20
+ res['results'].first
21
+
15
22
  end
16
23
 
17
24
  def uia_query(*queryparts)
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.162'
4
- FRAMEWORK_VERSION = '0.9.162'
3
+ VERSION = '0.9.163.pre1'
4
+ FRAMEWORK_VERSION = '0.9.163.pre1'
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.162
4
+ version: 0.9.163.pre1
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-10-27 00:00:00.000000000 Z
11
+ date: 2013-11-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.22
159
+ version: 0.1.0.pre1
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.22
166
+ version: 0.1.0.pre1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: awesome_print
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -354,9 +354,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
354
354
  version: '0'
355
355
  required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  requirements:
357
- - - '>='
357
+ - - '>'
358
358
  - !ruby/object:Gem::Version
359
- version: '0'
359
+ version: 1.3.1
360
360
  requirements: []
361
361
  rubyforge_project:
362
362
  rubygems_version: 2.0.2