contentful 2.16.0 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/contentful/version.rb +1 -1
  4. metadata +3 -370
  5. data/.gitignore +0 -7
  6. data/.rspec +0 -1
  7. data/.rubocop.yml +0 -31
  8. data/.rubocop_todo.yml +0 -35
  9. data/.travis.yml +0 -15
  10. data/.yardopts +0 -4
  11. data/Gemfile +0 -9
  12. data/Guardfile +0 -24
  13. data/RELEASE.md +0 -8
  14. data/Rakefile +0 -33
  15. data/contentful.gemspec +0 -44
  16. data/examples/custom_classes.rb +0 -39
  17. data/examples/example_queries.rb +0 -26
  18. data/examples/raise_errors.rb +0 -20
  19. data/examples/raw_mode.rb +0 -14
  20. data/spec/array_spec.rb +0 -187
  21. data/spec/asset_spec.rb +0 -220
  22. data/spec/auto_includes_spec.rb +0 -12
  23. data/spec/client_class_spec.rb +0 -86
  24. data/spec/client_configuration_spec.rb +0 -394
  25. data/spec/content_type_spec.rb +0 -49
  26. data/spec/deleted_asset_spec.rb +0 -38
  27. data/spec/deleted_entry_spec.rb +0 -38
  28. data/spec/entry_spec.rb +0 -815
  29. data/spec/error_class_spec.rb +0 -327
  30. data/spec/error_requests_spec.rb +0 -87
  31. data/spec/field_spec.rb +0 -95
  32. data/spec/file_spec.rb +0 -33
  33. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  34. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  35. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  36. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  37. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  38. data/spec/fixtures/json_responses/404_id.json +0 -11
  39. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  40. data/spec/fixtures/json_responses/404_type.json +0 -10
  41. data/spec/fixtures/json_responses/content_type.json +0 -83
  42. data/spec/fixtures/json_responses/default_400.json +0 -7
  43. data/spec/fixtures/json_responses/default_401.json +0 -7
  44. data/spec/fixtures/json_responses/default_403.json +0 -7
  45. data/spec/fixtures/json_responses/default_404.json +0 -7
  46. data/spec/fixtures/json_responses/default_429.json +0 -7
  47. data/spec/fixtures/json_responses/default_500.json +0 -7
  48. data/spec/fixtures/json_responses/default_502.json +0 -7
  49. data/spec/fixtures/json_responses/default_503.json +0 -7
  50. data/spec/fixtures/json_responses/includes.json +0 -111
  51. data/spec/fixtures/json_responses/link_array.json +0 -43
  52. data/spec/fixtures/json_responses/not_found.json +0 -13
  53. data/spec/fixtures/json_responses/nyancat.json +0 -48
  54. data/spec/fixtures/json_responses/other_error.json +0 -9
  55. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  56. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  57. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  58. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  59. data/spec/fixtures/json_responses/self_link.json +0 -82
  60. data/spec/fixtures/json_responses/unparsable.json +0 -13
  61. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  62. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  63. data/spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml +0 -315
  64. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  65. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  66. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  67. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  68. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  69. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  70. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  71. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  72. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  73. data/spec/fixtures/vcr_cassettes/asset/with_tags.yml +0 -138
  74. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  75. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  76. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  77. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  78. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  79. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  80. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  81. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  82. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  83. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  84. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  85. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  86. data/spec/fixtures/vcr_cassettes/entries/unresolvable_assets.yml +0 -89
  87. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  88. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  89. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  90. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  91. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  92. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  93. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  94. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  95. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  96. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  97. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  98. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  99. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  100. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  101. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  102. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  103. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  104. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  105. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  106. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  107. data/spec/fixtures/vcr_cassettes/entry/with_tags.yml +0 -238
  108. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  109. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  110. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  111. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  112. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  113. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  114. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  115. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  116. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  117. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  118. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  119. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  120. data/spec/fixtures/vcr_cassettes/query_array_1.yml +0 -89
  121. data/spec/fixtures/vcr_cassettes/query_array_2.yml +0 -89
  122. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  123. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  124. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  125. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  126. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  127. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  128. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  129. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  130. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  131. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  132. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  133. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  134. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  135. data/spec/link_spec.rb +0 -50
  136. data/spec/locale_spec.rb +0 -37
  137. data/spec/location_spec.rb +0 -25
  138. data/spec/request_spec.rb +0 -57
  139. data/spec/resource_building_spec.rb +0 -31
  140. data/spec/response_spec.rb +0 -62
  141. data/spec/space_spec.rb +0 -31
  142. data/spec/spec_helper.rb +0 -14
  143. data/spec/support/client.rb +0 -6
  144. data/spec/support/json_responses.rb +0 -18
  145. data/spec/support/vcr.rb +0 -16
  146. data/spec/sync_page_spec.rb +0 -103
  147. data/spec/sync_spec.rb +0 -180
@@ -1,104 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/assets?select=sys&sys.id=nyancat
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/1.0.2
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Accept-Encoding:
17
- - gzip
18
- Connection:
19
- - close
20
- Host:
21
- - cdn.contentful.com
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Access-Control-Allow-Headers:
28
- - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Type:
40
- - application/vnd.contentful.delivery.v1+json
41
- Etag:
42
- - '"87f134c2b4adb7ec01f63ac1d3b15dd8"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- - nosniff
48
- X-Contentful-Request-Id:
49
- - d64c3a9dd291011cd26ee2f99f2aa0d9
50
- Content-Length:
51
- - '487'
52
- Accept-Ranges:
53
- - bytes
54
- Date:
55
- - Tue, 11 Oct 2016 21:52:07 GMT
56
- Via:
57
- - 1.1 varnish
58
- Age:
59
- - '0'
60
- Connection:
61
- - close
62
- X-Served-By:
63
- - cache-jfk8126-JFK
64
- X-Cache:
65
- - MISS
66
- X-Cache-Hits:
67
- - '0'
68
- X-Timer:
69
- - S1476222727.316651,VS0,VE51
70
- Vary:
71
- - Accept-Encoding
72
- body:
73
- encoding: ASCII-8BIT
74
- string: |
75
- {
76
- "sys": {
77
- "type": "Array"
78
- },
79
- "total": 1,
80
- "skip": 0,
81
- "limit": 100,
82
- "items": [
83
- {
84
- "sys": {
85
- "space": {
86
- "sys": {
87
- "type": "Link",
88
- "linkType": "Space",
89
- "id": "cfexampleapi"
90
- }
91
- },
92
- "id": "nyancat",
93
- "type": "Asset",
94
- "createdAt": "2013-09-02T14:56:34.240Z",
95
- "updatedAt": "2013-09-02T14:56:34.240Z",
96
- "revision": 1,
97
- "locale": "en-US"
98
- }
99
- }
100
- ]
101
- }
102
- http_version:
103
- recorded_at: Tue, 11 Oct 2016 21:52:06 GMT
104
- recorded_with: VCR 3.0.3
@@ -1,119 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/assets?select=fields,sys&sys.id=nyancat
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/1.0.2
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Accept-Encoding:
17
- - gzip
18
- Connection:
19
- - close
20
- Host:
21
- - cdn.contentful.com
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Access-Control-Allow-Headers:
28
- - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Type:
40
- - application/vnd.contentful.delivery.v1+json
41
- Etag:
42
- - '"0cab5fc96bce67132a639cad150f071d"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- - nosniff
48
- X-Contentful-Request-Id:
49
- - f55b5b2f93cef644633d281119afb30a
50
- Content-Length:
51
- - '952'
52
- Accept-Ranges:
53
- - bytes
54
- Date:
55
- - Tue, 11 Oct 2016 21:52:06 GMT
56
- Via:
57
- - 1.1 varnish
58
- Age:
59
- - '0'
60
- Connection:
61
- - close
62
- X-Served-By:
63
- - cache-jfk8123-JFK
64
- X-Cache:
65
- - MISS
66
- X-Cache-Hits:
67
- - '0'
68
- X-Timer:
69
- - S1476222726.601311,VS0,VE32
70
- Vary:
71
- - Accept-Encoding
72
- body:
73
- encoding: ASCII-8BIT
74
- string: |
75
- {
76
- "sys": {
77
- "type": "Array"
78
- },
79
- "total": 1,
80
- "skip": 0,
81
- "limit": 100,
82
- "items": [
83
- {
84
- "fields": {
85
- "title": "Nyan Cat",
86
- "file": {
87
- "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png",
88
- "details": {
89
- "size": 12273,
90
- "image": {
91
- "width": 250,
92
- "height": 250
93
- }
94
- },
95
- "fileName": "Nyan_cat_250px_frame.png",
96
- "contentType": "image/png"
97
- }
98
- },
99
- "sys": {
100
- "space": {
101
- "sys": {
102
- "type": "Link",
103
- "linkType": "Space",
104
- "id": "cfexampleapi"
105
- }
106
- },
107
- "id": "nyancat",
108
- "type": "Asset",
109
- "createdAt": "2013-09-02T14:56:34.240Z",
110
- "updatedAt": "2013-09-02T14:56:34.240Z",
111
- "revision": 1,
112
- "locale": "en-US"
113
- }
114
- }
115
- ]
116
- }
117
- http_version:
118
- recorded_at: Tue, 11 Oct 2016 21:52:05 GMT
119
- recorded_with: VCR 3.0.3
@@ -1,97 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/assets?select=sys,fields.file
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/1.0.2
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Accept-Encoding:
17
- - gzip
18
- Connection:
19
- - close
20
- Host:
21
- - cdn.contentful.com
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Access-Control-Allow-Headers:
28
- - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Encoding:
40
- - gzip
41
- Content-Type:
42
- - application/vnd.contentful.delivery.v1+json
43
- Etag:
44
- - W/"085ac6af79cdb4d429d04216f7bb5006"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- - nosniff
50
- X-Contentful-Request-Id:
51
- - d1b7413944dbed021a0834096ac1969e
52
- Content-Length:
53
- - '778'
54
- Accept-Ranges:
55
- - bytes
56
- Date:
57
- - Wed, 12 Oct 2016 01:06:40 GMT
58
- Via:
59
- - 1.1 varnish
60
- Age:
61
- - '0'
62
- Connection:
63
- - close
64
- X-Served-By:
65
- - cache-gru7126-GRU
66
- X-Cache:
67
- - MISS
68
- X-Cache-Hits:
69
- - '0'
70
- X-Timer:
71
- - S1476234399.815111,VS0,VE352
72
- Vary:
73
- - Accept-Encoding
74
- body:
75
- encoding: ASCII-8BIT
76
- string: !binary |-
77
- H4sIAAAAAAAAA+WWW2+bMBSA3/srKp4X8A2DeYv6UFVbu1UkatdpqhxsiBMg
78
- LMCarOp/nyGhITRbuqyTqjVPHNvn7i/H90fHx0a+zA3v+F5/aqFYZlJLRn8+
79
- 50tDrz28q84Us4LHep3UUj5VmRZALcQqUYWWIFjJqpBJZfBLbXBlVh8LlYzF
80
- xlHtLFRx5aw5U6+V88qPYVkq4ZHMzWCWFjItwjLWn4kVhHLBkyyWPFMWXIBF
81
- dl2SzD/1ycdy6i+vTofvrSCACLOAYtcmyJUhoiGBLoAM2Bi50LXELJLmJIuM
82
- KoHmZwhZcBVvh1iHlKsfVZg2Qozgtoreq6Ps5FAr3SlRjCstd1WXjSO9OZYq
83
- GldFI9gGrRh0uVtSXfrH8KpiXfCk7s7uBNalGqxbWIdmTTIZVX1c/Rrzj6a3
84
- ul+dMfKMB92MnpyqTzZ35YNKp1ul1HuxXmsC8WuL3cKJKpF2OzdRtsvQKoKh
85
- ap3dXW/Z31ziPJdFeyOYS15I0a9KbyAAcQ/CHqADwDxiexCYAICbtkKZia4C
86
- 6kF3ALGHHA8Sk0FnS2Euv6tczVLtgG4yNuJZwOu7bsi0N/SbVFftWKf4T1HB
87
- 5zef0snN4Cyf9s/OpmU5y0/y3MIu4sQVIUfBCNKAOFx/OSh0RgiPQsCsMc+y
88
- ZcCLuwN4YQyzbtf34YKcDmFtWjBzDoDlNym8EWKaChzICGA9gAaQeDb1MDER
89
- 3b7yTxlZK2iioIeIiSn8FSPoNTFCoowWvH93RU4SPyqTb0hOh4nFBAeBgAxT
90
- 14EjVzgIEyxdZnMABIXQuljy9FYzcotskC1uw7n+lzaz9A/HC0RP7v7+6aI9
91
- bhPWxkVvHoDL87LZSU6V8381alLdWd3YF+KG7JstXdA6Cq3ZAl8VN+O4kJf9
92
- a99VPvh8cj6kl+dXkaUni3ARhYSEABIINEAkCEI7cBkUSAhrwqcHcIIAcTuX
93
- fj8n68dp8wyqny+PjzBI4QGc7I7+bXBR5f5CUNBnQmF7CHmYmYTSvx8mut1f
94
- jx6OfgL41JO2/wwAAA==
95
- http_version:
96
- recorded_at: Wed, 12 Oct 2016 01:06:40 GMT
97
- recorded_with: VCR 3.0.3
@@ -1,88 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/assets?select=sys
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/1.0.2
12
- Authorization:
13
- - Bearer b4c0n73n7fu1
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Accept-Encoding:
17
- - gzip
18
- Connection:
19
- - close
20
- Host:
21
- - cdn.contentful.com
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Access-Control-Allow-Headers:
28
- - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Encoding:
40
- - gzip
41
- Content-Type:
42
- - application/vnd.contentful.delivery.v1+json
43
- Etag:
44
- - W/"ab5a0e424e4930d0e5a81480700cc930"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- - nosniff
50
- X-Contentful-Request-Id:
51
- - 79b396f10bc2940719a0951035039f8f
52
- Content-Length:
53
- - '380'
54
- Accept-Ranges:
55
- - bytes
56
- Date:
57
- - Tue, 11 Oct 2016 21:52:05 GMT
58
- Via:
59
- - 1.1 varnish
60
- Age:
61
- - '0'
62
- Connection:
63
- - close
64
- X-Served-By:
65
- - cache-jfk8138-JFK
66
- X-Cache:
67
- - MISS
68
- X-Cache-Hits:
69
- - '0'
70
- X-Timer:
71
- - S1476222725.125826,VS0,VE30
72
- Vary:
73
- - Accept-Encoding
74
- body:
75
- encoding: ASCII-8BIT
76
- string: !binary |-
77
- H4sIAAAAAAAAA+VUPU/DMBDd+yuqzCSyHdcl3jp1AIkhqUAgBis1wiRNrdhF
78
- jar+d2ynaZ0gVBAsqDf5Xe775W43Go8D1aiAjnfmaYBuJDcomNU1awKj219Z
79
- G73WrDR67JAqhDQAOFCKldAGQdBiofnKBnxyAduwgywuk5Ist6k6i1bp1WIV
80
- TtnVdCuqIrA5T2KyV0V2qDl1EQcGYmnbyV/4lq1kyZkUtqtO9se367OVoPWB
81
- W7CVDxss03mK7zZF2tzPFzde/NOwlOLa/5DXnGm+nNm5BAjAOIQwBCQDCcUT
82
- CkEEAHj0HTZyOXRAIbzOYEzRlEIcJXDac6j5u1BiXZkExKu8XOesdATyKlyk
83
- Xattm4cW/zElr0zKJme9WR//2PMkgCQEKIOYTgiNcYRIf6afSTg4GMogRTiK
84
- CfyKBHQ5JFQNq/6OA3xuEYakDRy8RYCXw8EbK/xL95NLNJwn+SYBE4oQjZMI
85
- E/L7JTC39nm0H30AkgXzyoAGAAA=
86
- http_version:
87
- recorded_at: Tue, 11 Oct 2016 21:52:04 GMT
88
- recorded_with: VCR 3.0.3
@@ -1,138 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/assets/686aLBcjj1f47uFWxrepj6
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- X-Contentful-User-Agent:
11
- - sdk contentful.rb/2.15.4; platform ruby/2.7.1; os macOS/19;
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
- User-Agent:
21
- - http.rb/4.4.1
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Connection:
28
- - close
29
- Content-Length:
30
- - '1106'
31
- Access-Control-Allow-Headers:
32
- - 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
33
- Access-Control-Allow-Methods:
34
- - GET,HEAD,OPTIONS
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Expose-Headers:
38
- - Etag
39
- Access-Control-Max-Age:
40
- - '86400'
41
- Cf-Environment-Id:
42
- - master
43
- Cf-Environment-Uuid:
44
- - a8fd17fd-5c8e-465f-bf8d-eb67f144dca0
45
- Cf-Organization-Id:
46
- - 4kQeJmhUWIKtNNmMkketza
47
- Cf-Space-Id:
48
- - cfexampleapi
49
- Content-Type:
50
- - application/vnd.contentful.delivery.v1+json
51
- Contentful-Api:
52
- - cda_cached
53
- Etag:
54
- - W/"3103305513039094952"
55
- Server:
56
- - Contentful
57
- X-Content-Type-Options:
58
- - nosniff
59
- X-Contentful-Region:
60
- - us-east-1
61
- X-Contentful-Route:
62
- - "/spaces/:space/environments/:environment/assets/:id"
63
- Via:
64
- - 1.1 varnish, 1.1 varnish
65
- Accept-Ranges:
66
- - bytes
67
- Date:
68
- - Mon, 29 Mar 2021 10:27:50 GMT
69
- Age:
70
- - '0'
71
- X-Served-By:
72
- - cache-dca17737-DCA, cache-bom4746-BOM
73
- X-Cache-Hits:
74
- - 0, 0
75
- X-Timer:
76
- - S1617013670.812930,VS0,VE282
77
- Vary:
78
- - Accept-Encoding
79
- X-Cache:
80
- - MISS
81
- X-Contentful-Request-Id:
82
- - a82aa39b-c5fb-4f2c-8848-f1b26cc7d313
83
- body:
84
- encoding: ASCII-8BIT
85
- string: |
86
- {
87
- "metadata": {
88
- "tags": [
89
- {
90
- "sys": {
91
- "type": "Link",
92
- "linkType": "Tag",
93
- "id": "mobQa"
94
- }
95
- }
96
- ]
97
- },
98
- "sys": {
99
- "space": {
100
- "sys": {
101
- "type": "Link",
102
- "linkType": "Space",
103
- "id": "cfexampleapi"
104
- }
105
- },
106
- "id": "686aLBcjj1f47uFWxrepj6",
107
- "type": "Asset",
108
- "createdAt": "2021-02-06T05:59:37.794Z",
109
- "updatedAt": "2021-03-29T10:22:06.152Z",
110
- "environment": {
111
- "sys": {
112
- "id": "master",
113
- "type": "Link",
114
- "linkType": "Environment"
115
- }
116
- },
117
- "revision": 2,
118
- "locale": "en-US"
119
- },
120
- "fields": {
121
- "title": "Avatar",
122
- "description": "my photo",
123
- "file": {
124
- "url": "//images.ctfassets.net/cfexampleapi/686aLBcjj1f47uFWxrepj6/3bd27e35028b8210ca732eb037f4b567/WhatsApp_Image_2019-06-25_at_12.17.04.jpeg",
125
- "details": {
126
- "size": 108963,
127
- "image": {
128
- "width": 868,
129
- "height": 1000
130
- }
131
- },
132
- "fileName": "Avatar.jpeg",
133
- "contentType": "image/jpeg"
134
- }
135
- }
136
- }
137
- recorded_at: Mon, 29 Mar 2021 10:27:49 GMT
138
- recorded_with: VCR 6.0.0