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

Adds Ruby 3.0, 3.1, and 3.2 to CI #982

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

petergoldstein
Copy link

This turned into a bit bigger of a PR than I originally anticipated, because a number of the gems in the Gemfile were either unmaintained or no longer applicable and had not been cleaned up. Required changes to get everything running included:

  1. Bumping up the activerecord constraint in the Gemfile to allow versions '< 8'
  2. Removing the ruby_dep, codeclimate-test-reporter, coveralls, and travis gems because they are no longer applicable and have compatibility issues with recent Rubies.
  3. Removing the files gem and replacing the functionality in the specs, because it is unmaintained and its use of File.exists? is not compatible with Ruby 3.2

Additional changes include:

  1. Updating the rubocop and rubocop-rspec versions in the Gemfile
  2. Addressing ~90 lints, many of which were replacing the use of [] on ENV with fetch
  3. Updating the specs to properly stub and spy on ENV loads given the changes in 2.
  4. Disabling the Lint/FormatParameterMismatch because I'm not sure why it's failing, and it looks to me like an error in the cop.

This runs green on my fork.

drwl added a commit to drwl/annotaterb that referenced this pull request May 23, 2023
Removes obsolete and unused gems.  Replaces use of unmaintained files gem to allow running under Ruby 3.2.
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.

None yet

2 participants