front_matter_parser 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a904dbf5bade2127e0bb2b9abb7106f179ce22876ca6e57aa9dc7c89730d2898
4
- data.tar.gz: b43330122a6496888be51b937fc06749dd0b256394227425736b88a0e9e9f781
3
+ metadata.gz: 9f5592b2703eed10a3900226d724e996f8bf885c861e97d756f189df01280105
4
+ data.tar.gz: 86bcab665d0ef584fe416f2841ab5d84569a3b18241eb4b3a82532cc0957bda8
5
5
  SHA512:
6
- metadata.gz: bf46ac330a47187dc37041b4c25ec6dd8500761ec18feaa2102659e19cda516f03be66b3ac32a9a530406b9d4fe598a86666916418ddf54f5380d9c164787095
7
- data.tar.gz: 1d359953cd78bac9bf7186eb5b16e22f95a4d01ddaaf3d9e643580c7d407332f6730573733aa55423fd06c147e7816873b8deb62b1f1fa59ac7429e0f1490489
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FrontMatterParser
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  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.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-02-14 00:00:00.000000000 Z
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.3
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