calabash-cucumber 0.20.4 → 0.20.5

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: f28de120ca199bf85fbeff075567483c62b682d8
4
- data.tar.gz: b908f62ee4c05054cfbb92009e90820f0e6f71cb
3
+ metadata.gz: 39f660e55cad9e236ce3d2840fbe3900d4fc930e
4
+ data.tar.gz: 7854fdc479c347fcbd772771f7109248a4f1b5a9
5
5
  SHA512:
6
- metadata.gz: fabc11fc1246e47f59a6e8e6c790d7746af27a4eb844af49d7162c2d5420ca449fd7c7d37df355c6d8b51916b0b4a280087028b8101a0152d421f0fc92714df3
7
- data.tar.gz: a99481e54fbe0b03f9a113f17e792e64ed56c490d6d3a0d9d43f5b663468fa468ac94791fd382d4b996768085b782ca2ad6f6349b8562731e728d1f325d4e3ba
6
+ metadata.gz: 8fa16eadeb564d1ef1d93072c1c762c405b20cdea55b71be2b569d2af674e07fe5e4589948b475e02deeba3ac4ac0db4ddd253c314ea7dd0fc531a35565d03bd
7
+ data.tar.gz: e5f43656a0793cfd5aaa3d0794d017792b78e472c559398caaf947da9b4750e0fcd87243d6ab82324cf223065e677f62ebf4ff10cba4dd3e6744dd9429d3c0c0
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
3
  require 'fileutils'
5
4
  require 'cfpropertylist'
6
5
  require 'rexml/document'
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
3
  require 'fileutils'
5
4
 
6
5
  def print_usage
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
- # @!visbility private
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
- true. Please remove this method call from your hooks.
495
+ false. Please remove this method call from your hooks.
496
496
  ])
497
497
  false
498
498
  end
@@ -3,7 +3,7 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = "0.20.4"
6
+ VERSION = "0.20.5"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
@@ -1,6 +1,17 @@
1
- require "irb/completion"
2
- require "irb/ext/save-history"
3
- require "benchmark"
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
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
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-01-02 00:00:00.000000000 Z
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.2.4
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.2.4
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.6.8
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