contentful 2.12.0 → 2.17.0

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.
Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -1
  3. data/README.md +24 -13
  4. data/lib/contentful/array.rb +14 -6
  5. data/lib/contentful/array_like.rb +11 -2
  6. data/lib/contentful/asset.rb +10 -4
  7. data/lib/contentful/base_resource.rb +29 -6
  8. data/lib/contentful/client.rb +4 -3
  9. data/lib/contentful/coercions.rb +1 -4
  10. data/lib/contentful/entry.rb +9 -5
  11. data/lib/contentful/fields_resource.rb +7 -11
  12. data/lib/contentful/includes.rb +74 -0
  13. data/lib/contentful/request.rb +6 -1
  14. data/lib/contentful/resource_builder.rb +15 -12
  15. data/lib/contentful/support.rb +0 -35
  16. data/lib/contentful/version.rb +1 -1
  17. metadata +15 -370
  18. data/.gitignore +0 -7
  19. data/.rspec +0 -1
  20. data/.rubocop.yml +0 -28
  21. data/.rubocop_todo.yml +0 -35
  22. data/.travis.yml +0 -13
  23. data/.yardopts +0 -4
  24. data/Gemfile +0 -9
  25. data/Gemfile.lock +0 -152
  26. data/Guardfile +0 -24
  27. data/RELEASE.md +0 -8
  28. data/Rakefile +0 -33
  29. data/contentful.gemspec +0 -44
  30. data/coverage/.last_run.json +0 -5
  31. data/coverage/.resultset.json +0 -2419
  32. data/coverage/.resultset.json.lock +0 -0
  33. data/coverage/assets/0.10.2/application.css +0 -799
  34. data/coverage/assets/0.10.2/application.js +0 -1707
  35. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  36. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  37. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  38. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  39. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  40. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  41. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  42. data/coverage/assets/0.10.2/loading.gif +0 -0
  43. data/coverage/assets/0.10.2/magnify.png +0 -0
  44. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  45. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  46. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  47. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  48. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  49. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  50. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  51. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  52. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  53. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  54. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  55. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  56. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  57. data/coverage/index.html +0 -15071
  58. data/doc/Contentful/AccessDenied.html +0 -159
  59. data/doc/Contentful/Array.html +0 -765
  60. data/doc/Contentful/ArrayCoercion.html +0 -242
  61. data/doc/Contentful/ArrayLike.html +0 -625
  62. data/doc/Contentful/Asset.html +0 -487
  63. data/doc/Contentful/BadGateway.html +0 -159
  64. data/doc/Contentful/BadRequest.html +0 -159
  65. data/doc/Contentful/BaseCoercion.html +0 -445
  66. data/doc/Contentful/BaseResource.html +0 -599
  67. data/doc/Contentful/BooleanCoercion.html +0 -242
  68. data/doc/Contentful/Client.html +0 -1740
  69. data/doc/Contentful/ContentType.html +0 -618
  70. data/doc/Contentful/ContentTypeCache.html +0 -428
  71. data/doc/Contentful/DateCoercion.html +0 -244
  72. data/doc/Contentful/DeletedAsset.html +0 -157
  73. data/doc/Contentful/DeletedEntry.html +0 -157
  74. data/doc/Contentful/EmptyFieldError.html +0 -217
  75. data/doc/Contentful/Entry.html +0 -334
  76. data/doc/Contentful/Error.html +0 -410
  77. data/doc/Contentful/Field.html +0 -936
  78. data/doc/Contentful/FieldsResource.html +0 -583
  79. data/doc/Contentful/File.html +0 -218
  80. data/doc/Contentful/FloatCoercion.html +0 -238
  81. data/doc/Contentful/IntegerCoercion.html +0 -238
  82. data/doc/Contentful/Link.html +0 -249
  83. data/doc/Contentful/LinkCoercion.html +0 -158
  84. data/doc/Contentful/Locale.html +0 -537
  85. data/doc/Contentful/Location.html +0 -383
  86. data/doc/Contentful/LocationCoercion.html +0 -238
  87. data/doc/Contentful/NotFound.html +0 -159
  88. data/doc/Contentful/ObjectCoercion.html +0 -238
  89. data/doc/Contentful/RateLimitExceeded.html +0 -346
  90. data/doc/Contentful/Request.html +0 -887
  91. data/doc/Contentful/ResourceBuilder.html +0 -978
  92. data/doc/Contentful/ResourceReferences.html +0 -254
  93. data/doc/Contentful/Response.html +0 -710
  94. data/doc/Contentful/RichTextCoercion.html +0 -238
  95. data/doc/Contentful/ServerError.html +0 -159
  96. data/doc/Contentful/ServiceUnavailable.html +0 -159
  97. data/doc/Contentful/Space.html +0 -393
  98. data/doc/Contentful/StringCoercion.html +0 -242
  99. data/doc/Contentful/StructuredTextCoercion.html +0 -238
  100. data/doc/Contentful/Support.html +0 -788
  101. data/doc/Contentful/SymbolCoercion.html +0 -169
  102. data/doc/Contentful/Sync.html +0 -653
  103. data/doc/Contentful/SyncPage.html +0 -807
  104. data/doc/Contentful/TextCoercion.html +0 -169
  105. data/doc/Contentful/Unauthorized.html +0 -159
  106. data/doc/Contentful/UnparsableJson.html +0 -159
  107. data/doc/Contentful/UnparsableResource.html +0 -135
  108. data/doc/Contentful.html +0 -157
  109. data/doc/_index.html +0 -563
  110. data/doc/class_list.html +0 -51
  111. data/doc/css/common.css +0 -1
  112. data/doc/css/full_list.css +0 -58
  113. data/doc/css/style.css +0 -496
  114. data/doc/file.CHANGELOG.html +0 -729
  115. data/doc/file.LICENSE.html +0 -70
  116. data/doc/file.README.html +0 -925
  117. data/doc/file_list.html +0 -66
  118. data/doc/frames.html +0 -17
  119. data/doc/index.html +0 -925
  120. data/doc/js/app.js +0 -292
  121. data/doc/js/full_list.js +0 -216
  122. data/doc/js/jquery.js +0 -4
  123. data/doc/method_list.html +0 -1171
  124. data/doc/top-level-namespace.html +0 -110
  125. data/examples/custom_classes.rb +0 -39
  126. data/examples/example_queries.rb +0 -26
  127. data/examples/raise_errors.rb +0 -20
  128. data/examples/raw_mode.rb +0 -14
  129. data/spec/array_spec.rb +0 -122
  130. data/spec/asset_spec.rb +0 -192
  131. data/spec/auto_includes_spec.rb +0 -12
  132. data/spec/client_class_spec.rb +0 -86
  133. data/spec/client_configuration_spec.rb +0 -377
  134. data/spec/content_type_spec.rb +0 -49
  135. data/spec/deleted_asset_spec.rb +0 -38
  136. data/spec/deleted_entry_spec.rb +0 -38
  137. data/spec/entry_spec.rb +0 -688
  138. data/spec/error_class_spec.rb +0 -327
  139. data/spec/error_requests_spec.rb +0 -87
  140. data/spec/field_spec.rb +0 -95
  141. data/spec/file_spec.rb +0 -33
  142. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  143. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  144. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  145. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  146. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  147. data/spec/fixtures/json_responses/404_id.json +0 -11
  148. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  149. data/spec/fixtures/json_responses/404_type.json +0 -10
  150. data/spec/fixtures/json_responses/content_type.json +0 -83
  151. data/spec/fixtures/json_responses/default_400.json +0 -7
  152. data/spec/fixtures/json_responses/default_401.json +0 -7
  153. data/spec/fixtures/json_responses/default_403.json +0 -7
  154. data/spec/fixtures/json_responses/default_404.json +0 -7
  155. data/spec/fixtures/json_responses/default_429.json +0 -7
  156. data/spec/fixtures/json_responses/default_500.json +0 -7
  157. data/spec/fixtures/json_responses/default_502.json +0 -7
  158. data/spec/fixtures/json_responses/default_503.json +0 -7
  159. data/spec/fixtures/json_responses/includes.json +0 -111
  160. data/spec/fixtures/json_responses/link_array.json +0 -43
  161. data/spec/fixtures/json_responses/not_found.json +0 -13
  162. data/spec/fixtures/json_responses/nyancat.json +0 -48
  163. data/spec/fixtures/json_responses/other_error.json +0 -9
  164. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  165. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  166. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  167. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  168. data/spec/fixtures/json_responses/self_link.json +0 -82
  169. data/spec/fixtures/json_responses/unparsable.json +0 -13
  170. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  171. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  172. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  173. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  174. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  175. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  176. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  177. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  178. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  179. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  180. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  181. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  182. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  183. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  184. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  185. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  186. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  187. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  188. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  189. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  190. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  191. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  192. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  193. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  194. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  195. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  196. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  197. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  198. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  199. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  200. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  201. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  202. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  203. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  204. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  205. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  206. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  207. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  208. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  209. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  210. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  211. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  212. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  213. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  214. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  215. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  216. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  217. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  218. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  219. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  220. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  221. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  222. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  223. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  224. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  225. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  226. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  227. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  228. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  229. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  230. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  231. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  232. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  233. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  234. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  235. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  236. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  237. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  238. data/spec/link_spec.rb +0 -50
  239. data/spec/locale_spec.rb +0 -37
  240. data/spec/location_spec.rb +0 -25
  241. data/spec/request_spec.rb +0 -57
  242. data/spec/resource_building_spec.rb +0 -31
  243. data/spec/response_spec.rb +0 -62
  244. data/spec/space_spec.rb +0 -31
  245. data/spec/spec_helper.rb +0 -14
  246. data/spec/support/client.rb +0 -6
  247. data/spec/support/json_responses.rb +0 -18
  248. data/spec/support/vcr.rb +0 -16
  249. data/spec/sync_page_spec.rb +0 -103
  250. data/spec/sync_spec.rb +0 -180
@@ -1,303 +0,0 @@
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
@@ -1,293 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?include=2&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
- Connection:
17
- - close
18
- Host:
19
- - cdn.contentful.com
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Access-Control-Allow-Headers:
26
- - 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
27
- Access-Control-Allow-Methods:
28
- - GET,HEAD,OPTIONS
29
- Access-Control-Allow-Origin:
30
- - "*"
31
- Access-Control-Expose-Headers:
32
- - Etag
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
- - W/"9707115047cc402819250f844939b2aa"
41
- Server:
42
- - Contentful
43
- X-Content-Type-Options:
44
- - nosniff
45
- - nosniff
46
- X-Contentful-Request-Id:
47
- - fdff368667a9181d8c0b1451c9499407
48
- Content-Length:
49
- - '4201'
50
- Accept-Ranges:
51
- - bytes
52
- Date:
53
- - Thu, 05 Jan 2017 21:35:14 GMT
54
- Via:
55
- - 1.1 varnish
56
- Age:
57
- - '284'
58
- Connection:
59
- - close
60
- X-Served-By:
61
- - cache-gru7120-GRU
62
- X-Cache:
63
- - HIT
64
- X-Cache-Hits:
65
- - '1'
66
- X-Timer:
67
- - S1483652114.308569,VS0,VE0
68
- Vary:
69
- - Accept-Encoding
70
- body:
71
- encoding: ASCII-8BIT
72
- string: |
73
- {
74
- "sys": {
75
- "type": "Array"
76
- },
77
- "total": 1,
78
- "skip": 0,
79
- "limit": 100,
80
- "items": [
81
- {
82
- "sys": {
83
- "space": {
84
- "sys": {
85
- "type": "Link",
86
- "linkType": "Space",
87
- "id": "cfexampleapi"
88
- }
89
- },
90
- "id": "nyancat",
91
- "type": "Entry",
92
- "createdAt": "2013-06-27T22:46:19.513Z",
93
- "updatedAt": "2013-09-04T09:19:39.027Z",
94
- "revision": 5,
95
- "contentType": {
96
- "sys": {
97
- "type": "Link",
98
- "linkType": "ContentType",
99
- "id": "cat"
100
- }
101
- },
102
- "locale": "en-US"
103
- },
104
- "fields": {
105
- "name": "Nyan Cat",
106
- "likes": [
107
- "rainbows",
108
- "fish"
109
- ],
110
- "color": "rainbow",
111
- "bestFriend": {
112
- "sys": {
113
- "type": "Link",
114
- "linkType": "Entry",
115
- "id": "happycat"
116
- }
117
- },
118
- "birthday": "2011-04-04T22:00:00+00:00",
119
- "lives": 1337,
120
- "image": {
121
- "sys": {
122
- "type": "Link",
123
- "linkType": "Asset",
124
- "id": "nyancat"
125
- }
126
- },
127
- "catPack": [
128
- {
129
- "sys": {
130
- "type": "Link",
131
- "linkType": "Entry",
132
- "id": "happycat"
133
- }
134
- },
135
- {
136
- "sys": {
137
- "type": "Link",
138
- "linkType": "Entry",
139
- "id": "worriedcat"
140
- }
141
- }
142
- ]
143
- }
144
- }
145
- ],
146
- "includes": {
147
- "Entry": [
148
- {
149
- "sys": {
150
- "space": {
151
- "sys": {
152
- "type": "Link",
153
- "linkType": "Space",
154
- "id": "cfexampleapi"
155
- }
156
- },
157
- "id": "happycat",
158
- "type": "Entry",
159
- "createdAt": "2013-06-27T22:46:20.171Z",
160
- "updatedAt": "2013-11-18T15:58:02.018Z",
161
- "revision": 8,
162
- "contentType": {
163
- "sys": {
164
- "type": "Link",
165
- "linkType": "ContentType",
166
- "id": "cat"
167
- }
168
- },
169
- "locale": "en-US"
170
- },
171
- "fields": {
172
- "name": "Happy Cat",
173
- "likes": [
174
- "cheezburger"
175
- ],
176
- "color": "gray",
177
- "bestFriend": {
178
- "sys": {
179
- "type": "Link",
180
- "linkType": "Entry",
181
- "id": "nyancat"
182
- }
183
- },
184
- "birthday": "2003-10-28T23:00:00+00:00",
185
- "lives": 1,
186
- "image": {
187
- "sys": {
188
- "type": "Link",
189
- "linkType": "Asset",
190
- "id": "happycat"
191
- }
192
- }
193
- }
194
- },
195
- {
196
- "sys": {
197
- "space": {
198
- "sys": {
199
- "type": "Link",
200
- "linkType": "Space",
201
- "id": "cfexampleapi"
202
- }
203
- },
204
- "id": "worriedcat",
205
- "type": "Entry",
206
- "createdAt": "2013-06-27T22:46:20.171Z",
207
- "updatedAt": "2013-11-18T15:58:02.018Z",
208
- "revision": 8,
209
- "contentType": {
210
- "sys": {
211
- "type": "Link",
212
- "linkType": "ContentType",
213
- "id": "cat"
214
- }
215
- },
216
- "locale": "en-US"
217
- },
218
- "fields": {
219
- "name": "Worried Cat"
220
- }
221
- }
222
- ],
223
- "Asset": [
224
- {
225
- "sys": {
226
- "space": {
227
- "sys": {
228
- "type": "Link",
229
- "linkType": "Space",
230
- "id": "cfexampleapi"
231
- }
232
- },
233
- "id": "happycat",
234
- "type": "Asset",
235
- "createdAt": "2013-09-02T14:56:34.267Z",
236
- "updatedAt": "2013-09-02T15:11:24.361Z",
237
- "revision": 2,
238
- "locale": "en-US"
239
- },
240
- "fields": {
241
- "title": "Happy Cat",
242
- "file": {
243
- "url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg",
244
- "details": {
245
- "size": 59939,
246
- "image": {
247
- "width": 273,
248
- "height": 397
249
- }
250
- },
251
- "fileName": "happycatw.jpg",
252
- "contentType": "image/jpeg"
253
- }
254
- }
255
- },
256
- {
257
- "sys": {
258
- "space": {
259
- "sys": {
260
- "type": "Link",
261
- "linkType": "Space",
262
- "id": "cfexampleapi"
263
- }
264
- },
265
- "id": "nyancat",
266
- "type": "Asset",
267
- "createdAt": "2013-09-02T14:56:34.240Z",
268
- "updatedAt": "2013-09-02T14:56:34.240Z",
269
- "revision": 1,
270
- "locale": "en-US"
271
- },
272
- "fields": {
273
- "title": "Nyan Cat",
274
- "file": {
275
- "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png",
276
- "details": {
277
- "size": 12273,
278
- "image": {
279
- "width": 250,
280
- "height": 250
281
- }
282
- },
283
- "fileName": "Nyan_cat_250px_frame.png",
284
- "contentType": "image/png"
285
- }
286
- }
287
- }
288
- ]
289
- }
290
- }
291
- http_version:
292
- recorded_at: Thu, 05 Jan 2017 21:35:14 GMT
293
- recorded_with: VCR 3.0.3