s3_website 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +81 -0
  6. data/LICENSE +42 -0
  7. data/README.md +332 -0
  8. data/Rakefile +18 -0
  9. data/bin/s3_website +38 -0
  10. data/changelog.md +7 -0
  11. data/example-configurations.md +60 -0
  12. data/features/as-library.feature +29 -0
  13. data/features/cassettes/cucumber_tags/create-redirect.yml +384 -0
  14. data/features/cassettes/cucumber_tags/new-and-changed-files.yml +303 -0
  15. data/features/cassettes/cucumber_tags/new-files-for-sydney.yml +211 -0
  16. data/features/cassettes/cucumber_tags/new-files.yml +355 -0
  17. data/features/cassettes/cucumber_tags/no-new-or-changed-files.yml +359 -0
  18. data/features/cassettes/cucumber_tags/one-file-to-delete.yml +390 -0
  19. data/features/cassettes/cucumber_tags/only-changed-files.yml +411 -0
  20. data/features/cassettes/cucumber_tags/s3-and-cloudfront-when-updating-a-file.yml +435 -0
  21. data/features/cassettes/cucumber_tags/s3-and-cloudfront.yml +290 -0
  22. data/features/cloudfront.feature +35 -0
  23. data/features/delete.feature +18 -0
  24. data/features/instructions-for-new-user.feature +94 -0
  25. data/features/redirects.feature +16 -0
  26. data/features/step_definitions/steps.rb +67 -0
  27. data/features/support/env.rb +26 -0
  28. data/features/support/test_site_dirs/cdn-powered.blog.fi/_site/css/styles.css +3 -0
  29. data/features/support/test_site_dirs/cdn-powered.blog.fi/_site/index.html +5 -0
  30. data/features/support/test_site_dirs/cdn-powered.blog.fi/s3_website.yml +4 -0
  31. data/features/support/test_site_dirs/cdn-powered.with-one-change.blog.fi/_site/css/styles.css +3 -0
  32. data/features/support/test_site_dirs/cdn-powered.with-one-change.blog.fi/_site/index.html +10 -0
  33. data/features/support/test_site_dirs/cdn-powered.with-one-change.blog.fi/s3_website.yml +4 -0
  34. data/features/support/test_site_dirs/create-redirects/_site/.gitkeep +0 -0
  35. data/features/support/test_site_dirs/create-redirects/s3_website.yml +6 -0
  36. data/features/support/test_site_dirs/index-and-assets.blog.fi/_site/assets/picture.gif +0 -0
  37. data/features/support/test_site_dirs/index-and-assets.blog.fi/_site/css/styles.css +3 -0
  38. data/features/support/test_site_dirs/index-and-assets.blog.fi/_site/index.html +5 -0
  39. data/features/support/test_site_dirs/index-and-assets.blog.fi/s3_website.yml +3 -0
  40. data/features/support/test_site_dirs/my.blog.com/_site/css/styles.css +3 -0
  41. data/features/support/test_site_dirs/my.blog.com/_site/index.html +5 -0
  42. data/features/support/test_site_dirs/my.blog.com/s3_website.yml +3 -0
  43. data/features/support/test_site_dirs/my.sydney.blog.au/_site/css/styles.css +3 -0
  44. data/features/support/test_site_dirs/my.sydney.blog.au/_site/index.html +5 -0
  45. data/features/support/test_site_dirs/my.sydney.blog.au/s3_website.yml +4 -0
  46. data/features/support/test_site_dirs/new-and-changed-files.com/_site/css/styles.css +4 -0
  47. data/features/support/test_site_dirs/new-and-changed-files.com/_site/index.html +8 -0
  48. data/features/support/test_site_dirs/new-and-changed-files.com/s3_website.yml +3 -0
  49. data/features/support/test_site_dirs/no-new-or-changed-files.com/_site/css/styles.css +3 -0
  50. data/features/support/test_site_dirs/no-new-or-changed-files.com/_site/index.html +5 -0
  51. data/features/support/test_site_dirs/no-new-or-changed-files.com/s3_website.yml +3 -0
  52. data/features/support/test_site_dirs/only-changed-files.com/_site/css/styles.css +3 -0
  53. data/features/support/test_site_dirs/only-changed-files.com/_site/index.html +9 -0
  54. data/features/support/test_site_dirs/only-changed-files.com/s3_website.yml +3 -0
  55. data/features/support/test_site_dirs/site.with.css-maxage.com/_site/css/styles.css +3 -0
  56. data/features/support/test_site_dirs/site.with.css-maxage.com/_site/index.html +5 -0
  57. data/features/support/test_site_dirs/site.with.css-maxage.com/s3_website.yml +5 -0
  58. data/features/support/test_site_dirs/site.with.gzipped-and-max-aged-content.com/_site/css/styles.css +3 -0
  59. data/features/support/test_site_dirs/site.with.gzipped-and-max-aged-content.com/_site/index.html +5 -0
  60. data/features/support/test_site_dirs/site.with.gzipped-and-max-aged-content.com/s3_website.yml +5 -0
  61. data/features/support/test_site_dirs/site.with.gzipped-html.com/_site/css/styles.css +3 -0
  62. data/features/support/test_site_dirs/site.with.gzipped-html.com/_site/index.html +5 -0
  63. data/features/support/test_site_dirs/site.with.gzipped-html.com/s3_website.yml +5 -0
  64. data/features/support/test_site_dirs/site.with.maxage.com/_site/css/styles.css +3 -0
  65. data/features/support/test_site_dirs/site.with.maxage.com/_site/index.html +5 -0
  66. data/features/support/test_site_dirs/site.with.maxage.com/s3_website.yml +4 -0
  67. data/features/support/test_site_dirs/unpublish-a-post.com/_site/css/styles.css +3 -0
  68. data/features/support/test_site_dirs/unpublish-a-post.com/s3_website.yml +3 -0
  69. data/features/support/vcr.rb +18 -0
  70. data/features/sync.feature +80 -0
  71. data/features/website-performance.feature +57 -0
  72. data/lib/cloudfront/invalidator.rb +22 -0
  73. data/lib/s3_website.rb +20 -0
  74. data/lib/s3_website/config_loader.rb +56 -0
  75. data/lib/s3_website/diff_helper.rb +21 -0
  76. data/lib/s3_website/endpoint.rb +30 -0
  77. data/lib/s3_website/errors.rb +28 -0
  78. data/lib/s3_website/keyboard.rb +27 -0
  79. data/lib/s3_website/parallelism.rb +18 -0
  80. data/lib/s3_website/retry.rb +19 -0
  81. data/lib/s3_website/tasks.rb +42 -0
  82. data/lib/s3_website/upload.rb +103 -0
  83. data/lib/s3_website/uploader.rb +160 -0
  84. data/s3-website.gemspec +39 -0
  85. data/spec/lib/config_loader_spec.rb +20 -0
  86. data/spec/lib/endpoint_spec.rb +27 -0
  87. data/spec/lib/keyboard_spec.rb +59 -0
  88. data/spec/lib/parallelism_spec.rb +43 -0
  89. data/spec/lib/retry_spec.rb +34 -0
  90. data/spec/lib/upload_spec.rb +205 -0
  91. data/spec/lib/uploader_spec.rb +30 -0
  92. data/spec/sample_files/hyde_site/_site/.vimrc +5 -0
  93. data/spec/sample_files/hyde_site/_site/css/styles.css +3 -0
  94. data/spec/sample_files/hyde_site/_site/index.html +1 -0
  95. data/spec/sample_files/hyde_site/s3_website.yml +3 -0
  96. data/spec/sample_files/tokyo_site/_site/.vimrc +5 -0
  97. data/spec/sample_files/tokyo_site/_site/css/styles.css +3 -0
  98. data/spec/sample_files/tokyo_site/_site/index.html +1 -0
  99. data/spec/sample_files/tokyo_site/s3_website.yml +4 -0
  100. data/spec/spec_helper.rb +1 -0
  101. metadata +416 -0
@@ -0,0 +1,355 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://s3.amazonaws.com/s3-website-test.net?max-keys=1000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - ''
12
+ User-Agent:
13
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
14
+ Date:
15
+ - Sat, 22 Jun 2013 08:30:48 GMT
16
+ Authorization:
17
+ - AWS foo:bar
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - '*/*'
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Amz-Id-2:
28
+ - Ko+tri71z3Mcq/jmkOyoA7qYMiBKBPvphYGnmlgFF7ejNJxUoJZzI4i6fgWpiEoa
29
+ X-Amz-Request-Id:
30
+ - 49E1633DC3F20CF4
31
+ Date:
32
+ - Sat, 22 Jun 2013 08:30:38 GMT
33
+ Content-Type:
34
+ - application/xml
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Server:
38
+ - AmazonS3
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ <?xml version="1.0" encoding="UTF-8"?>
43
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>s3-website-test.net</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>css/</Key><LastModified>2013-06-22T08:30:30.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
44
+ http_version:
45
+ recorded_at: Sat, 22 Jun 2013 08:30:50 GMT
46
+ - request:
47
+ method: head
48
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ Content-Type:
54
+ - ''
55
+ User-Agent:
56
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
57
+ Date:
58
+ - Sat, 22 Jun 2013 08:30:50 GMT
59
+ Authorization:
60
+ - AWS foo:bar
61
+ Accept:
62
+ - '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ X-Amz-Id-2:
69
+ - OwrgvZcGBKhYiB73og089kfhuVFQwD4mOxiOM8ivwIDijCI8ULjliPgBfwLonRRK
70
+ X-Amz-Request-Id:
71
+ - FCD7308147099BC1
72
+ Date:
73
+ - Sat, 22 Jun 2013 08:30:40 GMT
74
+ Last-Modified:
75
+ - Sat, 22 Jun 2013 08:30:30 GMT
76
+ Etag:
77
+ - '"d41d8cd98f00b204e9800998ecf8427e"'
78
+ Accept-Ranges:
79
+ - bytes
80
+ Content-Type:
81
+ - binary/octet-stream
82
+ Content-Length:
83
+ - '0'
84
+ Server:
85
+ - AmazonS3
86
+ body:
87
+ encoding: UTF-8
88
+ string: ''
89
+ http_version:
90
+ recorded_at: Sat, 22 Jun 2013 08:30:52 GMT
91
+ - request:
92
+ method: head
93
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Content-Type:
99
+ - ''
100
+ User-Agent:
101
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
102
+ Date:
103
+ - Sat, 22 Jun 2013 08:30:52 GMT
104
+ Authorization:
105
+ - AWS foo:bar
106
+ Accept:
107
+ - '*/*'
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ X-Amz-Id-2:
114
+ - hWJl80Xoerwy5qjGKQry1O61hwQuR/QJeYCJkxdL42DDLTID/snxZejYloGqNQR0
115
+ X-Amz-Request-Id:
116
+ - 526768EA58C77F6B
117
+ Date:
118
+ - Sat, 22 Jun 2013 08:30:46 GMT
119
+ Last-Modified:
120
+ - Sat, 22 Jun 2013 08:30:30 GMT
121
+ Etag:
122
+ - '"d41d8cd98f00b204e9800998ecf8427e"'
123
+ Accept-Ranges:
124
+ - bytes
125
+ Content-Type:
126
+ - binary/octet-stream
127
+ Content-Length:
128
+ - '0'
129
+ Server:
130
+ - AmazonS3
131
+ body:
132
+ encoding: UTF-8
133
+ string: ''
134
+ http_version:
135
+ recorded_at: Sat, 22 Jun 2013 08:30:58 GMT
136
+ - request:
137
+ method: head
138
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/
139
+ body:
140
+ encoding: US-ASCII
141
+ string: ''
142
+ headers:
143
+ Content-Type:
144
+ - ''
145
+ User-Agent:
146
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
147
+ Date:
148
+ - Sat, 22 Jun 2013 08:30:58 GMT
149
+ Authorization:
150
+ - AWS foo:bar
151
+ Accept:
152
+ - '*/*'
153
+ response:
154
+ status:
155
+ code: 200
156
+ message: OK
157
+ headers:
158
+ X-Amz-Id-2:
159
+ - teZt+PE+Z3VHCJ4vq31CpbHTy+qOvwmdH58ioy8Z4aSWfLqgrXSFixKMxypqUezk
160
+ X-Amz-Request-Id:
161
+ - F0CCAB907C6B6DCB
162
+ Date:
163
+ - Sat, 22 Jun 2013 08:30:47 GMT
164
+ Last-Modified:
165
+ - Sat, 22 Jun 2013 08:30:30 GMT
166
+ Etag:
167
+ - '"d41d8cd98f00b204e9800998ecf8427e"'
168
+ Accept-Ranges:
169
+ - bytes
170
+ Content-Type:
171
+ - binary/octet-stream
172
+ Content-Length:
173
+ - '0'
174
+ Server:
175
+ - AmazonS3
176
+ body:
177
+ encoding: UTF-8
178
+ string: ''
179
+ http_version:
180
+ recorded_at: Sat, 22 Jun 2013 08:30:59 GMT
181
+ - request:
182
+ method: put
183
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/styles.css
184
+ body:
185
+ encoding: UTF-8
186
+ string: |
187
+ body {
188
+
189
+ }
190
+ headers:
191
+ Content-Type:
192
+ - text/css
193
+ Content-Length:
194
+ - '10'
195
+ User-Agent:
196
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
197
+ Date:
198
+ - Sat, 22 Jun 2013 08:30:59 GMT
199
+ Authorization:
200
+ - AWS foo:bar
201
+ Accept-Encoding:
202
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
203
+ Accept:
204
+ - '*/*'
205
+ response:
206
+ status:
207
+ code: 200
208
+ message: OK
209
+ headers:
210
+ X-Amz-Id-2:
211
+ - 2QoVIAbEsm226LZlx6v7bTo7eMwqmL4b3VA1NDsWKQjcwuKpY0acEu6eDAgQ6iCk
212
+ X-Amz-Request-Id:
213
+ - F5D58399CB2DFE4A
214
+ Date:
215
+ - Sat, 22 Jun 2013 08:30:48 GMT
216
+ Etag:
217
+ - '"8fcf43a38cbf0c502f029a50645f2374"'
218
+ Content-Length:
219
+ - '0'
220
+ Server:
221
+ - AmazonS3
222
+ body:
223
+ encoding: UTF-8
224
+ string: ''
225
+ http_version:
226
+ recorded_at: Sat, 22 Jun 2013 08:31:00 GMT
227
+ - request:
228
+ method: put
229
+ uri: https://s3.amazonaws.com/s3-website-test.net/index.html
230
+ body:
231
+ encoding: UTF-8
232
+ string: |
233
+ <html>
234
+ <head>
235
+ <title>hello!</title>
236
+ </head>
237
+ </html>
238
+ headers:
239
+ Content-Type:
240
+ - text/html; charset=utf-8
241
+ Content-Length:
242
+ - '60'
243
+ User-Agent:
244
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
245
+ Date:
246
+ - Sat, 22 Jun 2013 08:31:00 GMT
247
+ Authorization:
248
+ - AWS foo:bar
249
+ Accept-Encoding:
250
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
251
+ Accept:
252
+ - '*/*'
253
+ response:
254
+ status:
255
+ code: 200
256
+ message: OK
257
+ headers:
258
+ X-Amz-Id-2:
259
+ - kdbpVeY81kiEO7do2wYReOUWUgyuy3niSF1FiqgI7ppQxqf1TJDvoF46vWdpZ/M5
260
+ X-Amz-Request-Id:
261
+ - 9BFF5BC042F7F043
262
+ Date:
263
+ - Sat, 22 Jun 2013 08:30:50 GMT
264
+ Etag:
265
+ - '"8a8892a2b0fad281f26c0dedbff7011a"'
266
+ Content-Length:
267
+ - '0'
268
+ Server:
269
+ - AmazonS3
270
+ body:
271
+ encoding: UTF-8
272
+ string: ''
273
+ http_version:
274
+ recorded_at: Sat, 22 Jun 2013 08:31:02 GMT
275
+ - request:
276
+ method: get
277
+ uri: https://s3.amazonaws.com/s3-website-test.net?max-keys=1000
278
+ body:
279
+ encoding: US-ASCII
280
+ string: ''
281
+ headers:
282
+ Content-Type:
283
+ - ''
284
+ User-Agent:
285
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
286
+ Date:
287
+ - Sat, 22 Jun 2013 08:31:02 GMT
288
+ Authorization:
289
+ - AWS foo:bar
290
+ Accept-Encoding:
291
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
292
+ Accept:
293
+ - '*/*'
294
+ response:
295
+ status:
296
+ code: 200
297
+ message: OK
298
+ headers:
299
+ X-Amz-Id-2:
300
+ - WAm0zXw2pXoQUFSyXu6ylyyScppJ/YS2WBDsqBxMk/925rNhPB9fLcu+vryeAj53
301
+ X-Amz-Request-Id:
302
+ - 3C97E47C00DF7EF6
303
+ Date:
304
+ - Sat, 22 Jun 2013 08:30:52 GMT
305
+ Content-Type:
306
+ - application/xml
307
+ Transfer-Encoding:
308
+ - chunked
309
+ Server:
310
+ - AmazonS3
311
+ body:
312
+ encoding: UTF-8
313
+ string: |-
314
+ <?xml version="1.0" encoding="UTF-8"?>
315
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>s3-website-test.net</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>css/</Key><LastModified>2013-06-22T08:30:30.000Z</LastModified><ETag>&quot;d41d8cd98f00b204e9800998ecf8427e&quot;</ETag><Size>0</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>css/styles.css</Key><LastModified>2013-06-22T08:30:48.000Z</LastModified><ETag>&quot;8fcf43a38cbf0c502f029a50645f2374&quot;</ETag><Size>10</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>index.html</Key><LastModified>2013-06-22T08:30:50.000Z</LastModified><ETag>&quot;8a8892a2b0fad281f26c0dedbff7011a&quot;</ETag><Size>60</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
316
+ http_version:
317
+ recorded_at: Sat, 22 Jun 2013 08:31:04 GMT
318
+ - request:
319
+ method: delete
320
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/
321
+ body:
322
+ encoding: US-ASCII
323
+ string: ''
324
+ headers:
325
+ Content-Type:
326
+ - ''
327
+ User-Agent:
328
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
329
+ Date:
330
+ - Sat, 22 Jun 2013 08:31:04 GMT
331
+ Authorization:
332
+ - AWS foo:bar
333
+ Accept-Encoding:
334
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
335
+ Accept:
336
+ - '*/*'
337
+ response:
338
+ status:
339
+ code: 204
340
+ message: No Content
341
+ headers:
342
+ X-Amz-Id-2:
343
+ - ERSuLuSXUR4JSan297pxA2zRM/iKi+155DMdaBnigluGgqo1HfZiNuYGe9KgAo8i
344
+ X-Amz-Request-Id:
345
+ - ABED032FD81DCF49
346
+ Date:
347
+ - Sat, 22 Jun 2013 08:30:53 GMT
348
+ Server:
349
+ - AmazonS3
350
+ body:
351
+ encoding: UTF-8
352
+ string: ''
353
+ http_version:
354
+ recorded_at: Sat, 22 Jun 2013 08:31:05 GMT
355
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,359 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://s3.amazonaws.com/s3-website-test.net?max-keys=1000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - ''
12
+ User-Agent:
13
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
14
+ Date:
15
+ - Sat, 22 Jun 2013 08:59:50 GMT
16
+ Authorization:
17
+ - AWS foo:bar
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - '*/*'
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Amz-Id-2:
28
+ - A9x9ncm+Ah4AEBnBUhwGoE50+oqjBT2SXum8VwlJ+CdU29fqatTsckdrtckaIGxP
29
+ X-Amz-Request-Id:
30
+ - 311E59D987533CA4
31
+ Date:
32
+ - Sat, 22 Jun 2013 08:59:41 GMT
33
+ Content-Type:
34
+ - application/xml
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Server:
38
+ - AmazonS3
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ <?xml version="1.0" encoding="UTF-8"?>
43
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>s3-website-test.net</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>css/styles.css</Key><LastModified>2013-06-22T08:30:48.000Z</LastModified><ETag>&quot;8fcf43a38cbf0c502f029a50645f2374&quot;</ETag><Size>10</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>index.html</Key><LastModified>2013-06-22T08:57:58.000Z</LastModified><ETag>&quot;8a8892a2b0fad281f26c0dedbff7011a&quot;</ETag><Size>60</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
44
+ http_version:
45
+ recorded_at: Sat, 22 Jun 2013 08:59:52 GMT
46
+ - request:
47
+ method: head
48
+ uri: https://s3.amazonaws.com/s3-website-test.net/index.html
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ Content-Type:
54
+ - ''
55
+ User-Agent:
56
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
57
+ Date:
58
+ - Sat, 22 Jun 2013 08:59:52 GMT
59
+ Authorization:
60
+ - AWS foo:bar
61
+ Accept:
62
+ - '*/*'
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ X-Amz-Id-2:
69
+ - 3Ke8wHUeM2IT0OgfvWrtiFSZQi9S4VAhhYyRMR/PZbtOf1gSgsX2Y4Bjl+7QjvXR
70
+ X-Amz-Request-Id:
71
+ - BFD061E826F08C99
72
+ Date:
73
+ - Sat, 22 Jun 2013 08:59:41 GMT
74
+ Last-Modified:
75
+ - Sat, 22 Jun 2013 08:57:58 GMT
76
+ Etag:
77
+ - '"8a8892a2b0fad281f26c0dedbff7011a"'
78
+ Accept-Ranges:
79
+ - bytes
80
+ Content-Type:
81
+ - text/html; charset=utf-8
82
+ Content-Length:
83
+ - '60'
84
+ Server:
85
+ - AmazonS3
86
+ body:
87
+ encoding: UTF-8
88
+ string: ''
89
+ http_version:
90
+ recorded_at: Sat, 22 Jun 2013 08:59:53 GMT
91
+ - request:
92
+ method: head
93
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/styles.css
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Content-Type:
99
+ - ''
100
+ User-Agent:
101
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
102
+ Date:
103
+ - Sat, 22 Jun 2013 08:59:52 GMT
104
+ Authorization:
105
+ - AWS foo:bar
106
+ Accept:
107
+ - '*/*'
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ X-Amz-Id-2:
114
+ - UmtwejMp9i6BVmQv4uEUKBVyG0g02BzL9EIbjfXKO3FZccgyOs0xzycEh9krvADI
115
+ X-Amz-Request-Id:
116
+ - D99D9901AC2A17E9
117
+ Date:
118
+ - Sat, 22 Jun 2013 08:59:41 GMT
119
+ Last-Modified:
120
+ - Sat, 22 Jun 2013 08:30:48 GMT
121
+ Etag:
122
+ - '"8fcf43a38cbf0c502f029a50645f2374"'
123
+ Accept-Ranges:
124
+ - bytes
125
+ Content-Type:
126
+ - text/css
127
+ Content-Length:
128
+ - '10'
129
+ Server:
130
+ - AmazonS3
131
+ body:
132
+ encoding: UTF-8
133
+ string: ''
134
+ http_version:
135
+ recorded_at: Sat, 22 Jun 2013 08:59:53 GMT
136
+ - request:
137
+ method: head
138
+ uri: https://s3.amazonaws.com/s3-website-test.net/index.html
139
+ body:
140
+ encoding: US-ASCII
141
+ string: ''
142
+ headers:
143
+ Content-Type:
144
+ - ''
145
+ User-Agent:
146
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
147
+ Date:
148
+ - Sat, 22 Jun 2013 08:59:53 GMT
149
+ Authorization:
150
+ - AWS foo:bar
151
+ Accept:
152
+ - '*/*'
153
+ response:
154
+ status:
155
+ code: 200
156
+ message: OK
157
+ headers:
158
+ X-Amz-Id-2:
159
+ - si94NytquAWe+z9/FL1BH/0txv7D2+ONO+x5sYdmVXmGvTz5pGtnshrsLZXSZ33O
160
+ X-Amz-Request-Id:
161
+ - D27E867225449339
162
+ Date:
163
+ - Sat, 22 Jun 2013 08:59:43 GMT
164
+ Last-Modified:
165
+ - Sat, 22 Jun 2013 08:57:58 GMT
166
+ Etag:
167
+ - '"8a8892a2b0fad281f26c0dedbff7011a"'
168
+ Accept-Ranges:
169
+ - bytes
170
+ Content-Type:
171
+ - text/html; charset=utf-8
172
+ Content-Length:
173
+ - '60'
174
+ Server:
175
+ - AmazonS3
176
+ body:
177
+ encoding: UTF-8
178
+ string: ''
179
+ http_version:
180
+ recorded_at: Sat, 22 Jun 2013 08:59:54 GMT
181
+ - request:
182
+ method: head
183
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/styles.css
184
+ body:
185
+ encoding: US-ASCII
186
+ string: ''
187
+ headers:
188
+ Content-Type:
189
+ - ''
190
+ User-Agent:
191
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
192
+ Date:
193
+ - Sat, 22 Jun 2013 08:59:53 GMT
194
+ Authorization:
195
+ - AWS foo:bar
196
+ Accept:
197
+ - '*/*'
198
+ response:
199
+ status:
200
+ code: 200
201
+ message: OK
202
+ headers:
203
+ X-Amz-Id-2:
204
+ - zSsqgkLAN1HWLYkawJBFI05/0wKW7Pq45dkfJ8nju0LBpCIIGNU4iZjYNWpce1WU
205
+ X-Amz-Request-Id:
206
+ - 7A09E4C564246C21
207
+ Date:
208
+ - Sat, 22 Jun 2013 08:59:43 GMT
209
+ Last-Modified:
210
+ - Sat, 22 Jun 2013 08:30:48 GMT
211
+ Etag:
212
+ - '"8fcf43a38cbf0c502f029a50645f2374"'
213
+ Accept-Ranges:
214
+ - bytes
215
+ Content-Type:
216
+ - text/css
217
+ Content-Length:
218
+ - '10'
219
+ Server:
220
+ - AmazonS3
221
+ body:
222
+ encoding: UTF-8
223
+ string: ''
224
+ http_version:
225
+ recorded_at: Sat, 22 Jun 2013 08:59:54 GMT
226
+ - request:
227
+ method: head
228
+ uri: https://s3.amazonaws.com/s3-website-test.net/css/styles.css
229
+ body:
230
+ encoding: US-ASCII
231
+ string: ''
232
+ headers:
233
+ Content-Type:
234
+ - ''
235
+ User-Agent:
236
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
237
+ Date:
238
+ - Sat, 22 Jun 2013 08:59:54 GMT
239
+ Authorization:
240
+ - AWS foo:bar
241
+ Accept:
242
+ - '*/*'
243
+ response:
244
+ status:
245
+ code: 200
246
+ message: OK
247
+ headers:
248
+ X-Amz-Id-2:
249
+ - bKH3gHWMwOdPUVhlMOwPvefFCAPPPhnmoVQueU/odRRTlLPyuB0bYCC91P28flgN
250
+ X-Amz-Request-Id:
251
+ - 58E1A07BC1672B96
252
+ Date:
253
+ - Sat, 22 Jun 2013 08:59:44 GMT
254
+ Last-Modified:
255
+ - Sat, 22 Jun 2013 08:30:48 GMT
256
+ Etag:
257
+ - '"8fcf43a38cbf0c502f029a50645f2374"'
258
+ Accept-Ranges:
259
+ - bytes
260
+ Content-Type:
261
+ - text/css
262
+ Content-Length:
263
+ - '10'
264
+ Server:
265
+ - AmazonS3
266
+ body:
267
+ encoding: UTF-8
268
+ string: ''
269
+ http_version:
270
+ recorded_at: Sat, 22 Jun 2013 08:59:55 GMT
271
+ - request:
272
+ method: head
273
+ uri: https://s3.amazonaws.com/s3-website-test.net/index.html
274
+ body:
275
+ encoding: US-ASCII
276
+ string: ''
277
+ headers:
278
+ Content-Type:
279
+ - ''
280
+ User-Agent:
281
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
282
+ Date:
283
+ - Sat, 22 Jun 2013 08:59:54 GMT
284
+ Authorization:
285
+ - AWS foo:bar
286
+ Accept:
287
+ - '*/*'
288
+ response:
289
+ status:
290
+ code: 200
291
+ message: OK
292
+ headers:
293
+ X-Amz-Id-2:
294
+ - 9Vc6n7M/kSmH1InbWjRX08GJ6dJJq6oZu3qRBmFtOr0qq79SDHLWR+GFuFf99nPe
295
+ X-Amz-Request-Id:
296
+ - DAB97DB1ED62A90D
297
+ Date:
298
+ - Sat, 22 Jun 2013 08:59:44 GMT
299
+ Last-Modified:
300
+ - Sat, 22 Jun 2013 08:57:58 GMT
301
+ Etag:
302
+ - '"8a8892a2b0fad281f26c0dedbff7011a"'
303
+ Accept-Ranges:
304
+ - bytes
305
+ Content-Type:
306
+ - text/html; charset=utf-8
307
+ Content-Length:
308
+ - '60'
309
+ Server:
310
+ - AmazonS3
311
+ body:
312
+ encoding: UTF-8
313
+ string: ''
314
+ http_version:
315
+ recorded_at: Sat, 22 Jun 2013 08:59:55 GMT
316
+ - request:
317
+ method: get
318
+ uri: https://s3.amazonaws.com/s3-website-test.net?max-keys=1000
319
+ body:
320
+ encoding: US-ASCII
321
+ string: ''
322
+ headers:
323
+ Content-Type:
324
+ - ''
325
+ User-Agent:
326
+ - aws-sdk-ruby/1.8.5 ruby/2.0.0 x86_64-darwin11.4.2
327
+ Date:
328
+ - Sat, 22 Jun 2013 08:59:55 GMT
329
+ Authorization:
330
+ - AWS foo:bar
331
+ Accept-Encoding:
332
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
333
+ Accept:
334
+ - '*/*'
335
+ response:
336
+ status:
337
+ code: 200
338
+ message: OK
339
+ headers:
340
+ X-Amz-Id-2:
341
+ - a0oloZ4fb/xrV+IdJuvxha57Pay2dtL45eZfsYklKjPqbebxPDxh+Z7OEQczxNci
342
+ X-Amz-Request-Id:
343
+ - 5C449E78EFA8D47D
344
+ Date:
345
+ - Sat, 22 Jun 2013 08:59:45 GMT
346
+ Content-Type:
347
+ - application/xml
348
+ Transfer-Encoding:
349
+ - chunked
350
+ Server:
351
+ - AmazonS3
352
+ body:
353
+ encoding: UTF-8
354
+ string: |-
355
+ <?xml version="1.0" encoding="UTF-8"?>
356
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>s3-website-test.net</Name><Prefix></Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated><Contents><Key>css/styles.css</Key><LastModified>2013-06-22T08:30:48.000Z</LastModified><ETag>&quot;8fcf43a38cbf0c502f029a50645f2374&quot;</ETag><Size>10</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>index.html</Key><LastModified>2013-06-22T08:57:58.000Z</LastModified><ETag>&quot;8a8892a2b0fad281f26c0dedbff7011a&quot;</ETag><Size>60</Size><Owner><ID>3855ebae0f370c3dd0c8d8031863792112bd2a2cb18fa310d3f463ae0dea62f1</ID><DisplayName>fluid83</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>
357
+ http_version:
358
+ recorded_at: Sat, 22 Jun 2013 08:59:56 GMT
359
+ recorded_with: VCR 2.5.0