calabash-cucumber 0.19.0.pre3 → 0.19.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 227255a957e46df2f354db1352c0e7bcdbb26062
4
- data.tar.gz: 7f56b0929540d9019a1a34640917cdad68d979b4
3
+ metadata.gz: f8d1ae811a8e9ce1b128587fde8169a360a814f4
4
+ data.tar.gz: 5362957ea9cbf06f092a4d6274c438e9e6d2f920
5
5
  SHA512:
6
- metadata.gz: f35bcecf41a3166830e70dd7cb5132ecd6d6b2246a807d7bae9519000ebd8a74d4608ea161937e6e91e97902baee3be249829d24a37d15b1955da11610449417
7
- data.tar.gz: d498b59943d3a096c9eae4660cd25cb0386c9ea96e3e6b7311347275dd68ad1a753ff41a854d60b078d6ac5ddab43e439ceabf316c300f4f2bdcf074b5d1a0ea
6
+ metadata.gz: a96c9b3f4680184761ca7c35e2b80e557bb539dbd30f408031e93ba1d1fa5e0897658296a3f49c0da2e4dc649c3a5fd57b5adf5afed622b8a445ccc6eaabc75b
7
+ data.tar.gz: 08fd8ceedc0c2961abd1d8ccf24809eba00fbe1c0be7f1bae925b08052e64e31e80480554b9c7ff560f88ec4e8d0fe0ff9ed9feef2271590522ad46c8415aa87
Binary file
@@ -235,6 +235,44 @@ Queries will work, but gestures will not.
235
235
  @@launcher
236
236
  end
237
237
 
238
+ # Is the current device under test a physical device?
239
+ #
240
+ # Can be used before or after the application has been launched.
241
+ #
242
+ # Maintainers, please do not call this method.
243
+ #
244
+ # @param [Hash] options This argument is deprecated since 0.19.0.
245
+ #
246
+ # @return [Boolean] True if the device under test a physical device.
247
+ def device_target?(options={})
248
+ if Calabash::Cucumber::Environment.xtc?
249
+ true
250
+ elsif @device
251
+ @device.device?
252
+ else
253
+ detect_device(options).physical_device?
254
+ end
255
+ end
256
+
257
+ # Is the current device under test a simulator?
258
+ #
259
+ # Can be used before or after the application has been launched.
260
+ #
261
+ # Maintainers, please do not call this method.
262
+ #
263
+ # @param [Hash] options This argument is deprecated since 0.19.0.
264
+ #
265
+ # @return [Boolean] True if the device under test a simulator.
266
+ def simulator_target?(options={})
267
+ if Calabash::Cucumber::Environment.xtc?
268
+ false
269
+ elsif @device
270
+ @device.simulator?
271
+ else
272
+ detect_device(options).simulator?
273
+ end
274
+ end
275
+
238
276
  # Erases a simulator. This is the same as touching the Simulator
239
277
  # "Reset Content & Settings" menu item.
240
278
  #
@@ -426,20 +464,6 @@ true. Please remove this method call from your hooks.
426
464
  nil
427
465
  end
428
466
 
429
- # @!visibility private
430
- # @deprecated 0.19.0 - no replacement
431
- def device_target?(options={})
432
- RunLoop.deprecated("0.19.0", "No replacement")
433
- detect_device(options).physical_device?
434
- end
435
-
436
- # @!visibility private
437
- # @deprecated 0.19.0 - no replacement
438
- def simulator_target?(options={})
439
- RunLoop.deprecated("0.19.0", "No replacement")
440
- detect_device(options).simulator?
441
- end
442
-
443
467
  # @!visibility private
444
468
  # @deprecated 0.19.0 - no replacement
445
469
  def app_path
@@ -3,7 +3,7 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = "0.19.0.pre3"
6
+ VERSION = "0.19.0"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
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.19.0.pre3
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -444,9 +444,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
444
444
  version: '2.0'
445
445
  required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  requirements:
447
- - - ">"
447
+ - - ">="
448
448
  - !ruby/object:Gem::Version
449
- version: 1.3.1
449
+ version: '0'
450
450
  requirements: []
451
451
  rubyforge_project:
452
452
  rubygems_version: 2.5.2