pbsimply 3.6.0 → 3.6.1
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/frontmatter.rb +2 -2
- data/lib/pbsimply.rb +1 -0
- 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: 3a417c6d496dfde4f431192332a64cab522fe757da468ea06a4b6a4e7b954e83
|
|
4
|
+
data.tar.gz: 2d07b51d00a2e4ac75b9c990cd4555b9af4d98a5e489c1126b688edd405024d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e02c628a504036bb28d7350a70de24cc6c7faf0080d365f805ef1dae20bbbb32a2fbfda9827f8ac0c11a594578e53b21695627e2708be7c33019257998bdd72
|
|
7
|
+
data.tar.gz: 54cabd5b56b889be92c4e3a2d9a8d201874bb044688130b14682099f45b227ad7a4356d9d1322cea48d516de36a210bdfe205314dd450e70570e654fca5220fb
|
data/lib/pbsimply/frontmatter.rb
CHANGED
|
@@ -131,8 +131,8 @@ module PBSimply::Frontmatter
|
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
raise DocumentError.new("This document has no frontmatter") unless frontmatter
|
|
135
|
-
raise DocumentError.new("This document has no title.") unless frontmatter["title"]
|
|
134
|
+
raise PBSimply::DocumentError.new("This document has no frontmatter") unless frontmatter
|
|
135
|
+
raise PBSimply::DocumentError.new("This document has no title.") unless frontmatter["title"]
|
|
136
136
|
|
|
137
137
|
outpath = case
|
|
138
138
|
when @outfile
|
data/lib/pbsimply.rb
CHANGED
|
@@ -228,6 +228,7 @@ class PBSimply
|
|
|
228
228
|
$stderr.puts "Checking Frontmatter..."
|
|
229
229
|
Dir.foreach(@dir) do |filename|
|
|
230
230
|
next if filename == "." || filename == ".." || filename == ".index.md"
|
|
231
|
+
next unless File.file? File.join(@dir, filename)
|
|
231
232
|
if filename =~ /^\./ || filename =~ /^draft-/
|
|
232
233
|
draft_articles.push({
|
|
233
234
|
article_filename: filename.sub(/^(?:\.|draft-)/, ""),
|