From e4e3e8750843ff0d9dfc2d15abe039151cf33da1 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Tue, 31 Dec 2013 04:00:36 -0600 Subject: [PATCH] get rid of double dependency error --- neography.gemspec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/neography.gemspec b/neography.gemspec index 1b85d66..08d188b 100644 --- a/neography.gemspec +++ b/neography.gemspec @@ -22,12 +22,17 @@ Gem::Specification.new do |s| s.add_development_dependency "rspec", ">= 2.11" s.add_development_dependency "net-http-spy", "0.2.1" - s.add_development_dependency "rake", ">= 0.8.7" s.add_development_dependency "coveralls" s.add_dependency "httpclient", ">= 2.3.3" - s.add_dependency "rake", ">= 0.8.7" s.add_dependency "json", ">= 1.7.7" s.add_dependency "os", ">= 0.9.6" s.add_dependency "rubyzip", ">= 1.0.0" s.add_dependency "multi_json", ">= 1.3.2" + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency 'rake', '>= 0.8.7' + else + s.add_development_dependency "rake", ">= 0.8.7" + s.add_dependency "rake", ">= 0.8.7" + end end