Skip to content

Commit

Permalink
Use nokogiri 1.6.x in old rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
josacar committed Jul 18, 2017
1 parent fa0a511 commit 45097d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gemspec.rb
Expand Up @@ -26,7 +26,11 @@ def specification(version, default_adapter, platform = nil)

s.add_dependency *default_adapter
s.add_dependency 'rouge', '~> 2.0'
s.add_dependency 'nokogiri', '>= 1.6.1', '< 2.0'
if RUBY_VERSION < '2.1'
s.add_dependency 'nokogiri', '~> 1.6.1'
else
s.add_dependency 'nokogiri', '>= 1.6.1', '< 2.0'
end
s.add_dependency 'stringex', '~> 2.6'
s.add_dependency 'sanitize', '~> 2.1'
s.add_dependency 'github-markup', '~> 1.6'
Expand Down

0 comments on commit 45097d1

Please sign in to comment.