Skip to content

Commit

Permalink
Fix an error when running "bundle install" on Ruby 2.0.0
Browse files Browse the repository at this point in the history
"bundle install" fails due to the following error:

```
Gem::InstallError: nokogiri requires Ruby version >= 2.1.0.
```

Because nokogiri gem dropped support for Ruby 2.0.0 on v1.7.0.
ref. https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md#170--2016-12-26
  • Loading branch information
yasaichi committed Jan 31, 2017
1 parent b7c5740 commit 0d74fcb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Appraisals
Expand Up @@ -2,12 +2,18 @@ appraise "sprockets-rails 2 with sprockets 2" do
gem "railties", "~> 4.0"
gem "sprockets-rails", "~> 2.0"
gem "sprockets", "~> 2.0"

# NOTE: nokogiri dropped support for Ruby 2.0.0 on v1.7.0
gem "nokogiri", "< 1.7.0"
end

appraise "sprockets-rails 2 with sprockets 3" do
gem "railties", "~> 4.0"
gem "sprockets-rails", "~> 2.0"
gem "sprockets", "~> 3.0"

# NOTE: nokogiri dropped support for Ruby 2.0.0 on v1.7.0
gem "nokogiri", "< 1.7.0"
end

appraise "sprockets-rails 3 with sprockets 3" do
Expand Down
1 change: 1 addition & 0 deletions gemfiles/sprockets_rails_2_with_sprockets_2.gemfile
Expand Up @@ -5,6 +5,7 @@ source "https://rubygems.org"
gem "railties", "~> 4.0"
gem "sprockets-rails", "~> 2.0"
gem "sprockets", "~> 2.0"
gem "nokogiri", "< 1.7.0"

group :development, :test do
gem "pry-byebug"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/sprockets_rails_2_with_sprockets_3.gemfile
Expand Up @@ -5,6 +5,7 @@ source "https://rubygems.org"
gem "railties", "~> 4.0"
gem "sprockets-rails", "~> 2.0"
gem "sprockets", "~> 3.0"
gem "nokogiri", "< 1.7.0"

group :development, :test do
gem "pry-byebug"
Expand Down

0 comments on commit 0d74fcb

Please sign in to comment.