jekyll-fm 8.0.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/fm.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b92af64abfe6344b05a393631a22bd0da6e3bbca
|
4
|
+
data.tar.gz: e159a0166179df4bf36517aa49284cb51ce48d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2a5086546f8abf8a8e3de318da10e2d248ecc857e27076f0f43e0991fb91418eb97c74aa5c9b78b3b002aa37cec7eb6e6429f0ceb059f2479ac14a4dd0f781
|
7
|
+
data.tar.gz: d599f708288505ee03b690de12f9482f2aa2cc5812358476c0263bc4f7b902120ef957932f9eee06a0f6c2bff85815ec0d941c020f5e651225b23a22c6e85619
|
data/lib/jekyll/fm.rb
CHANGED
@@ -3,9 +3,9 @@ def syntax_from_pathname(pathname)
|
|
3
3
|
File.extname(pathname)[1..-1].to_sym
|
4
4
|
end
|
5
5
|
|
6
|
-
def parse_file(pathname
|
7
|
-
syntax_parser
|
8
|
-
loader
|
6
|
+
def parse_file(pathname)
|
7
|
+
syntax_parser |= syntax_from_pathname(pathname)
|
8
|
+
loader = Loader::Yaml.new
|
9
9
|
File.open(pathname) do |file|
|
10
10
|
new(syntax_parser, loader: loader).call(file.read)
|
11
11
|
end
|