sixones-jekyll 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jekyll/custom_filters.rb +25 -0
- metadata +2 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module Filters
|
3
|
+
module Custom
|
4
|
+
def self.extensions; @@extensions; end
|
5
|
+
|
6
|
+
@@extensions = [ ]
|
7
|
+
|
8
|
+
def self.included(base)
|
9
|
+
@@extensions << base
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.invoke_filter(name, params)
|
13
|
+
self.send(name, params)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Basic
|
18
|
+
include Jekyll::Filters::Custom
|
19
|
+
|
20
|
+
def hello_world(input)
|
21
|
+
"Hello World!"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixones-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- lib/jekyll/converters/wordpress.rb
|
97
97
|
- lib/jekyll/convertible.rb
|
98
98
|
- lib/jekyll/core_ext.rb
|
99
|
+
- lib/jekyll/custom_filters.rb
|
99
100
|
- lib/jekyll/filters.rb
|
100
101
|
- lib/jekyll/layout.rb
|
101
102
|
- lib/jekyll/page.rb
|