Sha256: 0aa601e40ea207f1350dde08e70928d927d94f5c709a1aa9404812644df9d706
Contents?: true
Size: 320 Bytes
Versions: 109
Compression:
Stored size: 320 Bytes
Contents
require 'cgi' module Seahorse # @api private module Util class << self def uri_escape(string) CGI.escape(string.to_s.encode('UTF-8')).gsub('+', '%20').gsub('%7E', '~') end def uri_path_escape(path) path.gsub(/[^\/]+/) { |part| uri_escape(part) } end end end end
Version data entries
109 entries across 109 versions & 1 rubygems