roo-xls.gemspec in roo-xls-1.0.0 vs roo-xls.gemspec in roo-xls-1.1.0

- old
+ new

@@ -17,11 +17,16 @@ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] spec.add_dependency "roo", ">= 2.0.0beta1", "< 3" - spec.add_dependency "nokogiri" spec.add_dependency "spreadsheet", "> 0.9.0" + + if RUBY_VERSION >= '2.1' + spec.add_dependency "nokogiri" + else + spec.add_dependency "nokogiri", "~> 1.6.0" + end spec.add_development_dependency "bundler", ">= 1.7" spec.add_development_dependency "rake", ">= 10.0" end