plntr-fakes3 1.0.0.pre.10alpha20 → 1.0.0.pre.10alpha21
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 +7 -2
- 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: e95cb25cf8529543036a37ca91759013653e3f5da7f26558715323dfb304015c
|
4
|
+
data.tar.gz: 932a58451e1a921faf2fb47aa6a267670d8e8b28cdc4e6f6d57e65f8a8b77720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4595b4b4615e006313f579b13074661819b6532e6690cae9442cd909156ee46bc61b7f38002ea318cd7f6b99fe8015f1c0c8b09edb905f354bb6987e999eb192
|
7
|
+
data.tar.gz: 213ab64414427df6dc1e288cb21a5ebc44e70942eba2e35aec924139d9d1d31b5dd687ab2b731d19cdfcea194f60faeb3eca108fd4031d6a4e5b0aec73c08135
|
data/lib/fakes3/server.rb
CHANGED
@@ -246,6 +246,7 @@ module FakeS3
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def do_POST(request,response)
|
249
|
+
warn 'do_POST'
|
249
250
|
dump_request request
|
250
251
|
warn 'q', request.query['delete']
|
251
252
|
warn request.query.to_s
|
@@ -324,6 +325,8 @@ module FakeS3
|
|
324
325
|
end
|
325
326
|
|
326
327
|
def do_DELETE(request, response)
|
328
|
+
warn 'do_DELETE'
|
329
|
+
dump_request request
|
327
330
|
s_req = normalize_request(request)
|
328
331
|
|
329
332
|
case s_req.type
|
@@ -337,6 +340,7 @@ module FakeS3
|
|
337
340
|
response.status = 204
|
338
341
|
response.body = ""
|
339
342
|
when Request::DELETE_OBJECTS
|
343
|
+
warn 'Request::DELETE_OBJECTS'
|
340
344
|
end
|
341
345
|
|
342
346
|
end
|
@@ -484,7 +488,8 @@ module FakeS3
|
|
484
488
|
s_req.object = path[1..-1]
|
485
489
|
end
|
486
490
|
|
487
|
-
if webrick_req.
|
491
|
+
if webrick_req.request_line =~ /\?delete\b/
|
492
|
+
# if webrick_req.query_string =~ /\bdelete\b/i
|
488
493
|
s_req.type = Request::DELETE_OBJECTS
|
489
494
|
end
|
490
495
|
end
|
@@ -542,7 +547,7 @@ module FakeS3
|
|
542
547
|
warn "----------Dump Request-------------"
|
543
548
|
warn request.request_method
|
544
549
|
warn request.path
|
545
|
-
warn request.
|
550
|
+
warn request.query_string
|
546
551
|
request.each do |k,v|
|
547
552
|
warn "#{k}:#{v}"
|
548
553
|
end
|
data/lib/fakes3/version.rb
CHANGED