contentful 1.2.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/LICENSE.txt +1 -0
  4. data/README.md +8 -0
  5. data/contentful.gemspec +2 -1
  6. data/examples/custom_classes.rb +23 -26
  7. data/examples/raise_errors.rb +2 -2
  8. data/lib/contentful.rb +0 -1
  9. data/lib/contentful/array.rb +27 -19
  10. data/lib/contentful/array_like.rb +51 -0
  11. data/lib/contentful/asset.rb +43 -11
  12. data/lib/contentful/base_resource.rb +87 -0
  13. data/lib/contentful/client.rb +43 -34
  14. data/lib/contentful/coercions.rb +116 -0
  15. data/lib/contentful/content_type.rb +23 -8
  16. data/lib/contentful/content_type_cache.rb +26 -0
  17. data/lib/contentful/deleted_asset.rb +2 -5
  18. data/lib/contentful/deleted_entry.rb +2 -5
  19. data/lib/contentful/entry.rb +55 -33
  20. data/lib/contentful/error.rb +1 -1
  21. data/lib/contentful/field.rb +37 -9
  22. data/lib/contentful/fields_resource.rb +115 -0
  23. data/lib/contentful/file.rb +7 -8
  24. data/lib/contentful/link.rb +3 -6
  25. data/lib/contentful/locale.rb +6 -6
  26. data/lib/contentful/location.rb +7 -5
  27. data/lib/contentful/resource_builder.rb +72 -226
  28. data/lib/contentful/space.rb +16 -6
  29. data/lib/contentful/support.rb +41 -3
  30. data/lib/contentful/sync_page.rb +17 -10
  31. data/lib/contentful/version.rb +1 -1
  32. data/spec/array_spec.rb +4 -8
  33. data/spec/client_class_spec.rb +12 -23
  34. data/spec/client_configuration_spec.rb +13 -23
  35. data/spec/content_type_spec.rb +0 -5
  36. data/spec/entry_spec.rb +130 -125
  37. data/spec/error_requests_spec.rb +1 -1
  38. data/spec/field_spec.rb +0 -5
  39. data/spec/file_spec.rb +0 -5
  40. data/spec/fixtures/vcr_cassettes/entry.yml +54 -64
  41. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +101 -0
  42. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +227 -251
  43. data/spec/fixtures/vcr_cassettes/entry/raw.yml +88 -124
  44. data/spec/fixtures/vcr_cassettes/entry_locales.yml +56 -74
  45. data/spec/fixtures/vcr_cassettes/human.yml +63 -40
  46. data/spec/fixtures/vcr_cassettes/location.yml +99 -211
  47. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +12 -16
  48. data/spec/fixtures/vcr_cassettes/not_found.yml +26 -21
  49. data/spec/fixtures/vcr_cassettes/nyancat.yml +53 -63
  50. data/spec/fixtures/vcr_cassettes/ratelimit.yml +1 -1
  51. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +54 -64
  52. data/spec/fixtures/vcr_cassettes/unauthorized.yml +1 -1
  53. data/spec/fixtures/vcr_cassettes/unavailable.yml +27 -15
  54. data/spec/link_spec.rb +3 -2
  55. data/spec/locale_spec.rb +0 -5
  56. data/spec/location_spec.rb +1 -6
  57. data/spec/request_spec.rb +3 -2
  58. data/spec/resource_building_spec.rb +10 -7
  59. data/spec/response_spec.rb +1 -1
  60. data/spec/space_spec.rb +0 -5
  61. data/spec/spec_helper.rb +3 -0
  62. data/spec/support/json_responses.rb +3 -3
  63. data/spec/sync_page_spec.rb +1 -6
  64. data/spec/sync_spec.rb +11 -7
  65. metadata +69 -20
  66. data/examples/dynamic_entries.rb +0 -124
  67. data/examples/resource_mapping.rb +0 -32
  68. data/lib/contentful/constants.rb +0 -504
  69. data/lib/contentful/dynamic_entry.rb +0 -57
  70. data/lib/contentful/resource.rb +0 -239
  71. data/lib/contentful/resource/array_like.rb +0 -39
  72. data/lib/contentful/resource/asset_fields.rb +0 -58
  73. data/lib/contentful/resource/custom_resource.rb +0 -29
  74. data/lib/contentful/resource/fields.rb +0 -73
  75. data/lib/contentful/resource/system_properties.rb +0 -55
  76. data/spec/coercions_spec.rb +0 -23
  77. data/spec/dynamic_entry_spec.rb +0 -75
  78. data/spec/resource_spec.rb +0 -79
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/entries/nyancat
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?sys.id=nyancat
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - RubyContentfulGem/0.8.0
11
+ - RubyContentfulGem/1.2.0
12
12
  Authorization:
13
13
  - Bearer b4c0n73n7fu1
14
14
  Content-Type:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
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
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
29
  Access-Control-Allow-Methods:
30
30
  - GET,HEAD,OPTIONS
31
31
  Access-Control-Allow-Origin:
@@ -36,96 +36,78 @@ http_interactions:
36
36
  - '86400'
37
37
  Cache-Control:
38
38
  - max-age=0
39
+ Content-Encoding:
40
+ - gzip
39
41
  Content-Type:
40
42
  - application/vnd.contentful.delivery.v1+json
41
43
  Etag:
42
- - '"a9e11c59bf73598894bf05d4db7700cb"'
44
+ - W/"9707115047cc402819250f844939b2aa"
43
45
  Server:
44
- - nginx
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ - nosniff
45
50
  X-Contentful-Request-Id:
46
- - 405-1394043095
51
+ - 5d8c70a35f32dff1f29bff44068b19df
47
52
  Content-Length:
48
- - '882'
53
+ - '1034'
49
54
  Accept-Ranges:
50
55
  - bytes
51
56
  Date:
52
- - Wed, 09 Dec 2015 21:48:10 GMT
57
+ - Tue, 20 Dec 2016 15:27:45 GMT
53
58
  Via:
54
59
  - 1.1 varnish
55
60
  Age:
56
- - '2558'
61
+ - '171'
57
62
  Connection:
58
63
  - close
59
64
  X-Served-By:
60
- - cache-iad2136-IAD
65
+ - cache-fra1246-FRA
61
66
  X-Cache:
62
67
  - HIT
63
68
  X-Cache-Hits:
64
69
  - '1'
70
+ X-Timer:
71
+ - S1482247665.377533,VS0,VE0
65
72
  Vary:
66
73
  - Accept-Encoding
67
74
  body:
68
- encoding: UTF-8
69
- string: |
70
- {
71
- "fields": {
72
- "name": "Nyan Cat",
73
- "likes": [
74
- "rainbows",
75
- "fish"
76
- ],
77
- "color": "rainbow",
78
- "bestFriend": {
79
- "sys": {
80
- "type": "Link",
81
- "linkType": "Entry",
82
- "id": "happycat"
83
- }
84
- },
85
- "birthday": "2011-04-04T22:00:00+00:00",
86
- "lives": 1337,
87
- "image": {
88
- "sys": {
89
- "type": "Link",
90
- "linkType": "Asset",
91
- "id": "nyancat"
92
- }
93
- }
94
- },
95
- "sys": {
96
- "space": {
97
- "sys": {
98
- "type": "Link",
99
- "linkType": "Space",
100
- "id": "cfexampleapi"
101
- }
102
- },
103
- "type": "Entry",
104
- "contentType": {
105
- "sys": {
106
- "type": "Link",
107
- "linkType": "ContentType",
108
- "id": "cat"
109
- }
110
- },
111
- "id": "nyancat",
112
- "revision": 5,
113
- "createdAt": "2013-06-27T22:46:19.513Z",
114
- "updatedAt": "2013-09-04T09:19:39.027Z",
115
- "locale": "en-US"
116
- }
117
- }
75
+ encoding: ASCII-8BIT
76
+ string: !binary |-
77
+ H4sIAAAAAAAAA+VX227jNhB9z1cEet1a4kX3NyNo0QDtokC8KJCiCGiJthlL
78
+ sirRm/Uu8u8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H2SbarrhaV8JwxR
95
+ gIdmondH2XYnC1wcBdqBJi31A85QVjWtBPBjW9RdDMk8VyyFrPNc0u1MbdRV
96
+ D52z5y0yLjUdKhMXjmvIzNS1o5eZ9xcF4+uHmLS/no0Kru8goAverAlaAvac
97
+ HZloBFR3we6xrkHAiYq/TZ8f45+7LX1Oli9/u3f5w/aY/4fo/lPuRCkBSQoj
98
+ 7IcBXIdpgLCLaRh5BIDUh9CR/jyJ0vwJeaD88rSpRBLbZfEOKkI0wakmwUeh
99
+ Kc70VPTUrdp8zlQUjr2bit8b3SQrJQp6VTt3Vor215vXm/8BI5JeymkQAAA=
118
100
  http_version:
119
- recorded_at: Wed, 09 Dec 2015 21:48:08 GMT
101
+ recorded_at: Tue, 20 Dec 2016 15:27:44 GMT
120
102
  - request:
121
103
  method: get
122
- uri: https://cdn.contentful.com/spaces/cfexampleapi/entries/nyancat
104
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?sys.id=nyancat
123
105
  body:
124
106
  encoding: US-ASCII
125
107
  string: ''
126
108
  headers:
127
109
  User-Agent:
128
- - RubyContentfulGem/0.8.0
110
+ - RubyContentfulGem/1.2.0
129
111
  Authorization:
130
112
  - Bearer b4c0n73n7fu1
131
113
  Content-Type:
@@ -142,7 +124,7 @@ http_interactions:
142
124
  message: OK
143
125
  headers:
144
126
  Access-Control-Allow-Headers:
145
- - 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
127
+ - 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
146
128
  Access-Control-Allow-Methods:
147
129
  - GET,HEAD,OPTIONS
148
130
  Access-Control-Allow-Origin:
@@ -153,85 +135,67 @@ http_interactions:
153
135
  - '86400'
154
136
  Cache-Control:
155
137
  - max-age=0
138
+ Content-Encoding:
139
+ - gzip
156
140
  Content-Type:
157
141
  - application/vnd.contentful.delivery.v1+json
158
142
  Etag:
159
- - '"a9e11c59bf73598894bf05d4db7700cb"'
143
+ - W/"9707115047cc402819250f844939b2aa"
160
144
  Server:
161
- - nginx
145
+ - Contentful
146
+ X-Content-Type-Options:
147
+ - nosniff
148
+ - nosniff
162
149
  X-Contentful-Request-Id:
163
- - 90a-2092510095
150
+ - 5d8c70a35f32dff1f29bff44068b19df
164
151
  Content-Length:
165
- - '882'
152
+ - '1034'
166
153
  Accept-Ranges:
167
154
  - bytes
168
155
  Date:
169
- - Wed, 09 Dec 2015 21:48:11 GMT
156
+ - Tue, 20 Dec 2016 15:27:45 GMT
170
157
  Via:
171
158
  - 1.1 varnish
172
159
  Age:
173
- - '1818'
160
+ - '171'
174
161
  Connection:
175
162
  - close
176
163
  X-Served-By:
177
- - cache-jfk1022-JFK
164
+ - cache-fra1229-FRA
178
165
  X-Cache:
179
166
  - HIT
180
167
  X-Cache-Hits:
181
- - '2'
168
+ - '1'
169
+ X-Timer:
170
+ - S1482247665.468279,VS0,VE0
182
171
  Vary:
183
172
  - Accept-Encoding
184
173
  body:
185
- encoding: UTF-8
186
- string: |
187
- {
188
- "fields": {
189
- "name": "Nyan Cat",
190
- "likes": [
191
- "rainbows",
192
- "fish"
193
- ],
194
- "color": "rainbow",
195
- "bestFriend": {
196
- "sys": {
197
- "type": "Link",
198
- "linkType": "Entry",
199
- "id": "happycat"
200
- }
201
- },
202
- "birthday": "2011-04-04T22:00:00+00:00",
203
- "lives": 1337,
204
- "image": {
205
- "sys": {
206
- "type": "Link",
207
- "linkType": "Asset",
208
- "id": "nyancat"
209
- }
210
- }
211
- },
212
- "sys": {
213
- "space": {
214
- "sys": {
215
- "type": "Link",
216
- "linkType": "Space",
217
- "id": "cfexampleapi"
218
- }
219
- },
220
- "type": "Entry",
221
- "contentType": {
222
- "sys": {
223
- "type": "Link",
224
- "linkType": "ContentType",
225
- "id": "cat"
226
- }
227
- },
228
- "id": "nyancat",
229
- "revision": 5,
230
- "createdAt": "2013-06-27T22:46:19.513Z",
231
- "updatedAt": "2013-09-04T09:19:39.027Z",
232
- "locale": "en-US"
233
- }
234
- }
174
+ encoding: ASCII-8BIT
175
+ string: !binary |-
176
+ H4sIAAAAAAAAA+VX227jNhB9z1cEet1a4kX3NyNo0QDtokC8KJCiCGiJthlL
177
+ sirRm/Uu8u8lqYtJXZxF1m8rBI5EcsiZwzmHw283t7dWfaqt+PabeBUf/FRS
178
+ 8WUtq4qcLNH2+oscww+cZKIdqq96z0rxAdRHxnLGZRdovhmnuZzwHzVhM+1g
179
+ FbVSXZJELtWNaBo1X2SDaux8+oMVe0uueX7E6sV+1fr8oGYcDGCpDCfZ0C8k
180
+ LzNKSiaj6p7X/l3F2TxWY1OcSJEQrk3Ye/JrwauT3pFUlHCaLiUQFgIQL4C/
181
+ QMEKodj1YxjZHsSPusGxTIcG0QK4KxCJ0TGObIACw6Cin1nNDoVYwNNcTQ4F
182
+ pwVvIbgelnfavNOICmTeBDI7JCRT+USLxaeHzqDH2towmqXn9JP4WwXJlclH
183
+ gf/tnbkBGdvTc3K121URVqwPL7Wx9WLqenf28F8Ds+xQyRVaQ31f1rTmv1WM
184
+ FjJtrgfnMGFUoE2a7UhZnmSevYnmmlV8lwpaNjkGRb7IlBE5BoD4+6B+9WAy
185
+ 9lmhBTEO9PTOyfa6zFvWNdWJooXXsWg6ura1oaH8VftksSLJjqnyvdWlBsBO
186
+ Vc66MqEsM9oyOVI5ekFfRO9bCtNv5JzGCA3Vg9fZNEwBo69za5w71mW5QcCG
187
+ AdTVQ/g4FhwIFzBcQS/2whggG8BwYKJJTmh4Ni861wB5XnrOUJt0uYTwjAS1
188
+ B1urIBMyJNbqhOh3ydCBEqnEGGuRaE52lH5dH6strXRKawIkBx1aCdrKY9YA
189
+ d1aBroHtOJcuU/USsqYcAbyAYIHCFcIzcqQgawXJJMGEHl0j2ClV6lNoSnYH
190
+ 0fas7fjb/G930mqm/yklaYzslCSJggatoBt7foxdG/lGQSM2YixJoDHxYghj
191
+ 5NrYH6qYJknIyKEfoDlnvKlRZni+YapbLwak85Wshy3HYTJ7a7vVxM0xE6+5
192
+ ox8GDv7z8a/i+XF1X++X9/f74/FQ39W1g0NE3DDdEJSsoZ+4ARFvAdoEa4TX
193
+ GxA5XY6+2M/l1lAJ4UBKOWGZWTu1clazr9JjL4pwpKPUcH2SbarrhaV8JwxR
194
+ gIdmondH2XYnC1wcBdqBJi31A85QVjWtBPBjW9RdDMk8VyyFrPNc0u1MbdRV
195
+ D52z5y0yLjUdKhMXjmvIzNS1o5eZ9xcF4+uHmLS/no0Kru8goAverAlaAvac
196
+ HZloBFR3we6xrkHAiYq/TZ8f45+7LX1Oli9/u3f5w/aY/4fo/lPuRCkBSQoj
197
+ 7IcBXIdpgLCLaRh5BIDUh9CR/jyJ0vwJeaD88rSpRBLbZfEOKkI0wakmwUeh
198
+ Kc70VPTUrdp8zlQUjr2bit8b3SQrJQp6VTt3Vor215vXm/8BI5JeymkQAAA=
235
199
  http_version:
236
- recorded_at: Wed, 09 Dec 2015 21:48:10 GMT
237
- recorded_with: VCR 2.9.3
200
+ recorded_at: Tue, 20 Dec 2016 15:27:44 GMT
201
+ recorded_with: VCR 3.0.3
@@ -2,17 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?locale=*
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?locale=*&sys.id=nyancat
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - RubyContentfulGem/0.1.1
11
+ - RubyContentfulGem/1.2.2
12
12
  Authorization:
13
13
  - Bearer b4c0n73n7fu1
14
14
  Content-Type:
15
15
  - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
16
20
  Host:
17
21
  - cdn.contentful.com
18
22
  response:
@@ -20,103 +24,81 @@ http_interactions:
20
24
  code: 200
21
25
  message: OK
22
26
  headers:
23
- Date:
24
- - Wed, 16 Apr 2014 09:00:23 GMT
25
- Server:
26
- - nginx/1.1.19
27
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
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
29
  Access-Control-Allow-Methods:
30
30
  - GET,HEAD,OPTIONS
31
31
  Access-Control-Allow-Origin:
32
32
  - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
33
35
  Access-Control-Max-Age:
34
36
  - '86400'
35
37
  Cache-Control:
36
38
  - max-age=0
39
+ Content-Encoding:
40
+ - gzip
37
41
  Content-Type:
38
42
  - application/vnd.contentful.delivery.v1+json
39
43
  Etag:
40
- - "\"a9e11c59bf73598894bf05d4db7700cb\""
44
+ - W/"124a54e4a3072cd55acbc29108bc34d7"
45
+ Server:
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ - nosniff
41
50
  X-Contentful-Request-Id:
42
- - 71a-635712892
51
+ - 8810dc608c80de2e6645bdc900ee7718
43
52
  Content-Length:
44
- - '882'
53
+ - '1124'
45
54
  Accept-Ranges:
46
55
  - bytes
56
+ Date:
57
+ - Thu, 05 Jan 2017 20:42:42 GMT
47
58
  Via:
48
59
  - 1.1 varnish
49
60
  Age:
50
- - '1'
61
+ - '581'
62
+ Connection:
63
+ - close
51
64
  X-Served-By:
52
- - cache-am72-AMS
65
+ - cache-gru7120-GRU
53
66
  X-Cache:
54
67
  - HIT
55
68
  X-Cache-Hits:
56
69
  - '1'
70
+ X-Timer:
71
+ - S1483648962.295214,VS0,VE0
57
72
  Vary:
58
73
  - Accept-Encoding
59
74
  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": {"en-US": "Nyan Cat", "es": "Gato Nyan"},
73
- "likes": [
74
- "rainbows",
75
- "fish"
76
- ],
77
- "color": "rainbow",
78
- "bestFriend": {
79
- "sys": {
80
- "type": "Link",
81
- "linkType": "Entry",
82
- "id": "happycat"
83
- }
84
- },
85
- "birthday": "2011-04-04T22:00:00+00:00",
86
- "lives": 1337,
87
- "image": {
88
- "sys": {
89
- "type": "Link",
90
- "linkType": "Asset",
91
- "id": "nyancat"
92
- }
93
- }
94
- },
95
- "sys": {
96
- "space": {
97
- "sys": {
98
- "type": "Link",
99
- "linkType": "Space",
100
- "id": "cfexampleapi"
101
- }
102
- },
103
- "type": "Entry",
104
- "contentType": {
105
- "sys": {
106
- "type": "Link",
107
- "linkType": "ContentType",
108
- "id": "cat"
109
- }
110
- },
111
- "id": "nyancat",
112
- "revision": 5,
113
- "createdAt": "2013-06-27T22:46:19.513Z",
114
- "updatedAt": "2013-09-04T09:19:39.027Z",
115
- "locale": "en-US"
116
- }
117
- }
118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/OMJ6qW4R1h96
93
+ ZyHujh9FvUvlBr/VhP9LpR5irVNqKHLJEtuBMw8s2yRzpcgFAIdKjSoTJ8A4
94
+ ILZpzfviLik16bZHqpH16lfwIu7XDDI5Ovkbzek1P+dhIBrHTFyhjNms5EJu
95
+ 1ifJ+hjD634m31Fm1u93fyQPd8ubfLe4udkdj4f8Os9nlkeo7UVrSsIVnoe2
96
+ S+HNJWt3RazVGvmzJqWfzId00ytqYXURKyiP+8VxpWBGzr8IQBzft3y15i9z
97
+ W8/g2vaJR4Uoz4lrDU3BeMv4ZituR5bflXCNcsplpuhTlKOcWyD9oboyGC8s
98
+ UT2fq6hnDynbXFTaNqxuFtFtokbz/2ul1vBGC9C2N/5BWXsBf230YqVV87el
99
+ /MBE4m93fMj3ue/jb3uJ/Bn0tTfpvKCLp7/s6/3t5rj/h7Ddx/3MjygKI+xb
100
+ c8/FKy9yiWVbzPMdilA0x3gmgr6Ha9g9cVD6+X6dQc6bafKdTMZES8cLmeyU
101
+ /8/pPx2TIcTB929j8uWr1ZJa4KJEMHJdbThd/hVl5PPV89W/uoVgxfsSAAA=
120
102
  http_version:
121
- recorded_at: Wed, 16 Apr 2014 09:00:23 GMT
122
- recorded_with: VCR 2.9.0
103
+ recorded_at: Thu, 05 Jan 2017 20:42:42 GMT
104
+ recorded_with: VCR 3.0.3