calabash-cucumber 0.20.4 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/calabash-ios +0 -1
- data/bin/frank-calabash +0 -1
- data/dylibs/libCalabashDyn.dylib +0 -0
- data/dylibs/libCalabashDynSim.dylib +0 -0
- data/lib/calabash-cucumber/device_agent.rb +68 -0
- data/lib/calabash-cucumber/keyboard_helpers.rb +2 -2
- data/lib/calabash-cucumber/launcher.rb +1 -1
- data/lib/calabash-cucumber/version.rb +1 -1
- data/scripts/.irbrc +16 -3
- data/staticlib/calabash.framework.zip +0 -0
- data/staticlib/libFrankCalabash.a +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f660e55cad9e236ce3d2840fbe3900d4fc930e
|
4
|
+
data.tar.gz: 7854fdc479c347fcbd772771f7109248a4f1b5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa16eadeb564d1ef1d93072c1c762c405b20cdea55b71be2b569d2af674e07fe5e4589948b475e02deeba3ac4ac0db4ddd253c314ea7dd0fc531a35565d03bd
|
7
|
+
data.tar.gz: e5f43656a0793cfd5aaa3d0794d017792b78e472c559398caaf947da9b4750e0fcd87243d6ab82324cf223065e677f62ebf4ff10cba4dd3e6744dd9429d3c0c0
|
data/bin/calabash-ios
CHANGED
data/bin/frank-calabash
CHANGED
data/dylibs/libCalabashDyn.dylib
CHANGED
Binary file
|
Binary file
|
@@ -338,6 +338,74 @@ module Calabash
|
|
338
338
|
client.springboard_alert
|
339
339
|
end
|
340
340
|
|
341
|
+
# EXPERIMENTAL: This API may change.
|
342
|
+
#
|
343
|
+
# Disables Calabash's ability to dismiss SpringBoard alerts automatically.
|
344
|
+
def dismiss_springboard_alerts_automatically!
|
345
|
+
client.set_dismiss_springboard_alerts_automatically(true)
|
346
|
+
end
|
347
|
+
|
348
|
+
# EXPERIMENTAL: This API may change.
|
349
|
+
#
|
350
|
+
# Enables Calabash's ability to dismiss SpringBoard alerts automatically.
|
351
|
+
def dismiss_springboard_alerts_manually!
|
352
|
+
client.set_dismiss_springboard_alerts_automatically(false)
|
353
|
+
end
|
354
|
+
|
355
|
+
# EXPERIMENTAL: This API may change.
|
356
|
+
#
|
357
|
+
# Enables or disables Calabash's ability to dismiss SpringBoard alerts
|
358
|
+
# automatically.
|
359
|
+
#
|
360
|
+
# @param true_or_false
|
361
|
+
def set_dismiss_springboard_alerts_automatically(true_or_false)
|
362
|
+
client.set_dismiss_springboard_alerts_automatically(true_or_false)
|
363
|
+
end
|
364
|
+
|
365
|
+
# EXPERIMENTAL: This API may change.
|
366
|
+
#
|
367
|
+
# Wait for a SpringBoard alert to appear.
|
368
|
+
def wait_for_springboard_alert(timeout=nil)
|
369
|
+
if timeout
|
370
|
+
client.wait_for_springboard_alert(timeout)
|
371
|
+
else
|
372
|
+
client.wait_for_springboard_alert
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
# EXPERIMENTAL: This API may change.
|
377
|
+
#
|
378
|
+
# Wait for a SpringBoard alert to disappear.
|
379
|
+
def wait_for_no_springboard_alert(timeout=nil)
|
380
|
+
if timeout
|
381
|
+
client.wait_for_no_springboard_alert(timeout)
|
382
|
+
else
|
383
|
+
client.wait_for_no_springboard_alert
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# EXPERIMENTAL: This API may change.
|
388
|
+
#
|
389
|
+
# @param [String] button_title The title of the button to touch.
|
390
|
+
#
|
391
|
+
# Please pay attention to non-ASCII characters in button titles.
|
392
|
+
#
|
393
|
+
# "Don’t Allow" => UTF-8 single quote in Don't
|
394
|
+
# "Don't Allow" => ASCII single quote in Don't
|
395
|
+
#
|
396
|
+
# Only UTF-8 string will match the button title.
|
397
|
+
#
|
398
|
+
# @return true if a SpringBoard alert is dismissed.
|
399
|
+
#
|
400
|
+
# @raise RuntimeError If there is no SpringBoard alert visible
|
401
|
+
# @raise RuntimeError If the SpringBoard alert does not have a button
|
402
|
+
# matching button_title.
|
403
|
+
# @raise RuntimeError If there is an error dismissing the SpringBoard
|
404
|
+
# alert.
|
405
|
+
def dismiss_springboard_alert(button_title)
|
406
|
+
client.dismiss_springboard_alert(button_title)
|
407
|
+
end
|
408
|
+
|
341
409
|
=begin
|
342
410
|
PRIVATE
|
343
411
|
=end
|
@@ -212,7 +212,7 @@ module Calabash
|
|
212
212
|
query_result = _query_wrapper(query, :keyboardType).first
|
213
213
|
keyboard_type = KEYBOARD_TYPES[query_result]
|
214
214
|
|
215
|
-
if !keyboard_type
|
215
|
+
if !keyboard_type
|
216
216
|
RunLoop.log_debug("Found query_result:#{query_result}, but expected
|
217
217
|
to match key in #{KEYBOARD_TYPES}")
|
218
218
|
keyboard_type = :unknown
|
@@ -227,7 +227,7 @@ module Calabash
|
|
227
227
|
|
228
228
|
private
|
229
229
|
|
230
|
-
# @!
|
230
|
+
# @!visibility private
|
231
231
|
KEYBOARD_TYPES = {
|
232
232
|
0 => :default,
|
233
233
|
1 => :ascii_capable,
|
@@ -492,7 +492,7 @@ RunLoop.run returned:
|
|
492
492
|
RunLoop.log_warn(%Q[
|
493
493
|
Calabash::Cucumber::Launcher #calabash_no_launch? and support for the NO_LAUNCH
|
494
494
|
environment variable has been removed from Calabash. This always returns
|
495
|
-
|
495
|
+
false. Please remove this method call from your hooks.
|
496
496
|
])
|
497
497
|
false
|
498
498
|
end
|
data/scripts/.irbrc
CHANGED
@@ -1,6 +1,17 @@
|
|
1
|
-
|
2
|
-
require "irb/
|
3
|
-
require "
|
1
|
+
begin
|
2
|
+
require "irb/completion"
|
3
|
+
require "irb/ext/save-history"
|
4
|
+
rescue LoadError => e
|
5
|
+
puts %Q[
|
6
|
+
Caught a LoadError while requiring an irb module.
|
7
|
+
|
8
|
+
#{e}
|
9
|
+
|
10
|
+
An error like this usually means your ruby installation is corrupt.
|
11
|
+
|
12
|
+
]
|
13
|
+
exit(1)
|
14
|
+
end
|
4
15
|
|
5
16
|
begin
|
6
17
|
require "awesome_print"
|
@@ -25,6 +36,8 @@ $ gem install calabash-cucumber
|
|
25
36
|
exit(1)
|
26
37
|
end
|
27
38
|
|
39
|
+
require "benchmark"
|
40
|
+
|
28
41
|
AwesomePrint.irb!
|
29
42
|
|
30
43
|
ARGV.concat ["--readline", "--prompt-mode", "simple"]
|
Binary file
|
Binary file
|
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.20.
|
4
|
+
version: 0.20.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 2.
|
135
|
+
version: 2.4.1
|
136
136
|
- - "<"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '3.0'
|
@@ -142,7 +142,7 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
145
|
+
version: 2.4.1
|
146
146
|
- - "<"
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '3.0'
|
@@ -483,7 +483,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
483
483
|
version: '0'
|
484
484
|
requirements: []
|
485
485
|
rubyforge_project:
|
486
|
-
rubygems_version: 2.
|
486
|
+
rubygems_version: 2.5.1
|
487
487
|
signing_key:
|
488
488
|
specification_version: 4
|
489
489
|
summary: Client for calabash-ios-server for automated functional testing on iOS
|