pbsimply 3.0.1 → 3.0.2
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/pbsimply.rb +7 -6
- 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: 6d2c58cce236dac5c8dc0d62c29d34dd3896b904a39a0fd2f4d6923e34e8a8bc
|
4
|
+
data.tar.gz: 555eb53df299fa68a5ec20a739660c071639a94a50072a52b8ac07031ba04be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8330d449dea9be67096f09a024bbdcdb9ece542b308bef14992bee4f58702fb538ffe025b4d6a1828c70f15033c8503be65caeaf12ed34057223f7ac198edbc1
|
7
|
+
data.tar.gz: f552fe4085b49ed57ff51fd51ec146c7b1b4bcd549c6e27b3e0d0586bb528eaebcc70fd778d4c85415f39f02080c4799b3a8f63d14eac2880b38ef371bce2f14
|
data/lib/pbsimply.rb
CHANGED
@@ -396,21 +396,22 @@ class PBSimply
|
|
396
396
|
modify = false if frontmatter["changes"] == index["changes"]
|
397
397
|
when "mtimesize"
|
398
398
|
# Use mtime and file size.
|
399
|
-
modify = false if frontmatter["_mtime"] <=
|
399
|
+
modify = false if frontmatter["_mtime"] <= (index["_last_proced"] || 0) && frontmatter["_size"] == index["_size"]
|
400
400
|
else
|
401
401
|
# Default method, use mtime.
|
402
|
-
modify = false if frontmatter["_mtime"] <=
|
402
|
+
modify = false if frontmatter["_mtime"] <= (index["_last_proced"] || 0)
|
403
403
|
end
|
404
404
|
|
405
405
|
|
406
406
|
if modify
|
407
|
-
STDERR.puts "#{
|
408
|
-
frontmatter["_last_proced"] = @now.to_i
|
409
|
-
frontmatter["last_update"] = @now.strftime("%Y-%m-%d %H:%M:%S")
|
407
|
+
STDERR.puts "#{filename} last modified at #{frontmatter["_mtime"]}, last processed at #{@indexes_orig[filename]&.[]("_last_proced") || 0}"
|
410
408
|
else
|
411
|
-
STDERR.puts "#{
|
409
|
+
STDERR.puts "#{filename} is not modified."
|
412
410
|
end
|
413
411
|
|
412
|
+
frontmatter["_last_proced"] = @now.to_i
|
413
|
+
frontmatter["last_update"] = @now.strftime("%Y-%m-%d %H:%M:%S")
|
414
|
+
|
414
415
|
if @refresh
|
415
416
|
# Refresh (force update) mode.
|
416
417
|
true
|