rspec-wait 1.0.0.rc1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3063b52ebd279697ad6513ff3086284b4de74646b923b26eac4063eda6a230d
4
- data.tar.gz: a1e2a15ea600566d77c946bb53662907885a1b5491ef1f17bb7735352340b03d
3
+ metadata.gz: 571ec853f48e6b4c04f9703dfdb118c79840e1faaa344505f47663c031e27178
4
+ data.tar.gz: e72a55bdd7cce040dca8d217935d63cbd9c5ee20684df327636d6d7c2adbbfb3
5
5
  SHA512:
6
- metadata.gz: 8c5675ecf53888f5e0a82de31a819be2e1ec2d051beade97169361344210dc067a4f9b84f8faf97f19b397d431fc6a215637fa5e3c7cf16e8830b5d81556c940
7
- data.tar.gz: c0d8d730ead4d2dad8bbe3412c02357276b13734b2befe3c184aa5e62b1bedb680d66a561a76b99bb8c9debb1bc62f214591a2ddcd0d98cd346b585ab565a64f
6
+ metadata.gz: 7a5d8c9a6d1a454f21bf942675d19961b0def0168c4fc33c17ba8c433a9e9a2d9b53e853e56f4917904344f09067b404ad14d7bcf594e840be2494d29a7755ba
7
+ data.tar.gz: 8b788a45f5eab52470a01aaa9869ae7c596682a523a2b8a9beacfa7934bcb20f42d529404d9a8b7f7c6056dafca5adcdeba17536f129fb0dca7deda408221895
data/README.md CHANGED
@@ -133,6 +133,19 @@ environment:
133
133
  require "rspec/wait"
134
134
  ```
135
135
 
136
+ ### Upgrading from v0
137
+
138
+ RSpec::Wait v1 is very similar in syntax to v0 but does have a few breaking
139
+ changes that you should be aware of when upgrading from any 0.x version:
140
+
141
+ 1. RSpec::Wait v1 requires Ruby 3.0 or greater and RSpec 3.4 or greater.
142
+ 2. The `wait_for` and `wait.for` methods no longer accept arguments, only
143
+ blocks.
144
+ 3. RSpec::Wait no longer uses Ruby's problematic `Timeout.timeout` method,
145
+ which means it will no longer raise a `RSpec::Wait::TimeoutError`.
146
+ RSpec::Wait v1 never interrupts the block given to `wait_for` mid-call
147
+ so make every effort to reasonably limit the block's individual call time.
148
+
136
149
  ## Configuration
137
150
 
138
151
  RSpec::Wait has three available configuration values:
@@ -14,7 +14,7 @@ module RSpec
14
14
  begin
15
15
  matcher = RSpec.configuration.clone_wait_matcher ? initial_matcher.clone : initial_matcher
16
16
 
17
- if matcher.supports_block_expectations?
17
+ if matcher.respond_to?(:supports_block_expectations?) && matcher.supports_block_expectations?
18
18
  super(target, matcher, message, &block)
19
19
  else
20
20
  super(target.call, matcher, message, &block)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Wait
5
- VERSION = ::Gem::Version.new("1.0.0.rc1")
5
+ VERSION = ::Gem::Version.new("1.0.1")
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -78,7 +78,7 @@ metadata:
78
78
  homepage_uri: https://github.com/laserlemon/rspec-wait
79
79
  rubygems_mfa_required: 'true'
80
80
  source_code_uri: https://github.com/laserlemon/rspec-wait
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -89,12 +89,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '3.0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">"
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.3.1
94
+ version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.4.10
97
- signing_key:
96
+ rubygems_version: 3.4.19
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Wait for conditions in RSpec
100
100
  test_files: []