contentful 2.15.1 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +11 -0
  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/entry.rb +2 -1
  9. data/lib/contentful/request.rb +6 -1
  10. data/lib/contentful/version.rb +1 -1
  11. metadata +10 -371
  12. data/.gitignore +0 -7
  13. data/.rspec +0 -1
  14. data/.rubocop.yml +0 -31
  15. data/.rubocop_todo.yml +0 -35
  16. data/.travis.yml +0 -14
  17. data/.yardopts +0 -4
  18. data/Gemfile +0 -9
  19. data/Guardfile +0 -24
  20. data/RELEASE.md +0 -8
  21. data/Rakefile +0 -33
  22. data/contentful.gemspec +0 -44
  23. data/examples/custom_classes.rb +0 -39
  24. data/examples/example_queries.rb +0 -26
  25. data/examples/raise_errors.rb +0 -20
  26. data/examples/raw_mode.rb +0 -14
  27. data/spec/array_spec.rb +0 -167
  28. data/spec/asset_spec.rb +0 -192
  29. data/spec/auto_includes_spec.rb +0 -12
  30. data/spec/client_class_spec.rb +0 -86
  31. data/spec/client_configuration_spec.rb +0 -377
  32. data/spec/content_type_spec.rb +0 -49
  33. data/spec/deleted_asset_spec.rb +0 -38
  34. data/spec/deleted_entry_spec.rb +0 -38
  35. data/spec/entry_spec.rb +0 -766
  36. data/spec/error_class_spec.rb +0 -327
  37. data/spec/error_requests_spec.rb +0 -87
  38. data/spec/field_spec.rb +0 -95
  39. data/spec/file_spec.rb +0 -33
  40. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  41. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  42. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  43. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  44. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  45. data/spec/fixtures/json_responses/404_id.json +0 -11
  46. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  47. data/spec/fixtures/json_responses/404_type.json +0 -10
  48. data/spec/fixtures/json_responses/content_type.json +0 -83
  49. data/spec/fixtures/json_responses/default_400.json +0 -7
  50. data/spec/fixtures/json_responses/default_401.json +0 -7
  51. data/spec/fixtures/json_responses/default_403.json +0 -7
  52. data/spec/fixtures/json_responses/default_404.json +0 -7
  53. data/spec/fixtures/json_responses/default_429.json +0 -7
  54. data/spec/fixtures/json_responses/default_500.json +0 -7
  55. data/spec/fixtures/json_responses/default_502.json +0 -7
  56. data/spec/fixtures/json_responses/default_503.json +0 -7
  57. data/spec/fixtures/json_responses/includes.json +0 -111
  58. data/spec/fixtures/json_responses/link_array.json +0 -43
  59. data/spec/fixtures/json_responses/not_found.json +0 -13
  60. data/spec/fixtures/json_responses/nyancat.json +0 -48
  61. data/spec/fixtures/json_responses/other_error.json +0 -9
  62. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  63. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  64. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  65. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  66. data/spec/fixtures/json_responses/self_link.json +0 -82
  67. data/spec/fixtures/json_responses/unparsable.json +0 -13
  68. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  69. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  70. data/spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml +0 -315
  71. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  72. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  73. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  74. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  75. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  76. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  77. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  78. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  79. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  80. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  81. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  82. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  83. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  84. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  85. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  86. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  87. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  88. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  89. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  90. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  91. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  92. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  93. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  94. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  95. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  96. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  97. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  98. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  99. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  100. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  101. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  102. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  103. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  104. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  105. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  106. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  107. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  108. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  109. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  110. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  111. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  112. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  113. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  114. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  115. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  116. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  117. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  118. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  119. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  120. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  121. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  122. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  123. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  124. data/spec/fixtures/vcr_cassettes/query_array_1.yml +0 -89
  125. data/spec/fixtures/vcr_cassettes/query_array_2.yml +0 -89
  126. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  127. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  128. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  129. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  130. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  131. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  132. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  133. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  134. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  135. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  136. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  137. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  138. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  139. data/spec/link_spec.rb +0 -50
  140. data/spec/locale_spec.rb +0 -37
  141. data/spec/location_spec.rb +0 -25
  142. data/spec/request_spec.rb +0 -57
  143. data/spec/resource_building_spec.rb +0 -31
  144. data/spec/response_spec.rb +0 -62
  145. data/spec/space_spec.rb +0 -31
  146. data/spec/spec_helper.rb +0 -14
  147. data/spec/support/client.rb +0 -6
  148. data/spec/support/json_responses.rb +0 -18
  149. data/spec/support/vcr.rb +0 -16
  150. data/spec/sync_page_spec.rb +0 -103
  151. 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