Skip to content

Commit

Permalink
Support Rails 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Dec 18, 2024
1 parent 02e9ee1 commit 4f70126
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
- '3.3'
gemfile:
- gemfiles/rails-7.2.0.gemfile
- gemfiles/rails-8.0.0.gemfile
exclude:
- ruby: '3.1'
gemfile: 'gemfiles/rails-8.0.0.gemfile'

env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}

Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
ruby-version: 3.2
bundler-cache: true

- name: rubocop
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

### 8.0.0 / 2024-08-30

Support Rails 8.0.

### 7.2.0 / 2024-12-17

Support Rails 7.2.
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source "https://rubygems.org"
gemspec

gem "irb"
gem "rails", "~> 7.2.0"
gem "rails", "~> 8.0.0"
gem "rake"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ Create a new rails app:
### Choosing a version

This gem follows the versioning of Rails.
For example, if you are using Rails 7.2 you will specify:
For example, if you are using Rails 8.0 you will specify:

```ruby
gem "minitest-rails", "~> 8.0.0"
```

If you are running Rails 7.2 you will specify:

```ruby
gem "minitest-rails", "~> 7.2.0"
Expand Down
12 changes: 12 additions & 0 deletions gemfiles/rails-8.0.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source "http://rubygems.org"

gem "minitest-rails", path: "../"
gem "rails", "~> 8.0.0"
gem "rake"
gem "sqlite3"

gem "minitest-autotest", "~> 1.1"
gem "minitest-focus", "~> 1.4"
gem "minitest-rg", "~> 5.2"
gem "rdoc", "~> 6.5"
gem "rubocop", "~> 1.57.0"
2 changes: 1 addition & 1 deletion minitest-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = ">= 3.1"

gem.add_dependency "minitest", "~> 5.20"
gem.add_dependency "railties", ">= 7.2.0", "< 8.0.0"
gem.add_dependency "railties", ">= 7.2.0"

gem.add_development_dependency "minitest-autotest", "~> 1.1"
gem.add_development_dependency "minitest-focus", "~> 1.4"
Expand Down

0 comments on commit 4f70126

Please sign in to comment.