front_matter_parser 1.0.0 → 1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/front_matter_parser/loader/yaml.rb +1 -1
- data/lib/front_matter_parser/version.rb +1 -1
- 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: 9f5592b2703eed10a3900226d724e996f8bf885c861e97d756f189df01280105
|
|
4
|
+
data.tar.gz: 86bcab665d0ef584fe416f2841ab5d84569a3b18241eb4b3a82532cc0957bda8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4931c45b8f4894b08a772c398b022f7b756dc6db682e4ca088dbb26688137db072bfc5ac0e891d361fe86683c25fff01f25145bf2fee501eea199ef41bff975
|
|
7
|
+
data.tar.gz: ac1005559fa519350778083349ca46b3e2118ad1a8bf78b9c7e0ad8404008961f2914fb566252ece0388490be96504d93085c787a94d7542ca708489ba7e571b
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.0.1] - 2021-07-20
|
|
8
|
+
- Update signature in the call to `Psych.safe_load` (see #11)
|
|
9
|
+
|
|
7
10
|
## [1.0.0] - 2020-08-31
|
|
8
11
|
- Depreciate "whitelist" in favor of "allowlist" by renaming the `whitelist_classes` param to `allowlist_classes`.
|
|
9
12
|
|
|
@@ -19,7 +19,7 @@ module FrontMatterParser
|
|
|
19
19
|
# @param string [String] front matter string representation
|
|
20
20
|
# @return [Hash] front matter hash representation
|
|
21
21
|
def call(string)
|
|
22
|
-
YAML.safe_load(string, allowlist_classes)
|
|
22
|
+
YAML.safe_load(string, permitted_classes: allowlist_classes)
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: front_matter_parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- marc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
189
|
- !ruby/object:Gem::Version
|
|
190
190
|
version: '0'
|
|
191
191
|
requirements: []
|
|
192
|
-
rubygems_version: 3.2
|
|
192
|
+
rubygems_version: 3.1.2
|
|
193
193
|
signing_key:
|
|
194
194
|
specification_version: 4
|
|
195
195
|
summary: Library to parse a front matter from strings or files. It allows writing
|