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,90 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/bht13amj0fva/environments/master/assets?locale=*&sys.id=14bZJKTr6AoaGyeg4kYiWq
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/2.0.0
12
- Authorization:
13
- - Bearer bb703a05e107148bed6ee246a9f6b3678c63fed7335632eb68fe1b689c801534
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/"7e90131294f96e196d1e6c2dddb41ccb"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Contentful-Request-Id:
50
- - e5083424335e7ca4ebfead1b0fb34a1e
51
- Content-Length:
52
- - '508'
53
- Accept-Ranges:
54
- - bytes
55
- Date:
56
- - Wed, 05 Apr 2017 15:49:25 GMT
57
- Via:
58
- - 1.1 varnish
59
- Age:
60
- - '0'
61
- Connection:
62
- - close
63
- X-Served-By:
64
- - cache-lax8637-LAX
65
- X-Cache:
66
- - MISS
67
- X-Cache-Hits:
68
- - '0'
69
- X-Timer:
70
- - S1491407366.696669,VS0,VE230
71
- Vary:
72
- - Accept-Encoding
73
- body:
74
- encoding: ASCII-8BIT
75
- string: !binary |-
76
- H4sIAAAAAAAAA61UTY/aMBC98yuQry3EzhcJN6RuK7XVXmBVdasKOc6EdclX
77
- Y4NKV/z32k6yMSwrLav6Eo89njfz3kweR+MxEgeB5uNHtVWGPNSgLLRoGnpA
78
- 6uz4XvvIStJcnRNjiS2vlYGNkfOCS32FW5tLKHTAHyZgG/YMxSCJmjIN1Xu0
79
- h1Yu+sAc9jl95eUWacxhKfRyu+pyXpqIZw481eUkD5J4tPiFsz3VVfXr+LQ3
80
- dbYLtW+In9x//rJqwkVFPx1g42+/82+/rfgDWUKAtC9YA1RCutC8IBeTcELw
81
- BAcr4s89MvfCKY7ce/vBrk6ve9DAngtelZr4LvGnClDGIU8HUXVVSHKZP6Mb
82
- ysndUud4czteGQebPQQ6BrpZdncXuUpBsIbXss3lREw7+gfL7TKG7XERKeMv
83
- F2DjqmJ3jW5W5DhUKyOmrCollDLb5WpbOHY3OJdldoiXYZyk2SxgxHMxDgkD
84
- f0aoF0UEIo84H3O6WVfZWj7A+q5UXZ+ul1KJKKZivznvwhQk5fmpJF2zCf5X
85
- 6xLF8UlnW/1o9NPV39LCDOdV0F3t/ZDwgm7AUSm++1PkJ6PwXJb/z2oQYMLi
86
- iLlxSLPZLIkpSyghfgjUA5cMrKpZ5uXbmAyxGwRXc/ki4Kv5G5q2H0jz1b+Y
87
- n6Pj6B/AhXSYbAUAAA==
88
- http_version:
89
- recorded_at: Wed, 05 Apr 2017 15:49:25 GMT
90
- recorded_with: VCR 3.0.3
@@ -1,115 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/bht13amj0fva/environments/master/assets?locale=es&sys.id=14bZJKTr6AoaGyeg4kYiWq
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/2.0.1
12
- Authorization:
13
- - Bearer bb703a05e107148bed6ee246a9f6b3678c63fed7335632eb68fe1b689c801534
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
- - '"fd221ef596081681476844e76626d81e"'
43
- Server:
44
- - Contentful
45
- X-Content-Type-Options:
46
- - nosniff
47
- X-Contentful-Request-Id:
48
- - 94c2a00df9e2c852f0d971f0bf6447cd
49
- Content-Length:
50
- - '901'
51
- Accept-Ranges:
52
- - bytes
53
- Date:
54
- - Wed, 19 Apr 2017 13:30:46 GMT
55
- Via:
56
- - 1.1 varnish
57
- Age:
58
- - '0'
59
- Connection:
60
- - close
61
- X-Served-By:
62
- - cache-lax8647-LAX
63
- X-Cache:
64
- - MISS
65
- X-Cache-Hits:
66
- - '0'
67
- X-Timer:
68
- - S1492608646.119094,VS0,VE415
69
- Vary:
70
- - Accept-Encoding
71
- body:
72
- encoding: ASCII-8BIT
73
- string: |
74
- {
75
- "sys": {
76
- "type": "Array"
77
- },
78
- "total": 1,
79
- "skip": 0,
80
- "limit": 100,
81
- "items": [
82
- {
83
- "sys": {
84
- "space": {
85
- "sys": {
86
- "type": "Link",
87
- "linkType": "Space",
88
- "id": "bht13amj0fva"
89
- }
90
- },
91
- "id": "14bZJKTr6AoaGyeg4kYiWq",
92
- "type": "Asset",
93
- "createdAt": "2016-10-05T14:31:36.082Z",
94
- "updatedAt": "2016-10-05T14:31:36.082Z",
95
- "revision": 1,
96
- "locale": "es"
97
- },
98
- "fields": {
99
- "title": "ES Title",
100
- "description": "ES Description",
101
- "file": {
102
- "url": "//assets.contentful.com/bht13amj0fva/14bZJKTr6AoaGyeg4kYiWq/5501c98c296af77b9acba1146ea3e211/Flag_of_Spain.svg",
103
- "details": {
104
- "size": 60255
105
- },
106
- "fileName": "Flag_of_Spain.svg",
107
- "contentType": "image/svg+xml"
108
- }
109
- }
110
- }
111
- ]
112
- }
113
- http_version:
114
- recorded_at: Wed, 19 Apr 2017 13:30:46 GMT
115
- 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?some=parameter
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.1
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: 400
21
- message: Bad Request
22
- headers:
23
- Date:
24
- - Wed, 16 Apr 2014 09:00:23 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
- Content-Length:
40
- - '361'
41
- Accept-Ranges:
42
- - bytes
43
- Via:
44
- - 1.1 varnish
45
- X-Served-By:
46
- - cache-fra1235-FRA
47
- X-Cache:
48
- - MISS
49
- X-Cache-Hits:
50
- - '0'
51
- Connection:
52
- - close
53
- body:
54
- encoding: UTF-8
55
- string: |
56
- {
57
- "sys": {
58
- "type": "Error",
59
- "id": "InvalidQuery"
60
- },
61
- "message": "The query you sent was invalid. Probably a filter or ordering specification is not applicable to the type of a field.",
62
- "details": {
63
- "errors": [
64
- {
65
- "name": "unknown",
66
- "path": [
67
- "some"
68
- ]
69
- }
70
- ]
71
- },
72
- "requestId": "f1c-737716794"
73
- }
74
- http_version:
75
- recorded_at: Wed, 16 Apr 2014 09:00:23 GMT
76
- recorded_with: VCR 2.9.0
@@ -1,147 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/content_types/cat
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.1
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
- - Wed, 16 Apr 2014 09:00:21 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
- - "\"311dab6ef7fafc9f223a427ddd896e3e\""
41
- X-Contentful-Request-Id:
42
- - 85f-649640519
43
- Content-Length:
44
- - '1578'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '0'
51
- X-Served-By:
52
- - cache-am70-AMS
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
- "fields": [
64
- {
65
- "id": "name",
66
- "name": "Name",
67
- "type": "Text",
68
- "required": true,
69
- "localized": true
70
- },
71
- {
72
- "id": "likes",
73
- "name": "Likes",
74
- "type": "Array",
75
- "required": false,
76
- "localized": false,
77
- "items": {
78
- "type": "Symbol"
79
- }
80
- },
81
- {
82
- "id": "color",
83
- "name": "Color",
84
- "type": "Symbol",
85
- "required": false,
86
- "localized": false
87
- },
88
- {
89
- "id": "bestFriend",
90
- "name": "Best Friend",
91
- "type": "Link",
92
- "required": false,
93
- "localized": false,
94
- "linkType": "Entry"
95
- },
96
- {
97
- "id": "birthday",
98
- "name": "Birthday",
99
- "type": "Date",
100
- "required": false,
101
- "localized": false
102
- },
103
- {
104
- "id": "lifes",
105
- "name": "Lifes left",
106
- "type": "Integer",
107
- "required": false,
108
- "localized": false,
109
- "disabled": true
110
- },
111
- {
112
- "id": "lives",
113
- "name": "Lives left",
114
- "type": "Integer",
115
- "required": false,
116
- "localized": false
117
- },
118
- {
119
- "id": "image",
120
- "name": "Image",
121
- "required": false,
122
- "localized": false,
123
- "type": "Link",
124
- "linkType": "Asset"
125
- }
126
- ],
127
- "name": "Cat",
128
- "displayField": "name",
129
- "description": "Meow.",
130
- "sys": {
131
- "space": {
132
- "sys": {
133
- "type": "Link",
134
- "linkType": "Space",
135
- "id": "cfexampleapi"
136
- }
137
- },
138
- "type": "ContentType",
139
- "id": "cat",
140
- "revision": 2,
141
- "createdAt": "2013-06-27T22:46:12.852Z",
142
- "updatedAt": "2013-09-02T13:14:47.863Z"
143
- }
144
- }
145
- http_version:
146
- recorded_at: Wed, 16 Apr 2014 09:00:21 GMT
147
- recorded_with: VCR 2.9.0
@@ -1,561 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/environments/master/entries
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - RubyContentfulGem/0.1.1
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
- - Wed, 16 Apr 2014 09:00:21 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
- - "\"4fd389dc6eb0344fa98184c811f12f8d\""
41
- X-Contentful-Request-Id:
42
- - 85f-649640028
43
- Content-Length:
44
- - '11939'
45
- Accept-Ranges:
46
- - bytes
47
- Via:
48
- - 1.1 varnish
49
- Age:
50
- - '2003'
51
- X-Served-By:
52
- - cache-fra1233-FRA
53
- X-Cache:
54
- - HIT
55
- X-Cache-Hits:
56
- - '1'
57
- Vary:
58
- - Accept-Encoding
59
- body:
60
- encoding: UTF-8
61
- string: |
62
- {
63
- "sys": {
64
- "type": "Array"
65
- },
66
- "total": 10,
67
- "skip": 0,
68
- "limit": 100,
69
- "items": [
70
- {
71
- "fields": {
72
- "name": "Garfield",
73
- "likes": [
74
- "lasagna"
75
- ],
76
- "color": "orange",
77
- "lifes": null,
78
- "lives": 9,
79
- "birthday": "1979-06-18T23:00:00+00:00"
80
- },
81
- "sys": {
82
- "space": {
83
- "sys": {
84
- "type": "Link",
85
- "linkType": "Space",
86
- "id": "cfexampleapi"
87
- }
88
- },
89
- "type": "Entry",
90
- "contentType": {
91
- "sys": {
92
- "type": "Link",
93
- "linkType": "ContentType",
94
- "id": "cat"
95
- }
96
- },
97
- "id": "garfield",
98
- "revision": 2,
99
- "createdAt": "2013-06-27T22:46:20.821Z",
100
- "updatedAt": "2013-08-27T10:09:07.929Z",
101
- "locale": "en-US"
102
- }
103
- },
104
- {
105
- "fields": {
106
- "name": "Nyan Cat",
107
- "likes": [
108
- "rainbows",
109
- "fish"
110
- ],
111
- "color": "rainbow",
112
- "bestFriend": {
113
- "sys": {
114
- "type": "Link",
115
- "linkType": "Entry",
116
- "id": "happycat"
117
- }
118
- },
119
- "birthday": "2011-04-04T22:00:00+00:00",
120
- "lives": 1337,
121
- "image": {
122
- "sys": {
123
- "type": "Link",
124
- "linkType": "Asset",
125
- "id": "nyancat"
126
- }
127
- }
128
- },
129
- "sys": {
130
- "space": {
131
- "sys": {
132
- "type": "Link",
133
- "linkType": "Space",
134
- "id": "cfexampleapi"
135
- }
136
- },
137
- "type": "Entry",
138
- "contentType": {
139
- "sys": {
140
- "type": "Link",
141
- "linkType": "ContentType",
142
- "id": "cat"
143
- }
144
- },
145
- "id": "nyancat",
146
- "revision": 5,
147
- "createdAt": "2013-06-27T22:46:19.513Z",
148
- "updatedAt": "2013-09-04T09:19:39.027Z",
149
- "locale": "en-US"
150
- }
151
- },
152
- {
153
- "fields": {
154
- "name": "Finn",
155
- "description": "Fearless adventurer! Defender of pancakes.",
156
- "likes": [
157
- "adventure"
158
- ]
159
- },
160
- "sys": {
161
- "space": {
162
- "sys": {
163
- "type": "Link",
164
- "linkType": "Space",
165
- "id": "cfexampleapi"
166
- }
167
- },
168
- "type": "Entry",
169
- "contentType": {
170
- "sys": {
171
- "type": "Link",
172
- "linkType": "ContentType",
173
- "id": "human"
174
- }
175
- },
176
- "id": "finn",
177
- "revision": 6,
178
- "createdAt": "2013-06-27T22:46:21.450Z",
179
- "updatedAt": "2013-09-09T16:15:01.297Z",
180
- "locale": "en-US"
181
- }
182
- },
183
- {
184
- "sys": {
185
- "space": {
186
- "sys": {
187
- "type": "Link",
188
- "linkType": "Space",
189
- "id": "cfexampleapi"
190
- }
191
- },
192
- "type": "Entry",
193
- "contentType": {
194
- "sys": {
195
- "type": "Link",
196
- "linkType": "ContentType",
197
- "id": "dog"
198
- }
199
- },
200
- "id": "6KntaYXaHSyIw8M6eo26OK",
201
- "revision": 2,
202
- "createdAt": "2013-11-06T09:45:27.475Z",
203
- "updatedAt": "2013-11-18T09:13:37.808Z",
204
- "locale": "en-US"
205
- },
206
- "fields": {
207
- "name": "Doge",
208
- "image": {
209
- "sys": {
210
- "type": "Link",
211
- "linkType": "Asset",
212
- "id": "1x0xpXu4pSGS4OukSyWGUK"
213
- }
214
- },
215
- "description": "such json\nwow"
216
- }
217
- },
218
- {
219
- "fields": {
220
- "name": "Happy Cat",
221
- "bestFriend": {
222
- "sys": {
223
- "type": "Link",
224
- "linkType": "Entry",
225
- "id": "nyancat"
226
- }
227
- },
228
- "likes": [
229
- "cheezburger"
230
- ],
231
- "color": "gray",
232
- "birthday": "2003-10-28T23:00:00+00:00",
233
- "lives": 1,
234
- "image": {
235
- "sys": {
236
- "type": "Link",
237
- "linkType": "Asset",
238
- "id": "happycat"
239
- }
240
- }
241
- },
242
- "sys": {
243
- "space": {
244
- "sys": {
245
- "type": "Link",
246
- "linkType": "Space",
247
- "id": "cfexampleapi"
248
- }
249
- },
250
- "type": "Entry",
251
- "contentType": {
252
- "sys": {
253
- "type": "Link",
254
- "linkType": "ContentType",
255
- "id": "cat"
256
- }
257
- },
258
- "id": "happycat",
259
- "revision": 8,
260
- "createdAt": "2013-06-27T22:46:20.171Z",
261
- "updatedAt": "2013-11-18T15:58:02.018Z",
262
- "locale": "en-US"
263
- }
264
- },
265
- {
266
- "fields": {
267
- "name": "Jake",
268
- "description": "Bacon pancakes, makin' bacon pancakes!",
269
- "image": {
270
- "sys": {
271
- "type": "Link",
272
- "linkType": "Asset",
273
- "id": "jake"
274
- }
275
- }
276
- },
277
- "sys": {
278
- "space": {
279
- "sys": {
280
- "type": "Link",
281
- "linkType": "Space",
282
- "id": "cfexampleapi"
283
- }
284
- },
285
- "type": "Entry",
286
- "contentType": {
287
- "sys": {
288
- "type": "Link",
289
- "linkType": "ContentType",
290
- "id": "dog"
291
- }
292
- },
293
- "id": "jake",
294
- "revision": 5,
295
- "createdAt": "2013-06-27T22:46:22.096Z",
296
- "updatedAt": "2013-12-18T13:10:26.212Z",
297
- "locale": "en-US"
298
- }
299
- },
300
- {
301
- "sys": {
302
- "space": {
303
- "sys": {
304
- "type": "Link",
305
- "linkType": "Space",
306
- "id": "cfexampleapi"
307
- }
308
- },
309
- "type": "Entry",
310
- "contentType": {
311
- "sys": {
312
- "type": "Link",
313
- "linkType": "ContentType",
314
- "id": "1t9IbcfdCk6m04uISSsaIK"
315
- }
316
- },
317
- "id": "4MU1s3potiUEM2G4okYOqw",
318
- "revision": 1,
319
- "createdAt": "2014-02-21T13:42:45.926Z",
320
- "updatedAt": "2014-02-21T13:42:45.926Z",
321
- "locale": "en-US"
322
- },
323
- "fields": {
324
- "name": "Berlin",
325
- "center": {
326
- "lat": 52.52000659999999,
327
- "lon": 13.404953999999975
328
- }
329
- }
330
- },
331
- {
332
- "sys": {
333
- "space": {
334
- "sys": {
335
- "type": "Link",
336
- "linkType": "Space",
337
- "id": "cfexampleapi"
338
- }
339
- },
340
- "type": "Entry",
341
- "contentType": {
342
- "sys": {
343
- "type": "Link",
344
- "linkType": "ContentType",
345
- "id": "1t9IbcfdCk6m04uISSsaIK"
346
- }
347
- },
348
- "id": "5ETMRzkl9KM4omyMwKAOki",
349
- "revision": 1,
350
- "createdAt": "2014-02-21T13:42:57.752Z",
351
- "updatedAt": "2014-02-21T13:42:57.752Z",
352
- "locale": "en-US"
353
- },
354
- "fields": {
355
- "name": "London",
356
- "center": {
357
- "lat": 51.508515,
358
- "lon": -0.12548719999995228
359
- }
360
- }
361
- },
362
- {
363
- "sys": {
364
- "space": {
365
- "sys": {
366
- "type": "Link",
367
- "linkType": "Space",
368
- "id": "cfexampleapi"
369
- }
370
- },
371
- "type": "Entry",
372
- "contentType": {
373
- "sys": {
374
- "type": "Link",
375
- "linkType": "ContentType",
376
- "id": "1t9IbcfdCk6m04uISSsaIK"
377
- }
378
- },
379
- "id": "ge1xHyH3QOWucKWCCAgIG",
380
- "revision": 1,
381
- "createdAt": "2014-02-21T13:43:23.210Z",
382
- "updatedAt": "2014-02-21T13:43:23.210Z",
383
- "locale": "en-US"
384
- },
385
- "fields": {
386
- "name": "Paris",
387
- "center": {
388
- "lat": 48.856614,
389
- "lon": 2.3522219000000177
390
- }
391
- }
392
- },
393
- {
394
- "sys": {
395
- "space": {
396
- "sys": {
397
- "type": "Link",
398
- "linkType": "Space",
399
- "id": "cfexampleapi"
400
- }
401
- },
402
- "type": "Entry",
403
- "contentType": {
404
- "sys": {
405
- "type": "Link",
406
- "linkType": "ContentType",
407
- "id": "1t9IbcfdCk6m04uISSsaIK"
408
- }
409
- },
410
- "id": "7qVBlCjpWE86Oseo40gAEY",
411
- "revision": 2,
412
- "createdAt": "2014-02-21T13:43:38.258Z",
413
- "updatedAt": "2014-04-15T08:22:22.010Z",
414
- "locale": "en-US"
415
- },
416
- "fields": {
417
- "name": "San Francisco",
418
- "center": {
419
- "lat": 37.7749295,
420
- "lon": -122.41941550000001
421
- }
422
- }
423
- }
424
- ],
425
- "includes": {
426
- "Asset": [
427
- {
428
- "fields": {
429
- "file": {
430
- "fileName": "happycatw.jpg",
431
- "contentType": "image/jpeg",
432
- "details": {
433
- "image": {
434
- "width": 273,
435
- "height": 397
436
- },
437
- "size": 59939
438
- },
439
- "url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
440
- },
441
- "title": "Happy Cat"
442
- },
443
- "sys": {
444
- "space": {
445
- "sys": {
446
- "type": "Link",
447
- "linkType": "Space",
448
- "id": "cfexampleapi"
449
- }
450
- },
451
- "type": "Asset",
452
- "id": "happycat",
453
- "revision": 2,
454
- "createdAt": "2013-09-02T14:56:34.267Z",
455
- "updatedAt": "2013-09-02T15:11:24.361Z",
456
- "locale": "en-US"
457
- }
458
- },
459
- {
460
- "fields": {
461
- "title": "Nyan Cat",
462
- "file": {
463
- "fileName": "Nyan_cat_250px_frame.png",
464
- "contentType": "image/png",
465
- "details": {
466
- "image": {
467
- "width": 250,
468
- "height": 250
469
- },
470
- "size": 12273
471
- },
472
- "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
473
- }
474
- },
475
- "sys": {
476
- "space": {
477
- "sys": {
478
- "type": "Link",
479
- "linkType": "Space",
480
- "id": "cfexampleapi"
481
- }
482
- },
483
- "type": "Asset",
484
- "id": "nyancat",
485
- "revision": 1,
486
- "createdAt": "2013-09-02T14:56:34.240Z",
487
- "updatedAt": "2013-09-02T14:56:34.240Z",
488
- "locale": "en-US"
489
- }
490
- },
491
- {
492
- "fields": {
493
- "title": "Jake",
494
- "file": {
495
- "fileName": "jake.png",
496
- "contentType": "image/png",
497
- "details": {
498
- "image": {
499
- "width": 100,
500
- "height": 161
501
- },
502
- "size": 20480
503
- },
504
- "url": "//images.contentful.com/cfexampleapi/4hlteQAXS8iS0YCMU6QMWg/2a4d826144f014109364ccf5c891d2dd/jake.png"
505
- }
506
- },
507
- "sys": {
508
- "space": {
509
- "sys": {
510
- "type": "Link",
511
- "linkType": "Space",
512
- "id": "cfexampleapi"
513
- }
514
- },
515
- "type": "Asset",
516
- "id": "jake",
517
- "revision": 2,
518
- "createdAt": "2013-09-02T14:56:34.260Z",
519
- "updatedAt": "2013-09-02T15:22:39.466Z",
520
- "locale": "en-US"
521
- }
522
- },
523
- {
524
- "sys": {
525
- "space": {
526
- "sys": {
527
- "type": "Link",
528
- "linkType": "Space",
529
- "id": "cfexampleapi"
530
- }
531
- },
532
- "type": "Asset",
533
- "id": "1x0xpXu4pSGS4OukSyWGUK",
534
- "revision": 6,
535
- "createdAt": "2013-11-06T09:45:10.000Z",
536
- "updatedAt": "2013-12-18T13:27:14.917Z",
537
- "locale": "en-US"
538
- },
539
- "fields": {
540
- "title": "Doge",
541
- "file": {
542
- "fileName": "doge.jpg",
543
- "contentType": "image/jpeg",
544
- "details": {
545
- "image": {
546
- "width": 5800,
547
- "height": 4350
548
- },
549
- "size": 522943
550
- },
551
- "url": "//images.contentful.com/cfexampleapi/1x0xpXu4pSGS4OukSyWGUK/cc1239c6385428ef26f4180190532818/doge.jpg"
552
- },
553
- "description": "nice picture"
554
- }
555
- }
556
- ]
557
- }
558
- }
559
- http_version:
560
- recorded_at: Wed, 16 Apr 2014 09:00:21 GMT
561
- recorded_with: VCR 2.9.0