Skip to content

Commit 88b6c05

Browse files
hammerheadamotl
authored andcommitted
Fix rspec on ruby 2.7
1 parent 2bc8092 commit 88b6c05

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
matrix:
2727
os: [ "ubuntu-latest" ]
28-
ruby-version: [ "2.4", "2.5", "2.6" ]
28+
ruby-version: [ "2.7" ]
2929

3030
services:
3131
cratedb:
@@ -54,7 +54,8 @@ jobs:
5454

5555
- name: Bundle install
5656
run: |
57-
gem install bundler
57+
# Remove version constraint once upgrading ruby itself
58+
gem install bundler -v 2.4.22
5859
bundle config path vendor/bundle
5960
bundle install
6061

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.8

activerecord-crate-adapter.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ Gem::Specification.new do |spec|
4646

4747
spec.add_development_dependency "bundler"
4848
spec.add_development_dependency "rake"
49-
spec.add_development_dependency "rspec", "~> 2.14"
49+
spec.add_development_dependency "rspec", "~> 3.13"
5050

5151
spec.add_dependency('activerecord', '~> 4.1.0')
5252
spec.add_dependency('arel', '>= 5.0.0')
5353
spec.add_dependency('crate_ruby', '~> 0.2.0')
54+
# https://github.com/ruby/bigdecimal#which-version-should-you-select
55+
spec.add_dependency('bigdecimal', '~> 1.4')
5456
end

0 commit comments

Comments
 (0)