lucarecord 0.2.26 → 0.2.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/luca_record/io.rb +7 -7
- data/lib/luca_record/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: 3e81c1ccc95c688bdfa2da3af37635324f1f744f1976b0dd3654514e2a1254b4
|
4
|
+
data.tar.gz: 2ed07a97b4bca099f1eb7004476960c3c2a8da03d06ee7f4db6e48226294f431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcdd0ddae31a118c6532c872361535d89336fa712ba80395a10d5dda7a597c6300214ac2c1cdbab6782bd861d46e9da1e32c48e3fae182c33d63e78b0fcf7424
|
7
|
+
data.tar.gz: 4ec6114ea0f761e7ca4f743fce6c2594cac704c0bb6a32082ba35cbc5b9c6e639ce421d13ccf33a46a5359a4030974ff85447133391641beb83d2efaab3e1a91
|
data/lib/luca_record/io.rb
CHANGED
@@ -311,14 +311,14 @@ module LucaRecord # :nodoc:
|
|
311
311
|
File.open(subpath, mode) { |f| yield(f, id_set) }
|
312
312
|
end
|
313
313
|
end
|
314
|
+
end
|
314
315
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
end
|
316
|
+
# Calculate md5sum with original digest, file content and filename(optional).
|
317
|
+
#
|
318
|
+
def update_digest(digest, str, filename = nil)
|
319
|
+
str = filename.nil? ? str : filename + str
|
320
|
+
content = Digest::MD5.new.update(str).hexdigest
|
321
|
+
Digest::MD5.new.update(digest + content).hexdigest
|
322
322
|
end
|
323
323
|
|
324
324
|
# git object like structure
|
data/lib/luca_record/version.rb
CHANGED