calabash-cucumber 0.9.37 → 0.9.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,7 @@ Before do |scenario|
49
49
  end
50
50
 
51
51
  at_exit do
52
- if ENV['NO_LAUNCH'].nil?
52
+ if ENV['NO_LAUNCH'].nil? and ENV['NO_STOP'].nil?
53
53
  Calabash::Cucumber::SimulatorHelper.stop
54
54
  end
55
55
  end
@@ -80,7 +80,39 @@ module Operations
80
80
 
81
81
 
82
82
  def swipe(dir,options={})
83
- playback("swipe_#{dir}",options)
83
+ dir = dir.to_sym
84
+ print "rotation: #{@current_rotation}\n"
85
+ print "initial dir: #{dir} \n"
86
+ @current_rotation = @current_rotation || :down
87
+ if @current_rotation == :left
88
+ case dir
89
+ when :left then dir = :down
90
+ when :right then dir = :up
91
+ when :up then dir = :left
92
+ when :down then dir = :right
93
+ else
94
+ end
95
+ end
96
+ if @current_rotation == :right
97
+ case dir
98
+ when :left then dir = :up
99
+ when :right then dir = :down
100
+ when :up then dir = :right
101
+ when :down then dir = :left
102
+ else
103
+ end
104
+ end
105
+ if @current_rotation == :up
106
+ case dir
107
+ when :left then dir = :right
108
+ when :right then dir = :left
109
+ when :up then dir = :down
110
+ when :down then dir = :up
111
+ else
112
+ end
113
+ end
114
+ print "final dir: #{dir} \n"
115
+ playback("swipe_#{dir}",options)
84
116
  end
85
117
 
86
118
  def cell_swipe(options={})
@@ -0,0 +1,18 @@
1
+ YnBsaXN0MDClARIbJC3VAgMEBQYHCAkOEVRUaW1lVERhdGFeV2luZG93TG9jYXRp
2
+ b25YTG9jYXRpb25UVHlwZRMAAKTtDqh8Vk8QPAEAAAABAAEAAAAAAAAAAAAAAAAA
3
+ AAAAAAAAAAAAAAAAAAABRAICAgAAAIA/AACAPwCAJEQAAEhCAeUXANIKCwwNUVhR
4
+ WSNAhJAAAAAAACNASQAAAAAAANIKCw8QI0CEkAAAAAAAI0BJAAAAAAAAEQu51QID
5
+ BAUGExQVGBETAACk7ReMAFdPEDwCAAAAAQABAAAA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2AL8A
30
+ wgDNANYBFQEaASMBLAExAToBQwFOAVcBlgGbAaQBrQGyAbsBxAHPAdgCFwIcAiUC
31
+ LgIzAjwCRQJQAlkCmAKdAqYCrwK0Ar0CxgLRAtoDGQMeAycDMAM1Az4DRwNSA1sD
32
+ mgOfA6gDsQO2A78DyAPTA9wEGwQgBCkEMgQ3BEAESQRUBF0EnAShBKoEswS4BMEE
33
+ ygTVBN4FHQUiBSsFNAU5BUIAAAAAAAACAQAAAAAAAABjAAAAAAAAAAAAAAAAAAAF
34
+ Sw==
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.37"
3
+ VERSION = "0.9.38"
4
4
  FRAMEWORK_VERSION = "0.9.36"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.37
4
+ version: 0.9.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-26 00:00:00.000000000 Z
12
+ date: 2012-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70150330561280 !ruby/object:Gem::Requirement
16
+ requirement: &70238435809920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70150330561280
24
+ version_requirements: *70238435809920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70150330560620 !ruby/object:Gem::Requirement
27
+ requirement: &70238435808520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70150330560620
35
+ version_requirements: *70238435808520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70150330560000 !ruby/object:Gem::Requirement
38
+ requirement: &70238435807640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70150330560000
46
+ version_requirements: *70238435807640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sim_launcher
49
- requirement: &70150330558960 !ruby/object:Gem::Requirement
49
+ requirement: &70238435806980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70150330558960
57
+ version_requirements: *70238435806980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: slowhandcuke
60
- requirement: &70150330558500 !ruby/object:Gem::Requirement
60
+ requirement: &70238435806360 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70150330558500
68
+ version_requirements: *70238435806360
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-http-persistent
71
- requirement: &70150330558080 !ruby/object:Gem::Requirement
71
+ requirement: &70238435805820 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70150330558080
79
+ version_requirements: *70238435805820
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pbxproject
82
- requirement: &70150330557460 !ruby/object:Gem::Requirement
82
+ requirement: &70238435805400 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70150330557460
90
+ version_requirements: *70238435805400
91
91
  description: calabash-cucumber drives tests for native iOS apps. You must link your
92
92
  app with calabash-ios-server framework to execute tests.
93
93
  email:
@@ -168,6 +168,8 @@ files:
168
168
  - lib/calabash-cucumber/resources/rotate_right_home_up_ios4_iphone.base64
169
169
  - lib/calabash-cucumber/resources/rotate_right_home_up_ios5_ipad.base64
170
170
  - lib/calabash-cucumber/resources/rotate_right_home_up_ios5_iphone.base64
171
+ - lib/calabash-cucumber/resources/swipe_down_ios5_ipad.base64
172
+ - lib/calabash-cucumber/resources/swipe_down_ios5_iphone.base64
171
173
  - lib/calabash-cucumber/resources/swipe_left_hard_ios4_ipad.base64
172
174
  - lib/calabash-cucumber/resources/swipe_left_hard_ios4_iphone.base64
173
175
  - lib/calabash-cucumber/resources/swipe_left_ios4_ipad.base64
@@ -180,6 +182,8 @@ files:
180
182
  - lib/calabash-cucumber/resources/swipe_right_ios4_iphone.base64
181
183
  - lib/calabash-cucumber/resources/swipe_right_ios5_ipad.base64
182
184
  - lib/calabash-cucumber/resources/swipe_right_ios5_iphone.base64
185
+ - lib/calabash-cucumber/resources/swipe_up_ios5_ipad.base64
186
+ - lib/calabash-cucumber/resources/swipe_up_ios5_iphone.base64
183
187
  - lib/calabash-cucumber/resources/touch_done_ios4_ipad.base64
184
188
  - lib/calabash-cucumber/resources/touch_done_ios4_iphone.base64
185
189
  - lib/calabash-cucumber/resources/touch_done_ios5_ipad.base64