Skip to content

Commit e0489d1

Browse files
authored
Update and test supported Ruby/Rails versions (#25)
1 parent d065899 commit e0489d1

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.github/workflows/CI.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
strategy:
1313
matrix:
1414
ruby:
15-
- 2.6
16-
- 2.7
15+
- '2.6'
16+
- '2.7'
17+
activerecord:
18+
- '5.2'
19+
- '6.0'
1720
services:
1821
postgres:
1922
image: postgres:12
@@ -28,7 +31,9 @@ jobs:
2831
--health-timeout 5s
2932
--health-retries 5
3033
31-
name: Ruby ${{ matrix.ruby }}
34+
name: Ruby ${{ matrix.ruby }} / ActiveRecord ${{ matrix.activerecord }}
35+
env:
36+
BUNDLE_GEMFILE: gemfiles/activerecord_${{ matrix.activerecord }}.gemfile
3237
steps:
3338
- uses: actions/checkout@v2
3439
- run: |

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/pkg/
88
/spec/reports/
99
/tmp/
10+
gemfiles/*.lock
11+
*.log

amountable.gemspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ Gem::Specification.new do |gem|
1515
gem.files = `git ls-files`.split($/)
1616
gem.test_files = gem.files.grep(%r{^spec/})
1717
gem.require_paths = ['lib']
18-
gem.required_ruby_version = '>= 2.1.1'
18+
gem.required_ruby_version = '>= 2.6'
1919

20-
gem.add_dependency 'activerecord', '>= 4.1', '< 6.1'
21-
gem.add_dependency 'activesupport', '>= 4.1'
20+
gem.add_dependency 'activerecord', '>= 5.2', '< 6.1'
2221
gem.add_dependency 'activerecord-import', '>= 0.19.1'
2322
gem.add_dependency 'money-rails', '>=1.7.0'
2423
gem.add_dependency 'monetize'

gemfiles/activerecord_5.2.gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: "../"
4+
5+
gem "activerecord", "~> 5.2.0"

gemfiles/activerecord_6.0.gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: "../"
4+
5+
gem "activerecord", "~> 6.0.0"

0 commit comments

Comments
 (0)