api_client.gemspec in api_client-0.1.4 vs api_client.gemspec in api_client-0.1.5
- old
+ new
@@ -11,12 +11,27 @@
s.summary = %q{API client builder}
s.description = %q{API client builder}
s.rubyforge_project = "api_client"
- s.add_dependency 'faraday', "=0.7.5"
- s.add_dependency 'hashie', "=1.2.0"
- s.add_dependency 'yajl-ruby'
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<faraday>, ["= 0.7.5"])
+ s.add_runtime_dependency(%q<hashie>, ["= 1.2.0"])
+ s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
+ else
+ s.add_dependency(%q<faraday>, ["= 0.7.5"])
+ s.add_dependency(%q<hashie>, ["= 1.2.0"])
+ s.add_dependency(%q<yajl-ruby>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<faraday>, ["= 0.7.5"])
+ s.add_dependency(%q<hashie>, ["= 1.2.0"])
+ s.add_dependency(%q<yajl-ruby>, [">= 0"])
+ end
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]