updated gemspec and generator
This commit is contained in:
parent
98735aa38a
commit
e737e1173f
7
Rakefile
7
Rakefile
|
@ -19,8 +19,8 @@ spec = Gem::Specification.new do |s|
|
|||
s.bindir = 'bin'
|
||||
s.executables << 'couchview'
|
||||
s.executables << 'couchdir'
|
||||
s.add_dependency("json", [">= 1.1.2"])
|
||||
s.add_dependency("rest-client", [">= 0.5"])
|
||||
s.add_dependency("json", ">= 1.1.2")
|
||||
s.add_dependency("rest-client", ">= 0.5")
|
||||
end
|
||||
|
||||
namespace :github do # thanks merb!
|
||||
|
@ -36,8 +36,9 @@ namespace :github do # thanks merb!
|
|||
next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?)
|
||||
if name == "dependencies"
|
||||
value.each do |d|
|
||||
puts d.to_s
|
||||
dep, *ver = d.to_s.split(" ")
|
||||
result << " s.add_dependency #{dep.inspect}, #{ver.join(" ").inspect.gsub(/[()]/, "")}\n"
|
||||
result << " s.add_dependency #{dep.inspect}, [#{ /\(([^\,]*)/ . match(ver.join(" "))[1].inspect}]\n"
|
||||
end
|
||||
else
|
||||
case value
|
||||
|
|
|
@ -69,7 +69,7 @@ Gem::Specification.new do |s|
|
|||
s.platform = "ruby"
|
||||
s.summary = "Lean and RESTful interface to CouchDB."
|
||||
s.description = "CouchRest provides a simple interface on top of CouchDB's RESTful HTTP API, as well as including some utility scripts for managing views and attachments."
|
||||
s.add_dependency "json", ">= 1.1.2, runtime"
|
||||
s.add_dependency "rest-client", ">= 0.5, runtime"
|
||||
s.add_dependency "json", [">= 1.1.2"]
|
||||
s.add_dependency "rest-client", [">= 0.5"]
|
||||
s.require_paths = ["lib"]
|
||||
end
|
Loading…
Reference in a new issue