stimulus_spec 0.8.1 → 0.8.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: '0912c1fbe8ee121aa811782e445be9524634567f4b19b59e8921c8c8fd196f39'
4
- data.tar.gz: c4b7149d6711bcfbda89a04d2b7095fd7996dfa8ff4adb95d034b15885ea1c9e
3
+ metadata.gz: ef80da08dc9b698e7dacdfc817d65d167413a951981c464fde32fa88d50ddcbe
4
+ data.tar.gz: dc9bd14543dc39afd541b88446d2969e08258cd15f191b856ce61cfcda391d5c
5
5
  SHA512:
6
- metadata.gz: 0d84919b59c7d2c1bfafde03194f9db337e4cb78fb25f9f65746fa6cf35b839ca495ffa7a57fe577c0c5e93be98c1993f7fe4d572013cc6f988a02b41b70830e
7
- data.tar.gz: 7d284dc0aba931a47d44b13e5a563372957b1ef063db08284e1fad073247f482b915d694efb561e78670840af09edc02860971b00d3194ed7675348e087ba7a8
6
+ metadata.gz: fe01f8b9ae913f652c07de9e461228a11505dc70713d076d1f74e17fd707bb759c1e27f6b9baa42f8fbb47917d8a66ab1784458e15eef6634db4c64186b8fbbd
7
+ data.tar.gz: 0f98d741c26ae35cf8d5fdbc04e5a130c0c2f4f18f56d3262b37ad6c139517f419b4ba67086cf13436fcffed61862c80cc6383810f64f88dc2af6f5e7328d185
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.2] - 2026-08-11
11
+
12
+ ### Changed
13
+
14
+ - Recommend `require: false` in the Gemfile install snippet, with an explicit `require "stimulus_spec"` in `rails_helper.rb`/`spec_helper.rb`, matching the convention used by `shoulda-matchers` and `database_cleaner`.
15
+
10
16
  ## [0.8.1] - 2026-06-30
11
17
 
12
18
  ### Fixed
@@ -76,7 +82,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
76
82
  - `have_stimulus_action(descriptor)` matcher — full descriptor (`~=`) and shorthand without event (`*=`)
77
83
  - `have_stimulus_target(controller, target)` matcher — asserts `[data-{controller}-target~="target"]`
78
84
 
79
- [Unreleased]: https://github.com/eclectic-coding/stimulus_spec/compare/v0.8.1...HEAD
85
+ [Unreleased]: https://github.com/eclectic-coding/stimulus_spec/compare/v0.8.2...HEAD
86
+ [0.8.2]: https://github.com/eclectic-coding/stimulus_spec/releases/tag/v0.8.2
80
87
  [0.8.1]: https://github.com/eclectic-coding/stimulus_spec/releases/tag/v0.8.1
81
88
  [0.8.0]: https://github.com/eclectic-coding/stimulus_spec/releases/tag/v0.8.0
82
89
  [0.7.0]: https://github.com/eclectic-coding/stimulus_spec/releases/tag/v0.7.0
data/README.md CHANGED
@@ -45,17 +45,26 @@ Add to your application's `Gemfile`:
45
45
 
46
46
  ```ruby
47
47
  group :test do
48
- gem "stimulus_spec"
48
+ gem "stimulus_spec", require: false
49
49
  end
50
50
  ```
51
51
 
52
+ Then require it explicitly in `spec/rails_helper.rb` (or `spec/spec_helper.rb`), after RSpec is loaded:
53
+
54
+ ```ruby
55
+ require "rspec/rails"
56
+ require "stimulus_spec"
57
+ ```
58
+
59
+ `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.
60
+
52
61
  [Back to top](#stimulusspec)
53
62
 
54
63
  ## Setup
55
64
 
56
65
  ### Rails + stimulus-rails (automatic)
57
66
 
58
- No setup needed. When `stimulus-rails` is in your bundle:
67
+ Once required (see [Installation](#installation)), no further setup is needed. When `stimulus-rails` is in your bundle:
59
68
 
60
69
  - `StimulusSpec::Matchers` is automatically included in `type: :request` and `type: :controller` example groups
61
70
  - `StimulusSpec::Capybara::Matchers` is automatically included in `type: :system` and `type: :feature` example groups when `capybara` is also present
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusSpec
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuck Smith