lib/google/cloud/storage/file/signer_v4.rb in google-cloud-storage-1.31.0 vs lib/google/cloud/storage/file/signer_v4.rb in google-cloud-storage-1.31.1

- old
+ new

@@ -127,10 +127,11 @@ hostname = signed_url_hostname scheme, virtual_hosted_style, bucket_bound_hostname "#{hostname}?#{canonical_query_str}&X-Goog-Signature=#{signature}" end # methods below are public visibility only for unit testing + # rubocop:disable Style/StringLiterals def escape_characters str str.split("").map do |s| if s.ascii_only? case s when "\\" @@ -153,9 +154,10 @@ else escape_special_unicode s end end.join end + # rubocop:enable Style/StringLiterals def escape_special_unicode str str.unpack("U*").map { |i| "\\u#{i.to_s(16).rjust(4, '0')}" }.join end