calabash-cucumber 0.22.2 → 0.23.0

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
  SHA256:
3
- metadata.gz: 326fe7b27808cd9ed0657c2d74e62ae6bae1c7162b60054e0fbff7d93d85d82a
4
- data.tar.gz: 67fbb90ab864fbe889ef6f85a73255b1947bdadfbc27f91f25b4be7f9cd4a6c9
3
+ metadata.gz: c1373d5811906591f438b92d2aa043efa7cf6d9b4b8141eaa70ee7b0956a1460
4
+ data.tar.gz: e47378ff933860c9121435b8d47da595c1cc216f5c8ebab6721e3ddbf6427fb5
5
5
  SHA512:
6
- metadata.gz: e0338e63050ddf15044c37b6c6fd8578874bf1999f846efabb8e096a3969ee06990915ab9a402766eff9408cd53fc0b829ea4b5e03d3fe1679d448849a3f5775
7
- data.tar.gz: 6f1e61719df5febee9979947b556f2eaf4f6a6888e2bbd4f78b0e494e3a04fbf7462ba04a1df0f8e0d119c5444f8c4c35b232ecb474b44741cf9767898bfc4bc
6
+ metadata.gz: acaf85aef158a8e0abb5e1a8ef3380e2689f758d43dd87b0597553204d8f33cd7812127696817e3428b70e1ab7397b6e3e1cf57689f42191b57a661ea4713bcc
7
+ data.tar.gz: 299d6502736f173d09e2397a6aa1a518bfeab5cc7b19c1cbea371b7234e12684dceaa0a6ba428a3ed8144bf374c596a154acc86f115821e1e1ee0d1acde9f489
Binary file
Binary file
@@ -52,7 +52,11 @@ module Calabash
52
52
  path = screenshot(options)
53
53
  filename = options[:label] || File.basename(path)
54
54
  if self.respond_to?(:embed)
55
- embed(path, 'image/png', filename)
55
+ begin
56
+ embed(path, 'image/png', filename)
57
+ rescue NoMethodError
58
+ attach(path, 'image/png')
59
+ end
56
60
  else
57
61
  RunLoop.log_info2("Embed is not available in this context. Will not embed.")
58
62
  end
@@ -3,10 +3,10 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = "0.22.2"
6
+ VERSION = "0.23.0"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
10
- MIN_SERVER_VERSION = "0.22.2"
10
+ MIN_SERVER_VERSION = "0.21.7"
11
11
  end
12
12
  end
@@ -433,7 +433,12 @@ module Calabash
433
433
  FileUtils.rm_f(path)
434
434
  return res
435
435
  else
436
- embed(path, 'image/png', msg)
436
+ begin
437
+ embed(path, 'image/png', msg)
438
+ rescue NoMethodError
439
+ attach(path, 'image/png')
440
+ end
441
+
437
442
  raise wait_error(msg)
438
443
  end
439
444
  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.22.2
4
+ version: 0.23.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: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -180,14 +180,14 @@ dependencies:
180
180
  requirements:
181
181
  - - '='
182
182
  - !ruby/object:Gem::Version
183
- version: 3.2.0
183
+ version: 3.5.1
184
184
  type: :development
185
185
  prerelease: false
186
186
  version_requirements: !ruby/object:Gem::Requirement
187
187
  requirements:
188
188
  - - '='
189
189
  - !ruby/object:Gem::Version
190
- version: 3.2.0
190
+ version: 3.5.1
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: rspec_junit_formatter
193
193
  requirement: !ruby/object:Gem::Requirement
@@ -222,14 +222,14 @@ dependencies:
222
222
  requirements:
223
223
  - - '='
224
224
  - !ruby/object:Gem::Version
225
- version: 10.5.0
225
+ version: 13.0.3
226
226
  type: :development
227
227
  prerelease: false
228
228
  version_requirements: !ruby/object:Gem::Requirement
229
229
  requirements:
230
230
  - - '='
231
231
  - !ruby/object:Gem::Version
232
- version: 10.5.0
232
+ version: 13.0.3
233
233
  - !ruby/object:Gem::Dependency
234
234
  name: rspec
235
235
  requirement: !ruby/object:Gem::Requirement
@@ -463,7 +463,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
463
463
  - !ruby/object:Gem::Version
464
464
  version: '0'
465
465
  requirements: []
466
- rubygems_version: 3.1.2
466
+ rubygems_version: 3.1.4
467
467
  signing_key:
468
468
  specification_version: 4
469
469
  summary: Client for calabash-ios-server for automated functional testing on iOS