From f8b80daef6f5391ca61ea40a3749fa29f9ed3bd5 Mon Sep 17 00:00:00 2001 From: Geoffrey Grosenbach Date: Fri, 12 Sep 2008 15:34:23 -0700 Subject: [PATCH] Fix specification_version that was causing an error when installing from gem --- Rakefile | 4 +++- couchrest.gemspec | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 06db197..5312aaa 100644 --- a/Rakefile +++ b/Rakefile @@ -40,10 +40,12 @@ namespace :github do # thanks merb! dep, *ver = d.to_s.split(" ") result << " s.add_dependency #{dep.inspect}, [#{ /\(([^\,]*)/ . match(ver.join(" "))[1].inspect}]\n" end - else + 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 diff --git a/couchrest.gemspec b/couchrest.gemspec index 98a9d2e..6018ffd 100644 --- a/couchrest.gemspec +++ b/couchrest.gemspec @@ -1,6 +1,6 @@ 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"] s.authors = ["J. Chris Anderson"] s.required_rubygems_version = ">= 0" @@ -58,7 +58,7 @@ Gem::Specification.new do |s| "utils/remap.rb", "utils/subset.rb"] s.has_rdoc = "true" - s.specification_version = "2" + s.specification_version = 2 s.loaded = "false" s.email = "jchris@grabb.it" s.name = "couchrest"