calabash-cucumber 0.23.4 → 0.23.6

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: d9092377999f7bcf8a67b7dd3a78f6de89f0bc0f8b22aedc15869b019c3c8d2e
4
- data.tar.gz: 7dddbacc2f52148ec05b781acf556e988e121fa8ff6575b581134f660b392812
3
+ metadata.gz: bcf1caa4507be3bf90bea7902ee781b100e71b1939cee788e0d790d2a88b5628
4
+ data.tar.gz: fcfcd4778df6ea2afae896f7c6c3655a87ea67508afeb88e3c7a45b68ac80af5
5
5
  SHA512:
6
- metadata.gz: 3fd5aa0bc34d697c0d8640e238ca23572924a881c1d6d46eb00f5c9e9ee08b805bd3565606d44930469cfe54dac995970b31c20f735f026fe2f2940499d53c80
7
- data.tar.gz: 367009853e421425d328997256a3d9810bfe6fa79e42e815ad8ec6079862fb9de2b58a5955983989a373a708f69e90ac75bd3d92c15f5e55a9c387daead2a4cf
6
+ metadata.gz: cc7bd44d9a25b6b2bbcc85457d9ec2f7bfcc2318e54f15c814df9c258216c21439d63aaaf91b0362a85acb0979c84ac537b74d91c8a46ee3661ac1d2d5266dd0
7
+ data.tar.gz: 53ccdfcd08da4517c56e28be2609073ec1a7f41204d93bb0c8ca3daf225b4a0e693227b64007ad4e2e4702e174ef7a98322abbed142eeda833b9673062c55132
@@ -3,7 +3,7 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = "0.23.4"
6
+ VERSION = "0.23.6"
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the Calabash embedded server.
@@ -132,7 +132,7 @@ module Calabash
132
132
  end
133
133
 
134
134
  begin
135
- Timeout::timeout(timeout, WaitError) do
135
+ Timeout.timeout(timeout, WaitError) do
136
136
  sleep(retry_frequency) until yield
137
137
  end
138
138
  sleep(post_timeout) if post_timeout > 0
@@ -274,10 +274,9 @@ module Calabash
274
274
 
275
275
  # @!visibility private
276
276
  def wait_for_condition(options = {})
277
- timeout = options[:timeout]
278
- unless timeout && timeout > 0
279
- timeout = 30
280
- end
277
+ timeout = options[:timeout] || ENV['WAIT_TIMEOUT'].to_i
278
+ timeout = DEFAULT_OPTS[:timeout] unless timeout && timeout > 0
279
+
281
280
  options[:query] = options[:query] || '*'
282
281
  if options.has_key?(:condition)
283
282
  opt_condition = options[:condition]
@@ -299,7 +298,7 @@ module Calabash
299
298
  end
300
299
 
301
300
  begin
302
- Timeout::timeout(timeout+CLIENT_TIMEOUT_ADDITION, WaitError) do
301
+ Timeout.timeout(timeout + CLIENT_TIMEOUT_ADDITION, WaitError) do
303
302
  res = http({:method => :post, :path => 'condition'},
304
303
  options)
305
304
  res = JSON.parse(res)
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.23.4
4
+ version: 0.23.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber