Skip to content

Commit

Permalink
Merge pull request #4 from molawson/ml/update-supported-versions
Browse files Browse the repository at this point in the history
Update supported Ruby & Rails versions
  • Loading branch information
molawson authored May 20, 2024
2 parents 8f579ed + ac18a5d commit c15d989
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 22 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,39 @@ jobs:
matrix:
ruby-version:
- '2.5' # deprecated
- '2.6'
- '2.7'
- '3.0'
- '2.6' # deprecated
- '2.7' # deprecated
- '3.0' # deprecated
- '3.1'
- '3.2'
- '3.3'
gemfile:
- activerecord_5_2 # deprecated
- activerecord_6_0
- activerecord_6_0 # deprecated
- activerecord_6_1
- activerecord_7_0
- activerecord_7_1
include:
- ruby-version: '3.0'
gemfile: activerecord_7_0
- ruby-version: '3.3'
gemfile: activerecord_7_1
coverage: 'true'
exclude:
- ruby-version: 2.5
gemfile: activerecord_7_0
- ruby-version: 2.5
gemfile: activerecord_7_1
- ruby-version: 2.6
gemfile: activerecord_7_0
- ruby-version: 2.6
gemfile: activerecord_7_1
- ruby-version: 3.0
gemfile: activerecord_5_2
- ruby-version: 3.1
gemfile: activerecord_5_2
- ruby-version: 3.2
gemfile: activerecord_5_2
- ruby-version: 3.3
gemfile: activerecord_5_2
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
Expand All @@ -47,13 +58,13 @@ jobs:
sudo sed -i s/peer/trust/g /etc/postgresql/*/main/pg_hba.conf
sudo systemctl start postgresql.service
sudo systemctl start mysql.service
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: amancevice/setup-code-climate@v0
- uses: amancevice/setup-code-climate@v2
name: CodeClimate setup
if: ${{ matrix.coverage == 'true' }}
with:
Expand All @@ -73,7 +84,7 @@ jobs:
Standard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ end
appraise "activerecord-7-0" do
gem "activerecord", "~> 7.0.1"
end

appraise "activerecord-7-1" do
gem "activerecord", "~> 7.1.0"
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"

Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
sqlite3 (1.4.2)
sqlite3 (1.7.3-arm64-darwin)
sqlite3 (1.7.3-x86_64-darwin)
sqlite3 (1.7.3-x86_64-linux)
standard (1.7.0)
rubocop (= 1.25.0)
rubocop-performance (= 1.13.2)
Expand All @@ -83,6 +85,8 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-19
x86_64-linux

Expand All @@ -94,7 +98,7 @@ DEPENDENCIES
rake (>= 12.3.3)
rspec (~> 3.0)
simplecov
sqlite3
sqlite3 (~> 1.0)
standard (~> 1.0)
timecop

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ Article.not_published # => [draft]

This gem works with a variety of Ruby and Rails versions. The aim is to cover as broad a range of versions as is practical. This matrix should mostly reflect the versions of Ruby and Rails that are supported in some way by their maintainers (i.e. receiving at least some security patches).

| | Ruby 2.5 | Ruby 2.6 | Ruby 2.7 | Ruby 3.0 | Ruby 3.1 |
| --- | :---: | :---: | :---: | :---: | :---: |
| **Rails 5.2** | :warning: | :warning: | :warning: | :no_entry: | :no_entry: |
| **Rails 6.0** | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Rails 6.1** | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Rails 7.0** | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | Ruby 2.5 | Ruby 2.6 | Ruby 2.7 | Ruby 3.0 | Ruby 3.1 | Ruby 3.2 | Ruby 3.3 |
| --- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **Rails 5.2** | :warning: | :warning: | :warning: | :no_entry: | :no_entry: | :no_entry: | :no_entry: |
| **Rails 6.0** | :warning: | :warning: | :warning: | :warning: | :warning: | :warning: | :warning: |
| **Rails 6.1** | :warning: | :warning: | :warning: | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Rails 7.0** | :no_entry: | :no_entry: | :warning: | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **Rails 7.1** | :no_entry: | :no_entry: | :warning: | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

* :white_check_mark: - fully tested and supported
* :no_entry: - not tested or supported
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_5_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"
gem "activerecord", "~> 5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_6_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"
gem "activerecord", "~> 6.0.3"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"
gem "activerecord", "~> 6.1.2"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"
gem "activerecord", "~> 7.0.1"
Expand Down
19 changes: 19 additions & 0 deletions gemfiles/activerecord_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "mysql2"
gem "pg"
gem "rake", ">= 12.3.3"
gem "rspec", "~> 3.0"
gem "sqlite3", "~> 1.0"
gem "standard", "~> 1.0"
gem "timecop"
gem "activerecord", "~> 7.1.0"

group :test do
gem "simplecov", require: false
end

gemspec path: "../"

0 comments on commit c15d989

Please sign in to comment.