Skip to content

Commit

Permalink
Add Ruby 3 to spec configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Dec 31, 2020
1 parent f5f6b1d commit 206f714
Show file tree
Hide file tree
Showing 15 changed files with 389 additions and 371 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
strategy:
matrix:
ruby:
- 2.5.x
- 2.6.x
- 2.7.x
- '2.5'
- '2.6'
- '2.7'
- '3.0'
activerecord:
- 5.1.5
- 5.2.0
Expand All @@ -21,6 +22,11 @@ jobs:
strategy:
- array
- ltree
exclude:
- ruby: '3.0'
activerecord: 5.1.5
- ruby: '3.0'
activerecord: 5.2.0

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile
Expand All @@ -41,29 +47,17 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles(format('gemfiles/activerecord_{0}.gemfile.lock', matrix.activerecord)) }}
restore-keys: |
${{ runner.os }}-gems-
bundler-cache: true

- name: Install PostgreSQL client
run: |
sudo apt-get -yqq install libpq-dev
- name: Configure Bundler
run: |
gem install bundler:2.1.4 --no-document
bundle config set path 'vendor/bundle'
bundle install --jobs 4 --retry 3
- name: Run tests with RSpec
uses: paambaati/codeclimate-action@v2.5.4
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
STRATEGY: ${{ matrix.strategy }}
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 2.7.2
ruby 3.0.0
8 changes: 4 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
appraise 'activerecord-5.1.5' do
gem 'activerecord', '5.1.5'
gem 'activerecord', '~> 5.1', '< 5.2'
end

appraise 'activerecord-5.2.0' do
gem 'activerecord', '5.2.0'
gem 'activerecord', '~> 5.2', '< 6'
end

appraise 'activerecord-6.0.0' do
gem 'activerecord', '6.0.0'
gem 'activerecord', '~> 6.0', '< 6.1'
end

appraise 'activerecord-6.1.0' do
gem 'activerecord', '6.0.0'
gem 'activerecord', '~> 6.1', '< 6.2'
end
2 changes: 1 addition & 1 deletion gemfiles/activerecord_5.1.5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
source "https://rubygems.org"

gem "appraisal"
gem "activerecord", "5.1.5"
gem "activerecord", "~> 5.1", "< 5.2"

gemspec path: "../"
175 changes: 91 additions & 84 deletions gemfiles/activerecord_5.1.5.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,143 +1,150 @@
PATH
remote: ..
specs:
parentry (1.3.0)
parentry (1.4.0)
activerecord (>= 5.1, < 6.2)

GEM
remote: https://rubygems.org/
specs:
actionpack (5.1.5)
actionview (= 5.1.5)
activesupport (= 5.1.5)
actionpack (5.1.7)
actionview (= 5.1.7)
activesupport (= 5.1.7)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.5)
activesupport (= 5.1.5)
actionview (5.1.7)
activesupport (= 5.1.7)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activemodel (5.1.5)
activesupport (= 5.1.5)
activerecord (5.1.5)
activemodel (= 5.1.5)
activesupport (= 5.1.5)
activemodel (5.1.7)
activesupport (= 5.1.7)
activerecord (5.1.7)
activemodel (= 5.1.7)
activesupport (= 5.1.7)
arel (~> 8.0)
activesupport (5.1.5)
activesupport (5.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.2.0)
appraisal (2.3.0)
bundler
rake
thor (>= 0.14.0)
arel (8.0.0)
ast (2.4.0)
builder (3.2.3)
coderay (1.1.2)
combustion (1.1.1)
ast (2.4.1)
builder (3.2.4)
coderay (1.1.3)
combustion (1.3.1)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
thor (>= 0.14.6)
concurrent-ruby (1.0.5)
crass (1.0.3)
database_cleaner (1.6.2)
diff-lcs (1.3)
docile (1.3.0)
erubi (1.7.1)
i18n (0.9.5)
concurrent-ruby (1.1.7)
crass (1.0.6)
database_cleaner (1.8.5)
diff-lcs (1.4.4)
docile (1.3.4)
erubi (1.10.0)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.4)
json (2.3.1)
loofah (2.2.2)
loofah (2.8.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
method_source (0.9.0)
method_source (1.0.0)
mini_portile2 (2.4.0)
minitest (5.11.3)
nokogiri (1.10.7)
minitest (5.14.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
parallel (1.19.1)
parser (2.7.0.2)
ast (~> 2.4.0)
pg (1.2.2)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
rack (2.0.4)
rack-test (1.0.0)
parallel (1.20.1)
parser (3.0.0.0)
ast (~> 2.4.1)
pg (1.2.3)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.1.5)
actionpack (= 5.1.5)
activesupport (= 5.1.5)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.1.7)
actionpack (= 5.1.7)
activesupport (= 5.1.7)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
rake (13.0.3)
regexp_parser (2.0.3)
rexml (3.2.4)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-rails (3.7.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.79.0)
jaro_winkler (~> 1.5.1)
rspec-support (~> 3.10.0)
rspec-rails (4.0.2)
actionpack (>= 4.2)
activesupport (>= 4.2)
railties (>= 4.2)
rspec-core (~> 3.10)
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.1)
rubocop (1.7.0)
parallel (~> 1.10)
parser (>= 2.7.0.1)
parser (>= 2.7.1.5)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-rspec (1.37.1)
rubocop (>= 0.68.1)
ruby-progressbar (1.10.1)
simplecov (0.16.1)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (1.3.0)
parser (>= 2.7.1.5)
rubocop-rspec (2.1.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0)
simplecov (0.20.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
thor (0.20.0)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.8)
tzinfo (1.2.9)
thread_safe (~> 0.1)
unicode-display_width (1.6.1)
unicode-display_width (1.7.0)

PLATFORMS
ruby
x86_64-darwin-20
x86_64-linux

DEPENDENCIES
activerecord (= 5.1.5)
activerecord (~> 5.1, < 5.2)
appraisal
bundler (~> 2.1)
bundler (~> 2)
combustion (~> 1.1)
database_cleaner (~> 1.6)
parentry!
pg (~> 1.2)
pry (~> 0.10)
rake (~> 12.3)
rspec-rails (~> 3.7)
rubocop-rspec (~> 1.37)
simplecov (~> 0.16)
pry (~> 0.13)
rake (~> 13)
rspec-rails (~> 4.0)
rubocop-rspec (~> 2.1)
simplecov (~> 0.20)

BUNDLED WITH
2.1.4
2.2.3
2 changes: 1 addition & 1 deletion gemfiles/activerecord_5.2.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
source "https://rubygems.org"

gem "appraisal"
gem "activerecord", "5.2.0"
gem "activerecord", "~> 5.2", "< 6"

gemspec path: "../"
Loading

0 comments on commit 206f714

Please sign in to comment.