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,111 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?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
- - '"df5a0bca323bd8fb0e370f41cf07a148"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- - nosniff
48
- X-Contentful-Request-Id:
49
- - f8fa255397530ecd6c842426aeeea221
50
- Content-Length:
51
- - '645'
52
- Accept-Ranges:
53
- - bytes
54
- Date:
55
- - Tue, 11 Oct 2016 21:48:00 GMT
56
- Via:
57
- - 1.1 varnish
58
- Age:
59
- - '114'
60
- Connection:
61
- - close
62
- X-Served-By:
63
- - cache-jfk8120-JFK
64
- X-Cache:
65
- - HIT
66
- X-Cache-Hits:
67
- - '1'
68
- X-Timer:
69
- - S1476222480.429217,VS0,VE0
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": "Entry",
94
- "createdAt": "2013-06-27T22:46:19.513Z",
95
- "updatedAt": "2013-09-04T09:19:39.027Z",
96
- "revision": 5,
97
- "contentType": {
98
- "sys": {
99
- "type": "Link",
100
- "linkType": "ContentType",
101
- "id": "cat"
102
- }
103
- },
104
- "locale": "en-US"
105
- }
106
- }
107
- ]
108
- }
109
- http_version:
110
- recorded_at: Tue, 11 Oct 2016 21:47:59 GMT
111
- recorded_with: VCR 3.0.3
@@ -1,102 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?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-Encoding:
40
- - gzip
41
- Content-Type:
42
- - application/vnd.contentful.delivery.v1+json
43
- Etag:
44
- - W/"3c46068783b671b134692b4f78a7fa2f"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- - nosniff
50
- X-Contentful-Request-Id:
51
- - b324e9d019b4904cdb24b892102dad8d
52
- Content-Length:
53
- - '1022'
54
- Accept-Ranges:
55
- - bytes
56
- Date:
57
- - Tue, 11 Oct 2016 21:44:39 GMT
58
- Via:
59
- - 1.1 varnish
60
- Age:
61
- - '0'
62
- Connection:
63
- - close
64
- X-Served-By:
65
- - cache-jfk8139-JFK
66
- X-Cache:
67
- - MISS
68
- X-Cache-Hits:
69
- - '0'
70
- X-Timer:
71
- - S1476222279.159150,VS0,VE143
72
- Vary:
73
- - Accept-Encoding
74
- body:
75
- encoding: ASCII-8BIT
76
- string: !binary |-
77
- H4sIAAAAAAAAA+VX227bOBB9z1cEeu1a4kX3NyPYxQboFgvERYEURUBLtM1Y
78
- klWJbuoW+feS1I2UZTdNvU8rGLYoc4YzZ85c9P3q+tqqD7UVX38Xt2LBDyUV
79
- K2teVeRgiWfPf8g9fMdJJp5Dtaq3rBQLoBYZyxmXf4FmzTjNpcKPSmGjVmxb
80
- MZqlw0HqsILk6rB3B1Jc3xBuSYXNJdRu6aCmfVgRVix3T7W2UamuN9LU5vqk
81
- KUl22a6SJ7SC+gFLWvO/KkaLtPe+PUUHpLenA+YtK7bG8QqCYrtogfuz4NVh
82
- vIHJM6wNKctDItzsbRXw9vcK6NaCJav4JhUBEFIIQDgDrvgsEIoBEJ836ttE
83
- 64tCC2IcaHpYTtYS4S4KUr0R7192b17XVI+T0ti4V4gonvauda738sgMqy5J
84
- cllj75TGAQ/N2GRFv5K8zCgp2c/jYTqoAdyxYhx1K6ko4TSdy8yQIcQz4M9Q
85
- IEPo+jGMbA/iez2C+zIdC0Qy5iASu2Mc2QAFhkBFv7Ca7QpxgGdQvuC04C0d
86
- Lxf4m92gdxrRlxA72yUkUzlPi9n7uw75Jgvkt8peixVJtk8Vo9u61ADcVZWh
87
- rkzyeZJKkzsVI86k9ii5pwjV8/8UpfQkb+tpn3ajwqAD25s15pY48Dy7ELBh
88
- AHWyCJFjfomyAsMF9GIvjAGyAQxHIhrDQsOyROOCWVwuAfJppg1Qm1w7h/AJ
89
- xhmBmGpO4qyuPf0t6/aoPyliHHcoGZsNpd+W+2pNK72waG1Jbuoa01q2WQPc
90
- k33pEtgec+l8AT+HrNmkAJ5BMEPhAuETTUpB1rYpw+OpLnUJZ6d6VU+hqWY8
91
- 8nZozV3zUr9tJK1G/f+yJB0jO1WSRP9CC+jGnh9j10a+0b9EII5LEmhEvBjC
92
- GLk29sdVTCtJyODQb6Q5Z7xpSSfyfMXU33orlcZXch62HEext7bbmrjaZ+I2
93
- d/Rm4OB/7v8tHu8Xt/V2fnu73e939U1dOzhExA3TFUHJEvqJGxBxF6BVsER4
94
- uQKR03H0yX4s1+M5JqWcsMycqJu+YtXsm7TYiyIcmb1a0n9iJmzlnljKN0IQ
95
- BXgsJgQ3lK03cp7BUdCnRiM5TLFyrU2yqrpIAN+1o/5Zl8y+0ljqPJZ0fWJC
96
- G8+UQ4iOpktZTybmy0uUmf9oKOjG6cmZ4FUJ6IKfzgRtAvY5eySiJaB6F+wu
97
- 6xIJOPEe2NLn9/LPXZc+J/OnD+5Nfrfe558R3b7PnSglIElhhP0wgMswDRB2
98
- MQ0jjwCQ+hA60p4H8UrzgDxQfn1YVYLEdlm8IhUhmsipF6Wip96qzWtIRWHY
99
- q1Pxpd5NZqVEQTtZe401e6VYPV89X/0A9oLYTmkQAAA=
100
- http_version:
101
- recorded_at: Tue, 11 Oct 2016 21:44:38 GMT
102
- recorded_with: VCR 3.0.3
@@ -1,76 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?select=sys,fields.name&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: 400
25
- message: Bad Request
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
- Server:
42
- - Contentful
43
- X-Contentful-Request-Id:
44
- - 9c4cc23976ca91562c72e53c04fe70c3
45
- Content-Length:
46
- - '354'
47
- Accept-Ranges:
48
- - bytes
49
- Date:
50
- - Tue, 11 Oct 2016 21:48:16 GMT
51
- Via:
52
- - 1.1 varnish
53
- Connection:
54
- - close
55
- X-Served-By:
56
- - cache-jfk8122-JFK
57
- X-Cache:
58
- - MISS
59
- X-Cache-Hits:
60
- - '0'
61
- X-Timer:
62
- - S1476222496.116198,VS0,VE31
63
- body:
64
- encoding: ASCII-8BIT
65
- string: |
66
- {
67
- "sys": {
68
- "type": "Error",
69
- "id": "BadRequest"
70
- },
71
- "message": "A Content Type ID is required. When querying for Entries and involving fields you need to limit your query to a specific Content Type. Please send a Content Type ID (not the name) as the URI query parameter \"content_type\"",
72
- "requestId": "9c4cc23976ca91562c72e53c04fe70c3"
73
- }
74
- http_version:
75
- recorded_at: Tue, 11 Oct 2016 21:48:15 GMT
76
- recorded_with: VCR 3.0.3
@@ -1,114 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?content_type=cat&select=sys,fields.name&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
- - '"5bceeb558eb6136686e5aae912e25903"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- - nosniff
48
- X-Contentful-Request-Id:
49
- - 309c7fd04e9f5a7a4518df8412b92c62
50
- Content-Length:
51
- - '699'
52
- Accept-Ranges:
53
- - bytes
54
- Date:
55
- - Tue, 11 Oct 2016 21:48:15 GMT
56
- Via:
57
- - 1.1 varnish
58
- Age:
59
- - '0'
60
- Connection:
61
- - close
62
- X-Served-By:
63
- - cache-jfk8140-JFK
64
- X-Cache:
65
- - MISS
66
- X-Cache-Hits:
67
- - '0'
68
- X-Timer:
69
- - S1476222495.442871,VS0,VE44
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
- "name": "Nyan Cat"
86
- },
87
- "sys": {
88
- "space": {
89
- "sys": {
90
- "type": "Link",
91
- "linkType": "Space",
92
- "id": "cfexampleapi"
93
- }
94
- },
95
- "id": "nyancat",
96
- "type": "Entry",
97
- "createdAt": "2013-06-27T22:46:19.513Z",
98
- "updatedAt": "2013-09-04T09:19:39.027Z",
99
- "revision": 5,
100
- "contentType": {
101
- "sys": {
102
- "type": "Link",
103
- "linkType": "ContentType",
104
- "id": "cat"
105
- }
106
- },
107
- "locale": "en-US"
108
- }
109
- }
110
- ]
111
- }
112
- http_version:
113
- recorded_at: Tue, 11 Oct 2016 21:48:14 GMT
114
- recorded_with: VCR 3.0.3
@@ -1,111 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries?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
- - '"df5a0bca323bd8fb0e370f41cf07a148"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- - nosniff
48
- X-Contentful-Request-Id:
49
- - f8fa255397530ecd6c842426aeeea221
50
- Content-Length:
51
- - '645'
52
- Accept-Ranges:
53
- - bytes
54
- Date:
55
- - Tue, 11 Oct 2016 21:47:59 GMT
56
- Via:
57
- - 1.1 varnish
58
- Age:
59
- - '113'
60
- Connection:
61
- - close
62
- X-Served-By:
63
- - cache-jfk8121-JFK
64
- X-Cache:
65
- - HIT
66
- X-Cache-Hits:
67
- - '1'
68
- X-Timer:
69
- - S1476222479.776857,VS0,VE0
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": "Entry",
94
- "createdAt": "2013-06-27T22:46:19.513Z",
95
- "updatedAt": "2013-09-04T09:19:39.027Z",
96
- "revision": 5,
97
- "contentType": {
98
- "sys": {
99
- "type": "Link",
100
- "linkType": "ContentType",
101
- "id": "cat"
102
- }
103
- },
104
- "locale": "en-US"
105
- }
106
- }
107
- ]
108
- }
109
- http_version:
110
- recorded_at: Tue, 11 Oct 2016 21:47:59 GMT
111
- recorded_with: VCR 3.0.3