lib/riak/client.rb in ripple-0.6.0 vs lib/riak/client.rb in ripple-0.6.1

- old
+ new

@@ -15,10 +15,11 @@ module Riak # A client connection to Riak. class Client include Util::Translation + include Util::Escape autoload :HTTPBackend, "riak/client/http_backend" autoload :NetHTTPBackend, "riak/client/net_http_backend" autoload :CurbBackend, "riak/client/curb_backend" @@ -114,10 +115,10 @@ # @option options [Boolean] :keys (true) whether to retrieve the bucket keys # @option options [Boolean] :props (true) whether to retreive the bucket properties # @return [Bucket] the requested bucket def bucket(name, options={}) options.assert_valid_keys(:keys, :props) - response = http.get(200, prefix, name, options, {}) + response = http.get(200, prefix, escape(name), options, {}) Bucket.new(self, name).load(response) end alias :[] :bucket # @return [String] A representation suitable for IRB and debugging output.