calabash-cucumber 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/calabash-cucumber/operations.rb +17 -5
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios5_ipad.base64 +2 -0
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios5_iphone.base64 +2 -0
- data/lib/calabash-cucumber/version.rb +1 -1
- metadata +25 -9
@@ -83,26 +83,38 @@ module Operations
|
|
83
83
|
case dir
|
84
84
|
when :left then
|
85
85
|
if @current_rotation == :down
|
86
|
+
rotate_cmd = "left_home_down"
|
86
87
|
@current_rotation = :right
|
87
|
-
|
88
|
+
elsif @current_rotation == :right
|
89
|
+
rotate_cmd = "left_home_right"
|
90
|
+
@current_rotation = :up
|
88
91
|
elsif @current_rotation == :left
|
92
|
+
rotate_cmd = "left_home_left"
|
89
93
|
@current_rotation = :down
|
90
|
-
|
94
|
+
elsif @current_rotation == :up
|
95
|
+
rotate_cmd = "left_home_up"
|
96
|
+
@current_rotation = :left
|
91
97
|
end
|
92
98
|
when :right then
|
93
99
|
if @current_rotation == :down
|
100
|
+
rotate_cmd = "right_home_down"
|
94
101
|
@current_rotation = :left
|
95
|
-
|
102
|
+
elsif @current_rotation == :left
|
103
|
+
rotate_cmd = "right_home_left"
|
104
|
+
@current_rotation = :up
|
96
105
|
elsif @current_rotation == :right
|
106
|
+
rotate_cmd = "right_home_right"
|
97
107
|
@current_rotation = :down
|
98
|
-
|
108
|
+
elsif @current_rotation == :up
|
109
|
+
rotate_cmd = "right_home_up"
|
110
|
+
@current_rotation = :right
|
99
111
|
end
|
100
112
|
end
|
101
113
|
|
102
114
|
if rotate_cmd.nil?
|
103
115
|
throw "Does not support rotating #{dir} when home button is pointing #{@current_rotation}"
|
104
116
|
end
|
105
|
-
playback("
|
117
|
+
playback("rotate_#{rotate_cmd}")
|
106
118
|
end
|
107
119
|
|
108
120
|
def background(secs)
|
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.
|
4
|
+
version: 0.9.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
16
|
-
requirement: &
|
16
|
+
requirement: &70242202174900 !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: *
|
24
|
+
version_requirements: *70242202174900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70242202173860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.7.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70242202173860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: json
|
38
|
-
requirement: &
|
38
|
+
requirement: &70242202172700 !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: *
|
46
|
+
version_requirements: *70242202172700
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: net-http-persistent
|
49
|
-
requirement: &
|
49
|
+
requirement: &70242202171120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70242202171120
|
58
58
|
description: calabash-cucumber drives tests for native iOS apps. You must link your
|
59
59
|
app with calabash-ios-server framework to execute tests.
|
60
60
|
email:
|
@@ -94,6 +94,22 @@ files:
|
|
94
94
|
- lib/calabash-cucumber/resources/pinch_in_ios5_iphone.base64
|
95
95
|
- lib/calabash-cucumber/resources/pinch_out_ios5_ipad.base64
|
96
96
|
- lib/calabash-cucumber/resources/pinch_out_ios5_iphone.base64
|
97
|
+
- lib/calabash-cucumber/resources/rotate_left_home_down_ios5_ipad.base64
|
98
|
+
- lib/calabash-cucumber/resources/rotate_left_home_down_ios5_iphone.base64
|
99
|
+
- lib/calabash-cucumber/resources/rotate_left_home_left_ios5_ipad.base64
|
100
|
+
- lib/calabash-cucumber/resources/rotate_left_home_left_ios5_iphone.base64
|
101
|
+
- lib/calabash-cucumber/resources/rotate_left_home_right_ios5_ipad.base64
|
102
|
+
- lib/calabash-cucumber/resources/rotate_left_home_right_ios5_iphone.base64
|
103
|
+
- lib/calabash-cucumber/resources/rotate_left_home_up_ios5_ipad.base64
|
104
|
+
- lib/calabash-cucumber/resources/rotate_left_home_up_ios5_iphone.base64
|
105
|
+
- lib/calabash-cucumber/resources/rotate_right_home_down_ios5_ipad.base64
|
106
|
+
- lib/calabash-cucumber/resources/rotate_right_home_down_ios5_iphone.base64
|
107
|
+
- lib/calabash-cucumber/resources/rotate_right_home_left_ios5_ipad.base64
|
108
|
+
- lib/calabash-cucumber/resources/rotate_right_home_left_ios5_iphone.base64
|
109
|
+
- lib/calabash-cucumber/resources/rotate_right_home_right_ios5_ipad.base64
|
110
|
+
- lib/calabash-cucumber/resources/rotate_right_home_right_ios5_iphone.base64
|
111
|
+
- lib/calabash-cucumber/resources/rotate_right_home_up_ios5_ipad.base64
|
112
|
+
- lib/calabash-cucumber/resources/rotate_right_home_up_ios5_iphone.base64
|
97
113
|
- lib/calabash-cucumber/resources/swipe_left_hard_ios4_ipad.base64
|
98
114
|
- lib/calabash-cucumber/resources/swipe_left_hard_ios4_iphone.base64
|
99
115
|
- lib/calabash-cucumber/resources/swipe_left_ios4_ipad.base64
|