Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rails 7 gems in gemspec #48

Merged
merged 3 commits into from
Jan 19, 2024
Merged

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Jan 12, 2024

Add rails 7 tests for ruby 2.7+, drop EOL rails 5

Fix rails 7 code to use connection_specification_name as AR::Base instead of primary

@jrafanie
Copy link
Member Author

jrafanie commented Jan 16, 2024

Ok, there are serious connection_specification_name issues with this repo and rails 7... good to find! Fixed!

@jrafanie jrafanie changed the title Allow rails 7 gems in gemspec [WIP] Allow rails 7 gems in gemspec Jan 17, 2024
@jrafanie jrafanie changed the title [WIP] Allow rails 7 gems in gemspec Allow rails 7 gems in gemspec Jan 18, 2024
@jrafanie jrafanie removed the wip label Jan 18, 2024
Add rails 7 tests for ruby 2.7+, drop EOL rails 5
Fixes deprecation in rails 6.1:
"primary"` has been deprecated as the `connection_specification_name` for `ActiveRecord::Base` in favor of using `"ActiveRecord::Base"`. This change affects calls to `ActiveRecord::Base.connection_handler.retrieve_connection` and `ActiveRecord::Base.connection_han
dler.remove_connection`. If you're calling these methods with `"primary"`, please switch to `"ActiveRecord::Base".
@miq-bot
Copy link
Member

miq-bot commented Jan 19, 2024

Checked commits jrafanie/ovirt_metrics@430924f~...bf5b90d with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
4 files checked, 3 offenses detected

Gemfile

  • ❗ - Line 6, Col 8 - Style/FetchEnvVar - Use ENV.fetch('TEST_RAILS_VERSION') or ENV.fetch('TEST_RAILS_VERSION', nil) instead of ENV['TEST_RAILS_VERSION'].

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

spec/spec_helper.rb

@agrare agrare merged commit f32ae9a into ManageIQ:master Jan 19, 2024
13 checks passed
agrare added a commit that referenced this pull request Feb 8, 2024
Changes:
- Switch to GitHub Actions (#43)
- Add timeout-minutes to setup-ruby job (#44)
- Update GitHub Actions versions (#46)
- Update actions/checkout version to v4 (#47)
- Allow rails 7 (#48)
@agrare
Copy link
Member

agrare commented Feb 8, 2024

Released v3.2.0 with this change

jrafanie added a commit to jrafanie/manageiq-providers-red_hat_virtualization that referenced this pull request Feb 9, 2024
jrafanie added a commit to jrafanie/manageiq-providers-ovirt that referenced this pull request Feb 9, 2024
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Feb 9, 2024
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.

3 participants