contentful 2.10.0 → 2.10.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/coverage/.resultset.json +306 -275
- data/coverage/index.html +1347 -1161
- data/doc/Contentful/AccessDenied.html +1 -1
- data/doc/Contentful/Array.html +1 -1
- data/doc/Contentful/ArrayCoercion.html +1 -1
- data/doc/Contentful/ArrayLike.html +1 -1
- data/doc/Contentful/Asset.html +1 -1
- data/doc/Contentful/BadGateway.html +1 -1
- data/doc/Contentful/BadRequest.html +1 -1
- data/doc/Contentful/BaseCoercion.html +1 -1
- data/doc/Contentful/BaseResource.html +1 -1
- data/doc/Contentful/BooleanCoercion.html +1 -1
- data/doc/Contentful/Client.html +1 -1
- data/doc/Contentful/ContentType.html +1 -1
- data/doc/Contentful/ContentTypeCache.html +1 -1
- data/doc/Contentful/DateCoercion.html +1 -1
- data/doc/Contentful/DeletedAsset.html +1 -1
- data/doc/Contentful/DeletedEntry.html +1 -1
- data/doc/Contentful/Entry.html +1 -1
- data/doc/Contentful/Error.html +1 -1
- data/doc/Contentful/Field.html +1 -1
- data/doc/Contentful/FieldsResource.html +13 -11
- data/doc/Contentful/File.html +1 -1
- data/doc/Contentful/FloatCoercion.html +1 -1
- data/doc/Contentful/IntegerCoercion.html +1 -1
- data/doc/Contentful/Link.html +1 -1
- data/doc/Contentful/LinkCoercion.html +1 -1
- data/doc/Contentful/Locale.html +1 -1
- data/doc/Contentful/Location.html +1 -1
- data/doc/Contentful/LocationCoercion.html +1 -1
- data/doc/Contentful/NotFound.html +1 -1
- data/doc/Contentful/ObjectCoercion.html +1 -1
- data/doc/Contentful/RateLimitExceeded.html +1 -1
- data/doc/Contentful/Request.html +1 -1
- data/doc/Contentful/ResourceBuilder.html +1 -1
- data/doc/Contentful/ResourceReferences.html +1 -1
- data/doc/Contentful/Response.html +1 -1
- data/doc/Contentful/RichTextCoercion.html +1 -1
- data/doc/Contentful/ServerError.html +1 -1
- data/doc/Contentful/ServiceUnavailable.html +1 -1
- data/doc/Contentful/Space.html +1 -1
- data/doc/Contentful/StringCoercion.html +1 -1
- data/doc/Contentful/Support.html +1 -1
- data/doc/Contentful/SymbolCoercion.html +1 -1
- data/doc/Contentful/Sync.html +1 -1
- data/doc/Contentful/SyncPage.html +1 -1
- data/doc/Contentful/TextCoercion.html +1 -1
- data/doc/Contentful/Unauthorized.html +1 -1
- data/doc/Contentful/UnparsableJson.html +1 -1
- data/doc/Contentful/UnparsableResource.html +1 -1
- data/doc/Contentful.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +14 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/contentful/fields_resource.rb +6 -1
- data/lib/contentful/version.rb +1 -1
- data/spec/entry_spec.rb +26 -0
- data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +303 -0
- metadata +4 -2
data/doc/file.CHANGELOG.html
CHANGED
|
@@ -62,6 +62,19 @@
|
|
|
62
62
|
|
|
63
63
|
<h2 id="label-Unreleased">Unreleased</h2>
|
|
64
64
|
|
|
65
|
+
<h2 id="label-2.10.1">2.10.1</h2>
|
|
66
|
+
|
|
67
|
+
<h3 id="label-Fixed">Fixed</h3>
|
|
68
|
+
<ul><li>
|
|
69
|
+
<p>Fixed <code>Marshal.load</code> for entries with unpublished related
|
|
70
|
+
entries.</p>
|
|
71
|
+
</li></ul>
|
|
72
|
+
|
|
73
|
+
<h2 id="label-2.10.0">2.10.0</h2>
|
|
74
|
+
|
|
75
|
+
<p>As <code>RichText</code> moves from <code>alpha</code> to
|
|
76
|
+
<code>beta</code>, we're treating this as a feature release.</p>
|
|
77
|
+
|
|
65
78
|
<h3 id="label-Changed">Changed</h3>
|
|
66
79
|
<ul><li>
|
|
67
80
|
<p>Renamed <code>StructuredText</code> to <code>RichText</code>.</p>
|
|
@@ -675,7 +688,7 @@ based on ContentTypes</p>
|
|
|
675
688
|
</div></div>
|
|
676
689
|
|
|
677
690
|
<div id="footer">
|
|
678
|
-
Generated on
|
|
691
|
+
Generated on Wed Oct 17 11:54:04 2018 by
|
|
679
692
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
680
693
|
0.9.12 (ruby-2.5.1).
|
|
681
694
|
</div>
|
data/doc/file.LICENSE.html
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<div id="content"><div id='filecontents'>The MIT License (MIT)<br/><br/>Copyright (c) 2014 Contentful GmbH - Jan Lelis<br/>Copyright (c) 2015-2018 Contentful GmbH - David Litvak<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the "Software"), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in<br/>all copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br/>THE SOFTWARE.</div></div>
|
|
61
61
|
|
|
62
62
|
<div id="footer">
|
|
63
|
-
Generated on
|
|
63
|
+
Generated on Wed Oct 17 11:54:04 2018 by
|
|
64
64
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
65
65
|
0.9.12 (ruby-2.5.1).
|
|
66
66
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -895,7 +895,7 @@ our full Code of Conduct</a>.</p>
|
|
|
895
895
|
</div></div>
|
|
896
896
|
|
|
897
897
|
<div id="footer">
|
|
898
|
-
Generated on
|
|
898
|
+
Generated on Wed Oct 17 11:54:04 2018 by
|
|
899
899
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
900
900
|
0.9.12 (ruby-2.5.1).
|
|
901
901
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -895,7 +895,7 @@ our full Code of Conduct</a>.</p>
|
|
|
895
895
|
</div></div>
|
|
896
896
|
|
|
897
897
|
<div id="footer">
|
|
898
|
-
Generated on
|
|
898
|
+
Generated on Wed Oct 17 11:54:03 2018 by
|
|
899
899
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
900
900
|
0.9.12 (ruby-2.5.1).
|
|
901
901
|
</div>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</div>
|
|
101
101
|
|
|
102
102
|
<div id="footer">
|
|
103
|
-
Generated on
|
|
103
|
+
Generated on Wed Oct 17 11:54:04 2018 by
|
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
105
105
|
0.9.12 (ruby-2.5.1).
|
|
106
106
|
</div>
|
|
@@ -10,6 +10,7 @@ module Contentful
|
|
|
10
10
|
def initialize(item, _configuration, localized = false, includes = [], entries = {}, depth = 0, errors = [])
|
|
11
11
|
super
|
|
12
12
|
|
|
13
|
+
@configuration[:errors] = errors
|
|
13
14
|
@localized = localized
|
|
14
15
|
@fields = hydrate_fields(includes, entries, errors)
|
|
15
16
|
define_fields_methods!
|
|
@@ -56,7 +57,11 @@ module Contentful
|
|
|
56
57
|
def marshal_load(raw_object)
|
|
57
58
|
super(raw_object)
|
|
58
59
|
@localized = raw_object[:localized]
|
|
59
|
-
@fields = hydrate_fields(
|
|
60
|
+
@fields = hydrate_fields(
|
|
61
|
+
raw_object[:configuration].fetch(:includes_for_single, []),
|
|
62
|
+
{},
|
|
63
|
+
raw_object[:configuration].fetch(:errors, [])
|
|
64
|
+
)
|
|
60
65
|
define_fields_methods!
|
|
61
66
|
end
|
|
62
67
|
|
data/lib/contentful/version.rb
CHANGED
data/spec/entry_spec.rb
CHANGED
|
@@ -192,6 +192,32 @@ describe Contentful::Entry do
|
|
|
192
192
|
expect(rehydrated.childs.last.image2.url).to eq '//images.contentful.com/j8tb59fszch7/1NU1YcNQJGIA22gAKmKqWo/56fa672bb17a7b7ae2773d08e101d059/57ee64921c25faa649fc79288197c313.jpg'
|
|
193
193
|
}
|
|
194
194
|
end
|
|
195
|
+
|
|
196
|
+
it 'filters out unpublished resources after rehydration' do
|
|
197
|
+
vcr('entry/marshal_unpublished') {
|
|
198
|
+
parent = create_client(
|
|
199
|
+
space: 'z3eix6mwjid2',
|
|
200
|
+
access_token: '9047c4394a2130dff8e9dc544a7a3ec299703fdac8e52575eb5a6678be06c468',
|
|
201
|
+
dynamic_entries: :auto
|
|
202
|
+
).entry('5Etc0jWzIWwMeSu4W0SCi8')
|
|
203
|
+
|
|
204
|
+
rehydrated = Marshal.load(Marshal.dump(parent))
|
|
205
|
+
|
|
206
|
+
expect(rehydrated.children).to be_empty
|
|
207
|
+
|
|
208
|
+
preview_parent = create_client(
|
|
209
|
+
space: 'z3eix6mwjid2',
|
|
210
|
+
access_token: '38153b942011a70b5482fda61c6a3a9d22f5e8a512662dac00fcf7eb344b75f4',
|
|
211
|
+
dynamic_entries: :auto,
|
|
212
|
+
api_url: 'preview.contentful.com'
|
|
213
|
+
).entry('5Etc0jWzIWwMeSu4W0SCi8')
|
|
214
|
+
|
|
215
|
+
preview_rehydrated = Marshal.load(Marshal.dump(preview_parent))
|
|
216
|
+
|
|
217
|
+
expect(preview_rehydrated.children).not_to be_empty
|
|
218
|
+
expect(preview_rehydrated.children.first.title).to eq 'Child'
|
|
219
|
+
}
|
|
220
|
+
end
|
|
195
221
|
end
|
|
196
222
|
|
|
197
223
|
describe 'incoming links' do
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://cdn.contentful.com/spaces/z3eix6mwjid2/environments/master/content_types?limit=1000
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
X-Contentful-User-Agent:
|
|
11
|
+
- sdk contentful.rb/2.10.0; platform ruby/2.5.1; os macOS/16;
|
|
12
|
+
Authorization:
|
|
13
|
+
- Bearer 9047c4394a2130dff8e9dc544a7a3ec299703fdac8e52575eb5a6678be06c468
|
|
14
|
+
Content-Type:
|
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
|
16
|
+
Accept-Encoding:
|
|
17
|
+
- gzip
|
|
18
|
+
Connection:
|
|
19
|
+
- close
|
|
20
|
+
Host:
|
|
21
|
+
- cdn.contentful.com
|
|
22
|
+
User-Agent:
|
|
23
|
+
- http.rb/2.2.2
|
|
24
|
+
response:
|
|
25
|
+
status:
|
|
26
|
+
code: 200
|
|
27
|
+
message: OK
|
|
28
|
+
headers:
|
|
29
|
+
Access-Control-Allow-Headers:
|
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
|
31
|
+
Access-Control-Allow-Methods:
|
|
32
|
+
- GET,HEAD,OPTIONS
|
|
33
|
+
Access-Control-Allow-Origin:
|
|
34
|
+
- "*"
|
|
35
|
+
Access-Control-Expose-Headers:
|
|
36
|
+
- Etag
|
|
37
|
+
Access-Control-Max-Age:
|
|
38
|
+
- '86400'
|
|
39
|
+
Cache-Control:
|
|
40
|
+
- max-age=0
|
|
41
|
+
Content-Encoding:
|
|
42
|
+
- gzip
|
|
43
|
+
Content-Type:
|
|
44
|
+
- application/vnd.contentful.delivery.v1+json
|
|
45
|
+
Contentful-Api:
|
|
46
|
+
- cda_cached
|
|
47
|
+
Etag:
|
|
48
|
+
- W/"17f9bf38562a755a6ceb4e0bbea2edbd"
|
|
49
|
+
Server:
|
|
50
|
+
- Contentful
|
|
51
|
+
X-Content-Type-Options:
|
|
52
|
+
- nosniff
|
|
53
|
+
X-Contentful-Region:
|
|
54
|
+
- us-east-1
|
|
55
|
+
X-Contentful-Request-Id:
|
|
56
|
+
- a6ffb61af0090ae358b3d77a3fbfb701
|
|
57
|
+
Content-Length:
|
|
58
|
+
- '484'
|
|
59
|
+
Accept-Ranges:
|
|
60
|
+
- bytes
|
|
61
|
+
Date:
|
|
62
|
+
- Wed, 17 Oct 2018 09:38:25 GMT
|
|
63
|
+
Via:
|
|
64
|
+
- 1.1 varnish
|
|
65
|
+
Age:
|
|
66
|
+
- '0'
|
|
67
|
+
Connection:
|
|
68
|
+
- close
|
|
69
|
+
X-Served-By:
|
|
70
|
+
- cache-ams4135-AMS
|
|
71
|
+
X-Cache:
|
|
72
|
+
- MISS
|
|
73
|
+
X-Cache-Hits:
|
|
74
|
+
- '0'
|
|
75
|
+
X-Timer:
|
|
76
|
+
- S1539769105.883870,VS0,VE432
|
|
77
|
+
Vary:
|
|
78
|
+
- Accept-Encoding
|
|
79
|
+
body:
|
|
80
|
+
encoding: ASCII-8BIT
|
|
81
|
+
string: !binary |-
|
|
82
|
+
H4sIAAAAAAAAA+VWO0/DMBDe+ysqz4CSFOhjqyqYGJDaCdTBTYw46jjBNoUU9b9zdl52oCowIKF6qe/su8/39R557/X7RBWKTPrvuEVBFzlDiUylpAVB3e7E3NGZphz1kZXUGnIUAitwSEGjFAZBqQDNUuPx3nos/XZgLJTKaWyw6hul0nmMUVhl/agbEGtiQNuF8GK9qB49tx47FyAx8WwHDN4u09cnSCITVr12zd4GWi5S2sSPwBPHXfOOWSY0E9rCOlaxZFSzZGrYIFEQjk7D4DQcLoLxZHA+GVycRePxnWvwkic/M2BiAzITKYJ/i7gyjpQqzWSXl++SeuVgHiROsg0oyITJh+pywytJQOWcFtfAkFakSIPmLYFE0NSm3syjnSRMxRJyXXolTRjkwfhpE838dV4qlcH7IOZSA7Tw8O1RTcq8SFcZ9ygjPIsphy0zb3+gXDE30Yhkzy8g9xxi5HTF9xxmWD+YNrXXNiGr3dL+VjT+43LKqTR56xRMzfav6ikKzqJo+IN6sgYjz+Ao6unW5/2IC6pNvS8ahe32mKF+0XtN6dOpPy29fvBH3cLDrCevG92B8bnBloZDCJur7aTLzvB0p+uV0NJ+EtTLmZ1+q0Jp2dv1PgAsqQ1dXggAAA==
|
|
83
|
+
http_version:
|
|
84
|
+
recorded_at: Wed, 17 Oct 2018 09:38:25 GMT
|
|
85
|
+
- request:
|
|
86
|
+
method: get
|
|
87
|
+
uri: https://cdn.contentful.com/spaces/z3eix6mwjid2/environments/master/entries?sys.id=5Etc0jWzIWwMeSu4W0SCi8
|
|
88
|
+
body:
|
|
89
|
+
encoding: US-ASCII
|
|
90
|
+
string: ''
|
|
91
|
+
headers:
|
|
92
|
+
X-Contentful-User-Agent:
|
|
93
|
+
- sdk contentful.rb/2.10.0; platform ruby/2.5.1; os macOS/16;
|
|
94
|
+
Authorization:
|
|
95
|
+
- Bearer 9047c4394a2130dff8e9dc544a7a3ec299703fdac8e52575eb5a6678be06c468
|
|
96
|
+
Content-Type:
|
|
97
|
+
- application/vnd.contentful.delivery.v1+json
|
|
98
|
+
Accept-Encoding:
|
|
99
|
+
- gzip
|
|
100
|
+
Connection:
|
|
101
|
+
- close
|
|
102
|
+
Host:
|
|
103
|
+
- cdn.contentful.com
|
|
104
|
+
User-Agent:
|
|
105
|
+
- http.rb/2.2.2
|
|
106
|
+
response:
|
|
107
|
+
status:
|
|
108
|
+
code: 200
|
|
109
|
+
message: OK
|
|
110
|
+
headers:
|
|
111
|
+
Access-Control-Allow-Headers:
|
|
112
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
|
113
|
+
Access-Control-Allow-Methods:
|
|
114
|
+
- GET,HEAD,OPTIONS
|
|
115
|
+
Access-Control-Allow-Origin:
|
|
116
|
+
- "*"
|
|
117
|
+
Access-Control-Expose-Headers:
|
|
118
|
+
- Etag
|
|
119
|
+
Access-Control-Max-Age:
|
|
120
|
+
- '86400'
|
|
121
|
+
Cache-Control:
|
|
122
|
+
- max-age=0
|
|
123
|
+
Content-Encoding:
|
|
124
|
+
- gzip
|
|
125
|
+
Content-Type:
|
|
126
|
+
- application/vnd.contentful.delivery.v1+json
|
|
127
|
+
Contentful-Api:
|
|
128
|
+
- cda_cached
|
|
129
|
+
Etag:
|
|
130
|
+
- W/"2557dfc3ec14aa68122994004c95b0a1"
|
|
131
|
+
Server:
|
|
132
|
+
- Contentful
|
|
133
|
+
X-Content-Type-Options:
|
|
134
|
+
- nosniff
|
|
135
|
+
X-Contentful-Region:
|
|
136
|
+
- us-east-1
|
|
137
|
+
X-Contentful-Request-Id:
|
|
138
|
+
- 130df1aaf6380c8f9a2d0891c2247bec
|
|
139
|
+
Content-Length:
|
|
140
|
+
- '452'
|
|
141
|
+
Accept-Ranges:
|
|
142
|
+
- bytes
|
|
143
|
+
Date:
|
|
144
|
+
- Wed, 17 Oct 2018 09:38:25 GMT
|
|
145
|
+
Via:
|
|
146
|
+
- 1.1 varnish
|
|
147
|
+
Age:
|
|
148
|
+
- '0'
|
|
149
|
+
Connection:
|
|
150
|
+
- close
|
|
151
|
+
X-Served-By:
|
|
152
|
+
- cache-ams4427-AMS
|
|
153
|
+
X-Cache:
|
|
154
|
+
- MISS
|
|
155
|
+
X-Cache-Hits:
|
|
156
|
+
- '0'
|
|
157
|
+
X-Timer:
|
|
158
|
+
- S1539769105.431697,VS0,VE259
|
|
159
|
+
Vary:
|
|
160
|
+
- Accept-Encoding
|
|
161
|
+
body:
|
|
162
|
+
encoding: ASCII-8BIT
|
|
163
|
+
string: !binary |-
|
|
164
|
+
H4sIAAAAAAAAA41UTW+CQBC9+yvMnqtZQK16I4ZDk5q0xcakjYctbNMVWMiyatH437sfgCs1IAfDzO7Me/Ocx6nX74O8yMG8fxKvIuBFhkUEXMZQAUTu/CDv8JSjWOQtFeURyUQAVRCThHB5BHVMOE5kw0/VULdtoCikPEOBhKpu6KTBRSZUsuL0TGgEJOblEeg0WpWcfdWxcYGEcpyjg8nvJDlsSWjLqarnXL+rOfUDdM3Y4wHcro9P68MS+7vRGvoLMjX618Q8yllhHgQMI45DV+oCbGhNBxYcWI8rOJs74zm0h87I/jALdlnYUmA5QzibXBVguicspQmmEqNbQz1SgnKOWVOie/X1DMxODRnek5ykVLCzDWmDlHLBufzLunnfy21h9L25ARliUqtO3nEaoFhZANPBu18V1OsBvgmOw4tj5MoATriuedEo5sA/JA4FdO0IvWPm5DfcUS5iy/TKeZfdb67g9SZvLep6+QS9LpOph+yd5/peZGohfH5TmU2Z1afyd6NMjxlL2T0u13tHU/6G8zTeoy+hk6FONaDq91/rEHNE4qbYpd0bn4NWOSpLtwphDNk79/4AE+L2WxwFAAA=
|
|
165
|
+
http_version:
|
|
166
|
+
recorded_at: Wed, 17 Oct 2018 09:38:25 GMT
|
|
167
|
+
- request:
|
|
168
|
+
method: get
|
|
169
|
+
uri: https://preview.contentful.com/spaces/z3eix6mwjid2/environments/master/content_types?limit=1000
|
|
170
|
+
body:
|
|
171
|
+
encoding: US-ASCII
|
|
172
|
+
string: ''
|
|
173
|
+
headers:
|
|
174
|
+
X-Contentful-User-Agent:
|
|
175
|
+
- sdk contentful.rb/2.10.0; platform ruby/2.5.1; os macOS/16;
|
|
176
|
+
Authorization:
|
|
177
|
+
- Bearer 38153b942011a70b5482fda61c6a3a9d22f5e8a512662dac00fcf7eb344b75f4
|
|
178
|
+
Content-Type:
|
|
179
|
+
- application/vnd.contentful.delivery.v1+json
|
|
180
|
+
Accept-Encoding:
|
|
181
|
+
- gzip
|
|
182
|
+
Connection:
|
|
183
|
+
- close
|
|
184
|
+
Host:
|
|
185
|
+
- preview.contentful.com
|
|
186
|
+
User-Agent:
|
|
187
|
+
- http.rb/2.2.2
|
|
188
|
+
response:
|
|
189
|
+
status:
|
|
190
|
+
code: 200
|
|
191
|
+
message: OK
|
|
192
|
+
headers:
|
|
193
|
+
Access-Control-Allow-Headers:
|
|
194
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
|
195
|
+
Access-Control-Allow-Methods:
|
|
196
|
+
- GET,HEAD,OPTIONS
|
|
197
|
+
Access-Control-Allow-Origin:
|
|
198
|
+
- "*"
|
|
199
|
+
Access-Control-Expose-Headers:
|
|
200
|
+
- Etag
|
|
201
|
+
Access-Control-Max-Age:
|
|
202
|
+
- '1728000'
|
|
203
|
+
Cf-Cache-Name:
|
|
204
|
+
- content_delivery
|
|
205
|
+
Cf-Organization-Id:
|
|
206
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
|
207
|
+
Cf-Space-Id:
|
|
208
|
+
- z3eix6mwjid2
|
|
209
|
+
Content-Encoding:
|
|
210
|
+
- gzip
|
|
211
|
+
Content-Type:
|
|
212
|
+
- application/vnd.contentful.delivery.v1+json
|
|
213
|
+
Contentful-Api:
|
|
214
|
+
- cpa
|
|
215
|
+
Date:
|
|
216
|
+
- Wed, 17 Oct 2018 09:38:26 GMT
|
|
217
|
+
Etag:
|
|
218
|
+
- W/"7431e37d067e8056f3686a3af0956d42"
|
|
219
|
+
Server:
|
|
220
|
+
- Contentful
|
|
221
|
+
X-Content-Type-Options:
|
|
222
|
+
- nosniff
|
|
223
|
+
X-Contentful-Request-Id:
|
|
224
|
+
- 7d7aaffa6ab69fdee6f413b82d8d7b47
|
|
225
|
+
Content-Length:
|
|
226
|
+
- '481'
|
|
227
|
+
Connection:
|
|
228
|
+
- Close
|
|
229
|
+
body:
|
|
230
|
+
encoding: ASCII-8BIT
|
|
231
|
+
string: !binary |-
|
|
232
|
+
H4sIAAAAAAAAA+VUzU/CMBS/81eQnoVsAxS4GYInDyZw0nCoW4lPum62BR2G/93Xjo2WAGJMPGAv2/vo+/j1995no9kkqlBk2PzEXxR0kTOUyK2UtCCo21wZH51pylEfWUktIEchsAKHFDRKYRCUCtAsNRGfbMQy7l4am0rlNDa5Ko9S6RRjFFZZFXUPYkFM0t3B9GIx3RY9sRH3HCAx/aw7DD6u0/dXSCLTVnU29b9ttDx1wlEmNBPaxnfMZcicSrS5eslWoCATBg3HPZaMapbcGpRIFIT9Vhi0wptpMBh2usOw3x50rx/dOMs8OXEhCtpR1PcuMLECmYnU1HMOoGUDKVWayX28zgV77OQ8DOhWWwNLElA5p8UdMG4fRYPmO2CJoKnl3oMPLEmYiiXkukSW1AWTuQm0o5p5PI9MZZt+FuNUZ5p6BVhT1f6kSJ8z7oFDeBZTDmtmip9TrphLNSLZ2xLkESO2Tp/5EWOGE4QEqaIeouSBvuIX4AlS0K+xAnF00OqPt1f+HzXn5axWhdvdN/O+whfA6UAu2IefnVgHY6Gl3WHVcYZ9q53Z75ahl7uqLFV+vak63Xa/1/vBpur02tFgcMGbyg7Zbh/930XljxNKs8am8QU/+VDnXggAAA==
|
|
233
|
+
http_version:
|
|
234
|
+
recorded_at: Wed, 17 Oct 2018 09:38:26 GMT
|
|
235
|
+
- request:
|
|
236
|
+
method: get
|
|
237
|
+
uri: https://preview.contentful.com/spaces/z3eix6mwjid2/environments/master/entries?sys.id=5Etc0jWzIWwMeSu4W0SCi8
|
|
238
|
+
body:
|
|
239
|
+
encoding: US-ASCII
|
|
240
|
+
string: ''
|
|
241
|
+
headers:
|
|
242
|
+
X-Contentful-User-Agent:
|
|
243
|
+
- sdk contentful.rb/2.10.0; platform ruby/2.5.1; os macOS/16;
|
|
244
|
+
Authorization:
|
|
245
|
+
- Bearer 38153b942011a70b5482fda61c6a3a9d22f5e8a512662dac00fcf7eb344b75f4
|
|
246
|
+
Content-Type:
|
|
247
|
+
- application/vnd.contentful.delivery.v1+json
|
|
248
|
+
Accept-Encoding:
|
|
249
|
+
- gzip
|
|
250
|
+
Connection:
|
|
251
|
+
- close
|
|
252
|
+
Host:
|
|
253
|
+
- preview.contentful.com
|
|
254
|
+
User-Agent:
|
|
255
|
+
- http.rb/2.2.2
|
|
256
|
+
response:
|
|
257
|
+
status:
|
|
258
|
+
code: 200
|
|
259
|
+
message: OK
|
|
260
|
+
headers:
|
|
261
|
+
Access-Control-Allow-Headers:
|
|
262
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
|
|
263
|
+
Access-Control-Allow-Methods:
|
|
264
|
+
- GET,HEAD,OPTIONS
|
|
265
|
+
Access-Control-Allow-Origin:
|
|
266
|
+
- "*"
|
|
267
|
+
Access-Control-Expose-Headers:
|
|
268
|
+
- Etag
|
|
269
|
+
Access-Control-Max-Age:
|
|
270
|
+
- '1728000'
|
|
271
|
+
Cf-Cache-Name:
|
|
272
|
+
- content_delivery
|
|
273
|
+
Cf-Organization-Id:
|
|
274
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
|
275
|
+
Cf-Space-Id:
|
|
276
|
+
- z3eix6mwjid2
|
|
277
|
+
Content-Encoding:
|
|
278
|
+
- gzip
|
|
279
|
+
Content-Type:
|
|
280
|
+
- application/vnd.contentful.delivery.v1+json
|
|
281
|
+
Contentful-Api:
|
|
282
|
+
- cpa
|
|
283
|
+
Date:
|
|
284
|
+
- Wed, 17 Oct 2018 09:38:27 GMT
|
|
285
|
+
Etag:
|
|
286
|
+
- W/"01f9f7dca881b834b8db96cbaf3988d4"
|
|
287
|
+
Server:
|
|
288
|
+
- Contentful
|
|
289
|
+
X-Content-Type-Options:
|
|
290
|
+
- nosniff
|
|
291
|
+
X-Contentful-Request-Id:
|
|
292
|
+
- 4e2ee547bbf61e75e900913c04fc18b8
|
|
293
|
+
Content-Length:
|
|
294
|
+
- '550'
|
|
295
|
+
Connection:
|
|
296
|
+
- Close
|
|
297
|
+
body:
|
|
298
|
+
encoding: ASCII-8BIT
|
|
299
|
+
string: !binary |-
|
|
300
|
+
H4sIAAAAAAAAA61VTW+CMBi++ytMz9MUFKfcjOGwZCZbcDHZ4qGBLqtCIVC36eJ/Xz/4KKSgB3tQ3tK+n8/z8DcYDkF+yoE7/OOP3GCnFHMLLLMMnQDfuzyIMyxhKOL7lrTyA0m5AaURkZgw8QoqmzAcC4cf0qFy24oiI+UpCkSo8oTa1HIRG3KzzOmZ0AMQMevFo9PDpsjZlx5bB0goyjlPMPmdxT97EtqiqnJdqmdZp1pVQI+y7KQ5BMqZ47EA7rfnp+3PGvvH6Rb6KzLXzwUJZZiyIrH7VbjS/BrrTFHG416vMMPfJCcJ5b2xtcKDDCOGw6WYJ7ChNR9ZcGQ9buDCnUxdZzq2nNm7XugxDTsvOK41GcPFY+MCpt8kS2gssrxl9qrjMcoZztqjvRUXnhbz6uyjJECRpACmoze/bGUFD/BJcBTWjBGQAYwwdedF9V9v6ReJQj6UihEKYzomDOxoAdGAfMm8GvttqBYOCsDuLbr08hl6XcdzD9lHb+l7Bx0lnOfGzuyKXfVW/O4k6QkNomOINeFQCZS0r4lvLM5IfuNJ1d6C4NfbYJIAkW6vCLSK14nVKQWVU8fc24aTbjm4R83dolAlGQgQ9sy7ka2mDVLRywX61MFxoTN24FQnOw/frw9wPp4sYOtKt0J0N6tHJfilHp3gb5ssqtVJq7wPIB16UXw4CxoaNEPkVarGqjmekorqX1DwMrgM/gHeBX0nrAcAAA==
|
|
301
|
+
http_version:
|
|
302
|
+
recorded_at: Wed, 17 Oct 2018 09:38:27 GMT
|
|
303
|
+
recorded_with: VCR 4.0.0
|
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.10.
|
|
4
|
+
version: 2.10.1
|
|
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: 2018-10-
|
|
13
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: http
|
|
@@ -465,6 +465,7 @@ files:
|
|
|
465
465
|
- spec/fixtures/vcr_cassettes/entry/json_objects.yml
|
|
466
466
|
- spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
|
|
467
467
|
- spec/fixtures/vcr_cassettes/entry/marshal_138.yml
|
|
468
|
+
- spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
|
|
468
469
|
- spec/fixtures/vcr_cassettes/entry/marshall.yml
|
|
469
470
|
- spec/fixtures/vcr_cassettes/entry/raw.yml
|
|
470
471
|
- spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
|
|
@@ -608,6 +609,7 @@ test_files:
|
|
|
608
609
|
- spec/fixtures/vcr_cassettes/entry/json_objects.yml
|
|
609
610
|
- spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
|
|
610
611
|
- spec/fixtures/vcr_cassettes/entry/marshal_138.yml
|
|
612
|
+
- spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
|
|
611
613
|
- spec/fixtures/vcr_cassettes/entry/marshall.yml
|
|
612
614
|
- spec/fixtures/vcr_cassettes/entry/raw.yml
|
|
613
615
|
- spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
|