contentful 2.16.0 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/contentful/version.rb +1 -1
  4. metadata +3 -370
  5. data/.gitignore +0 -7
  6. data/.rspec +0 -1
  7. data/.rubocop.yml +0 -31
  8. data/.rubocop_todo.yml +0 -35
  9. data/.travis.yml +0 -15
  10. data/.yardopts +0 -4
  11. data/Gemfile +0 -9
  12. data/Guardfile +0 -24
  13. data/RELEASE.md +0 -8
  14. data/Rakefile +0 -33
  15. data/contentful.gemspec +0 -44
  16. data/examples/custom_classes.rb +0 -39
  17. data/examples/example_queries.rb +0 -26
  18. data/examples/raise_errors.rb +0 -20
  19. data/examples/raw_mode.rb +0 -14
  20. data/spec/array_spec.rb +0 -187
  21. data/spec/asset_spec.rb +0 -220
  22. data/spec/auto_includes_spec.rb +0 -12
  23. data/spec/client_class_spec.rb +0 -86
  24. data/spec/client_configuration_spec.rb +0 -394
  25. data/spec/content_type_spec.rb +0 -49
  26. data/spec/deleted_asset_spec.rb +0 -38
  27. data/spec/deleted_entry_spec.rb +0 -38
  28. data/spec/entry_spec.rb +0 -815
  29. data/spec/error_class_spec.rb +0 -327
  30. data/spec/error_requests_spec.rb +0 -87
  31. data/spec/field_spec.rb +0 -95
  32. data/spec/file_spec.rb +0 -33
  33. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  34. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  35. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  36. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  37. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  38. data/spec/fixtures/json_responses/404_id.json +0 -11
  39. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  40. data/spec/fixtures/json_responses/404_type.json +0 -10
  41. data/spec/fixtures/json_responses/content_type.json +0 -83
  42. data/spec/fixtures/json_responses/default_400.json +0 -7
  43. data/spec/fixtures/json_responses/default_401.json +0 -7
  44. data/spec/fixtures/json_responses/default_403.json +0 -7
  45. data/spec/fixtures/json_responses/default_404.json +0 -7
  46. data/spec/fixtures/json_responses/default_429.json +0 -7
  47. data/spec/fixtures/json_responses/default_500.json +0 -7
  48. data/spec/fixtures/json_responses/default_502.json +0 -7
  49. data/spec/fixtures/json_responses/default_503.json +0 -7
  50. data/spec/fixtures/json_responses/includes.json +0 -111
  51. data/spec/fixtures/json_responses/link_array.json +0 -43
  52. data/spec/fixtures/json_responses/not_found.json +0 -13
  53. data/spec/fixtures/json_responses/nyancat.json +0 -48
  54. data/spec/fixtures/json_responses/other_error.json +0 -9
  55. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  56. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  57. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  58. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  59. data/spec/fixtures/json_responses/self_link.json +0 -82
  60. data/spec/fixtures/json_responses/unparsable.json +0 -13
  61. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  62. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  63. data/spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml +0 -315
  64. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  65. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  66. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  67. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  68. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  69. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  70. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  71. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  72. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  73. data/spec/fixtures/vcr_cassettes/asset/with_tags.yml +0 -138
  74. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  75. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  76. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  77. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  78. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  79. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  80. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  81. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  82. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  83. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  84. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  85. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  86. data/spec/fixtures/vcr_cassettes/entries/unresolvable_assets.yml +0 -89
  87. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  88. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  89. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  90. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  91. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  92. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  93. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  94. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  95. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  96. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  97. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  98. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  99. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  100. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  101. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  102. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  103. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  104. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  105. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  106. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  107. data/spec/fixtures/vcr_cassettes/entry/with_tags.yml +0 -238
  108. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  109. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  110. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  111. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  112. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  113. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  114. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  115. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  116. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  117. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  118. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  119. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  120. data/spec/fixtures/vcr_cassettes/query_array_1.yml +0 -89
  121. data/spec/fixtures/vcr_cassettes/query_array_2.yml +0 -89
  122. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  123. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  124. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  125. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  126. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  127. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  128. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  129. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  130. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  131. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  132. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  133. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  134. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  135. data/spec/link_spec.rb +0 -50
  136. data/spec/locale_spec.rb +0 -37
  137. data/spec/location_spec.rb +0 -25
  138. data/spec/request_spec.rb +0 -57
  139. data/spec/resource_building_spec.rb +0 -31
  140. data/spec/response_spec.rb +0 -62
  141. data/spec/space_spec.rb +0 -31
  142. data/spec/spec_helper.rb +0 -14
  143. data/spec/support/client.rb +0 -6
  144. data/spec/support/json_responses.rb +0 -18
  145. data/spec/support/vcr.rb +0 -16
  146. data/spec/sync_page_spec.rb +0 -103
  147. data/spec/sync_spec.rb +0 -180
@@ -1,288 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/content_types?limit=1000
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.1
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Host:
17
- - cdn.contentful.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Wed, 16 Apr 2014 09:00:23 GMT
25
- Server:
26
- - nginx/1.1.19
27
- Access-Control-Allow-Headers:
28
- - 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
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Max-Age:
34
- - '86400'
35
- Cache-Control:
36
- - max-age=0
37
- Content-Type:
38
- - application/vnd.contentful.delivery.v1+json
39
- Etag:
40
- - "\"a80e34fcda74e1e96e6c6b50fdbf9c4d\""
41
- X-Contentful-Request-Id:
42
- - 71a-635716686
43
- Content-Length:
44
- - '4976'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '0'
51
- X-Served-By:
52
- - cache-fra1220-FRA
53
- X-Cache:
54
- - MISS
55
- X-Cache-Hits:
56
- - '0'
57
- Vary:
58
- - Accept-Encoding
59
- body:
60
- encoding: UTF-8
61
- string: |
62
- {
63
- "sys": {
64
- "type": "Array"
65
- },
66
- "total": 4,
67
- "skip": 0,
68
- "limit": 1000,
69
- "items": [
70
- {
71
- "fields": [
72
- {
73
- "id": "name",
74
- "name": "Name",
75
- "type": "Text",
76
- "required": true,
77
- "localized": true
78
- },
79
- {
80
- "id": "likes",
81
- "name": "Likes",
82
- "type": "Array",
83
- "required": false,
84
- "localized": false,
85
- "items": {
86
- "type": "Symbol"
87
- }
88
- },
89
- {
90
- "id": "color",
91
- "name": "Color",
92
- "type": "Symbol",
93
- "required": false,
94
- "localized": false
95
- },
96
- {
97
- "id": "bestFriend",
98
- "name": "Best Friend",
99
- "type": "Link",
100
- "required": false,
101
- "localized": false,
102
- "linkType": "Entry"
103
- },
104
- {
105
- "id": "birthday",
106
- "name": "Birthday",
107
- "type": "Date",
108
- "required": false,
109
- "localized": false
110
- },
111
- {
112
- "id": "lifes",
113
- "name": "Lifes left",
114
- "type": "Integer",
115
- "required": false,
116
- "localized": false,
117
- "disabled": true
118
- },
119
- {
120
- "id": "lives",
121
- "name": "Lives left",
122
- "type": "Integer",
123
- "required": false,
124
- "localized": false
125
- },
126
- {
127
- "id": "image",
128
- "name": "Image",
129
- "required": false,
130
- "localized": false,
131
- "type": "Link",
132
- "linkType": "Asset"
133
- }
134
- ],
135
- "name": "Cat",
136
- "displayField": "name",
137
- "description": "Meow.",
138
- "sys": {
139
- "space": {
140
- "sys": {
141
- "type": "Link",
142
- "linkType": "Space",
143
- "id": "cfexampleapi"
144
- }
145
- },
146
- "type": "ContentType",
147
- "id": "cat",
148
- "revision": 2,
149
- "createdAt": "2013-06-27T22:46:12.852Z",
150
- "updatedAt": "2013-09-02T13:14:47.863Z"
151
- }
152
- },
153
- {
154
- "fields": [
155
- {
156
- "id": "name",
157
- "name": "Name",
158
- "type": "Text",
159
- "required": true,
160
- "localized": false
161
- },
162
- {
163
- "id": "description",
164
- "name": "Description",
165
- "type": "Text",
166
- "required": false,
167
- "localized": false
168
- },
169
- {
170
- "id": "image",
171
- "name": "Image",
172
- "required": false,
173
- "localized": false,
174
- "type": "Link",
175
- "linkType": "Asset"
176
- }
177
- ],
178
- "name": "Dog",
179
- "description": "Bark!",
180
- "displayField": "name",
181
- "sys": {
182
- "space": {
183
- "sys": {
184
- "type": "Link",
185
- "linkType": "Space",
186
- "id": "cfexampleapi"
187
- }
188
- },
189
- "type": "ContentType",
190
- "id": "dog",
191
- "revision": 2,
192
- "createdAt": "2013-06-27T22:46:13.498Z",
193
- "updatedAt": "2013-09-02T14:32:11.837Z"
194
- }
195
- },
196
- {
197
- "fields": [
198
- {
199
- "id": "name",
200
- "name": "Name",
201
- "type": "Text",
202
- "required": true,
203
- "localized": false
204
- },
205
- {
206
- "id": "description",
207
- "name": "Description",
208
- "type": "Text",
209
- "required": false,
210
- "localized": false
211
- },
212
- {
213
- "id": "likes",
214
- "name": "Likes",
215
- "type": "Array",
216
- "required": false,
217
- "localized": false,
218
- "items": {
219
- "type": "Symbol"
220
- }
221
- },
222
- {
223
- "id": "image",
224
- "name": "Image",
225
- "required": false,
226
- "localized": false,
227
- "type": "Array",
228
- "items": {
229
- "type": "Link",
230
- "linkType": "Asset"
231
- },
232
- "disabled": true
233
- }
234
- ],
235
- "name": "Human",
236
- "displayField": "name",
237
- "sys": {
238
- "space": {
239
- "sys": {
240
- "type": "Link",
241
- "linkType": "Space",
242
- "id": "cfexampleapi"
243
- }
244
- },
245
- "type": "ContentType",
246
- "id": "human",
247
- "revision": 3,
248
- "createdAt": "2013-06-27T22:46:14.133Z",
249
- "updatedAt": "2013-09-02T15:10:26.818Z"
250
- }
251
- },
252
- {
253
- "fields": [
254
- {
255
- "name": "Name",
256
- "id": "name",
257
- "type": "Text",
258
- "required": true
259
- },
260
- {
261
- "name": "Center",
262
- "id": "center",
263
- "type": "Location",
264
- "required": true
265
- }
266
- ],
267
- "name": "City",
268
- "sys": {
269
- "space": {
270
- "sys": {
271
- "type": "Link",
272
- "linkType": "Space",
273
- "id": "cfexampleapi"
274
- }
275
- },
276
- "type": "ContentType",
277
- "id": "1t9IbcfdCk6m04uISSsaIK",
278
- "revision": 1,
279
- "createdAt": "2014-02-21T13:42:33.009Z",
280
- "updatedAt": "2014-02-21T13:42:33.009Z"
281
- },
282
- "displayField": "name"
283
- }
284
- ]
285
- }
286
- http_version:
287
- recorded_at: Wed, 16 Apr 2014 09:00:23 GMT
288
- recorded_with: VCR 2.9.0
@@ -1,104 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?locale=*&sys.id=nyancat
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/1.2.2
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
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
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Access-Control-Allow-Headers:
28
- - 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
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Encoding:
40
- - gzip
41
- Content-Type:
42
- - application/vnd.contentful.delivery.v1+json
43
- Etag:
44
- - W/"124a54e4a3072cd55acbc29108bc34d7"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- - nosniff
50
- X-Contentful-Request-Id:
51
- - 8810dc608c80de2e6645bdc900ee7718
52
- Content-Length:
53
- - '1124'
54
- Accept-Ranges:
55
- - bytes
56
- Date:
57
- - Thu, 05 Jan 2017 20:42:42 GMT
58
- Via:
59
- - 1.1 varnish
60
- Age:
61
- - '581'
62
- Connection:
63
- - close
64
- X-Served-By:
65
- - cache-gru7120-GRU
66
- X-Cache:
67
- - HIT
68
- X-Cache-Hits:
69
- - '1'
70
- X-Timer:
71
- - S1483648962.295214,VS0,VE0
72
- Vary:
73
- - Accept-Encoding
74
- body:
75
- encoding: ASCII-8BIT
76
- string: !binary |-
77
- H4sIAAAAAAAAA+VYXW/bNhR9z68w9LKHzjJJSdbHmxG0aICt2BAXAzIUAS3R
78
- NmNZ1iQ5qVvkv+9Sn6REOW6RohgmBIlI8V5eHt5zeJmvV5OJkZ9yI5h8hVdo
79
- FKeUQctYZBk9GdD3/KsYUxwKGkM/Llv5jqfQQGUj5nteiE+oavOC7YXDv0uH
80
- ldveLOVMeUpDMVUzouqUYhEdZWcT02882Rlizu6B2ZPdso75tvTYG8AjsZxw
81
- zT7TfRozmnKxquZ5bt/LdVaPUdkkJ5qEtJActpG8TYrsJH8IM0YLFi0EEAZB
82
- 2Jqi+ZS4S0ICex5g33SwdScbHNOob+BPkb1EPowOLN9ExFUMMvbIc35IYAJH
83
- CjU8JAVLihqC18PyWvKrRxSQ0QNZ97aAGmvO4qjLMQGykdD9YPNZMv14KwD8
84
- AMhPrhXoRRrE2/bj481mmx1+6SKQty/mO6ZOB9aN8yot263OKE9Wh6e8nzZr
85
- nm/l9X3SJkp4iA9ZP4fbZdS+9UGuWF68yzhLRH4q+9bYy50aAtW5eoYcJTk7
86
- evSTVkn2LU3Tk8h2hV4dPUAItAiseFZsI5CKkUUIMmBIbJHbQAaE4OdN+VsP
87
- S8wfx/cOW5arjYLv6WY0nV4bx0WeM1kVtKJxCYwNUcq/At5PpaDyJIyPkYSC
88
- Ue1cI6mdqGqzQius2pElES/PH528inDPCqycN/Vh0nKvsmwzT5aZUaWFCc9r
89
- LUEmdrEsnWAyVFtISuwtsRM4XoCIibDXM5H01lMiG1fc1wB5XHc7qL+dpRoF
90
- BncaDYbeVr7eC0kYyLBImUqI/zyG28lAiPubrBNjaRZVjsXubhn7sjpmG5ap
91
- WtQpcH8KnQrLC9nUpUyTeNJZAcNGhVhyoUoIfJBrpsbty3QCw5cFGQap9Yci
92
- JSqfzrFrRJllYAhC1hSjKfGWxNJrcx9rnT5LLrEUrAqzTqJ/OMJ6qW4R1h96
93
- ZyHujh9FvUvlBr/VhP9LpR5irVNqKHLJEtuBMw8s2yRzpcgFAIdKjSoTJ8A4
94
- ILZpzfviLik16bZHqpH16lfwIu7XDDI5Ovkbzek1P+dhIBrHTFyhjNms5EJu
95
- 1ifJ+hjD634m31Fm1u93fyQPd8ubfLe4udkdj4f8Os9nlkeo7UVrSsIVnoe2
96
- S+HNJWt3RazVGvmzJqWfzId00ytqYXURKyiP+8VxpWBGzr8IQBzft3y15i9z
97
- W8/g2vaJR4Uoz4lrDU3BeMv4ZituR5bflXCNcsplpuhTlKOcWyD9oboyGC8s
98
- UT2fq6hnDynbXFTaNqxuFtFtokbz/2ul1vBGC9C2N/5BWXsBf230YqVV87el
99
- /MBE4m93fMj3ue/jb3uJ/Bn0tTfpvKCLp7/s6/3t5rj/h7Ddx/3MjygKI+xb
100
- c8/FKy9yiWVbzPMdilA0x3gmgr6Ha9g9cVD6+X6dQc6bafKdTMZES8cLmeyU
101
- /8/pPx2TIcTB929j8uWr1ZJa4KJEMHJdbThd/hVl5PPV89W/uoVgxfsSAAA=
102
- http_version:
103
- recorded_at: Thu, 05 Jan 2017 20:42:42 GMT
104
- recorded_with: VCR 3.0.3
@@ -1,147 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/content_types/cat
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.1
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Host:
17
- - cdn.contentful.com
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Wed, 16 Apr 2014 09:00:24 GMT
25
- Server:
26
- - nginx/1.1.19
27
- Access-Control-Allow-Headers:
28
- - 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
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Max-Age:
34
- - '86400'
35
- Cache-Control:
36
- - max-age=0
37
- Content-Type:
38
- - application/vnd.contentful.delivery.v1+json
39
- Etag:
40
- - "\"311dab6ef7fafc9f223a427ddd896e3e\""
41
- X-Contentful-Request-Id:
42
- - 85f-649640519
43
- Content-Length:
44
- - '1578'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '3'
51
- X-Served-By:
52
- - cache-am69-AMS
53
- X-Cache:
54
- - HIT
55
- X-Cache-Hits:
56
- - '1'
57
- Vary:
58
- - Accept-Encoding
59
- body:
60
- encoding: UTF-8
61
- string: |
62
- {
63
- "fields": [
64
- {
65
- "id": "name",
66
- "name": "Name",
67
- "type": "Text",
68
- "required": true,
69
- "localized": true
70
- },
71
- {
72
- "id": "likes",
73
- "name": "Likes",
74
- "type": "Array",
75
- "required": false,
76
- "localized": false,
77
- "items": {
78
- "type": "Symbol"
79
- }
80
- },
81
- {
82
- "id": "color",
83
- "name": "Color",
84
- "type": "Symbol",
85
- "required": false,
86
- "localized": false
87
- },
88
- {
89
- "id": "bestFriend",
90
- "name": "Best Friend",
91
- "type": "Link",
92
- "required": false,
93
- "localized": false,
94
- "linkType": "Entry"
95
- },
96
- {
97
- "id": "birthday",
98
- "name": "Birthday",
99
- "type": "Date",
100
- "required": false,
101
- "localized": false
102
- },
103
- {
104
- "id": "lifes",
105
- "name": "Lifes left",
106
- "type": "Integer",
107
- "required": false,
108
- "localized": false,
109
- "disabled": true
110
- },
111
- {
112
- "id": "lives",
113
- "name": "Lives left",
114
- "type": "Integer",
115
- "required": false,
116
- "localized": false
117
- },
118
- {
119
- "id": "image",
120
- "name": "Image",
121
- "required": false,
122
- "localized": false,
123
- "type": "Link",
124
- "linkType": "Asset"
125
- }
126
- ],
127
- "name": "Cat",
128
- "displayField": "name",
129
- "description": "Meow.",
130
- "sys": {
131
- "space": {
132
- "sys": {
133
- "type": "Link",
134
- "linkType": "Space",
135
- "id": "cfexampleapi"
136
- }
137
- },
138
- "type": "ContentType",
139
- "id": "cat",
140
- "revision": 2,
141
- "createdAt": "2013-06-27T22:46:12.852Z",
142
- "updatedAt": "2013-09-02T13:14:47.863Z"
143
- }
144
- }
145
- http_version:
146
- recorded_at: Wed, 16 Apr 2014 09:00:24 GMT
147
- recorded_with: VCR 2.9.0