calabash-android 0.4.9.pre4 → 0.4.9

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: 702c76c045cbcad44d7eb7ea4d54ef0f53d655fb
4
- data.tar.gz: 99eefccf4f0b8cbb1ffc44235765c9864ee4d5ff
3
+ metadata.gz: 1ab10641f1654a9184460287b3acd39c18a7e554
4
+ data.tar.gz: c53ea565299a3b2cb84c0c0b4d2a5202e05a06b6
5
5
  SHA512:
6
- metadata.gz: 44cf3bdff8af50d4e7d7cf571188710d9738ceb0a3eb9d43955bf620b7b9f890a94fa246bfd7e52fdff310222a10ebafd77113e0ee7ebe171a3c0cb78814aa26
7
- data.tar.gz: faf828a1d13f7cdf9588c1ede14e5405c2f32e327e269c9140bb08734d476629be569de2dad5c2223b87a6404d7260874e53efeb7152a07776b9bb5ea7217552
6
+ metadata.gz: 0d8aeabcb184cea1d57ad76088c9f35b9dfa195343433ba434cf229dcbd956d19aa59b52ddb54805858ee8ab341260d5d7f15b7a8d466daaf842ca27c4a05e85
7
+ data.tar.gz: 6990b2abc8e1fe6239d9427cf3d073431900a0c2f8db5c6a15b8ea9fd800d6db87a310e4fd6a49a25a6ee203e9bb49f5497ff8432cc91b9a15701e60455e0c92
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency( "json" )
20
20
  s.add_dependency( "retriable" )
21
21
  s.add_dependency( "slowhandcuke" )
22
- s.add_dependency( "rubyzip" )
22
+ s.add_dependency( "rubyzip", "~> 0.9.9" )
23
23
  s.add_dependency( "awesome_print" )
24
24
  s.add_dependency( 'httpclient', '~> 2.3.2')
25
-
25
+ s.add_dependency( 'xamarin-test-cloud', '>= 0.9.23')
26
26
  end
@@ -1,4 +1,4 @@
1
- WAIT_TIMEOUT = ENV['WAIT_TIMEOUT'] || 30
1
+ WAIT_TIMEOUT = (ENV['WAIT_TIMEOUT'] || 30).to_f
2
2
  STEP_PAUSE = (ENV['STEP_PAUSE'] || 0.5).to_f
3
3
 
4
4
  require 'calabash-android/steps/additions_manual_steps'
@@ -699,8 +699,12 @@ module Operations
699
699
  ni
700
700
  end
701
701
 
702
- def screenshot_and_raise(msg)
703
- screenshot_embed
702
+ def screenshot_and_raise(msg, options = nil)
703
+ if options
704
+ screenshot_embed options
705
+ else
706
+ screenshot_embed
707
+ end
704
708
  raise(msg)
705
709
  end
706
710
 
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.4.9.pre4"
3
+ VERSION = "0.4.9"
4
4
  end
5
5
  end
@@ -45,20 +45,6 @@ public class Command {
45
45
  public Result execute() {
46
46
  final Action action = InstrumentationBackend.actions.lookup(getCommand());
47
47
  return action.execute(getArguments());
48
- /*
49
- if ( Looper.getMainLooper().getThread() == Thread.currentThread()) {
50
- return action.execute(getArguments());
51
- }
52
-
53
- final AtomicReference<Result> result = new AtomicReference<Result>();
54
- InstrumentationBackend.instrumentation.runOnMainSync(new Runnable() {
55
- @Override
56
- public void run() {
57
- result.set(action.execute(getArguments()));
58
- }
59
- });
60
- return result.get();
61
- */
62
48
  }
63
49
 
64
50
  }
@@ -13,10 +13,12 @@ public class EnterQueryByIndex implements Action {
13
13
  public Result execute(String... args) {
14
14
 
15
15
  final String query = args[0];
16
- final SearchView view = (SearchView) InstrumentationBackend.solo.getView(
17
- SearchView.class, Integer.parseInt(args[1]) - 1);
18
- view.setQuery(query, true);
19
-
16
+ final SearchView view = (SearchView) InstrumentationBackend.solo.getView(SearchView.class, Integer.parseInt(args[1]) - 1);
17
+ InstrumentationBackend.solo.getCurrentActivity().runOnUiThread(new Runnable() {
18
+ public void run() {
19
+ view.setQuery(query, true);
20
+ }
21
+ });
20
22
  return Result.successResult();
21
23
  }
22
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9.pre4
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2013-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rubyzip
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.9.9
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.9.9
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: awesome_print
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.3.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: xamarin-test-cloud
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 0.9.23
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: 0.9.23
111
125
  description: 'calabash-android drives tests for native and hybrid Android apps. '
112
126
  email:
113
127
  - jonas@lesspainful.com
@@ -860,9 +874,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
860
874
  version: '0'
861
875
  required_rubygems_version: !ruby/object:Gem::Requirement
862
876
  requirements:
863
- - - '>'
877
+ - - '>='
864
878
  - !ruby/object:Gem::Version
865
- version: 1.3.1
879
+ version: '0'
866
880
  requirements: []
867
881
  rubyforge_project:
868
882
  rubygems_version: 2.0.2