jekyll-liquify 0.0.2 → 0.0.3
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 +5 -5
- data/jekyll-liquify.gemspec +1 -1
- data/lib/jekyll-liquify.rb +9 -3
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d4d7c60f857bb6bbcb93b6521eef331790223e7ae4b1ff4ea4af70586abbc857
|
|
4
|
+
data.tar.gz: 8c46184c2d2dc16ff79de833a75c8fc7cc93257125ef8bf48e5fc8bffd56c324
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 683f52e7e51dc59bd98f6763dd363d4cd07340128395b6cb15ff48ce8aa2e8f612629cc26d840560d979cafc02fbdb6ca3b9053376c29f2ba0ed56c8d86143a0
|
|
7
|
+
data.tar.gz: 51791e0e36987d24273e5c32ba507d6bdad893e8059c3d6270a4ec19b82335d80827a3e532c548f17183caa528856d3b454c329f225af0682098a2c8c3d7818a
|
data/jekyll-liquify.gemspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "jekyll-liquify"
|
|
5
5
|
spec.summary = "A Jekyll filter that can parse Liquid in front matter."
|
|
6
|
-
spec.version = "0.0.
|
|
6
|
+
spec.version = "0.0.3"
|
|
7
7
|
spec.authors = ["Brian Hedberg"]
|
|
8
8
|
spec.email = "briansheahedberg@gmail.com"
|
|
9
9
|
spec.homepage = "https://github.com/gemfarmer/jekyll-liquify"
|
data/lib/jekyll-liquify.rb
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
require 'redcarpet'
|
|
2
2
|
|
|
3
|
-
module
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
module Jekyll
|
|
4
|
+
module LiquifyFilter
|
|
5
|
+
def liquify(input)
|
|
6
|
+
if input.is_a? String
|
|
7
|
+
Liquid::Template.parse(input).render(@context)
|
|
8
|
+
else
|
|
9
|
+
input
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
|
8
14
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-liquify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Hedberg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redcarpet
|
|
@@ -148,8 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
148
148
|
- !ruby/object:Gem::Version
|
|
149
149
|
version: '0'
|
|
150
150
|
requirements: []
|
|
151
|
-
|
|
152
|
-
rubygems_version: 2.6.12
|
|
151
|
+
rubygems_version: 3.0.3
|
|
153
152
|
signing_key:
|
|
154
153
|
specification_version: 4
|
|
155
154
|
summary: A Jekyll filter that can parse Liquid in front matter.
|