Skip to content

Towards 1.1.0 - #59

Merged
tilo merged 7 commits into
mainfrom
maintenance-1.0.0
Aug 7, 2026
Merged

Towards 1.1.0#59
tilo merged 7 commits into
mainfrom
maintenance-1.0.0

Conversation

@tilo

@tilo tilo commented Aug 7, 2026

Copy link
Copy Markdown
Owner

tilo and others added 3 commits August 7, 2026 01:46
- Move VERSION into new ValidatesOverlap module (lib/validates_overlap/version.rb); OverlapValidator stays the Rails-facing validator class, delete the VERSION file
- Rewrite gemspec: version from ValidatesOverlap::VERSION, package only lib/ + README + MIT-LICENSE (no more git ls-files / dummy app in the gem), drop deprecated test_files, depend on activerecord instead of the full rails meta-gem (version floor unchanged at >= 6.0.0), move rails to development dependencies for the dummy app
- Migrate the test suite from factory_girl (dead since 2017, cannot load on Ruby 3.4) to factory_bot, converting factories to block syntax
- spec_helper: MigrationContext arity switch (Rails 6.1 requires the schema_migration arg, Rails 7.2+ removed it), explicit FactoryBot definition loading, start SimpleCov before the app loads
- Dummy app: version-switched enum declaration (Rails 8 removed the keyword form, Rails 6.x lacks the positional form)
- Add GitHub Actions matrix: Ruby 3.0-3.4 x Rails 6.1-8.1 (18 cells) with per-Rails gemfiles; Rails <= 7.1 gemfiles pin sqlite3 ~> 1.4 and Rails < 7.1 pin concurrent-ruby < 1.3.5
- Remove dead .travis.yml and Gemfile.rails60; remove obsolete Rakefile last_comment hack

All six Rails columns verified green locally: 81 examples, 0 failures, 1 pending (pre-existing xit).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShKZCYJFU7bdDSvRT2FgN1
…ails the build

The suite is RSpec; rails/test_help registers minitest autorun, whose at-exit
runner tries to parse RSpec's --pattern flag ("invalid option: --pattern") and
exits 1 after all 81 examples pass. Everything the suite uses comes from
rspec-rails and the dummy app.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShKZCYJFU7bdDSvRT2FgN1
@tilo tilo changed the title Maintenance 1.0.0 Towards 1.1.0 Aug 7, 2026
@tilo
tilo changed the base branch from master to main August 7, 2026 16:13
tilo and others added 3 commits August 7, 2026 09:18
defined_enums is keyed by strings, so a scope like `scope: [:kind]` looked up
nil and crashed with NoMethodError. Regression-tested via a dummy model whose
scope names the enum attribute as a symbol (red before the fix, green after);
the existing DocumentWithEnum keeps covering the string-scope form.

Same fix as PR #55 by @denmarkmeralpis (Dec 2019).

Co-authored-by: Nujian Den Mark Meralpis <denmarkmeralpis@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShKZCYJFU7bdDSvRT2FgN1
…etadata

CONTRIBUTORS.md thanks Robin Bortlik and lists all merged-PR authors plus the
open-issue reporters. Both files also ship in the gem package now.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShKZCYJFU7bdDSvRT2FgN1
@tilo
tilo merged commit 3099ba8 into main Aug 7, 2026
38 checks passed
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.

1 participant