calabash-cucumber 0.20.5 → 0.21.1

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: 39f660e55cad9e236ce3d2840fbe3900d4fc930e
4
- data.tar.gz: 7854fdc479c347fcbd772771f7109248a4f1b5a9
3
+ metadata.gz: 57e2e396522fedcbda7fa08d2753267469705dac
4
+ data.tar.gz: 6542f4614a22cebef8cbb28724c9c8fdb47c9f25
5
5
  SHA512:
6
- metadata.gz: 8fa16eadeb564d1ef1d93072c1c762c405b20cdea55b71be2b569d2af674e07fe5e4589948b475e02deeba3ac4ac0db4ddd253c314ea7dd0fc531a35565d03bd
7
- data.tar.gz: e5f43656a0793cfd5aaa3d0794d017792b78e472c559398caaf947da9b4750e0fcd87243d6ab82324cf223065e677f62ebf4ff10cba4dd3e6744dd9429d3c0c0
6
+ metadata.gz: 814508903dff3b915cec691ec87a0d96a0e18f04ecdd6b31e4bf63791f8b5d8a6d8340ddafe74aa76a0afb34ae551b5e9a967b79331125995fc7b2f1c5e34dac
7
+ data.tar.gz: 8398914e8c950d30b6edef5abd2575a3c4ef5552d86669fca20a44acade253935eb3b3d07d60df11b47424ecf01094091e0c57998b04d204c2eb3153d42d2888
Binary file
@@ -239,6 +239,18 @@ module Calabash
239
239
  ios_version_object.major.to_s
240
240
  end
241
241
 
242
+ # Is this device running iOS 11?
243
+ # @return [Boolean] true if the major version of the OS is 11
244
+ def ios_gte_11?
245
+ ios_version_object.major >= 11
246
+ end
247
+
248
+ # Is this device running iOS 11?
249
+ # @return [Boolean] true if the major version of the OS is 11
250
+ def ios11?
251
+ ios_version_object.major == 11
252
+ end
253
+
242
254
  # Is this device running iOS 10?
243
255
  # @return [Boolean] true if the major version of the OS is 10
244
256
  def ios10?
@@ -195,11 +195,27 @@ module Calabash
195
195
  # Is the device under test running iOS 10?
196
196
  #
197
197
  # @raise [RuntimeError] if the server cannot be reached
198
- # @return [Boolean] true if device under test is running iOS 9
198
+ # @return [Boolean] true if device under test is running iOS 10
199
199
  def ios10?
200
200
  _default_device_or_create.ios10?
201
201
  end
202
202
 
203
+ # Is the device under test running iOS 11?
204
+ #
205
+ # @raise [RuntimeError] if the server cannot be reached
206
+ # @return [Boolean] true if device under test is running iOS 11
207
+ def ios11?
208
+ _default_device_or_create.ios11?
209
+ end
210
+
211
+ # Is the device under test running iOS 11 or greater?
212
+ #
213
+ # @raise [RuntimeError] if the server cannot be reached
214
+ # @return [Boolean] true if device under test is running iOS 11 or greater
215
+ def ios_gte_11?
216
+ _default_device_or_create.ios_gte_11?
217
+ end
218
+
203
219
  # Is the app that is being tested an iPhone app emulated on an iPad?
204
220
  #
205
221
  # @see Calabash::Cucumber::IPad
@@ -73,7 +73,11 @@ class Calabash::IBase
73
73
  # the subclass does not override the `trait` method
74
74
  def trait
75
75
  raise "You should define a trait method or a title method" unless respond_to?(:title)
76
- "navigationItemView marked:'#{self.title}'"
76
+ if ios_gte_11?
77
+ "view:'_UINavigationItemView' label marked:'#{self.title}'"
78
+ else
79
+ "navigationItemView marked:'#{self.title}'"
80
+ end
77
81
  end
78
82
 
79
83
  # Returns true if the current view shows this page's `trait`.
@@ -389,7 +389,13 @@ RunLoop.run returned:
389
389
  check_server_gem_compatibility
390
390
  end
391
391
 
392
- usage_tracker.post_usage_async
392
+ # What was Calabash tracking? Read this post for information
393
+ # No private data (like ip addresses) were collected
394
+ # https://github.com/calabash/calabash-android/issues/655
395
+ #
396
+ # Removing usage tracking to avoid problems with EU General Data
397
+ # Protection Regulation which takes effect in 2018.
398
+ # usage_tracker.post_usage_async
393
399
 
394
400
  # :on_launch to the Cucumber World if:
395
401
  # * the Launcher is part of the World (it is not by default).
@@ -3,10 +3,10 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = "0.20.5"
6
+ VERSION = "0.21.1"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
10
- MIN_SERVER_VERSION = "0.20.4"
10
+ MIN_SERVER_VERSION = "0.21.1"
11
11
  end
12
12
  end
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.5
4
+ version: 0.21.1
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-04-19 00:00:00.000000000 Z
11
+ date: 2017-09-22 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.4.1
135
+ version: 2.6.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.4.1
145
+ version: 2.6.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.5.1
486
+ rubygems_version: 2.6.11
487
487
  signing_key:
488
488
  specification_version: 4
489
489
  summary: Client for calabash-ios-server for automated functional testing on iOS