Skip to content

Commit d90a404

Browse files
committed
Note Ruby 2.4 with Rails 4.2.x build problems
1 parent 77af695 commit d90a404

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@ matrix:
1313
include:
1414
- rvm: 2.2.3
1515
env: RAILS_VERSION="4.2.5"
16+
# Rails doesn't officially support Ruby 2.4 yet (so also test latest stable)
17+
- rvm: 2.4.0
18+
env: RAILS_VERSION='4-2-stable'
19+
allow_failures:
20+
# Rails doesn't officially support Ruby 2.4 yet (so also test latest stable)
21+
- rvm: 2.4.0
22+
env: RAILS_VERSION='~> 4.2.0'
23+
- rvm: 2.4.0
24+
env: RAILS_VERSION='4-2-stable'
25+
# Rails doesn't officially support Ruby 2.4 yet (multiple fixes in pipeline)
26+
- rvm: 2.4.0
27+
env: RAILS_VERSION='~> 4.2.0'
1628
fast_finish: true

Gemfile-rails-dependencies

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@ version = ENV.fetch('RAILS_VERSION') {
44
}
55

66
if version && !version.empty?
7-
gem "rails", version
7+
if version.end_with?("stable")
8+
gem_list = %w[
9+
rails
10+
railties
11+
actionmailer
12+
actionpack
13+
activerecord
14+
activesupport
15+
activejob
16+
actionview
17+
]
18+
gem_list.each do |rails_gem|
19+
gem rails_gem, git: "https://github.com/rails/rails.git", branch: version
20+
end
21+
else
22+
gem "rails", version
23+
end
824
elsif RUBY_VERSION.to_f < 2.4
925
gem "rails", "~> 4.2.0"
1026
else

0 commit comments

Comments
 (0)