thrifty_file_applier 0.1.4 → 0.1.5
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/Gemfile.lock +1 -1
- data/lib/thrifty_file_applier/version.rb +1 -1
- data/lib/thrifty_file_applier.rb +6 -7
- 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: 4b56156ca6b54a4a9caa64b78d68786e6228a0a568b066fab4dd1ad30e9491f0
|
4
|
+
data.tar.gz: ee5cec60536d69c3a83556a10bbc8c31d59f8938d8b4263c08c975dda4724d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94380f9dc0658562320350a1422724d6855a51d882c8e9eacb3affce88fba98052e5adaea11a907eed0ceab4b82bcfbab4f2ebd0cb28deb92d63cc175351150d
|
7
|
+
data.tar.gz: 63b7e5562d9997c0a91f3a055cb645d856a998ea1f7d3c6c9799d874566f0687276167b26181dac74fa6554972b8e529c0b3803af612e07d280005d2e5a25619
|
data/Gemfile.lock
CHANGED
data/lib/thrifty_file_applier.rb
CHANGED
@@ -50,11 +50,7 @@ module ThriftyFileApplier
|
|
50
50
|
def last_update_time_in(path)
|
51
51
|
return Time.at 0 unless path.exist?
|
52
52
|
|
53
|
-
|
54
|
-
newest_mtime path
|
55
|
-
else
|
56
|
-
path.mtime
|
57
|
-
end
|
53
|
+
newest_mtime path
|
58
54
|
end
|
59
55
|
|
60
56
|
def last_execution_time
|
@@ -67,8 +63,11 @@ module ThriftyFileApplier
|
|
67
63
|
end
|
68
64
|
|
69
65
|
def newest_mtime(path)
|
70
|
-
path.
|
71
|
-
|
66
|
+
return path.mtime if !path.directory? ||
|
67
|
+
(path.directory? && path.children.size.zero?)
|
68
|
+
|
69
|
+
path.children
|
70
|
+
.map { newest_mtime(_1) }
|
72
71
|
.max
|
73
72
|
end
|
74
73
|
end
|