diff --git a/couchrest.gemspec b/couchrest.gemspec index c5fe71f..dd521fe 100644 --- a/couchrest.gemspec +++ b/couchrest.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = %q{couchrest} - s.version = "0.12.5" + s.version = "0.12.6" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["J. Chris Anderson"] diff --git a/lib/couchrest.rb b/lib/couchrest.rb index 09b7cf2..f55d606 100644 --- a/lib/couchrest.rb +++ b/lib/couchrest.rb @@ -25,7 +25,7 @@ require 'couchrest/monkeypatches' # = CouchDB, close to the metal module CouchRest - VERSION = '0.12.5' + VERSION = '0.12.6' autoload :Server, 'couchrest/core/server' autoload :Database, 'couchrest/core/database' diff --git a/lib/couchrest/core/database.rb b/lib/couchrest/core/database.rb index c960b81..36e3266 100644 --- a/lib/couchrest/core/database.rb +++ b/lib/couchrest/core/database.rb @@ -50,7 +50,7 @@ module CouchRest def slow_view funcs, params = {} keys = params.delete(:keys) funcs = funcs.merge({:keys => keys}) if keys - url = CouchRest.paramify_url "#{@root}/_slow_view", params + url = CouchRest.paramify_url "#{@root}/_temp_view", params JSON.parse(RestClient.post(url, funcs.to_json, {"Content-Type" => 'application/json'})) end