turbo_rspec 1.6.1 → 1.6.2

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: a307e4f793b6394100ac49bfe9e360cf1ca378e3204dfeb4070a839781eb6e1b
4
- data.tar.gz: 7d0bf9057477f2c5188c050c0f90ea1be1a7732f016d5b86180f4cdde51f0073
3
+ metadata.gz: c9da57d90a174ef66944964a773c9cf7a8d26688d272a787a9358bdf09b14a8a
4
+ data.tar.gz: 65f3e849bdd59a5bd35da250e4d387061d107d5bb23d5722981b120cee4d918a
5
5
  SHA512:
6
- metadata.gz: ff66bd9fcee4b8feca948ec65598f98ee54be6dd7a8bb23fd1d71632d1c93ec11b9589648d50256da25ac7022c1414d7351c0021738318ce9b296a743c893d38
7
- data.tar.gz: bb0efb7f7b138f5052eb7cc2fc5cbed38f97799c0aceaff6420e4df01502aab436527eb53606f0fa0d10a0442320c4552bf6b7506f7ac42495a29c2f6120052f
6
+ metadata.gz: 57c532b1db77c809d9a60327f107c7ab0ab99b7718e99803679862c777bfde611e08136c7095ac7210a6f0fd7d9d3f7ae9d921999f7e349a0af1676ca05bb6bc
7
+ data.tar.gz: 3b255f5748c0369f0bf033bee67eefd38b2cb17ee989a692fc42ab273f44dd405e1756647a8f0894f163617da876fc0f8b2c3300a955275064b6c81448561824
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.6.2] - 2026-08-11
4
+
5
+ ### Fixed
6
+
7
+ - `lib/turbo_rspec.rb` now guards the eager `RSpec.configure` call on `RSpec.respond_to?(:configure)` in addition to `defined?(RSpec)`, preventing the same class of boot-time error already fixed for `shared_examples.rb` in 1.6.1 — this occurs when the `rspec` meta-gem is required but `rspec-core` is not yet fully initialized
8
+
9
+ ### Changed
10
+
11
+ - README install snippet now recommends `gem "turbo_rspec", require: false` with an explicit `require "turbo_rspec"` in `rails_helper.rb`/`spec_helper.rb`, matching the convention used by `shoulda-matchers`, `database_cleaner`, and other RSpec extension gems — decouples the gem from Bundler's app-boot-time require order
12
+
3
13
  ## [1.6.1] - 2026-06-07
4
14
 
5
15
  ### Fixed
data/README.md CHANGED
@@ -24,10 +24,19 @@ Add to your application's `Gemfile`:
24
24
 
25
25
  ```ruby
26
26
  group :test do
27
- gem "turbo_rspec"
27
+ gem "turbo_rspec", require: false
28
28
  end
29
29
  ```
30
30
 
31
+ Then require it explicitly in `spec/rails_helper.rb` (or `spec/spec_helper.rb`), after RSpec is loaded:
32
+
33
+ ```ruby
34
+ require "rspec/rails"
35
+ require "turbo_rspec"
36
+ ```
37
+
38
+ `require: false` avoids Bundler auto-requiring the gem during app boot, before RSpec itself is loaded — the same convention used by `shoulda-matchers`, `database_cleaner`, and other RSpec extension gems.
39
+
31
40
  ## Setup
32
41
 
33
42
  ### Generator
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboRspec
4
- VERSION = "1.6.1"
4
+ VERSION = "1.6.2"
5
5
  end
data/lib/turbo_rspec.rb CHANGED
@@ -87,7 +87,7 @@ module TurboRspec
87
87
  end
88
88
 
89
89
  # :nocov:
90
- if defined?(RSpec)
90
+ if defined?(RSpec) && RSpec.respond_to?(:configure)
91
91
  RSpec.configure { |config| TurboRspec.install_rspec_integration(config) }
92
92
  end
93
93
  # :nocov:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuck Smith