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 +4 -4
- data/dylibs/libCalabashDyn.dylib +0 -0
- data/dylibs/libCalabashDynSim.dylib +0 -0
- data/lib/calabash-cucumber/device.rb +12 -0
- data/lib/calabash-cucumber/environment_helpers.rb +17 -1
- data/lib/calabash-cucumber/ibase.rb +5 -1
- data/lib/calabash-cucumber/launcher.rb +7 -1
- data/lib/calabash-cucumber/version.rb +2 -2
- 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: 57e2e396522fedcbda7fa08d2753267469705dac
|
4
|
+
data.tar.gz: 6542f4614a22cebef8cbb28724c9c8fdb47c9f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 814508903dff3b915cec691ec87a0d96a0e18f04ecdd6b31e4bf63791f8b5d8a6d8340ddafe74aa76a0afb34ae551b5e9a967b79331125995fc7b2f1c5e34dac
|
7
|
+
data.tar.gz: 8398914e8c950d30b6edef5abd2575a3c4ef5552d86669fca20a44acade253935eb3b3d07d60df11b47424ecf01094091e0c57998b04d204c2eb3153d42d2888
|
data/dylibs/libCalabashDyn.dylib
CHANGED
Binary file
|
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
|
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
|
-
|
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
|
-
|
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.
|
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.
|
10
|
+
MIN_SERVER_VERSION = "0.21.1"
|
11
11
|
end
|
12
12
|
end
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|