store-digest 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/store/digest/blob/filesystem.rb +1 -1
- data/lib/store/digest/entry.rb +3 -3
- data/lib/store/digest/version.rb +1 -1
- data/lib/store/digest.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: '09eefcbc9e86e0b771a61edd3a16f135f559c228f9ea0ebd453bd198f3d70ae3'
|
|
4
|
+
data.tar.gz: 9bd41bdcd3709b07081daeaf49e2f7f8e7f5513f3c2469b3636d5ffcfc9f9948
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4f6199427973e30fda2380738bb8d7697c8e12f6c1f641e78f901c9827ab8a87742a62cd07fa422d89617e504181a41c9ba227427d64955b4416fdd0ebec6d6
|
|
7
|
+
data.tar.gz: b67f8805a959d787914b5adbc0854d969e4d0e5d5a2a5bb541c9aa259728f789f0a01e0e50bf7a4014bfbc9466d526f33ff24e4f809fbd0a8f644ae5cd4004fe
|
|
@@ -74,7 +74,7 @@ module Store::Digest::Blob::FileSystem
|
|
|
74
74
|
#
|
|
75
75
|
def settle_blob bin, fh, mtime: nil, overwrite: false, direct: false
|
|
76
76
|
# get the mtimes
|
|
77
|
-
mtime ||= Time.now
|
|
77
|
+
mtime ||= Time.now(in: ?Z)
|
|
78
78
|
mtime = case mtime
|
|
79
79
|
when Time then mtime.to_i
|
|
80
80
|
when Integer then mtime
|
data/lib/store/digest/entry.rb
CHANGED
|
@@ -361,7 +361,7 @@ class Store::Digest::Entry
|
|
|
361
361
|
@store = store
|
|
362
362
|
end
|
|
363
363
|
|
|
364
|
-
now = Time.now
|
|
364
|
+
now = Time.now(in: ?Z)
|
|
365
365
|
|
|
366
366
|
# this sets the empty digest hash and the scanning state to false
|
|
367
367
|
self.content = content if content
|
|
@@ -1006,7 +1006,7 @@ class Store::Digest::Entry
|
|
|
1006
1006
|
@content = Store::Digest::ReadWrapper.coerce content, thunk: true
|
|
1007
1007
|
|
|
1008
1008
|
if @content.respond_to?(:path) and path = @content.path
|
|
1009
|
-
warn MimeMagic.by_path path
|
|
1009
|
+
# warn MimeMagic.by_path path
|
|
1010
1010
|
@type = MimeMagic.by_path path
|
|
1011
1011
|
end
|
|
1012
1012
|
|
|
@@ -1144,7 +1144,7 @@ class Store::Digest::Entry
|
|
|
1144
1144
|
# past, then the entry is stale.
|
|
1145
1145
|
#
|
|
1146
1146
|
def stale?
|
|
1147
|
-
cache? && @dtime && @dtime < Time.now
|
|
1147
|
+
cache? && @dtime && @dtime < Time.now(in: ?Z)
|
|
1148
1148
|
end
|
|
1149
1149
|
|
|
1150
1150
|
# Just a plain old predicate to determine whether the blob has been
|
data/lib/store/digest/version.rb
CHANGED
data/lib/store/digest.rb
CHANGED