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

Version Path
aws-sdk-core-3.100.0 lib/seahorse/util.rb
aws-sdk-core-3.99.2 lib/seahorse/util.rb
aws-sdk-core-3.99.1 lib/seahorse/util.rb
aws-sdk-core-3.99.0 lib/seahorse/util.rb
aws-sdk-core-3.98.0 lib/seahorse/util.rb
aws-sdk-core-3.97.1 lib/seahorse/util.rb
aws-sdk-core-3.97.0 lib/seahorse/util.rb
aws-sdk-core-3.96.1 lib/seahorse/util.rb
aws-sdk-core-3.96.0 lib/seahorse/util.rb
aws-sdk-core-3.95.0 lib/seahorse/util.rb
aws-sdk-core-3.94.1 lib/seahorse/util.rb
aws-sdk-core-3.94.0 lib/seahorse/util.rb
aws-sdk-core-3.93.0 lib/seahorse/util.rb
aws-sdk-core-3.92.0 lib/seahorse/util.rb
aws-sdk-core-3.91.1 lib/seahorse/util.rb
aws-sdk-core-3.91.0 lib/seahorse/util.rb
aws-sdk-core-3.90.1 lib/seahorse/util.rb
aws-sdk-core-3.90.0 lib/seahorse/util.rb
aws-sdk-core-3.89.1 lib/seahorse/util.rb
aws-sdk-core-3.89.0 lib/seahorse/util.rb