plntr-fakes3 1.0.0.pre.10alpha24 → 1.0.0.pre.10alpha25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakes3/server.rb +11 -6
- data/lib/fakes3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea1ef55274a2cb9377b480c9093bdce842b29e854ca3ce6b30c6ccdeb02131e0
|
4
|
+
data.tar.gz: e31701182e160407bee78120b95cb7352d9d9af32e55c67c193d904bb8bf91ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849e5288abd5c79a7a4b9cbff10f0ff18c6fbc6d3033f7ea0393cc9d99f4ecdcb345bf51fabfe305e3966dd29611a07ed6f9cdaff7bf6953d92fd07aae96f13a
|
7
|
+
data.tar.gz: 11a316e93f0a2292df4a69119483fcf02b16fbf7b8f8c293edd1062ed1a0f6fdaf3457d937de80452bb83b2d91b567de3e79a03f56e5fc1b293ff6afc1e5ac46
|
data/lib/fakes3/server.rb
CHANGED
@@ -246,10 +246,6 @@ module FakeS3
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def do_POST(request,response)
|
249
|
-
warn 'do_POST'
|
250
|
-
dump_request request
|
251
|
-
warn 'query', request.request_uri.query
|
252
|
-
warn 'parse', CGI::parse(request.request_uri.query || "")
|
253
249
|
s_req = normalize_request(request)
|
254
250
|
if s_req.type == Request::DELETE_OBJECTS
|
255
251
|
return do_DELETE(request, response)
|
@@ -328,7 +324,6 @@ module FakeS3
|
|
328
324
|
warn 'do_DELETE'
|
329
325
|
dump_request request
|
330
326
|
s_req = normalize_request(request)
|
331
|
-
warn "@@ type= #{s_req.type}"
|
332
327
|
|
333
328
|
case s_req.type
|
334
329
|
when Request::DELETE_OBJECT
|
@@ -342,6 +337,8 @@ module FakeS3
|
|
342
337
|
response.body = ""
|
343
338
|
when Request::DELETE_OBJECTS
|
344
339
|
warn 'Request::DELETE_OBJECTS'
|
340
|
+
warn "bucket: #{s_req.bucket}"
|
341
|
+
warn ''
|
345
342
|
end
|
346
343
|
|
347
344
|
end
|
@@ -490,8 +487,8 @@ module FakeS3
|
|
490
487
|
end
|
491
488
|
|
492
489
|
if webrick_req.request_line =~ /\?delete\b/
|
493
|
-
# if webrick_req.query_string =~ /\bdelete\b/i
|
494
490
|
s_req.type = Request::DELETE_OBJECTS
|
491
|
+
parse_delete_objects webrick_req
|
495
492
|
end
|
496
493
|
end
|
497
494
|
|
@@ -544,6 +541,14 @@ module FakeS3
|
|
544
541
|
end
|
545
542
|
end
|
546
543
|
|
544
|
+
def parse_delete_objects(request)
|
545
|
+
parts_xml = ""
|
546
|
+
request.body { |chunk| parts_xml << chunk }
|
547
|
+
warn " ::: BODY :::"
|
548
|
+
warn parts_xml
|
549
|
+
warn " ::: END BODY :::"
|
550
|
+
end
|
551
|
+
|
547
552
|
def dump_request(request)
|
548
553
|
warn "----------Dump Request-------------"
|
549
554
|
warn request.request_method
|
data/lib/fakes3/version.rb
CHANGED