updated gemspec and generator
This commit is contained in:
parent
98735aa38a
commit
e737e1173f
2 changed files with 6 additions and 5 deletions
7
Rakefile
7
Rakefile
|
@ -19,8 +19,8 @@ spec = Gem::Specification.new do |s|
|
||||||
s.bindir = 'bin'
|
s.bindir = 'bin'
|
||||||
s.executables << 'couchview'
|
s.executables << 'couchview'
|
||||||
s.executables << 'couchdir'
|
s.executables << 'couchdir'
|
||||||
s.add_dependency("json", [">= 1.1.2"])
|
s.add_dependency("json", ">= 1.1.2")
|
||||||
s.add_dependency("rest-client", [">= 0.5"])
|
s.add_dependency("rest-client", ">= 0.5")
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :github do # thanks merb!
|
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?)
|
next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?)
|
||||||
if name == "dependencies"
|
if name == "dependencies"
|
||||||
value.each do |d|
|
value.each do |d|
|
||||||
|
puts d.to_s
|
||||||
dep, *ver = d.to_s.split(" ")
|
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
|
end
|
||||||
else
|
else
|
||||||
case value
|
case value
|
||||||
|
|
|
@ -69,7 +69,7 @@ Gem::Specification.new do |s|
|
||||||
s.platform = "ruby"
|
s.platform = "ruby"
|
||||||
s.summary = "Lean and RESTful interface to CouchDB."
|
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.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 "json", [">= 1.1.2"]
|
||||||
s.add_dependency "rest-client", ">= 0.5, runtime"
|
s.add_dependency "rest-client", [">= 0.5"]
|
||||||
s.require_paths = ["lib"]
|
s.require_paths = ["lib"]
|
||||||
end
|
end
|
Loading…
Add table
Reference in a new issue