contentful 2.16.1 → 2.16.2

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: 178d059e2b0f47f47f3bc5e44208a42ed68c58858d1f6e1b1b9a4cb5c09348f7
4
- data.tar.gz: cb357eff26d47ce5eeea5038e562320dd27141d6c225a246afa4b13c3e3da723
3
+ metadata.gz: c77c841eb951e64584e685f03ce1d0da8534420e162f336330813c877481c12e
4
+ data.tar.gz: 52b7416520d57ffba83e2f06490714fd620c4553c8f3dd8ede4361f411879c9c
5
5
  SHA512:
6
- metadata.gz: c80c6476e99f7ce91d479e89a4d9cc683d11fbc1547f6bc983a6da03dc7c79709555925c7c972190b0090d591cdb653006ac1baa157433e771e7289224581b53
7
- data.tar.gz: df5b8dc4ec81cbe7747c7c39b701836b89559da678cf8335531a2906a5ad39129a498c83dae318f40d4c284c453313f99521b29475b625295ad0280ddf5c5564
6
+ metadata.gz: 5a64c6adfc0fabf56f44b87e12b3df902bcfaa43b2282b0e52f04bed468e8137263b8ad67622b16987480a1c7bf95e4a6e6eb94cd2fc6fb653442ac0dcca3769
7
+ data.tar.gz: 80a5851644694f7967b1e3e38db6e11cf03f06bb4463a4bf9fa23b37dfc6ca80a8bb8152c0332515cfa7b56952b7a6c59434522312814988940864c9e0c304aa
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.16.2
6
+ ### Fixed
7
+ * Fixed an issue where entry's `raw['fields']` was unexpectedly overwritten by `FieldsResource#raw_with_links` method.
8
+
5
9
  ## 2.16.1
6
10
  * Removed unncessary files from gem release package.
7
11
 
data/README.md CHANGED
@@ -10,10 +10,10 @@
10
10
  </a>
11
11
  </p>
12
12
 
13
- # contentful.rb - Contentful Ruby Delivery SDK
13
+ # contentful.rb - Contentful Ruby Delivery Library
14
14
  [![Gem Version](https://badge.fury.io/rb/contentful.png)](http://badge.fury.io/rb/contentful)
15
15
 
16
- > Ruby SDK for the Contentful [Content Delivery API](https://www.contentful.com/developers/docs/references/content-delivery-api/) and [Content Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). It helps you to easily access your Content stored in Contentful with your Ruby applications.
16
+ > Ruby library for the Contentful [Content Delivery API](https://www.contentful.com/developers/docs/references/content-delivery-api/) and [Content Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). It helps you to easily access your Content stored in Contentful with your Ruby applications.
17
17
 
18
18
  <p align="center">
19
19
  <img src="https://img.shields.io/badge/Status-Maintained-green.svg" alt="This repository is actively maintained" /> &nbsp;
@@ -45,12 +45,12 @@
45
45
 
46
46
  <!-- TOC -->
47
47
 
48
- - [contentful.rb - Contentful Ruby Delivery SDK](#contentfulrb---contentful-ruby-delivery-sdk)
48
+ - [contentful.rb - Contentful Ruby Delivery library](#contentfulrb---contentful-ruby-delivery-library)
49
49
  - [Core Features](#core-features)
50
50
  - [Getting started](#getting-started)
51
51
  - [Installation](#installation)
52
52
  - [Your first request](#your-first-request)
53
- - [Using this SDK with the Preview API](#using-this-sdk-with-the-preview-api)
53
+ - [Using this library with the Preview API](#using-this-library-with-the-preview-api)
54
54
  - [Authentication](#authentication)
55
55
  - [Documentation & References](#documentation--references)
56
56
  - [Configuration](#configuration)
@@ -94,11 +94,11 @@
94
94
 
95
95
  ## Getting started
96
96
 
97
- In order to get started with the Contentful Ruby SDK you'll need not only to install it, but also to get credentials which will allow you to have access to your content in Contentful.
97
+ In order to get started with the Contentful Ruby library you'll need not only to install it, but also to get credentials which will allow you to have access to your content in Contentful.
98
98
 
99
99
  - [Installation](#installation)
100
100
  - [Your first request](#your-first-request)
101
- - [Using this SDK with the Preview API](#using-this-sdk-with-the-preview-api)
101
+ - [Using this library with the Preview API](#using-this-library-with-the-preview-api)
102
102
  - [Authentication](#authentication)
103
103
  - [Documentation & References](#documentation--references)
104
104
 
@@ -118,7 +118,7 @@ gem i contentful
118
118
 
119
119
  ### Your first request
120
120
 
121
- The following code snippet is the most basic one you can use to get some content from Contentful with this SDK:
121
+ The following code snippet is the most basic one you can use to get some content from Contentful with this library:
122
122
 
123
123
  ```ruby
124
124
  require 'contentful'
@@ -132,9 +132,9 @@ client = Contentful::Client.new(
132
132
  entry = client.entry('nyancat')
133
133
  ```
134
134
 
135
- ### Using this SDK with the Preview API
135
+ ### Using this library with the Preview API
136
136
 
137
- This SDK can also be used with the Preview API. In order to do so, you need to use the Preview API Access token, available on the same page where you get the Delivery API token, and specify the host of the preview API, such as:
137
+ This library can also be used with the Preview API. In order to do so, you need to use the Preview API Access token, available on the same page where you get the Delivery API token, and specify the host of the preview API, such as:
138
138
 
139
139
  ```ruby
140
140
  require 'contentful'
@@ -168,7 +168,7 @@ For more information, check the [Contentful REST API reference on Authentication
168
168
  - [Migrating to 2.x](#migrating-to-2x)
169
169
 
170
170
 
171
- To help you get the most out of this SDK, we've prepared all available client configuration options, reference documentation, tutorials and other examples that will help you learn and understand how to use this library.
171
+ To help you get the most out of this library, we've prepared all available client configuration options, reference documentation, tutorials and other examples that will help you learn and understand how to use this library.
172
172
 
173
173
  ### Configuration
174
174
 
@@ -287,7 +287,7 @@ client = Contentful::Client.new(
287
287
  <td><code>max_include_resolution_depth</code></td>
288
288
  <td><code>20</code></td>
289
289
  <td>
290
- Maximum amount of levels to resolve includes for SDK entities
290
+ Maximum amount of levels to resolve includes for library entities
291
291
  (this is independent of API-level includes - it represents the maximum depth the include resolution
292
292
  tree is allowed to resolved before falling back to <code>Link</code> objects).
293
293
  This include resolution strategy is in place in order to avoid having infinite circular recursion on resources with circular dependencies.
@@ -67,6 +67,7 @@ module Contentful
67
67
  def raw_with_links
68
68
  links = fields.keys.select { |property| known_link?(property) }
69
69
  processed_raw = raw.clone
70
+ processed_raw['fields'] = raw['fields'].clone
70
71
  raw['fields'].each do |k, v|
71
72
  links_key = Support.snakify(k, @configuration[:use_camel_case])
72
73
  processed_raw['fields'][k] = links.include?(links_key.to_sym) ? send(links_key) : v
@@ -1,5 +1,5 @@
1
1
  # Contentful Namespace
2
2
  module Contentful
3
3
  # Gem Version
4
- VERSION = '2.16.1'
4
+ VERSION = '2.16.2'
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: 2.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (Jan Lelis)
8
8
  - Contentful GmbH (Andreas Tiefenthaler)
9
9
  - Contentful GmbH (David Litvak Bruno)
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-30 00:00:00.000000000 Z
13
+ date: 2022-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -283,7 +283,7 @@ homepage: https://github.com/contentful/contentful.rb
283
283
  licenses:
284
284
  - MIT
285
285
  metadata: {}
286
- post_install_message:
286
+ post_install_message:
287
287
  rdoc_options: []
288
288
  require_paths:
289
289
  - lib
@@ -298,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  - !ruby/object:Gem::Version
299
299
  version: '0'
300
300
  requirements: []
301
- rubygems_version: 3.0.3
302
- signing_key:
301
+ rubygems_version: 3.1.2
302
+ signing_key:
303
303
  specification_version: 4
304
304
  summary: contentful
305
305
  test_files: []