calabash-cucumber 0.9.151 → 0.9.152

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,79 @@
1
- YnBsaXN0MDCmARAXHSMp1QIECgwOAwULDQ9URGF0YU8QPAEAAAABAAEAAAAAAAAA
2
- AAAAAAAAAAAAAAAAAAAAAAAAAAEBAAMCAwAAAAAAYD3iQACAbUMAgIBDAAAAAKBY
3
- TG9jYXRpb27SBggHCVFYIkNtgABRWSJDgIAAVFRpbWUTAAALfGMxfUZUVHlwZREL
4
- uV5XaW5kb3dMb2NhdGlvbtIGCAcJ1QIECgwOERIVDRZPEDwCAAAAAQABAAAAAAAA
5
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAQADAgMAAAAAAADX40AAAGRDAAB/QwAAAACg
6
- 0gYIExQiQ2QAACJDfwAAEwAAC3xk5kO60gYIExTVAgQKDA4YGRsNHE8QPAIAAAAB
7
- AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMCAwAAAAAAAIXjQAAAW0MA
8
- AH9DAAAAAKDSBggaFCJDWwAAEwAAC3xl3V+o0gYIGhTVAgQKDA4eHyENIk8QPAIA
9
- AAABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMCAwAAAAAA4HrkQACA
10
- T0MAAH9DAAAAAKDSBgggFCJDT4AAEwAAC3xm0JGh0gYIIBTVAgQKDA4kJScNKE8Q
11
- PAIAAAABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMCAwAAAAAAoEfh
12
- QAAAP0MAAH9DAAAAAKDSBggmFCJDPwAAEwAAC3xnxBWj0gYIJhTVAgQKDA4qKywN
13
- LU8QPAYAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMCAAAAAAAA
14
- AAAAAAAAPUMAwIBDAAAAAKDSBggmFBMAAAt8aLZlitIGCCYUAAgADwAaAB8AXwBo
15
- AG0AbwB0AHYAewCAAIkAjgCRAKAApQCwAPAA9QD6AP8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CpEKmgqjCqgKsQq6CsUKzgsRCxYLHwsoCy0LNgs/C0oLUwuWC5sLpAutC7ILuwvE
78
+ C88L2AwbDCAMKQwyDDcMQAxJDFQMXQygDKUMrgy3DLwMxQAAAAAAAAIBAAAAAAAA
79
+ AOIAAAAAAAAAAAAAAAAAAAzO
@@ -6,7 +6,8 @@ module Calabash
6
6
  module UIA
7
7
 
8
8
  def send_uia_command(opts ={})
9
- run_loop = opts[:run_loop] || (@calabash_launcher && @calabash_launcher.active? && @calabash_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)
10
11
  command = opts[:command]
11
12
  raise ArgumentError, 'please supply :run_loop or instance var @calabash_launcher' unless run_loop
12
13
  raise ArgumentError, 'please supply :command' unless command
@@ -31,10 +32,34 @@ module Calabash
31
32
  uia_handle_command(:tapMark, mark)
32
33
  end
33
34
 
35
+ def uia_tap_offset(offset)
36
+ uia_handle_command(:tapOffset, offset)
37
+ end
38
+
34
39
  def uia_pan(from_q, to_q)
35
40
  uia_handle_command(:pan, from_q, to_q)
36
41
  end
37
42
 
43
+ def uia_pan_offset(from, to, options)
44
+ uia_handle_command(:panOffset, from, to, options)
45
+ end
46
+
47
+ def uia_swipe(*queryparts)
48
+ uia_handle_command(:swipe, queryparts)
49
+ end
50
+
51
+ def uia_swipe_offset(offset, options)
52
+ uia_handle_command(:swipeOffset, offset, options)
53
+ end
54
+
55
+ def uia_pinch(*queryparts)
56
+ uia_handle_command(:pinch, queryparts)
57
+ end
58
+
59
+ def uia_pinch_offset(in_or_out, offset, duration)
60
+ uia_handle_command(:pinchOffset, in_or_out, offset, duration)
61
+ end
62
+
38
63
  def uia_scroll_to(*queryparts)
39
64
  uia_handle_command(:scrollTo, queryparts)
40
65
  end
@@ -69,6 +94,10 @@ module Calabash
69
94
  uia_handle_command(:setLocation, loc_data)
70
95
  end
71
96
 
97
+ def uia_send_app_to_background(secs)
98
+ uia_handle_command(:deactivate, secs)
99
+ end
100
+
72
101
  def uia_handle_command(cmd, *query_args)
73
102
  args = query_args.map do |part|
74
103
  if part.is_a?(String)
@@ -96,7 +125,7 @@ module Calabash
96
125
 
97
126
  def escape_uia_string(string)
98
127
  #TODO escape '\n in query
99
- string
128
+ escape_quotes string
100
129
  end
101
130
 
102
131
  end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.151'
3
+ VERSION = '0.9.152'
4
4
  FRAMEWORK_VERSION = '0.9.151'
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.151
4
+ version: 0.9.152
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-07-09 00:00:00.000000000 Z
11
+ date: 2013-09-07 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.15
159
+ version: 0.0.19
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.15
166
+ version: 0.0.19
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: awesome_print
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -217,6 +217,7 @@ files:
217
217
  - lib/calabash-cucumber/cucumber.rb
218
218
  - lib/calabash-cucumber/device.rb
219
219
  - lib/calabash-cucumber/ibase.rb
220
+ - lib/calabash-cucumber/ios7_operations.rb
220
221
  - lib/calabash-cucumber/keyboard_helpers.rb
221
222
  - lib/calabash-cucumber/launch/simulator_helper.rb
222
223
  - lib/calabash-cucumber/launcher.rb
@@ -226,6 +227,10 @@ files:
226
227
  - lib/calabash-cucumber/resources/cell_swipe_ios4_iphone.base64
227
228
  - lib/calabash-cucumber/resources/cell_swipe_ios5_ipad.base64
228
229
  - lib/calabash-cucumber/resources/cell_swipe_ios5_iphone.base64
230
+ - lib/calabash-cucumber/resources/pan_ios5_ipad.base64
231
+ - lib/calabash-cucumber/resources/pan_ios5_iphone.base64
232
+ - lib/calabash-cucumber/resources/pan_ios6_ipad.base64
233
+ - lib/calabash-cucumber/resources/pan_ios6_iphone.base64
229
234
  - lib/calabash-cucumber/resources/pinch_in_ios4_ipad.base64
230
235
  - lib/calabash-cucumber/resources/pinch_in_ios4_iphone.base64
231
236
  - lib/calabash-cucumber/resources/pinch_in_ios5_ipad.base64