calabash-cucumber 0.21.10 → 0.23.2

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: 9396a178c34e79761709e346ba2388c292e5ea07b64b520d2eb1654b5eeb5809
4
- data.tar.gz: bbf194612d9e92c04e77ca03c25c9ae95cf50c40bbfdc054c41e33f07627cbdf
3
+ metadata.gz: '008d6cd41888eb4bd5e2ba7245e0367fe4bafa46479390b222b6a7552990643e'
4
+ data.tar.gz: 34ae9d8415623e199944dd87d1ee862de6e0518101daeab5094af9f3eca308a5
5
5
  SHA512:
6
- metadata.gz: d9276f6a05d633837ae2d78b9b6927665ace4ebcd79133716e6ebbca1e89233b24c1af20458db2f143c20cc8d56f5d4cc5382ba99478bbc89f23000eb8f3ecce
7
- data.tar.gz: dc93713aac2a3495468dcaf5d406afa93255f97d9aac3a85c75c761276ee9729bcee57afb4a15dc75eb5321877a1e3e9d0e60cfc5f71746e4ace4f1dff19c8db
6
+ metadata.gz: 4e91ef22d54ad4eb7bb56f194168d8e12f08146aa3a9beb5eab38ab3a5a1768ecef9343d431d0cdf234144b68614d44fcbc3c011bf3689bf76a870ec90a4faf7
7
+ data.tar.gz: 687b6ee72e7256d2c4e972ccf05aa157297eaa847efbd6b919ce7035ee481d79b1643dd0a4b17d9a800ca6fad144703deec270352b9f40438fcb9d4a7ed767a4
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.21.10"
6
+ VERSION = "0.23.2"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
10
- MIN_SERVER_VERSION = "0.21.7"
10
+ MIN_SERVER_VERSION = "0.23.1"
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
data/scripts/.irbrc CHANGED
@@ -47,9 +47,9 @@ IRB.conf[:HISTORY_FILE] = ".irb-history"
47
47
 
48
48
  begin
49
49
  require "pry"
50
- Pry.config.history.should_save = true
51
- Pry.config.history.should_load = true
52
- Pry.config.history.file = ".pry-history"
50
+ Pry.config.history_save = true
51
+ Pry.config.history_load = true
52
+ Pry.config.history_file = ".pry-history"
53
53
  require "pry-nav"
54
54
  rescue LoadError => _
55
55
 
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.21.10
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2021-11-01 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
@@ -448,7 +448,7 @@ homepage: http://calaba.sh
448
448
  licenses:
449
449
  - EPL-1.0
450
450
  metadata: {}
451
- post_install_message:
451
+ post_install_message:
452
452
  rdoc_options: []
453
453
  require_paths:
454
454
  - lib
@@ -463,8 +463,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
463
463
  - !ruby/object:Gem::Version
464
464
  version: '0'
465
465
  requirements: []
466
- rubygems_version: 3.0.3
467
- signing_key:
466
+ rubygems_version: 3.1.2
467
+ signing_key:
468
468
  specification_version: 4
469
469
  summary: Client for calabash-ios-server for automated functional testing on iOS
470
470
  test_files: []