impression 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/impression/jamstack.rb +5 -5
- data/lib/impression/version.rb +1 -1
- data/test/jamstack/articles/2008-06-14-manu.md +3 -0
- data/test/test_jamstack.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ba311a12a9ce237fd7eaef9102d859bd419471815b58ddea49f5d2879965f7
|
4
|
+
data.tar.gz: 4bf89153122f79e8c11ebf9f66f6ebc2d1c33858d0393fcfa3ff1698f9feab8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d49af3a42dd499957344bc1b53275841909b793f3ae0e181fbd4a4ebf46f7ea279ae1ac666ff9692bf57579378fd1441acdb9fff100ed41822d5aef128b7ad93
|
7
|
+
data.tar.gz: 0a316777f8a8020da38136f587aed8d29fdae45b2216a85a0a1ece6452ab4439f70ffc198878028d8e50449b1a17bef0b1e5b59e1a6925fe35116ac142a6a6b7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/impression/jamstack.rb
CHANGED
@@ -40,8 +40,10 @@ module Impression
|
|
40
40
|
MD_EXT_REGEXP = /\.md$/.freeze
|
41
41
|
PAGE_EXT_REGEXP = /^(.+)\.(md|html|rb)$/.freeze
|
42
42
|
INDEX_PAGE_REGEXP = /^(.+)?\/index$/.freeze
|
43
|
+
|
43
44
|
YAML_OPTS = {
|
44
|
-
permitted_classes: [Date]
|
45
|
+
permitted_classes: [Date],
|
46
|
+
symbolize_names: true
|
45
47
|
}.freeze
|
46
48
|
|
47
49
|
# Returns the path info for the given file path.
|
@@ -151,10 +153,8 @@ module Impression
|
|
151
153
|
front_matter = m[1]
|
152
154
|
content = m.post_match
|
153
155
|
|
154
|
-
yaml = YAML.
|
155
|
-
|
156
|
-
h[k.to_sym] = v
|
157
|
-
end
|
156
|
+
yaml = YAML.safe_load(front_matter, **YAML_OPTS)
|
157
|
+
atts = atts.merge(yaml)
|
158
158
|
end
|
159
159
|
|
160
160
|
[atts, content]
|
data/lib/impression/version.rb
CHANGED
data/test/test_jamstack.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: impression
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: polyphony
|