contentful-management 3.6.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9945ef61ea841e1f83ad391afb7357f4b0a5dff52b5e783db87fffe702615c32
4
- data.tar.gz: d96b10bfd523771b0161e8fc68263efff2cd3dfba0af7b93ab92e96a77299b9f
3
+ metadata.gz: 48205cbf594bc68a7aff1b7017b9a46c4674c49c59af0294dd3ac16fe779deb1
4
+ data.tar.gz: 19138b713d5061b4730545a8952267904015963f5f5a06803bb3ae8ab63320fd
5
5
  SHA512:
6
- metadata.gz: e67cf1768b981723e1a1de202bd208c14e8ce57e84d79add3632f1c813766298ce9ba37263659f7692a60f2d92b17523da0b5d441c327414b14633c95799424c
7
- data.tar.gz: bac2a142ac94353c09f4ea59003b5583a540c5ff7981c0d336e5a8417224f374fdc05ea7fad3f2888067e6a6151ce4ff377417e27faf6ffd52118163b63deb39
6
+ metadata.gz: ebb8d595852045a00a7a826584316799d36b58ec2953d5ef136d4e91d06a85e938c474a5c2cc6cde808fc5a59000c47bccaad43909a227b53479a084b2383fd8
7
+ data.tar.gz: d5f33999d52caeb9a63d08dd27c386ddf1e88c01977cda743cec149870fd853d3a9d3e157d52b708aaa25cea916385d4c8d0c24511cb752784a59eb435430189
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Change Log
2
2
 
3
- ## Master
3
+ ## 3.7.0
4
+ * Replaces deprecated `URI.escape` with `URI.encode_www_form_component` in Contentful::Management::Request#id
5
+ * Configured VCR to redact sensitive data
4
6
 
5
7
  ## 3.6.0
6
8
  * Updated readme for Entry References
@@ -24,7 +24,7 @@ module Contentful
24
24
 
25
25
  if id
26
26
  @type = :single
27
- @id = URI.escape(id)
27
+ @id = URI.encode_www_form_component(id)
28
28
  else
29
29
  @type = :multi
30
30
  @id = nil
@@ -3,6 +3,6 @@ module Contentful
3
3
  # Management Namespace
4
4
  module Management
5
5
  # Gem Version
6
- VERSION = '3.6.0'.freeze
6
+ VERSION = '3.7.0'.freeze
7
7
  end
8
8
  end
data/spec/support/vcr.rb CHANGED
@@ -5,6 +5,15 @@ VCR.configure do |c|
5
5
  c.ignore_localhost = true
6
6
  c.hook_into :webmock
7
7
  c.default_cassette_options = {record: :once}
8
+
9
+ # Redact Contentful Management API tokens from VCR recordings
10
+ c.filter_sensitive_data('<ACCESS_TOKEN>') do |interaction|
11
+ if (auths = interaction.request.headers['Authorization']&.first)
12
+ if (match = auths.match(/^Bearer\s+([^,\s]+)/))
13
+ match.captures.first
14
+ end
15
+ end
16
+ end
8
17
  end
9
18
 
10
19
  def vcr(name, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Protas
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-09-21 00:00:00.000000000 Z
13
+ date: 2022-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -834,7 +834,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
834
834
  - !ruby/object:Gem::Version
835
835
  version: '0'
836
836
  requirements: []
837
- rubygems_version: 3.1.2
837
+ rubygems_version: 3.1.6
838
838
  signing_key:
839
839
  specification_version: 4
840
840
  summary: contentful management api