pbsimply 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pbsimply.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a59c6750364956392ea53e72b079a4233e94932240a4b1a6e121dfac7a6b875d
|
4
|
+
data.tar.gz: 73dd09f496e791ab26782d4f134363b03879d91eb061c4749e4795ab89ebe2f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141c14de48e9f48827780e8bda20989879ea91bec32a7ddf7de6b3c073141c6b3d566b957ecf83c7f655b14e1a2a5185527785999578d56e1e1056f667711a41
|
7
|
+
data.tar.gz: 39f02c1dd33c5fe9f458b6f964c5a1491d0538cff53c6aefb5766e1493fb9686c4a822a80484aceb6bb1776f1ba2ea22f7d23443d61bc8d5057bc8aedff4ec67
|
data/lib/pbsimply.rb
CHANGED
@@ -159,7 +159,7 @@ EOF
|
|
159
159
|
config = nil
|
160
160
|
begin
|
161
161
|
File.open(".pbsimply.yaml") do |f|
|
162
|
-
config =
|
162
|
+
config = Psych.unsafe_load(f)
|
163
163
|
end
|
164
164
|
rescue
|
165
165
|
abort "Failed to load config file (./.pbsimply.yaml)"
|
@@ -235,7 +235,7 @@ EOF
|
|
235
235
|
opts.on("-X", "--ignore-ext") { @ignore_ext = true }
|
236
236
|
opts.on("-I", "--skip-index") { @skip_index = true }
|
237
237
|
opts.on("-o FILE", "--output") {|v| @outfile = v }
|
238
|
-
opts.on("-m FILE", "--additional-metafile") {|v| @add_meta =
|
238
|
+
opts.on("-m FILE", "--additional-metafile") {|v| @add_meta = Psych.unsafe_load(File.read(v))}
|
239
239
|
opts.parse!(ARGV)
|
240
240
|
|
241
241
|
if File.exist?(".pbsimply-bless.rb")
|
@@ -529,7 +529,7 @@ EOF
|
|
529
529
|
end
|
530
530
|
|
531
531
|
# Get infomation
|
532
|
-
@accs_index =
|
532
|
+
@accs_index = Psych.unsafe_load(File.read([@dir, ".accs.yaml"].join("/")))
|
533
533
|
|
534
534
|
@accs_index["title"] ||= (@config["accs_index_title"] || "Index")
|
535
535
|
@accs_index["date"] ||= Time.now.strftime("%Y-%m-%d")
|
@@ -569,7 +569,7 @@ EOF
|
|
569
569
|
|
570
570
|
if File.exist? File.join(dir, ".meta." + filename)
|
571
571
|
# Load standalone metadata YAML.
|
572
|
-
frontmatter =
|
572
|
+
frontmatter = Psych.unsafe_load(File.read(File.join(dir, (".meta." + filename))))
|
573
573
|
pos = 0
|
574
574
|
else
|
575
575
|
|
@@ -593,7 +593,7 @@ EOF
|
|
593
593
|
next if f.eof?
|
594
594
|
|
595
595
|
begin
|
596
|
-
frontmatter =
|
596
|
+
frontmatter = Psych.unsafe_load(lines.join)
|
597
597
|
rescue => e
|
598
598
|
STDERR.puts "!CRITICAL: Cannot parse frontmatter."
|
599
599
|
raise e
|
@@ -663,7 +663,7 @@ EOF
|
|
663
663
|
|
664
664
|
# Rescue for failed to read YAML.
|
665
665
|
begin
|
666
|
-
frontmatter =
|
666
|
+
frontmatter = Psych.unsafe_load(lines.map {|i| i.sub(/^\s*/, "") }.join)
|
667
667
|
rescue
|
668
668
|
STDERR.puts "Error in parsing ReST YAML frontmatter (#{$!})"
|
669
669
|
next
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pbsimply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaki Haruka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Pre compile, static serving headless CMS
|
14
14
|
email:
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
requirements: []
|
44
|
-
rubygems_version: 3.
|
44
|
+
rubygems_version: 3.3.5
|
45
45
|
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: PureBuiler Simply
|