Skip to content

Commit

Permalink
Port to Appraisals and update test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegeek committed Apr 29, 2024
1 parent 04ec56a commit c907f05
Show file tree
Hide file tree
Showing 11 changed files with 460 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
ruby: [ "2.7", "3.0", "3.1", "3.2", "3.3" ]
rails: [ "6.0", "7.0", "7.1" ]
rails: [ "6.1", "7.0", "7.1" ]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand All @@ -21,8 +21,7 @@ jobs:
env:
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
run: |
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails_${MATRIX_RAILS_VERSION}.gemfile"
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec appraisal install --jobs 4 --retry 3
- name: Run test
run: bundle exec rake test
run: bundle exec appraisal rails_${MATRIX_RAILS_VERSION} rake test
14 changes: 14 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
appraise "rails-6.1" do
gem "activesupport", "~> 6.1.7", ">= 6.1.0"
gem "activerecord", "~> 6.1.7", ">= 6.1.0"
end

appraise "rails-7.0" do
gem "activesupport", "~> 7.0.4"
gem "activerecord", "~> 7.0.4"
end

appraise "rails-7.1" do
gem "activesupport", "~> 7.1"
gem "activerecord", "~> 7.1"
end
1 change: 1 addition & 0 deletions encoded_id-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "activesupport", ">= 6.0", "< 8.0"
spec.add_dependency "activerecord", ">= 6.0", "< 8.0"
spec.add_dependency "encoded_id", "~> 1.0.0.rc3"
spec.add_development_dependency "appraisal"

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_RETRY: "1"
11 changes: 0 additions & 11 deletions gemfiles/rails_6.0.gemfile

This file was deleted.

16 changes: 16 additions & 0 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 6.1.7", ">= 6.1.0"
gem "activerecord", "~> 6.1.7", ">= 6.1.0"

group :development, :test do
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "standard", "~> 1.30"
gem "steep", "~> 1.5"
gem "sqlite3", "~> 1.5"
end

gemspec path: "../"
130 changes: 130 additions & 0 deletions gemfiles/rails_6.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
PATH
remote: ..
specs:
encoded_id-rails (1.0.0.beta2)
activerecord (>= 6.0, < 8.0)
activesupport (>= 6.0, < 8.0)
encoded_id (~> 1.0.0.rc3)

GEM
remote: https://rubygems.org/
specs:
abbrev (0.1.2)
activemodel (6.1.7.7)
activesupport (= 6.1.7.7)
activerecord (6.1.7.7)
activemodel (= 6.1.7.7)
activesupport (= 6.1.7.7)
activesupport (6.1.7.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
concurrent-ruby (1.2.3)
csv (3.3.0)
encoded_id (1.0.0.rc3)
hashids (~> 1.0)
ffi (1.16.3)
fileutils (1.7.2)
hashids (1.0.6)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
minitest (5.22.3)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rbs (3.4.4)
abbrev
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
securerandom (0.3.1)
sqlite3 (1.7.3-arm64-darwin)
standard (1.35.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.62.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
steep (1.6.0)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
csv (>= 3.0.9)
fileutils (>= 1.1.0)
json (>= 2.1.0)
language_server-protocol (>= 3.15, < 4.0)
listen (~> 3.0)
logger (>= 1.3.0)
parser (>= 3.1)
rainbow (>= 2.2.2, < 4.0)
rbs (>= 3.1.0)
securerandom (>= 0.1)
strscan (>= 1.0.0)
terminal-table (>= 2, < 4)
strscan (3.1.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin-23

DEPENDENCIES
activerecord (~> 6.1.7, >= 6.1.0)
activesupport (~> 6.1.7, >= 6.1.0)
appraisal
encoded_id-rails!
minitest (~> 5.0)
rake (~> 13.0)
sqlite3 (~> 1.5)
standard (~> 1.30)
steep (~> 1.5)

BUNDLED WITH
2.3.26
15 changes: 10 additions & 5 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "sqlite3"
gem "activesupport", "~> 7.0.4"
gem "activerecord", "~> 7.0.4"
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "standard", "~> 1.3"
gem "steep", "~> 1.2"

group :development, :test do
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "standard", "~> 1.30"
gem "steep", "~> 1.5"
gem "sqlite3", "~> 1.5"
end

gemspec path: "../"
128 changes: 128 additions & 0 deletions gemfiles/rails_7.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
PATH
remote: ..
specs:
encoded_id-rails (1.0.0.beta2)
activerecord (>= 6.0, < 8.0)
activesupport (>= 6.0, < 8.0)
encoded_id (~> 1.0.0.rc3)

GEM
remote: https://rubygems.org/
specs:
abbrev (0.1.2)
activemodel (7.0.8.1)
activesupport (= 7.0.8.1)
activerecord (7.0.8.1)
activemodel (= 7.0.8.1)
activesupport (= 7.0.8.1)
activesupport (7.0.8.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
concurrent-ruby (1.2.3)
csv (3.3.0)
encoded_id (1.0.0.rc3)
hashids (~> 1.0)
ffi (1.16.3)
fileutils (1.7.2)
hashids (1.0.6)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
minitest (5.22.3)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rbs (3.4.4)
abbrev
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
securerandom (0.3.1)
sqlite3 (1.7.3-arm64-darwin)
standard (1.35.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.62.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
steep (1.6.0)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
csv (>= 3.0.9)
fileutils (>= 1.1.0)
json (>= 2.1.0)
language_server-protocol (>= 3.15, < 4.0)
listen (~> 3.0)
logger (>= 1.3.0)
parser (>= 3.1)
rainbow (>= 2.2.2, < 4.0)
rbs (>= 3.1.0)
securerandom (>= 0.1)
strscan (>= 1.0.0)
terminal-table (>= 2, < 4)
strscan (3.1.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)

PLATFORMS
arm64-darwin-23

DEPENDENCIES
activerecord (~> 7.0.4)
activesupport (~> 7.0.4)
appraisal
encoded_id-rails!
minitest (~> 5.0)
rake (~> 13.0)
sqlite3 (~> 1.5)
standard (~> 1.30)
steep (~> 1.5)

BUNDLED WITH
2.3.26
16 changes: 16 additions & 0 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 7.1"
gem "activerecord", "~> 7.1"

group :development, :test do
gem "rake", "~> 13.0"
gem "minitest", "~> 5.0"
gem "standard", "~> 1.30"
gem "steep", "~> 1.5"
gem "sqlite3", "~> 1.5"
end

gemspec path: "../"
Loading

0 comments on commit c907f05

Please sign in to comment.