From 75d371a4faaeef99a6602ab8375a07817cfb261c Mon Sep 17 00:00:00 2001 From: Gary Hepting Date: Thu, 8 Dec 2022 15:19:05 -0500 Subject: [PATCH] address deprecation of URI.escape in uri v0.10.1 (see: https://github.com/ruby/uri/pull/9) --- CHANGELOG.md | 3 ++- lib/contentful/management/request.rb | 2 +- lib/contentful/management/version.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 666012fd..ad41c110 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/contentful/management/request.rb b/lib/contentful/management/request.rb index 6fcfa892..adfe44a9 100644 --- a/lib/contentful/management/request.rb +++ b/lib/contentful/management/request.rb @@ -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 diff --git a/lib/contentful/management/version.rb b/lib/contentful/management/version.rb index 21f25bba..a16d9bf1 100644 --- a/lib/contentful/management/version.rb +++ b/lib/contentful/management/version.rb @@ -3,6 +3,6 @@ module Contentful # Management Namespace module Management # Gem Version - VERSION = '3.6.0'.freeze + VERSION = '3.6.1'.freeze end end