Sha256: 4eef39849f08c2ac40a2d6e3050851cf977a681d43605a6fe9fc2b9d0adc8ce2
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
module Riak module Util module Escape # CGI-escapes bucket or key names that may contain slashes for use in URLs. # @param [String] bucket_or_key the bucket or key name # @return [String] the escaped path segment def escape(bucket_or_key) CGI.escape(bucket_or_key.to_s).gsub("+", "%20") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riak-client-0.8.0.beta2 | lib/riak/util/escape.rb |
riak-client-0.8.0.beta | lib/riak/util/escape.rb |