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,637 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/sync?initial=true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.3
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
- - Mon, 21 Apr 2014 19:52:28 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
- - '"8cc03113b9eb6da94926dd27dda2f601"'
41
- X-Contentful-Request-Id:
42
- - 85f-649737436
43
- Content-Length:
44
- - '13208'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '0'
51
- X-Served-By:
52
- - cache-fra1225-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
- "items": [
67
- {
68
- "sys": {
69
- "space": {
70
- "sys": {
71
- "type": "Link",
72
- "linkType": "Space",
73
- "id": "cfexampleapi"
74
- }
75
- },
76
- "type": "Entry",
77
- "contentType": {
78
- "sys": {
79
- "type": "Link",
80
- "linkType": "ContentType",
81
- "id": "1t9IbcfdCk6m04uISSsaIK"
82
- }
83
- },
84
- "id": "5ETMRzkl9KM4omyMwKAOki",
85
- "revision": 2,
86
- "createdAt": "2014-02-21T13:42:57.752Z",
87
- "updatedAt": "2014-04-16T12:44:02.691Z"
88
- },
89
- "fields": {
90
- "name": {
91
- "en-US": "London"
92
- },
93
- "center": {
94
- "en-US": {
95
- "lat": 51.508515,
96
- "lon": -0.12548719999995228
97
- }
98
- }
99
- }
100
- },
101
- {
102
- "sys": {
103
- "space": {
104
- "sys": {
105
- "type": "Link",
106
- "linkType": "Space",
107
- "id": "cfexampleapi"
108
- }
109
- },
110
- "type": "Entry",
111
- "contentType": {
112
- "sys": {
113
- "type": "Link",
114
- "linkType": "ContentType",
115
- "id": "1t9IbcfdCk6m04uISSsaIK"
116
- }
117
- },
118
- "id": "7qVBlCjpWE86Oseo40gAEY",
119
- "revision": 2,
120
- "createdAt": "2014-02-21T13:43:38.258Z",
121
- "updatedAt": "2014-04-15T08:22:22.010Z"
122
- },
123
- "fields": {
124
- "name": {
125
- "en-US": "San Francisco"
126
- },
127
- "center": {
128
- "en-US": {
129
- "lat": 37.7749295,
130
- "lon": -122.41941550000001
131
- }
132
- }
133
- }
134
- },
135
- {
136
- "sys": {
137
- "space": {
138
- "sys": {
139
- "type": "Link",
140
- "linkType": "Space",
141
- "id": "cfexampleapi"
142
- }
143
- },
144
- "type": "Entry",
145
- "contentType": {
146
- "sys": {
147
- "type": "Link",
148
- "linkType": "ContentType",
149
- "id": "1t9IbcfdCk6m04uISSsaIK"
150
- }
151
- },
152
- "id": "ge1xHyH3QOWucKWCCAgIG",
153
- "revision": 1,
154
- "createdAt": "2014-02-21T13:43:23.210Z",
155
- "updatedAt": "2014-02-21T13:43:23.210Z"
156
- },
157
- "fields": {
158
- "name": {
159
- "en-US": "Paris"
160
- },
161
- "center": {
162
- "en-US": {
163
- "lat": 48.856614,
164
- "lon": 2.3522219000000177
165
- }
166
- }
167
- }
168
- },
169
- {
170
- "sys": {
171
- "space": {
172
- "sys": {
173
- "type": "Link",
174
- "linkType": "Space",
175
- "id": "cfexampleapi"
176
- }
177
- },
178
- "type": "Entry",
179
- "contentType": {
180
- "sys": {
181
- "type": "Link",
182
- "linkType": "ContentType",
183
- "id": "1t9IbcfdCk6m04uISSsaIK"
184
- }
185
- },
186
- "id": "4MU1s3potiUEM2G4okYOqw",
187
- "revision": 1,
188
- "createdAt": "2014-02-21T13:42:45.926Z",
189
- "updatedAt": "2014-02-21T13:42:45.926Z"
190
- },
191
- "fields": {
192
- "name": {
193
- "en-US": "Berlin"
194
- },
195
- "center": {
196
- "en-US": {
197
- "lat": 52.52000659999999,
198
- "lon": 13.404953999999975
199
- }
200
- }
201
- }
202
- },
203
- {
204
- "sys": {
205
- "space": {
206
- "sys": {
207
- "type": "Link",
208
- "linkType": "Space",
209
- "id": "cfexampleapi"
210
- }
211
- },
212
- "type": "Asset",
213
- "id": "1x0xpXu4pSGS4OukSyWGUK",
214
- "revision": 6,
215
- "createdAt": "2013-11-06T09:45:10.000Z",
216
- "updatedAt": "2013-12-18T13:27:14.917Z"
217
- },
218
- "fields": {
219
- "title": {
220
- "en-US": "Doge"
221
- },
222
- "file": {
223
- "en-US": {
224
- "fileName": "doge.jpg",
225
- "contentType": "image/jpeg",
226
- "details": {
227
- "image": {
228
- "width": 5800,
229
- "height": 4350
230
- },
231
- "size": 522943
232
- },
233
- "url": "//images.contentful.com/cfexampleapi/1x0xpXu4pSGS4OukSyWGUK/cc1239c6385428ef26f4180190532818/doge.jpg"
234
- }
235
- },
236
- "description": {
237
- "en-US": "nice picture"
238
- }
239
- }
240
- },
241
- {
242
- "fields": {
243
- "name": {
244
- "en-US": "Jake"
245
- },
246
- "description": {
247
- "en-US": "Bacon pancakes, makin' bacon pancakes!"
248
- },
249
- "image": {
250
- "en-US": {
251
- "sys": {
252
- "type": "Link",
253
- "linkType": "Asset",
254
- "id": "jake"
255
- }
256
- }
257
- }
258
- },
259
- "sys": {
260
- "space": {
261
- "sys": {
262
- "type": "Link",
263
- "linkType": "Space",
264
- "id": "cfexampleapi"
265
- }
266
- },
267
- "type": "Entry",
268
- "contentType": {
269
- "sys": {
270
- "type": "Link",
271
- "linkType": "ContentType",
272
- "id": "dog"
273
- }
274
- },
275
- "id": "jake",
276
- "revision": 5,
277
- "createdAt": "2013-06-27T22:46:22.096Z",
278
- "updatedAt": "2013-12-18T13:10:26.212Z"
279
- }
280
- },
281
- {
282
- "fields": {
283
- "name": {
284
- "en-US": "Happy Cat",
285
- "tlh": "Quch vIghro'"
286
- },
287
- "bestFriend": {
288
- "en-US": {
289
- "sys": {
290
- "type": "Link",
291
- "linkType": "Entry",
292
- "id": "nyancat"
293
- }
294
- }
295
- },
296
- "likes": {
297
- "en-US": [
298
- "cheezburger"
299
- ]
300
- },
301
- "color": {
302
- "en-US": "gray"
303
- },
304
- "birthday": {
305
- "en-US": "2003-10-28T23:00:00+00:00"
306
- },
307
- "lives": {
308
- "en-US": 1
309
- },
310
- "image": {
311
- "en-US": {
312
- "sys": {
313
- "type": "Link",
314
- "linkType": "Asset",
315
- "id": "happycat"
316
- }
317
- }
318
- }
319
- },
320
- "sys": {
321
- "space": {
322
- "sys": {
323
- "type": "Link",
324
- "linkType": "Space",
325
- "id": "cfexampleapi"
326
- }
327
- },
328
- "type": "Entry",
329
- "contentType": {
330
- "sys": {
331
- "type": "Link",
332
- "linkType": "ContentType",
333
- "id": "cat"
334
- }
335
- },
336
- "id": "happycat",
337
- "revision": 8,
338
- "createdAt": "2013-06-27T22:46:20.171Z",
339
- "updatedAt": "2013-11-18T15:58:02.018Z"
340
- }
341
- },
342
- {
343
- "sys": {
344
- "space": {
345
- "sys": {
346
- "type": "Link",
347
- "linkType": "Space",
348
- "id": "cfexampleapi"
349
- }
350
- },
351
- "type": "Entry",
352
- "contentType": {
353
- "sys": {
354
- "type": "Link",
355
- "linkType": "ContentType",
356
- "id": "dog"
357
- }
358
- },
359
- "id": "6KntaYXaHSyIw8M6eo26OK",
360
- "revision": 2,
361
- "createdAt": "2013-11-06T09:45:27.475Z",
362
- "updatedAt": "2013-11-18T09:13:37.808Z"
363
- },
364
- "fields": {
365
- "name": {
366
- "en-US": "Doge"
367
- },
368
- "image": {
369
- "en-US": {
370
- "sys": {
371
- "type": "Link",
372
- "linkType": "Asset",
373
- "id": "1x0xpXu4pSGS4OukSyWGUK"
374
- }
375
- }
376
- },
377
- "description": {
378
- "en-US": "such json\nwow"
379
- }
380
- }
381
- },
382
- {
383
- "fields": {
384
- "name": {
385
- "en-US": "Finn"
386
- },
387
- "description": {
388
- "en-US": "Fearless adventurer! Defender of pancakes."
389
- },
390
- "likes": {
391
- "en-US": [
392
- "adventure"
393
- ]
394
- },
395
- "image": {}
396
- },
397
- "sys": {
398
- "space": {
399
- "sys": {
400
- "type": "Link",
401
- "linkType": "Space",
402
- "id": "cfexampleapi"
403
- }
404
- },
405
- "type": "Entry",
406
- "contentType": {
407
- "sys": {
408
- "type": "Link",
409
- "linkType": "ContentType",
410
- "id": "human"
411
- }
412
- },
413
- "id": "finn",
414
- "revision": 6,
415
- "createdAt": "2013-06-27T22:46:21.450Z",
416
- "updatedAt": "2013-09-09T16:15:01.297Z"
417
- }
418
- },
419
- {
420
- "fields": {
421
- "name": {
422
- "en-US": "Nyan Cat",
423
- "tlh": "Nyan vIghro'"
424
- },
425
- "likes": {
426
- "en-US": [
427
- "rainbows",
428
- "fish"
429
- ]
430
- },
431
- "color": {
432
- "en-US": "rainbow"
433
- },
434
- "bestFriend": {
435
- "en-US": {
436
- "sys": {
437
- "type": "Link",
438
- "linkType": "Entry",
439
- "id": "happycat"
440
- }
441
- }
442
- },
443
- "birthday": {
444
- "en-US": "2011-04-04T22:00:00+00:00"
445
- },
446
- "lives": {
447
- "en-US": 1337
448
- },
449
- "image": {
450
- "en-US": {
451
- "sys": {
452
- "type": "Link",
453
- "linkType": "Asset",
454
- "id": "nyancat"
455
- }
456
- }
457
- }
458
- },
459
- "sys": {
460
- "space": {
461
- "sys": {
462
- "type": "Link",
463
- "linkType": "Space",
464
- "id": "cfexampleapi"
465
- }
466
- },
467
- "type": "Entry",
468
- "contentType": {
469
- "sys": {
470
- "type": "Link",
471
- "linkType": "ContentType",
472
- "id": "cat"
473
- }
474
- },
475
- "id": "nyancat",
476
- "revision": 5,
477
- "createdAt": "2013-06-27T22:46:19.513Z",
478
- "updatedAt": "2013-09-04T09:19:39.027Z"
479
- }
480
- },
481
- {
482
- "fields": {
483
- "title": {
484
- "en-US": "Jake"
485
- },
486
- "file": {
487
- "en-US": {
488
- "fileName": "jake.png",
489
- "contentType": "image/png",
490
- "details": {
491
- "image": {
492
- "width": 100,
493
- "height": 161
494
- },
495
- "size": 20480
496
- },
497
- "url": "//images.contentful.com/cfexampleapi/4hlteQAXS8iS0YCMU6QMWg/2a4d826144f014109364ccf5c891d2dd/jake.png"
498
- }
499
- }
500
- },
501
- "sys": {
502
- "space": {
503
- "sys": {
504
- "type": "Link",
505
- "linkType": "Space",
506
- "id": "cfexampleapi"
507
- }
508
- },
509
- "type": "Asset",
510
- "id": "jake",
511
- "revision": 2,
512
- "createdAt": "2013-09-02T14:56:34.260Z",
513
- "updatedAt": "2013-09-02T15:22:39.466Z"
514
- }
515
- },
516
- {
517
- "fields": {
518
- "file": {
519
- "en-US": {
520
- "fileName": "happycatw.jpg",
521
- "contentType": "image/jpeg",
522
- "details": {
523
- "image": {
524
- "width": 273,
525
- "height": 397
526
- },
527
- "size": 59939
528
- },
529
- "url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
530
- }
531
- },
532
- "title": {
533
- "en-US": "Happy Cat"
534
- }
535
- },
536
- "sys": {
537
- "space": {
538
- "sys": {
539
- "type": "Link",
540
- "linkType": "Space",
541
- "id": "cfexampleapi"
542
- }
543
- },
544
- "type": "Asset",
545
- "id": "happycat",
546
- "revision": 2,
547
- "createdAt": "2013-09-02T14:56:34.267Z",
548
- "updatedAt": "2013-09-02T15:11:24.361Z"
549
- }
550
- },
551
- {
552
- "fields": {
553
- "title": {
554
- "en-US": "Nyan Cat"
555
- },
556
- "file": {
557
- "en-US": {
558
- "fileName": "Nyan_cat_250px_frame.png",
559
- "contentType": "image/png",
560
- "details": {
561
- "image": {
562
- "width": 250,
563
- "height": 250
564
- },
565
- "size": 12273
566
- },
567
- "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
568
- }
569
- }
570
- },
571
- "sys": {
572
- "space": {
573
- "sys": {
574
- "type": "Link",
575
- "linkType": "Space",
576
- "id": "cfexampleapi"
577
- }
578
- },
579
- "type": "Asset",
580
- "id": "nyancat",
581
- "revision": 1,
582
- "createdAt": "2013-09-02T14:56:34.240Z",
583
- "updatedAt": "2013-09-02T14:56:34.240Z"
584
- }
585
- },
586
- {
587
- "fields": {
588
- "name": {
589
- "en-US": "Garfield",
590
- "tlh": "Garfield"
591
- },
592
- "likes": {
593
- "en-US": [
594
- "lasagna"
595
- ]
596
- },
597
- "color": {
598
- "en-US": "orange"
599
- },
600
- "lifes": {
601
- "en-US": null
602
- },
603
- "lives": {
604
- "en-US": 9
605
- },
606
- "birthday": {
607
- "en-US": "1979-06-18T23:00:00+00:00"
608
- }
609
- },
610
- "sys": {
611
- "space": {
612
- "sys": {
613
- "type": "Link",
614
- "linkType": "Space",
615
- "id": "cfexampleapi"
616
- }
617
- },
618
- "type": "Entry",
619
- "contentType": {
620
- "sys": {
621
- "type": "Link",
622
- "linkType": "ContentType",
623
- "id": "cat"
624
- }
625
- },
626
- "id": "garfield",
627
- "revision": 2,
628
- "createdAt": "2013-06-27T22:46:20.821Z",
629
- "updatedAt": "2013-08-27T10:09:07.929Z"
630
- }
631
- }
632
- ],
633
- "nextPageUrl": "https://cdn.contentful.com/spaces/cfexampleapi/environments/master/sync?sync_token=w5ZGw6JFwqZmVcKsE8Kow4grw45QdybCr8Okw6AYwqbDksO3ehvDpUPCgcKsKXbCiAwPC8K2w4LDvsOkw6nCjhPDpcOQADElWsOoU8KGR3HCtsOAwqd6wp_Dulp8w6LDsF_CtsK7Kk05wrMvwrLClMOgG2_Dn2sGPg"
634
- }
635
- http_version:
636
- recorded_at: Mon, 21 Apr 2014 19:52:28 GMT
637
- recorded_with: VCR 2.9.0
@@ -1,71 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/sync?sync_token=w5ZGw6JFwqZmVcKsE8Kow4grw45QdybCr8Okw6AYwqbDksO3ehvDpUPCgcKsKXbCiAwPC8K2w4LDvsOkw6nCjhPDpcOQADElWsOoU8KGR3HCtsOAwqd6wp_Dulp8w6LDsF_CtsK7Kk05wrMvwrLClMOgG2_Dn2sGPg
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.3
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
- - Fri, 25 Apr 2014 13:31:17 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
- - '"382e4781b902b58d2edf3f10067167c7"'
41
- X-Contentful-Request-Id:
42
- - f1c-737770542
43
- Content-Length:
44
- - '300'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '0'
51
- X-Served-By:
52
- - cache-fra1229-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
- "items": [],
67
- "nextSyncUrl": "https://cdn.contentful.com/spaces/cfexampleapi/environments/master/sync?sync_token=w5ZGw6JFwqZmVcKsE8Kow4grw45QdybCr8Okw6AYwqbDksO3ehvDpUPCgcKsKXbCiAwPC8K2w4LDvsOkw6nCjhPDpcOQADElWsOoU8KGR3HCtsOAwqd6wp_Dulp8w6LDsF_CtsK7Kk05wrMvwrLClMOgG2_Dn2sGPg"
68
- }
69
- http_version:
70
- recorded_at: Fri, 25 Apr 2014 13:31:18 GMT
71
- recorded_with: VCR 2.9.0