Skip to content

Commit b999eb9

Browse files
authored
Merge pull request SAML-Toolkits#368 from onelogin/nokogiri_gemfile
Fix nokogiri requirements based on ruby version
2 parents bb66830 + 6291fb8 commit b999eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby-saml.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ Gem::Specification.new do |s|
2525
s.summary = %q{SAML Ruby Tookit}
2626
s.test_files = `git ls-files test/*`.split("\n")
2727

28-
29-
3028
# Because runtime dependencies are determined at build time, we cannot make
3129
# Nokogiri's version dependent on the Ruby version, even though we would
3230
# have liked to constrain Ruby 1.8.7 to install only the 1.5.x versions.
@@ -36,6 +34,8 @@ Gem::Specification.new do |s|
3634
elsif RUBY_VERSION < '1.9'
3735
s.add_runtime_dependency('uuid')
3836
s.add_runtime_dependency('nokogiri', '<= 1.5.11')
37+
elsif RUBY_VERSION < '2.1'
38+
s.add_runtime_dependency('nokogiri', '>= 1.5.10', '<= 1.6.8.1')
3939
else
4040
s.add_runtime_dependency('nokogiri', '>= 1.5.10')
4141
end

0 commit comments

Comments
 (0)