calabash-cucumber 0.9.163 → 0.9.164
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d63cff70ca26297c8cb735435593c637a2b4c57
|
4
|
+
data.tar.gz: 597b5ac124ff4d2e04586a254002c9478777d41a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f00c78a07ff96f43c41fd7f5f1f257a2c1cb647cad90375ae24ea9b19bdd031dd325357ad8cc2f5c8ba2cc25b0faa2d16b45610485cb577048de7b88789576
|
7
|
+
data.tar.gz: 705c512fa654fd2bbbdef3788a3de8a8060a99505d35e88665519b5b7b916fcc63c64b72d80a9724c92e670f09d9265cd37c4ef0a1f00759a83f788d4d37fee8
|
@@ -138,7 +138,6 @@ module Calabash
|
|
138
138
|
end
|
139
139
|
|
140
140
|
|
141
|
-
|
142
141
|
# prints a deprecated message that includes the line number
|
143
142
|
# +version+ string indicating when the feature was deprecated
|
144
143
|
# +msg+ deprecation message (possibly suggesting alternatives)
|
@@ -154,13 +153,20 @@ module Calabash
|
|
154
153
|
|
155
154
|
unless no_deprecation_warnings?
|
156
155
|
|
157
|
-
|
156
|
+
|
157
|
+
if RUBY_VERSION < '2.0'
|
158
|
+
stack = Kernel.caller()[1..6].join("\n")
|
159
|
+
else
|
160
|
+
stack = Kernel.caller(0, 6)[1..-1].join("\n")
|
161
|
+
end
|
162
|
+
|
158
163
|
msg = "deprecated '#{version}' - '#{msg}'\n#{stack}"
|
159
164
|
|
160
165
|
if type.eql?(:pending)
|
161
166
|
pending(msg)
|
162
167
|
else
|
163
168
|
# todo deprecated function does not output on a new line when called within cucumber
|
169
|
+
# todo should the _deprecated function be colored?
|
164
170
|
begin
|
165
171
|
warn "\033[34m\nWARN: #{msg}\033[0m"
|
166
172
|
rescue
|
@@ -6,7 +6,7 @@ module Calabash
|
|
6
6
|
module UIA
|
7
7
|
|
8
8
|
def uia(command,options={})
|
9
|
-
res = http({:method => :post, :path => 'uia'}, {
|
9
|
+
res = http({:method => :post, :path => 'uia'}, {:command => command}.merge(options))
|
10
10
|
res = JSON.parse(res)
|
11
11
|
if res['outcome'] != 'SUCCESS'
|
12
12
|
raise "uia action failed because: #{res['reason']}\n#{res['details']}"
|
@@ -51,7 +51,7 @@ module Calabash
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def uia_double_tap_mark(mark)
|
54
|
-
uia_double_tap(:view, marked
|
54
|
+
uia_double_tap(:view, {:marked => mark})
|
55
55
|
end
|
56
56
|
|
57
57
|
def uia_double_tap_offset(offset)
|
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.
|
4
|
+
version: 0.9.164
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|