From afa19a74a10e69f740ef390cd51baf99d33ae7a6 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Tue, 30 Sep 2008 10:22:17 -0700 Subject: [PATCH] rev gem version to 0.9.9 --- Rakefile | 60 +++++++++++++++++++++++------------------------ couchrest.gemspec | 15 ++++++++++-- 2 files changed, 42 insertions(+), 33 deletions(-) diff --git a/Rakefile b/Rakefile index e50faf0..c06fccb 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ require 'spec/rake/spectask' spec = Gem::Specification.new do |s| s.name = "couchrest" - s.version = "0.9.8" + s.version = "0.9.9" s.date = "2008-09-11" s.summary = "Lean and RESTful interface to CouchDB." s.email = "jchris@grabb.it" @@ -25,40 +25,38 @@ spec = Gem::Specification.new do |s| s.add_dependency("extlib", ">= 0.9.6") end -namespace :github do # thanks merb! - desc "Update Github Gemspec" - task :update_gemspec do - skip_fields = %w(new_platform original_platform) - integer_fields = %w(specification_version) +desc "Update Github Gemspec" +task :gemspec do + skip_fields = %w(new_platform original_platform) + integer_fields = %w(specification_version) - result = "Gem::Specification.new do |s|\n" - spec.instance_variables.each do |ivar| - value = spec.instance_variable_get(ivar) - name = ivar.split("@").last - next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?) - if name == "dependencies" - value.each do |d| - dep, *ver = d.to_s.split(" ") - result << " s.add_dependency #{dep.inspect}, [#{ /\(([^\,]*)/ . match(ver.join(" "))[1].inspect}]\n" - end - else - case value - when Array - value = name != "files" ? value.inspect : value.inspect.split(",").join(",\n") - when Fixnum - # leave as-is - when String - value = value.to_i if integer_fields.include?(name) - value = value.inspect - else - value = value.to_s.inspect - end - result << " s.#{name} = #{value}\n" + result = "Gem::Specification.new do |s|\n" + spec.instance_variables.each do |ivar| + value = spec.instance_variable_get(ivar) + name = ivar.split("@").last + next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?) + if name == "dependencies" + value.each do |d| + dep, *ver = d.to_s.split(" ") + result << " s.add_dependency #{dep.inspect}, [#{ /\(([^\,]*)/ . match(ver.join(" "))[1].inspect}]\n" end + else + case value + when Array + value = name != "files" ? value.inspect : value.inspect.split(",").join(",\n") + when Fixnum + # leave as-is + when String + value = value.to_i if integer_fields.include?(name) + value = value.inspect + else + value = value.to_s.inspect + end + result << " s.#{name} = #{value}\n" end - result << "end" - File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w"){|f| f << result} end + result << "end" + File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w"){|f| f << result} end desc "Run all specs" diff --git a/couchrest.gemspec b/couchrest.gemspec index 882374a..fd78e5b 100644 --- a/couchrest.gemspec +++ b/couchrest.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |s| s.extra_rdoc_files = ["README.rdoc", "LICENSE", "THANKS"] - s.date = "Thu Sep 11 00:00:00 -0400 2008" + s.date = "Thu Sep 11 00:00:00 -0700 2008" s.executables = ["couchview", "couchdir", "couchapp"] s.authors = ["J. Chris Anderson"] s.required_rubygems_version = ">= 0" - s.version = "0.9.8" + s.version = "0.9.9" s.files = ["LICENSE", "README.rdoc", "Rakefile", @@ -32,6 +32,7 @@ Gem::Specification.new do |s| "lib/couchrest/commands/push.rb", "lib/couchrest/core", "lib/couchrest/core/database.rb", + "lib/couchrest/core/model.rb", "lib/couchrest/core/server.rb", "lib/couchrest/helper", "lib/couchrest/helper/file_manager.rb", @@ -44,6 +45,9 @@ Gem::Specification.new do |s| "lib/couchrest/monkeypatches.rb", "lib/couchrest.rb", "spec/couchapp_spec.rb", + "spec/couchrest", + "spec/couchrest/core", + "spec/couchrest/core/model_spec.rb", "spec/couchrest_spec.rb", "spec/database_spec.rb", "spec/file_manager_spec.rb", @@ -57,6 +61,12 @@ Gem::Specification.new do |s| "spec/fixtures/couchapp/views/example-map.js", "spec/fixtures/couchapp/views/example-reduce.js", "spec/fixtures/couchapp-test", + "spec/fixtures/couchapp-test/my-app", + "spec/fixtures/couchapp-test/my-app/attachments", + "spec/fixtures/couchapp-test/my-app/attachments/index.html", + "spec/fixtures/couchapp-test/my-app/views", + "spec/fixtures/couchapp-test/my-app/views/example-map.js", + "spec/fixtures/couchapp-test/my-app/views/example-reduce.js", "spec/fixtures/views", "spec/fixtures/views/lib.js", "spec/fixtures/views/test_view", @@ -84,5 +94,6 @@ Gem::Specification.new do |s| 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"] s.add_dependency "rest-client", [">= 0.5"] + s.add_dependency "extlib", [">= 0.9.6"] s.require_paths = ["lib"] end \ No newline at end of file