contentful 2.15.3 → 2.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +22 -11
  4. data/lib/contentful/array_like.rb +11 -2
  5. data/lib/contentful/asset.rb +4 -0
  6. data/lib/contentful/base_resource.rb +14 -2
  7. data/lib/contentful/client.rb +1 -2
  8. data/lib/contentful/fields_resource.rb +1 -0
  9. data/lib/contentful/version.rb +1 -1
  10. metadata +4 -367
  11. data/.gitignore +0 -7
  12. data/.rspec +0 -1
  13. data/.rubocop.yml +0 -31
  14. data/.rubocop_todo.yml +0 -35
  15. data/.travis.yml +0 -15
  16. data/.yardopts +0 -4
  17. data/Gemfile +0 -9
  18. data/Gemfile.lock +0 -166
  19. data/Guardfile +0 -24
  20. data/RELEASE.md +0 -8
  21. data/Rakefile +0 -33
  22. data/contentful.gemspec +0 -44
  23. data/coverage/.last_run.json +0 -5
  24. data/coverage/.resultset.json +0 -5086
  25. data/coverage/.resultset.json.lock +0 -0
  26. data/coverage/assets/0.10.2/application.css +0 -799
  27. data/coverage/assets/0.10.2/application.js +0 -1707
  28. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  29. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  30. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  31. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  32. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  33. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  34. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  35. data/coverage/assets/0.10.2/loading.gif +0 -0
  36. data/coverage/assets/0.10.2/magnify.png +0 -0
  37. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  38. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  39. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  40. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  41. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  42. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  43. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  44. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  45. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  46. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  47. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  48. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  49. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  50. data/coverage/index.html +0 -0
  51. data/doc/Contentful/AccessDenied.html +0 -159
  52. data/doc/Contentful/Array.html +0 -844
  53. data/doc/Contentful/ArrayCoercion.html +0 -242
  54. data/doc/Contentful/ArrayLike.html +0 -624
  55. data/doc/Contentful/Asset.html +0 -486
  56. data/doc/Contentful/BadGateway.html +0 -159
  57. data/doc/Contentful/BadRequest.html +0 -159
  58. data/doc/Contentful/BaseCoercion.html +0 -445
  59. data/doc/Contentful/BaseResource.html +0 -598
  60. data/doc/Contentful/BooleanCoercion.html +0 -242
  61. data/doc/Contentful/Client.html +0 -1738
  62. data/doc/Contentful/ContentType.html +0 -617
  63. data/doc/Contentful/ContentTypeCache.html +0 -428
  64. data/doc/Contentful/DateCoercion.html +0 -244
  65. data/doc/Contentful/DeletedAsset.html +0 -156
  66. data/doc/Contentful/DeletedEntry.html +0 -156
  67. data/doc/Contentful/EmptyFieldError.html +0 -217
  68. data/doc/Contentful/Entry.html +0 -334
  69. data/doc/Contentful/Error.html +0 -407
  70. data/doc/Contentful/Field.html +0 -935
  71. data/doc/Contentful/FieldsResource.html +0 -583
  72. data/doc/Contentful/File.html +0 -218
  73. data/doc/Contentful/FloatCoercion.html +0 -238
  74. data/doc/Contentful/IntegerCoercion.html +0 -238
  75. data/doc/Contentful/Link.html +0 -246
  76. data/doc/Contentful/LinkCoercion.html +0 -156
  77. data/doc/Contentful/Locale.html +0 -536
  78. data/doc/Contentful/Location.html +0 -382
  79. data/doc/Contentful/LocationCoercion.html +0 -238
  80. data/doc/Contentful/NotFound.html +0 -159
  81. data/doc/Contentful/ObjectCoercion.html +0 -238
  82. data/doc/Contentful/RateLimitExceeded.html +0 -346
  83. data/doc/Contentful/Request.html +0 -895
  84. data/doc/Contentful/ResourceBuilder.html +0 -1067
  85. data/doc/Contentful/ResourceReferences.html +0 -254
  86. data/doc/Contentful/Response.html +0 -708
  87. data/doc/Contentful/RichTextCoercion.html +0 -238
  88. data/doc/Contentful/ServerError.html +0 -159
  89. data/doc/Contentful/ServiceUnavailable.html +0 -159
  90. data/doc/Contentful/Space.html +0 -392
  91. data/doc/Contentful/StringCoercion.html +0 -242
  92. data/doc/Contentful/StructuredTextCoercion.html +0 -238
  93. data/doc/Contentful/Support.html +0 -788
  94. data/doc/Contentful/SymbolCoercion.html +0 -169
  95. data/doc/Contentful/Sync.html +0 -653
  96. data/doc/Contentful/SyncPage.html +0 -807
  97. data/doc/Contentful/TextCoercion.html +0 -169
  98. data/doc/Contentful/Unauthorized.html +0 -159
  99. data/doc/Contentful/UnparsableJson.html +0 -159
  100. data/doc/Contentful/UnparsableResource.html +0 -135
  101. data/doc/Contentful.html +0 -157
  102. data/doc/_index.html +0 -563
  103. data/doc/class_list.html +0 -51
  104. data/doc/css/common.css +0 -1
  105. data/doc/css/full_list.css +0 -58
  106. data/doc/css/style.css +0 -496
  107. data/doc/file.CHANGELOG.html +0 -708
  108. data/doc/file.LICENSE.html +0 -70
  109. data/doc/file.README.html +0 -758
  110. data/doc/file_list.html +0 -66
  111. data/doc/frames.html +0 -17
  112. data/doc/index.html +0 -758
  113. data/doc/js/app.js +0 -303
  114. data/doc/js/full_list.js +0 -216
  115. data/doc/js/jquery.js +0 -4
  116. data/doc/method_list.html +0 -1187
  117. data/doc/top-level-namespace.html +0 -110
  118. data/examples/custom_classes.rb +0 -39
  119. data/examples/example_queries.rb +0 -26
  120. data/examples/raise_errors.rb +0 -20
  121. data/examples/raw_mode.rb +0 -14
  122. data/spec/array_spec.rb +0 -167
  123. data/spec/asset_spec.rb +0 -192
  124. data/spec/auto_includes_spec.rb +0 -12
  125. data/spec/client_class_spec.rb +0 -86
  126. data/spec/client_configuration_spec.rb +0 -377
  127. data/spec/content_type_spec.rb +0 -49
  128. data/spec/deleted_asset_spec.rb +0 -38
  129. data/spec/deleted_entry_spec.rb +0 -38
  130. data/spec/entry_spec.rb +0 -777
  131. data/spec/error_class_spec.rb +0 -327
  132. data/spec/error_requests_spec.rb +0 -87
  133. data/spec/field_spec.rb +0 -95
  134. data/spec/file_spec.rb +0 -33
  135. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  136. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  137. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  138. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  139. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  140. data/spec/fixtures/json_responses/404_id.json +0 -11
  141. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  142. data/spec/fixtures/json_responses/404_type.json +0 -10
  143. data/spec/fixtures/json_responses/content_type.json +0 -83
  144. data/spec/fixtures/json_responses/default_400.json +0 -7
  145. data/spec/fixtures/json_responses/default_401.json +0 -7
  146. data/spec/fixtures/json_responses/default_403.json +0 -7
  147. data/spec/fixtures/json_responses/default_404.json +0 -7
  148. data/spec/fixtures/json_responses/default_429.json +0 -7
  149. data/spec/fixtures/json_responses/default_500.json +0 -7
  150. data/spec/fixtures/json_responses/default_502.json +0 -7
  151. data/spec/fixtures/json_responses/default_503.json +0 -7
  152. data/spec/fixtures/json_responses/includes.json +0 -111
  153. data/spec/fixtures/json_responses/link_array.json +0 -43
  154. data/spec/fixtures/json_responses/not_found.json +0 -13
  155. data/spec/fixtures/json_responses/nyancat.json +0 -48
  156. data/spec/fixtures/json_responses/other_error.json +0 -9
  157. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  158. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  159. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  160. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  161. data/spec/fixtures/json_responses/self_link.json +0 -82
  162. data/spec/fixtures/json_responses/unparsable.json +0 -13
  163. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  164. data/spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml +0 -315
  165. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  166. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  167. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  168. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  169. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  170. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  171. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  172. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  173. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  174. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  175. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  176. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  177. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  178. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  179. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  180. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  181. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  182. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  183. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  184. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  185. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  186. data/spec/fixtures/vcr_cassettes/entries/unresolvable_assets.yml +0 -89
  187. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  188. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  189. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  190. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  191. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  192. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  193. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  194. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  195. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  196. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  197. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  198. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  199. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  200. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  201. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  202. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  203. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  204. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  205. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  206. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  207. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  208. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  209. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  210. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  211. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  212. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  213. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  214. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  215. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  216. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  217. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  218. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  219. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  220. data/spec/fixtures/vcr_cassettes/query_array_1.yml +0 -89
  221. data/spec/fixtures/vcr_cassettes/query_array_2.yml +0 -89
  222. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  223. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  224. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  225. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  226. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  227. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  228. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  229. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  230. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  231. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  232. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  233. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  234. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  235. data/spec/link_spec.rb +0 -50
  236. data/spec/locale_spec.rb +0 -37
  237. data/spec/location_spec.rb +0 -25
  238. data/spec/request_spec.rb +0 -57
  239. data/spec/resource_building_spec.rb +0 -31
  240. data/spec/response_spec.rb +0 -62
  241. data/spec/space_spec.rb +0 -31
  242. data/spec/spec_helper.rb +0 -14
  243. data/spec/support/client.rb +0 -6
  244. data/spec/support/json_responses.rb +0 -18
  245. data/spec/support/vcr.rb +0 -16
  246. data/spec/sync_page_spec.rb +0 -103
  247. data/spec/sync_spec.rb +0 -180
@@ -1,83 +0,0 @@
1
- {
2
- "fields": [
3
- {
4
- "id": "name",
5
- "name": "Name",
6
- "type": "Text",
7
- "required": true,
8
- "localized": true
9
- },
10
- {
11
- "id": "likes",
12
- "name": "Likes",
13
- "type": "Array",
14
- "required": false,
15
- "localized": false,
16
- "items": {
17
- "type": "Symbol"
18
- }
19
- },
20
- {
21
- "id": "color",
22
- "name": "Color",
23
- "type": "Symbol",
24
- "required": false,
25
- "localized": false
26
- },
27
- {
28
- "id": "bestFriend",
29
- "name": "Best Friend",
30
- "type": "Link",
31
- "required": false,
32
- "localized": false,
33
- "linkType": "Entry"
34
- },
35
- {
36
- "id": "birthday",
37
- "name": "Birthday",
38
- "type": "Date",
39
- "required": false,
40
- "localized": false
41
- },
42
- {
43
- "id": "lifes",
44
- "name": "Lifes left",
45
- "type": "Integer",
46
- "required": false,
47
- "localized": false,
48
- "disabled": true
49
- },
50
- {
51
- "id": "lives",
52
- "name": "Lives left",
53
- "type": "Integer",
54
- "required": false,
55
- "localized": false
56
- },
57
- {
58
- "id": "image",
59
- "name": "Image",
60
- "required": false,
61
- "localized": false,
62
- "type": "Link",
63
- "linkType": "Asset"
64
- }
65
- ],
66
- "name": "Cat",
67
- "displayField": "name",
68
- "description": "Meow.",
69
- "sys": {
70
- "space": {
71
- "sys": {
72
- "type": "Link",
73
- "linkType": "Space",
74
- "id": "cfexampleapi"
75
- }
76
- },
77
- "type": "ContentType",
78
- "id": "cat",
79
- "revision": 2,
80
- "createdAt": "2013-06-27T22:46:12.852Z",
81
- "updatedAt": "2013-09-02T13:14:47.863Z"
82
- }
83
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "BadRequest"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "Unauthorized"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "AccessDenied"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "NotFound"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "RateLimitExceeded"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "ServerError"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "BadGateway"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "ServiceUnavailable"
5
- },
6
- "requestId": "85f-351076632"
7
- }
@@ -1,111 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Array"
4
- },
5
- "total": 1,
6
- "skip": 0,
7
- "limit": 100,
8
- "items": [
9
- {
10
- "sys": {
11
- "space": {
12
- "sys": {
13
- "type": "Link",
14
- "linkType": "Space",
15
- "id": "6yahkaf5ehkk"
16
- }
17
- },
18
- "type": "Entry",
19
- "contentType": {
20
- "sys": {
21
- "type": "Link",
22
- "linkType": "ContentType",
23
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
24
- }
25
- },
26
- "id": "2fCmT4nxtO6eI6usgoEkQG",
27
- "revision": 1,
28
- "createdAt": "2014-04-11T10:59:40.249Z",
29
- "updatedAt": "2014-04-11T10:59:40.249Z",
30
- "locale": "en-US"
31
- },
32
- "fields": {
33
- "foo": "dog",
34
- "links": [
35
- {
36
- "sys": {
37
- "type": "Link",
38
- "linkType": "Entry",
39
- "id": "5ulKc1zdg4ES0oAKuCe8yA"
40
- }
41
- },
42
- {
43
- "sys": {
44
- "type": "Link",
45
- "linkType": "Entry",
46
- "id": "49fzjGhfBCAu6iOqIeg8yQ"
47
- }
48
- }
49
- ]
50
- }
51
- }
52
- ],
53
- "includes": {
54
- "Entry": [
55
- {
56
- "sys": {
57
- "space": {
58
- "sys": {
59
- "type": "Link",
60
- "linkType": "Space",
61
- "id": "6yahkaf5ehkk"
62
- }
63
- },
64
- "type": "Entry",
65
- "contentType": {
66
- "sys": {
67
- "type": "Link",
68
- "linkType": "ContentType",
69
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
70
- }
71
- },
72
- "id": "49fzjGhfBCAu6iOqIeg8yQ",
73
- "revision": 1,
74
- "createdAt": "2014-04-11T10:58:58.286Z",
75
- "updatedAt": "2014-04-11T10:58:58.286Z",
76
- "locale": "en-US"
77
- },
78
- "fields": {
79
- "foo": "nyancat"
80
- }
81
- },
82
- {
83
- "sys": {
84
- "space": {
85
- "sys": {
86
- "type": "Link",
87
- "linkType": "Space",
88
- "id": "6yahkaf5ehkk"
89
- }
90
- },
91
- "type": "Entry",
92
- "contentType": {
93
- "sys": {
94
- "type": "Link",
95
- "linkType": "ContentType",
96
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
97
- }
98
- },
99
- "id": "5ulKc1zdg4ES0oAKuCe8yA",
100
- "revision": 1,
101
- "createdAt": "2014-04-11T10:59:17.658Z",
102
- "updatedAt": "2014-04-11T10:59:17.658Z",
103
- "locale": "en-US"
104
- },
105
- "fields": {
106
- "foo": "happycat"
107
- }
108
- }
109
- ]
110
- }
111
- }
@@ -1,43 +0,0 @@
1
- {
2
- "sys": {
3
- "space": {
4
- "sys": {
5
- "type": "Link",
6
- "linkType": "Space",
7
- "id": "6yahkaf5ehkk"
8
- }
9
- },
10
- "type": "Entry",
11
- "contentType": {
12
- "sys": {
13
- "type": "Link",
14
- "linkType": "ContentType",
15
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
16
- }
17
- },
18
- "id": "2fCmT4nxtO6eI6usgoEkQG",
19
- "revision": 1,
20
- "createdAt": "2014-04-11T10:59:40.249Z",
21
- "updatedAt": "2014-04-11T10:59:40.249Z",
22
- "locale": "en-US"
23
- },
24
- "fields": {
25
- "foo": "dog",
26
- "links": [
27
- {
28
- "sys": {
29
- "type": "Link",
30
- "linkType": "Entry",
31
- "id": "5ulKc1zdg4ES0oAKuCe8yA"
32
- }
33
- },
34
- {
35
- "sys": {
36
- "type": "Link",
37
- "linkType": "Entry",
38
- "id": "49fzjGhfBCAu6iOqIeg8yQ"
39
- }
40
- }
41
- ]
42
- }
43
- }
@@ -1,13 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "NotFound"
5
- },
6
- "details": {
7
- "type": "Entry",
8
- "space": "cfexampleapi",
9
- "id": "not found"
10
- },
11
- "message": "The resource could not be found.",
12
- "requestId": "85f-351076632"
13
- }
@@ -1,48 +0,0 @@
1
- {
2
- "fields": {
3
- "name": "Nyan Cat",
4
- "likes": [
5
- "rainbows",
6
- "fish"
7
- ],
8
- "color": "rainbow",
9
- "bestFriend": {
10
- "sys": {
11
- "type": "Link",
12
- "linkType": "Entry",
13
- "id": "happycat"
14
- }
15
- },
16
- "birthday": "2011-04-04T22:00:00+00:00",
17
- "lives": 1337,
18
- "image": {
19
- "sys": {
20
- "type": "Link",
21
- "linkType": "Asset",
22
- "id": "nyancat"
23
- }
24
- }
25
- },
26
- "sys": {
27
- "space": {
28
- "sys": {
29
- "type": "Link",
30
- "linkType": "Space",
31
- "id": "cfexampleapi"
32
- }
33
- },
34
- "type": "Entry",
35
- "contentType": {
36
- "sys": {
37
- "type": "Link",
38
- "linkType": "ContentType",
39
- "id": "cat"
40
- }
41
- },
42
- "id": "nyancat",
43
- "revision": 5,
44
- "createdAt": "2013-06-27T22:46:19.513Z",
45
- "updatedAt": "2013-09-04T09:19:39.027Z",
46
- "locale": "en-US"
47
- }
48
- }
@@ -1,9 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "SomeError"
5
- },
6
- "details": "some text",
7
- "message": "Some error occurred.",
8
- "requestId": "85f-351076632"
9
- }
@@ -1,8 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "SomeError"
5
- },
6
- "message": "Some error occurred.",
7
- "requestId": "85f-351076632"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "SomeError"
5
- },
6
- "details": "some text",
7
- "requestId": "85f-351076632"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "SomeError"
5
- },
6
- "details": "some text",
7
- "message": "Some error occurred."
8
- }
@@ -1,6 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "SomeError"
5
- }
6
- }
@@ -1,82 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Array"
4
- },
5
- "total": 1,
6
- "skip": 0,
7
- "limit": 100,
8
- "items": [
9
- {
10
- "sys": {
11
- "space": {
12
- "sys": {
13
- "type": "Link",
14
- "linkType": "Space",
15
- "id": "6yahkaf5ehkk"
16
- }
17
- },
18
- "type": "Entry",
19
- "contentType": {
20
- "sys": {
21
- "type": "Link",
22
- "linkType": "ContentType",
23
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
24
- }
25
- },
26
- "id": "6HM4G3D4iciuoIk6CW2OK6",
27
- "revision": 2,
28
- "createdAt": "2014-04-16T17:52:42.289Z",
29
- "updatedAt": "2014-04-16T17:53:28.780Z",
30
- "locale": "en-US"
31
- },
32
- "fields": {
33
- "foo": "777777777",
34
- "e": {
35
- "sys": {
36
- "type": "Link",
37
- "linkType": "Entry",
38
- "id": "55t1gz1JUIQ2s4mcMwQ8cA"
39
- }
40
- }
41
- }
42
- }
43
- ],
44
- "includes": {
45
- "Entry": [
46
- {
47
- "sys": {
48
- "space": {
49
- "sys": {
50
- "type": "Link",
51
- "linkType": "Space",
52
- "id": "6yahkaf5ehkk"
53
- }
54
- },
55
- "type": "Entry",
56
- "contentType": {
57
- "sys": {
58
- "type": "Link",
59
- "linkType": "ContentType",
60
- "id": "tSFLnCNqvuyoMA6SKkQ2W"
61
- }
62
- },
63
- "id": "55t1gz1JUIQ2s4mcMwQ8cA",
64
- "revision": 1,
65
- "createdAt": "2014-04-16T17:53:15.753Z",
66
- "updatedAt": "2014-04-16T17:53:15.753Z",
67
- "locale": "en-US"
68
- },
69
- "fields": {
70
- "foo": "88888888888",
71
- "e": {
72
- "sys": {
73
- "type": "Link",
74
- "linkType": "Entry",
75
- "id": "6HM4G3D4iciuoIk6CW2OK6"
76
- }
77
- }
78
- }
79
- }
80
- ]
81
- }
82
- }
@@ -1,13 +0,0 @@
1
- {
2
- "sys": {
3
- "type": "Error",
4
- "id": "NotFound"
5
- },
6
- "details": {
7
- "type": "Entry",
8
- "space": "cfexampleapi",
9
- "id": "not found"
10
- },
11
- "message": "The resource could not be found.",
12
- "requestId": "85f-351076632",
13
- "missing": "braceright"
@@ -1,159 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/j8tb59fszch7/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.1.2; platform ruby/2.4.1; os macOS/16;
12
- Authorization:
13
- - Bearer 5f711401f965951eb724ac72ac905e13d892294ba209268f13a9b32e896c8694
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-Experimental-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
- Etag:
46
- - W/"dbd86bc89681ff36b482b61f9acf6336"
47
- Server:
48
- - Contentful
49
- X-Content-Type-Options:
50
- - nosniff
51
- X-Contentful-Request-Id:
52
- - 2a18bccb70cba71bd8464663780f6fba
53
- Content-Length:
54
- - '458'
55
- Accept-Ranges:
56
- - bytes
57
- Date:
58
- - Thu, 17 Aug 2017 12:23:27 GMT
59
- Via:
60
- - 1.1 varnish
61
- Age:
62
- - '0'
63
- Connection:
64
- - close
65
- X-Served-By:
66
- - cache-gru7120-GRU
67
- X-Cache:
68
- - MISS
69
- X-Cache-Hits:
70
- - '0'
71
- X-Timer:
72
- - S1502972607.174656,VS0,VE300
73
- Vary:
74
- - Accept-Encoding
75
- body:
76
- encoding: ASCII-8BIT
77
- string: !binary |-
78
- H4sIAAAAAAAAA9VVO2/CMBDe+RWR54KSkJCSDVXt1K1MrRhMYoqL86htkALiv/fsPHCiQJ9ShZfkzr73fXeHgWUhUQgUWgf4BUIWOQEKzTjHBQLe8Ua9kZnEDPiupsSG5kDYmmA0oRIox7ZLBpUkURpftMZSb8eMNiVyHClb9YuSaTijGJpZO/VI0w1SRk8HzKebeeX0k9bYeUBjFc/brVz605XYR+tAhVWfY/OvAy0PKmWiNWWxoa7x4y5LJUmlNmtIRZxgSeKZygZybScY2sHQ9efONHQnoe+OJlPv2RTY5vH3BDjZUUGzVKW78rZxG8VU5AwXD5SA16GVbhmrnUMpTnRZ2yGhmIiI01yWKlHjG1opJaciqrS0ylQmiCb4lTithDeW+u7O1hGxLMKM7olyfIWZIGYRESfvW8rPXELYeMnOXGbQm1CSXq1m58yEIPLUF0YvnAvbvRB25+56wq56aqG/VRKuGMA55gDTP0KwH3r2yHNvv4rg8Tj0g5FnOy0BA8HjHyG4E9NvIawHgujv5b679n5oofQ/MFzvGhOlnyyMHQwaGLsw8vR8W1zYJ/ep5HoJ1sfYFm2oALUYHAcfDww1W1AHAAA=
79
- http_version:
80
- recorded_at: Thu, 17 Aug 2017 12:23:27 GMT
81
- - request:
82
- method: get
83
- uri: https://cdn.contentful.com/spaces/j8tb59fszch7/environments/master/entries?content_type=parent
84
- body:
85
- encoding: US-ASCII
86
- string: ''
87
- headers:
88
- X-Contentful-User-Agent:
89
- - sdk contentful.rb/2.1.2; platform ruby/2.4.1; os macOS/16;
90
- Authorization:
91
- - Bearer 5f711401f965951eb724ac72ac905e13d892294ba209268f13a9b32e896c8694
92
- Content-Type:
93
- - application/vnd.contentful.delivery.v1+json
94
- Accept-Encoding:
95
- - gzip
96
- Connection:
97
- - close
98
- Host:
99
- - cdn.contentful.com
100
- User-Agent:
101
- - http.rb/2.2.2
102
- response:
103
- status:
104
- code: 200
105
- message: OK
106
- headers:
107
- Access-Control-Allow-Headers:
108
- - 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-Experimental-Feature
109
- Access-Control-Allow-Methods:
110
- - GET,HEAD,OPTIONS
111
- Access-Control-Allow-Origin:
112
- - "*"
113
- Access-Control-Expose-Headers:
114
- - Etag
115
- Access-Control-Max-Age:
116
- - '86400'
117
- Cache-Control:
118
- - max-age=0
119
- Content-Encoding:
120
- - gzip
121
- Content-Type:
122
- - application/vnd.contentful.delivery.v1+json
123
- Etag:
124
- - W/"50b10e6946ba58441081ab4010bcc603"
125
- Server:
126
- - Contentful
127
- X-Content-Type-Options:
128
- - nosniff
129
- X-Contentful-Request-Id:
130
- - 54e27668a0265d1a9bc522aecba71a1a
131
- Content-Length:
132
- - '1171'
133
- Accept-Ranges:
134
- - bytes
135
- Date:
136
- - Thu, 17 Aug 2017 12:23:29 GMT
137
- Via:
138
- - 1.1 varnish
139
- Age:
140
- - '0'
141
- Connection:
142
- - close
143
- X-Served-By:
144
- - cache-gru7123-GRU
145
- X-Cache:
146
- - MISS
147
- X-Cache-Hits:
148
- - '0'
149
- X-Timer:
150
- - S1502972609.832470,VS0,VE217
151
- Vary:
152
- - Accept-Encoding
153
- body:
154
- encoding: ASCII-8BIT
155
- string: !binary |-
156
- H4sIAAAAAAAAA+2Y3W/iOBDA3/evqHg+iO34I+ENVS3a7bVcj7K99rQPxnHAbQgcCYfoqv/7OQ4fgSahzaW70qp5QImTsWfG85vx8P3TyUkjWkWN9sl3fasf4tVM6qdGZz7nq4Yee/4t+SaexjzQ49A8RY9qph+AeQjURMXJK5A+q1hOkgn/NhOm0x6sYlaKZlwkS22+SAczuiQDZnCj0+8qfGwka+4uvXr4eLPWuW9mPPhAeYk5D048JK4fPYkxS6zaXM/be2NnejVSGcK/2j0QkIcBEMtr1Htc3UWrQWb+rWJnYTxfZV+IueSx9DqJXxoIQNYErInIDXTbNmwj2iIM3GcFFjPvbQJz+a+K1DTc7MlaczENYxnGa4/U59rTzLy5Dp7xuV73uGuDqeCBiTAZNgf9jcDW+w1fycDbBWRiV0OMVTqWxlRqa9a4nPhaO6Qkdkzs7qLncBP3YuHuHN3f/BnMuqd9uhx1VpNl/+I0a60GJRtWWR/9UEWJq+iXED+Nou6gv6Tq89md7N6WaLrV+tv6LrUj+f1m+FahCBaezOSI1FMbwneM5+5CLue5X5qtfv1+5dGeqFvKe8k2bajPd2B2Qwu5T0K1lHyAW4yhLPlapJz9XJF8+pPlC/mvw+XFWWDreINqSbjt+bEgGayLzhrAnISQrDbhIwkPykcdNnaiSMYHRWRrHe7/9fVmDi7OBqtbdXl52uMDORi81lyjM/rROsOrAbwTV9dfup87CI06F5OLf26nJTrvSuImI2w2bZfJ9g4N643KK+h17Mg7gZ6f0mvgHLltjFoUvIHzIpEPzn8O5+z8IVDDoDPpTLuXywFFl/KaPpYwsxc2P4nz2bC7uL1HrEe7lz3Q68rJSHRKdH7JuRkxVV9zmybCX7TKFyTFXPpfVoTSKg/amLWgi99Q5QtECun/H3UzVnF6/CZMSopdBAUiPuf61hfMRY4DXSZsaO+VQH0qN1IHR9nFPOkJG5ZlIj5qrU8f/iLQtxMr23RZ+R63CPU5ZWg4hIyzIeMSMWZ7wJEQQA8Q1zqmZ+thNjrs+TwZcxXsNxGbIqWeEkOIjTHN7rYJeWPGCzPNq6Xy4rERNF3u/tUYSzUaJ80eJfDgbbYt2DvYmGkTv17xiWmIqli6f95LDbAeZnKU5T7T5P7SFR3mZ8AaoNb1GZEWdeDroS4SeVeozxdhuGqe8rj5hxLxYi6j5lLFYz0yi/WfBVET1o51rs8tjqFDgE25TTHgHsYu9G3Hc1xEAbD50DquaTWwKWCwEtgUlYLtIFwZ7Gq2fqBtMmTazxc0XjWgbYM2ZPr/uDec1otE3hVtCfSZQgoOhQNtQm0qJNBj2MaQYEfUXq/zPW4J1+cIYeoRglzuCl2opaA+sR3mCexT65ie1bDGLnMrYU0oLq3XlFTGuoqlH1BnoC7osmqAGjltov9kR2+p1wUi7wr10cqASN0FO9/pFkUEuJ7vAunjofRsRwAG4HDocu4IhsXxgq0PSJWO4rbOZ+4ho685ih+p2Bixymi/Yl/yjK1Kd9p369/nT8+f/gNYpN8blBsAAA==
157
- http_version:
158
- recorded_at: Thu, 17 Aug 2017 12:23:29 GMT
159
- recorded_with: VCR 3.0.3