Skip to content

Commit ca30c1c

Browse files
committed
CI. Run against Rails 4.2 on Ruby 2.7
1 parent cafa05d commit ca30c1c

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

.travis.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rvm:
66
- ruby-2.4.6
77
- ruby-2.5.5
88
- ruby-2.6.3
9+
- ruby-2.7.0
910
- jruby-9.2.14.0
1011
gemfile:
1112
- gemfiles/rails_4_2.gemfile
@@ -16,15 +17,6 @@ gemfile:
1617

1718
matrix:
1819
include:
19-
# Ruby 2.7
20-
# Rails works with Ruby 2.7 only from Rails 5.0
21-
- rvm: ruby-2.7.0
22-
gemfile: gemfiles/rails_5_0.gemfile
23-
- rvm: ruby-2.7.0
24-
gemfile: gemfiles/rails_5_1.gemfile
25-
- rvm: ruby-2.7.0
26-
gemfile: gemfiles/rails_5_2.gemfile
27-
2820
# Rails 6.0
2921
# It requires Ruby 2.5 and above
3022
- rvm: ruby-2.5.3

Appraisals

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
appraise 'rails-4-2' do
44
gem 'activemodel', '~> 4.2.0'
5+
6+
# Add bigdecimal gem to support Ruby 2.7 and above:
7+
# https://github.com/rails/rails/issues/34822
8+
9+
# Compatibility with Ruby versions:
10+
# https://github.com/ruby/bigdecimal#which-version-should-you-select
11+
#
12+
# Actually bigdecimal 1.4.x works on all the Ruby versions till Ruby 3.0
13+
gem 'bigdecimal', '~> 1.4.0', platform: :mri
514
end
615

716
appraise 'rails-5-0' do

gemfiles/rails_4_2.gemfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# frozen_string_literal: true
2-
31
# This file was generated by Appraisal
42

5-
source 'https://rubygems.org'
3+
source "https://rubygems.org"
64

7-
gem 'activemodel', '~> 4.2.0'
8-
gem 'nokogiri', '~> 1.6.8'
9-
gem 'pry-byebug', platforms: :ruby
5+
gem "pry-byebug", platforms: :ruby
6+
gem "activemodel", "~> 4.2.0"
7+
gem "bigdecimal", "~> 1.4.0", platform: :mri
108

11-
gemspec path: '../'
9+
gemspec path: "../"

0 commit comments

Comments
 (0)