Skip to content

Commit

Permalink
address deprecation of URI.escape in uri v0.10.1 (see: ruby/uri#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Hepting committed Dec 8, 2022
1 parent 6cc9061 commit 75d371a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Change Log

## Master
## 3.6.1
* Replaces deprecated `URI.escape` with `URI.encode_www_form_component` in Contentful::Management::Request#id
* Configured VCR to redact sensitive data

## 3.6.0
Expand Down
2 changes: 1 addition & 1 deletion lib/contentful/management/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(client, endpoint, query = {}, id = nil, headers = {})

if id
@type = :single
@id = URI.escape(id)
@id = URI.encode_www_form_component(id)
else
@type = :multi
@id = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/contentful/management/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module Contentful
# Management Namespace
module Management
# Gem Version
VERSION = '3.6.0'.freeze
VERSION = '3.6.1'.freeze
end
end

0 comments on commit 75d371a

Please sign in to comment.