lib/groupdocs/api/helpers/url_helper.rb in groupdocs-1.5.1 vs lib/groupdocs/api/helpers/url_helper.rb in groupdocs-1.5.2
- old
+ new
@@ -29,28 +29,28 @@
def normalize_path
options[:path].gsub!(%r(//+), '/')
end
#
- # Parses path replacing {{client_id}} with real one.
- #
- # @api private
- #
- def parse_path
- options[:path].sub!(/\{\{client_id\}\}/, client_id)
- end
-
- #
# URL encodes path.
#
# @api private
#
def url_encode_path
options[:path] = URI.escape(options[:path])
# handle special symbols correctly
options[:path].gsub!('[', '%5B')
options[:path].gsub!(']', '%5D')
options[:path].gsub!('+', '%2B')
+ end
+
+ #
+ # Parses path replacing {{client_id}} with real one.
+ #
+ # @api private
+ #
+ def replace_client_id
+ options[:path].sub!(/\{\{client_id\}\}/, client_id)
end
#
# Adds signature to path.
#