Skip to content

Accept generator_spec 0.10.0 - #685

Merged
tricknotes merged 1 commit into
mainfrom
accept-generator-spec-0-10
Sep 12, 2026
Merged

Accept generator_spec 0.10.0#685
tricknotes merged 1 commit into
mainfrom
accept-generator-spec-0-10

Conversation

@tricknotes

@tricknotes tricknotes commented Sep 12, 2026

Copy link
Copy Markdown
Owner
-  spec.add_development_dependency "generator_spec", "~> 0.9.0"
+  spec.add_development_dependency "generator_spec", ">= 0.9.0", "< 1.0"

~> 0.9.0 rejects 0.10.0, which was released on 2024-01-25 — the same day as 0.9.5, the newest version the pin allows.

The difference is additive

Diffing the two gems' lib/ directories, 0.10.0 adds a does_not_contain matcher to have_structure and a failure message for it:

+      def does_not_contain(text)
+        @negative_contents << text
+      end

Nothing was removed or changed in what have_structure, destination, run_generator or prepare_destination already did, and the runtime requirements are the same in both versions: activesupport >= 3.0.0 and railties >= 3.0.0.

Tests

With generator_spec 0.10.0 resolved locally:

  • bin/rspec spec/generators — 15 examples, 0 failures
  • bin/rspec — same 6 failures as on main, all from the dummy Ember application not being built in this environment

No CHANGELOG entry

This is a development dependency, so nothing an application using the gem can observe changes.

The development dependency pinned `~> 0.9.0`, which rejects 0.10.0 —
released the same day as 0.9.5, on 2024-01-25.

The library difference between the two is additive: 0.10.0 adds a
`does_not_contain` matcher to `have_structure` and a failure message for
it. Nothing existing changed, and its runtime requirements are unchanged
at `activesupport >= 3.0.0` and `railties >= 3.0.0`.

`spec/generators` passes against 0.10.0: 15 examples, 0 failures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tricknotes
tricknotes marked this pull request as ready for review September 12, 2026 03:43
@tricknotes
tricknotes merged commit f493f89 into main Sep 12, 2026
16 checks passed
@tricknotes
tricknotes deleted the accept-generator-spec-0-10 branch September 12, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants