contentful 2.16.2 → 2.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c77c841eb951e64584e685f03ce1d0da8534420e162f336330813c877481c12e
4
- data.tar.gz: 52b7416520d57ffba83e2f06490714fd620c4553c8f3dd8ede4361f411879c9c
3
+ metadata.gz: 4624711e7107b359d434d25cd80d630befeea1e102644a77e661d39a75bb11ab
4
+ data.tar.gz: 2c98524d5540abdf4631d919285b7fe0d892893d98cde8e53fbb2231639336f8
5
5
  SHA512:
6
- metadata.gz: 5a64c6adfc0fabf56f44b87e12b3df902bcfaa43b2282b0e52f04bed468e8137263b8ad67622b16987480a1c7bf95e4a6e6eb94cd2fc6fb653442ac0dcca3769
7
- data.tar.gz: 80a5851644694f7967b1e3e38db6e11cf03f06bb4463a4bf9fa23b37dfc6ca80a8bb8152c0332515cfa7b56952b7a6c59434522312814988940864c9e0c304aa
6
+ metadata.gz: f173fb7196031ab788394a0cc657342cbbb07210a2ffd7dd6faf3f330ab52fe497d718686e04d868acbe88f4425459ae2a4858dcd66df5544bc8c33b766679ba
7
+ data.tar.gz: 527960b745300f48f8b5ceffd668bd086b01c266fbe5dccaeff4b91f5a6d973535ce2bc2160c1ce247fa1d2936c029514a8ccb39cff67916230a6bc00e85230b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.16.3
6
+ ### Fixed
7
+ * Fixed an issue where `raw['metadata']` was unexpectedly overwritten by `BaseResource#hydrate_metadata` method.
8
+
5
9
  ## 2.16.2
6
10
  ### Fixed
7
11
  * Fixed an issue where entry's `raw['fields']` was unexpectedly overwritten by `FieldsResource#raw_with_links` method.
@@ -98,7 +98,7 @@ module Contentful
98
98
  def hydrate_metadata
99
99
  result = {}
100
100
  raw.fetch('metadata', {}).each do |k, v|
101
- v.map! { |tag| build_link(tag) } if k == 'tags'
101
+ v = v.map { |tag| build_link(tag) } if k == 'tags'
102
102
  result[Support.snakify(k, @configuration[:use_camel_case]).to_sym] = v
103
103
  end
104
104
  result
@@ -1,5 +1,5 @@
1
1
  # Contentful Namespace
2
2
  module Contentful
3
3
  # Gem Version
4
- VERSION = '2.16.2'
4
+ VERSION = '2.16.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.2
4
+ version: 2.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (Jan Lelis)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-01-04 00:00:00.000000000 Z
13
+ date: 2022-01-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http