Skip to content

Commit 3ea0658

Browse files
committed
Fix install-time gem version incompatibilities
Gem::RuntimeRequirementNotMetError: public_suffix requires Ruby version >= 1.9.3. The current ruby version is 1.8. An error occurred while installing public_suffix (1.4.2), and Bundler cannot continue. Gem::RuntimeRequirementNotMetError: redcarpet requires Ruby version >= 1.9.2. The current ruby version is 1.8. An error occurred while installing redcarpet (3.1.1), and Bundler cannot continue. Gem::RuntimeRequirementNotMetError: rubyzip requires Ruby version >= 1.9.2. The current ruby version is 1.8. An error occurred while installing rubyzip (1.0.0), and Bundler cannot continue.
1 parent 56f338c commit 3ea0658

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ gem 'yard', '~> 0.9.24', :require => false
1111

1212
### deps for rdoc.info
1313
group :documentation do
14-
gem 'redcarpet'
15-
gem 'github-markup'
1614
if RUBY_VERSION > '2.0.0'
15+
gem 'redcarpet'
16+
gem 'github-markup'
1717
gem 'relish'
1818
end
1919
end
@@ -79,7 +79,7 @@ end
7979
if RUBY_VERSION <= '1.8.7'
8080
# cucumber and gherkin require rubyzip as a runtime dependency on 1.8.7
8181
# Only < 1.0 supports 1.8.7
82-
gem 'rubyzip', '<= 1.0'
82+
gem 'rubyzip', '< 1.0'
8383
elsif RUBY_VERSION < '2.4'
8484
gem 'rubyzip', '>= 1.2.2', '< 2.0.0'
8585
end

Gemfile-rails-dependencies

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ end
6767

6868
gem "nio4r", '< 2.4.0' if RUBY_VERSION < '2.3'
6969

70-
gem "public_suffix", '< 4.0.0' if RUBY_VERSION < '2.3'
70+
if RUBY_VERSION < '1.9.3'
71+
gem "public_suffix", '< 1.4.0'
72+
elsif RUBY_VERSION < '2.0'
73+
gem "public_suffix", '< 2.0.0'
74+
elsif RUBY_VERSION < '2.1'
75+
gem "public_suffix", '< 3.0.0'
76+
elsif RUBY_VERSION < '2.3'
77+
gem "public_suffix", '< 4.0.0'
78+
end
7179

7280
# rack 2.1.0 introduces a deprecation warning that rails is triggering,
7381
# but in later versions this warning is removed.

0 commit comments

Comments
 (0)