Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use same gemspec everywhere

  • Loading branch information...
commit b44cae565876de527a74249fbe003e09487bf4dd 1 parent 9233dda
@fcheung authored
Showing with 26 additions and 71 deletions.
  1. +0 −1  Rakefile
  2. +26 −70 relaxdb.gemspec
View
1  Rakefile
@@ -23,7 +23,6 @@ spec = Gem::Specification.new do |s|
s.homepage = HOMEPAGE
s.add_dependency "extlib", "~> 0.9.4"
- s.add_dependency "json", "~> 1.4"
s.require_path = 'lib'
s.autorequire = PLUGIN
View
96 relaxdb.gemspec
@@ -1,75 +1,31 @@
# Updating the gemspec
# ruby -e 'Dir["spec/*"].each { |fn| puts "\"#{fn}\," }'
-Gem::Specification.new do |s|
- s.name = "relaxdb"
- s.version = "0.5.3"
- s.date = "2010-05-19"
- s.summary = "RelaxDB provides a simple interface to CouchDB"
- s.email = "paul.p.carey@gmail.com"
- s.homepage = "http://github.com/paulcarey/relaxdb/"
- s.has_rdoc = false
- s.authors = ["Paul Carey"]
- s.files = ["LICENSE",
- "README.textile",
- "readme.rb",
- "Rakefile",
- "docs/spec_results.html",
- "lib/relaxdb",
- "lib/relaxdb/all_delegator.rb",
- "lib/relaxdb/belongs_to_proxy.rb",
- "lib/relaxdb/cache.rb",
- "lib/relaxdb/design_doc.rb",
- "lib/relaxdb/document.rb",
- "lib/relaxdb/extlib.rb",
- "lib/relaxdb/has_many_proxy.rb",
- "lib/relaxdb/has_one_proxy.rb",
- "lib/relaxdb/net_http_server.rb",
- "lib/relaxdb/memcache_store.rb",
- "lib/relaxdb/migration.rb",
- "lib/relaxdb/migration_version.rb",
- "lib/relaxdb/paginate_params.rb",
- "lib/relaxdb/paginator.rb",
- "lib/relaxdb/query.rb",
- "lib/relaxdb/references_many_proxy.rb",
- "lib/relaxdb/relaxdb.rb",
- "lib/relaxdb/server.rb",
- "lib/relaxdb/uuid_generator.rb",
- "lib/relaxdb/taf2_curb_server.rb",
- "lib/relaxdb/validators.rb",
- "lib/relaxdb/view_by_delegator.rb",
- "lib/relaxdb/view_object.rb",
- "lib/relaxdb/view_result.rb",
- "lib/relaxdb/view_uploader.rb",
- "lib/relaxdb/views.rb",
- "lib/more/grapher.rb",
- "lib/relaxdb.rb",
- "spec/belongs_to_spec.rb",
- "spec/callbacks_spec.rb",
- "spec/derived_properties_spec.rb",
- "spec/design_doc_spec.rb",
- "spec/doc_inheritable_spec.rb",
- "spec/document_spec.rb",
- "spec/has_many_spec.rb",
- "spec/has_one_spec.rb",
- "spec/migration_spec.rb",
- "spec/migration_version_spec.rb",
- "spec/paginate_params_spec.rb",
- "spec/paginate_spec.rb",
- "spec/query_spec.rb",
- "spec/references_many_spec.rb",
- "spec/references_proxy_spec.rb",
- "spec/relaxdb_spec.rb",
- "spec/server_spec.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "spec/spec_models.rb",
- "spec/uuid_generator_spec.rb",
- "spec/view_docs_by_spec.rb",
- "spec/view_object_spec.rb"]
- s.bindir = "bin"
- s.autorequire = "relaxdb"
+PLUGIN = "relaxdb"
+NAME = "relaxdb"
+GEM_VERSION = "0.5.3"
+AUTHOR = "Paul Carey"
+EMAIL = "paul.p.carey@gmail.com"
+HOMEPAGE = "http://github.com/paulcarey/relaxdb/"
+SUMMARY = "RelaxDB provides a simple interface to CouchDB"
+
+spec = Gem::Specification.new do |s|
+ s.name = NAME
+ s.version = GEM_VERSION
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.textile", "LICENSE"]
+ s.summary = SUMMARY
+ s.description = s.summary
+ s.author = AUTHOR
+ s.email = EMAIL
+ s.homepage = HOMEPAGE
+
s.add_dependency "extlib", "~> 0.9.4"
- s.add_dependency "json", "~> 1.4"
- s.require_paths = ["lib"]
+
+ s.require_path = 'lib'
+ s.autorequire = PLUGIN
+ s.files = %w(LICENSE README.textile readme.rb Rakefile) + Dir.glob("{docs,lib,spec}/**/*")
end
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.