plntr-fakes3 1.0.0.pre.19 → 1.0.0.pre.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakes3/file_store.rb +3 -1
- 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: 95efbf2e93e9d8b6a2656bfc66a6f55540e28cdba6a82b2a935d4697516fa33a
|
4
|
+
data.tar.gz: 8e3d73008d86a180d15b9641d77eb5105b6df7fcec94990fd7a262dbade24757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec122ee1babf7a793af62a94099a17b4047092781e81c63d0070e18c355621e83bbb6a3ee544b1264f8418b08ba1950d8fed7483a1705b0049e9c5900a729d53
|
7
|
+
data.tar.gz: 87354ceb8aa3bd53365763c2bd5047e90a78451bf3e3029ef357254317492fa6eab877768648a0eadb2718dfe48b5cbc6e03c63098d5fc664b38a26f61035a81
|
data/lib/fakes3/file_store.rb
CHANGED
@@ -237,7 +237,9 @@ module FakeS3
|
|
237
237
|
File.open(content_path, 'rb') { |f| chunk = f.read }
|
238
238
|
etag = Digest::MD5.hexdigest(chunk)
|
239
239
|
|
240
|
-
|
240
|
+
if part[:etag] == "\"#{etag}\"" && part[:etag] == etag
|
241
|
+
raise "invalid file chunk: p='#{part[:etag]}', comp='#{etag}'"
|
242
|
+
end
|
241
243
|
complete_file << chunk
|
242
244
|
part_paths << part_path
|
243
245
|
end
|
data/lib/fakes3/version.rb
CHANGED