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

Drop support for end-of-life Ruby versions + update dependencies. #349

Merged
merged 6 commits into from
May 9, 2024

Conversation

sengi
Copy link
Contributor

@sengi sengi commented May 3, 2024

  • Drop support for Ruby 2.7 and 3.0 per our version policy.
  • Update (theoretically) vulnerable npm packages (npm audit fix).
  • Update rubygems dependencies as far as compatible.
  • Update GitHub Actions dependencies.
  • Declare some missing transitive dependencies for forward compatibility with Ruby 3.4.

Someone with repo admin (or alphagov org admin) will need to update the repo's branch protection rules to fix the list of required checks.

sengi added 6 commits May 3, 2024 15:13
With middleman-sprockets 4.1, tests fail with:

```
/Users/sengi/src/alphagov/tech-docs-gem/vendor/bundle/ruby/3.3.0/gems/middleman-sprockets-4.1.1/lib/middleman-sprockets/resource.rb:37:in
`block in sprockets_asset': ../../lib/source/stylesheets/manifest.css
(Sprockets::FileNotFound)
```
These default gems are slated for removal from Ruby 3.4, but upstream
gems that depend on them haven't updated their gemspecs yet (or hadn't
at the time of release of the we're stuck on for now, at least).

This somewhat helps forward-compatibility with Ruby 3.4.
@sengi sengi requested review from 36degrees, kr8n3r and ChrisBAshton May 3, 2024 15:58
@heathd
Copy link
Contributor

heathd commented May 7, 2024

I've removed the requirement for tests on ruby 2.7

will try to do a review in the next day or two (probably by just including the gem in another thing and making sure it works)

Copy link
Contributor

@heathd heathd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for doing this Chris

@heathd
Copy link
Contributor

heathd commented May 9, 2024

I have tested against a local tech docs site using ruby 3.2.3. Everything seems to function correctly.

@heathd heathd merged commit 3af782f into main May 9, 2024
3 checks passed
@heathd heathd deleted the sengi/fix-bitrot branch May 9, 2024 10:00
@sengi
Copy link
Contributor Author

sengi commented May 9, 2024

Thanks @heathd!

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