Skip to content

[868gfp7y1] RoR Upgrade (Initial Step)#17

Merged
ale1HQagui merged 3 commits intoOneHQ:ror_upgradefrom
ale1HQagui:868gfp7y1
Jan 28, 2026
Merged

[868gfp7y1] RoR Upgrade (Initial Step)#17
ale1HQagui merged 3 commits intoOneHQ:ror_upgradefrom
ale1HQagui:868gfp7y1

Conversation

@ale1HQagui
Copy link
Copy Markdown

Description

Please describe your pull request and any relevant information.

Risk Level

  • Low
  • Med
  • High

Rollback Plan

Please describe and add steps for rollback if needed.

Screenshots

Screenshots or videos of the feature/fix if needed.

Checklist

  • I linked the change to an approved ticket
  • I have added/updated appropriate tests and evidence
  • I considered security/privacy impact
  • I updated docs/runbook if needed
  • I added a changelog/version entry for this PR

@ale1HQagui ale1HQagui merged commit ab7dab8 into OneHQ:ror_upgrade Jan 28, 2026
@grvp88
Copy link
Copy Markdown

grvp88 commented Apr 9, 2026

Code Review

✅ Clean upgrade — excellent spec modernization

ActiveRecord::Base.send :includeActiveRecord::Base.include

# Before (deprecated)
::ActiveRecord::Base.send :include, ::HasSafeDates::CoreExt
::ActiveRecord::Base.send :prepend, ::HasSafeDates::DateTimeExt

# After (idiomatic Ruby 3.x)
::ActiveRecord::Base.include ::HasSafeDates::CoreExt
::ActiveRecord::Base.prepend ::HasSafeDates::DateTimeExt

send to call include/prepend was a workaround for older Ruby visibility rules. In Ruby 3.x these are public methods — calling them directly is correct and avoids a warning.

required_ruby_version bumped to >= 3.4 — correct.

gemspec modernized — removed the version-conditional if Gem::Version block (a relic from pre-Bundler era). Replaced with clean direct dep declarations. Good cleanup.

Spec suite fully modernized

  • All should matchers replaced with expect(...).to syntax
  • describeRSpec.describe
  • {...}do...end blocks for multi-line expects
  • YAML::loadYAML.load_file (the :: form and manual IO.read was unnecessary)
  • Single config.before(:each) / config.after(:each) collapsed to one-liners
    This is a meaningful improvement — the spec file was using RSpec 2 patterns in an RSpec 3 suite.

activerecord dev dep updated to ~> 7.2 — correct, tests now run against the target Rails version.

No CI — uses CircleCI (not Tekton), and the CI config has only an indentation fix in the cache keys section. No functional CI change.

@grvp88 grvp88 mentioned this pull request Apr 9, 2026
8 tasks
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