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

Be clear about supported Rails and Ruby versions #450

Merged
merged 2 commits into from Dec 29, 2023
Merged

Conversation

mike-burns
Copy link
Contributor

Ruby 2.7 and older is end of life.

Rails 6.0 and older is end of life.

Rails 6 requires Ruby >= 2.5, Rails 7 requires Ruby >= 2.7.

We also want to know about Rails main.

[Ruby 2.7 and older] is end of life.

[Rails 6.0 and older] is end of life.

Rails 6 [requires] Ruby >= 2.5, Rails 7 requires Ruby >= 2.7.

[Ruby 2.7 and older]: https://www.ruby-lang.org/en/downloads/branches/
[Rails 6.0 and older]: https://guides.rubyonrails.org/maintenance_policy.html
[requires]: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#ruby-versions

---

Don't require debug. This isn't needed for tests. But moreover, it
causes an error on Ruby 3.0.

It opens with:

``ruby
if $SAFE > 0
  STDERR.print "-r debug.rb is not available in safe mode\n"
  exit 1
end
```

But `$SAFE` is not set, so we get `nil > 0`, and an error.

```
% ruby -rdebug -e 'puts "OK"'
/home/mike/.rubies/ruby-3.0.6/lib/ruby/3.0.0/debug.rb:9:in `<top (required)>': undefined method `>' for nil:NilClass (NoMethodError)
        from <internal:/home/mike/.rubies/ruby-3.0.6/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/home/mike/.rubies/ruby-3.0.6/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
```

This is not an issue on Ruby 3.1.

---

Ruby 3.1 + Rails 7.1 leads to an issue around the `error_highlight`
library. Rather than debug that, we can skip that combination and hope
for the best.
@mike-burns mike-burns merged commit c4638f6 into main Dec 29, 2023
16 checks passed
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

1 participant