Skip to content

Commit

Permalink
Drop support for Ruby 3.1 (Rails 8 requires 3.2+) (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Nov 7, 2024
1 parent d946043 commit a08f3b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
ruby: ["3.1", "3.2", "3.3", "head"]
ruby: ["3.2", "3.3", "head"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2
Exclude:
- "examples/**/*"
- "tmp/**/*"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Nextgen is an **interactive** and flexible alternative to `rails new` that inclu

Nextgen generates apps using **Rails 7.2**.

- **Ruby 3.1+** is required (Ruby 3.2 if you choose a Rails 8 pre-release)
- **Ruby 3.2+** is required
- **Rubygems 3.4.8+** is required (run `gem update --system` to get it)
- **Node 20.9+ and Yarn** are required if you choose Vite or other Node-based options (see the [npm note](#yarn-or-npm) below)
- Additional tools may be required depending on the options you select (e.g. PostgreSQL)
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module RubyVersions
def all
patches = versions.values_at(:stable, :security_maintenance).compact.flatten
sorted_minor_versions = patches.map { |p| p[/\d+\.\d+/] }.sort_by(&:to_f)
sorted_minor_versions.delete("3.1") # Rails no longer supports 3.1
[*sorted_minor_versions, "head"]
end

Expand Down
2 changes: 1 addition & 1 deletion nextgen.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
"that includes opt-in support for modern frontend development with Vite."
spec.homepage = "https://github.com/mattbrictson/nextgen"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.1"
spec.required_ruby_version = ">= 3.2"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/mattbrictson/nextgen/issues",
Expand Down

0 comments on commit a08f3b5

Please sign in to comment.