pbsimply 3.6.1 → 3.6.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/prayer.rb +4 -4
- 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: 9f6eba39306e8a547d2dc0cec4cafb7c683c47dcaf54a075101c144667135c03
|
|
4
|
+
data.tar.gz: 905f46a0b0cb44921d20e8c6a88459943f8c49245b06983e64738c1655445bc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac06410f8bb7de354a978ff9011096e1532db1bbaf797b0c59651f91714bbf1a3d6e01138fbb5c14e8ca715c118d9f4f904844b34dfa51998b4aee8589941f1d
|
|
7
|
+
data.tar.gz: b9524c4a55b20615f81de41542e4808ab42d81baa53b7650fbd8f4b4af87052c54ebf2403d6d6b1de796fb8c152c1da4025ef3a3606a13dc3f1bcf39402773a4
|
data/lib/pbsimply/prayer.rb
CHANGED
|
@@ -50,11 +50,11 @@ module PBSimply::Prayer
|
|
|
50
50
|
File.open(@workfile_frontmatter, "w") {|f| f.write PBSimply::JSON_LIB.dump(frontmatter) }
|
|
51
51
|
# BLESSING (Always)
|
|
52
52
|
if @config["bless_cmd"]
|
|
53
|
-
(Array === @config["bless_cmd"] ? system(*@config["bless_cmd"]) : system(@config["bless_cmd"]) ) or raise BlessError.new "*** BLESS COMMAND RETURNS NON-ZERO STATUS"
|
|
53
|
+
(Array === @config["bless_cmd"] ? system(*@config["bless_cmd"]) : system(@config["bless_cmd"]) ) or raise PBSimply::BlessError.new "*** BLESS COMMAND RETURNS NON-ZERO STATUS"
|
|
54
54
|
end
|
|
55
55
|
# BLESSING (ACCS)
|
|
56
56
|
if @config["bless_accscmd"]
|
|
57
|
-
(Array === @config["bless_accscmd"] ? system({"pbsimply_workdir" => @workdir, "pbsimply_frontmatter" => @workfile_frontmatter, "pbsimply_indexes" => @db.path}, *@config["bless_accscmd"]) : system({"pbsimply_workdir" => @workdir, "pbsimply_frontmatter" => @workfile_frontmatter, "pbsimply_indexes" => @db.path}, @config["bless_accscmd"]) ) or raise BlessError.new "*** BLESS COMMAND RETURNS NON-ZERO STATUS"
|
|
57
|
+
(Array === @config["bless_accscmd"] ? system({"pbsimply_workdir" => @workdir, "pbsimply_frontmatter" => @workfile_frontmatter, "pbsimply_indexes" => @db.path}, *@config["bless_accscmd"]) : system({"pbsimply_workdir" => @workdir, "pbsimply_frontmatter" => @workfile_frontmatter, "pbsimply_indexes" => @db.path}, @config["bless_accscmd"]) ) or raise PBSimply::BlessError.new "*** BLESS COMMAND RETURNS NON-ZERO STATUS"
|
|
58
58
|
end
|
|
59
59
|
mod_frontmatter = JSON.load(File.read(@workfile_frontmatter))
|
|
60
60
|
frontmatter.replace(mod_frontmatter)
|
|
@@ -78,13 +78,13 @@ module PBSimply::Prayer
|
|
|
78
78
|
begin
|
|
79
79
|
@article_order = @indexes.to_a.sort_by {|i| i[1]["date"]}
|
|
80
80
|
rescue => e
|
|
81
|
-
raise BlessError.new("*** Automatic Blessing Method Error: Maybe some article has no date.", e)
|
|
81
|
+
raise PBSimply::BlessError.new("*** Automatic Blessing Method Error: Maybe some article has no date.", e)
|
|
82
82
|
end
|
|
83
83
|
when "timestamp"
|
|
84
84
|
begin
|
|
85
85
|
@article_order = @indexes.to_a.sort_by {|i| i[1]["timestamp"]}
|
|
86
86
|
rescue => e
|
|
87
|
-
raise BlessError.new("*** Automatic Blessing Method Error: Maybe some article has no timetsamp.", e)
|
|
87
|
+
raise PBSimply::BlessError.new("*** Automatic Blessing Method Error: Maybe some article has no timetsamp.", e)
|
|
88
88
|
end
|
|
89
89
|
when "lexical"
|
|
90
90
|
@article_order = @indexes.to_a.sort_by {|i| i[1]["_filename"]}
|