Skip to content

feat: replace rails dependency with specific components - #69

Merged
Maimer merged 1 commit into
masterfrom
pim_remove_explicit_rails_dependency
Aug 18, 2026
Merged

feat: replace rails dependency with specific components#69
Maimer merged 1 commit into
masterfrom
pim_remove_explicit_rails_dependency

Conversation

@Maimer

@Maimer Maimer commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the monolithic rails gem dependency with only the specific Rails components actually used by the gem: actionpack, activerecord, activesupport, and railties. This reduces the transitive dependency footprint for consumers that don't need the full Rails framework.

The gem uses ActionController::Base (actionpack), ActiveRecord::Base/ActiveRecord::Relation (activerecord), ActiveSupport::OrderedHash/ActiveSupport::Concern (activesupport), and Rails::Engine/Rails::Generators::Base (railties). The two require 'rails' statements in lib/ are replaced with targeted requires (rails/railtie and rails/engine).

Jira Issue: https://appfolio.atlassian.net/browse/BANK-2196

Test plan

  • bundle install succeeds with the updated gemspec
  • bundle exec appraisal install succeeds for all 18 appraisal combinations
  • bundle exec appraisal rake test passes across all 18 matrices (Rails 7.2/8.0/8.1 x Grape 1.6-2.2) with 224 tests, 524 assertions, 0 failures, 0 errors per run
  • CI passes on this branch

@Maimer
Maimer requested a review from a team as a code owner August 17, 2026 22:49
Replace the monolithic `rails` gem dependency with only the specific
Rails components actually used: actionpack, activerecord, activesupport,
and railties. This reduces the transitive dependency footprint for
consumers that don't need the full Rails framework.
@Maimer
Maimer force-pushed the pim_remove_explicit_rails_dependency branch from 2bffe4d to b2b1f55 Compare August 18, 2026 18:23
@Maimer
Maimer merged commit 3838b5b into master Aug 18, 2026
8 checks passed
@Maimer
Maimer deleted the pim_remove_explicit_rails_dependency branch August 18, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants