Skip to content

Commit a583e9c

Browse files
author
Bart de Water
committed
Remove Appraisal for handcrafted Gemfiles, determine Nokogiri dependency at runtime for Rails versions that can run older Rubies
f067b34 is an incorrect solution, Ruby 2.4.1 and Rails 4.2 is a valid combo and to have no deprecation warnings that combination requires Nokogiri >= 1.7.
1 parent 3882eca commit a583e9c

File tree

8 files changed

+10
-37
lines changed

8 files changed

+10
-37
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ matrix:
2121
exclude:
2222
- rvm: 2.4.1
2323
gemfile: gemfiles/rails_4.0.gemfile
24+
- rvm: ruby-head
25+
gemfile: gemfiles/rails_4.0.gemfile
2426
- rvm: 2.4.1
2527
gemfile: gemfiles/rails_4.1.gemfile
28+
- rvm: ruby-head
29+
gemfile: gemfiles/rails_4.1.gemfile
2630
- rvm: 1.9.3
2731
gemfile: gemfiles/rails_5.0.gemfile
2832
- rvm: 2.0.0

Appraisals

Lines changed: 0 additions & 20 deletions
This file was deleted.

gemfiles/rails_4.0.gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
2+
nokogiri_ver = RUBY_VERSION < '2.1' ? '1.6' : '1.7'
43

54
gem "actionpack", "~> 4.0.0"
65
gem "activerecord", "~> 4.0.0"
76
gem "railties", "~> 4.0.0"
8-
gem "nokogiri", "~> 1.6.0"
7+
gem 'nokogiri', "~> #{nokogiri_ver}.0"
98

109
gemspec :path => "../"

gemfiles/rails_4.1.gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
2+
nokogiri_ver = RUBY_VERSION < '2.1' ? '1.6' : '1.7'
43

54
gem "actionpack", "~> 4.1.0"
65
gem "activerecord", "~> 4.1.0"
76
gem "railties", "~> 4.1.0"
8-
gem "nokogiri", "~> 1.6.0"
7+
gem 'nokogiri', "~> #{nokogiri_ver}.0"
98

109
gemspec :path => "../"

gemfiles/rails_4.2.gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
2+
nokogiri_ver = RUBY_VERSION < '2.1' ? '1.6' : '1.7'
43

54
gem "actionpack", "~> 4.2.0"
65
gem "activerecord", "~> 4.2.0"
76
gem "railties", "~> 4.2.0"
8-
gem "nokogiri", "~> 1.6.0"
7+
gem 'nokogiri', "~> #{nokogiri_ver}.0"
98

109
gemspec :path => "../"

gemfiles/rails_5.0.gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
42

53
gem "actionpack", "~> 5.0.0"
64
gem "activerecord", "~> 5.0.0"
75
gem "railties", "~> 5.0.0"
8-
gem "nokogiri", "~> 1.7.0"
96

107
gemspec :path => "../"

gemfiles/rails_5.1.gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
42

53
gem "actionpack", "~> 5.1.0"
64
gem "activerecord", "~> 5.1.0"
75
gem "railties", "~> 5.1.0"
8-
gem "nokogiri", "~> 1.7.0"
96

107
gemspec :path => "../"

gemfiles/rails_edge.gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This file was generated by Appraisal
2-
31
source "https://rubygems.org"
42

53
git "https://github.com/rails/rails.git", :branch => "master" do

0 commit comments

Comments
 (0)