pbsimply 2.0.0 → 2.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pbsimply.rb +6 -6
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d364901d22b774c9f9aecabde031611aec62d3d3edc49e05b47a34abb83f68c8
4
- data.tar.gz: 779d8544a9e359d4ec94562c92dd898b1995b4e66d55796d3e4659b161e4ec7b
3
+ metadata.gz: a59c6750364956392ea53e72b079a4233e94932240a4b1a6e121dfac7a6b875d
4
+ data.tar.gz: 73dd09f496e791ab26782d4f134363b03879d91eb061c4749e4795ab89ebe2f1
5
5
  SHA512:
6
- metadata.gz: 801b0b10d12598699b8cee2c91bff275f7feed4da3433f9499b633742b65d5a589bd6eee80280403f2c08b8e209014eb3b20a9ebf1905c7dfcdb58c452c044f0
7
- data.tar.gz: 5f181d1a737bebcc3d28981d8a37ca43e925aab5b08678db20e48272024ab25aaded146e06ac1e5e6026c96dd4bc629a94d67644853dc8f44d0cc77342d01b50
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 = YAML.load(f)
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 = YAML.load(File.read(v))}
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 = YAML.load(File.read([@dir, ".accs.yaml"].join("/")))
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 = YAML.load(File.read(File.join(dir, (".meta." + filename))))
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 = YAML.load(lines.join)
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 = YAML.load(lines.map {|i| i.sub(/^\s*/, "") }.join)
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.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-01-02 00:00:00.000000000 Z
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.2.29
44
+ rubygems_version: 3.3.5
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: PureBuiler Simply