jekyll_example_embed 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll_example_embed.rb +6 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e2072ce9f170b5b370e91a8e107500c08c72900
|
4
|
+
data.tar.gz: ff8e92214de2fe110ea17afd3fe2dacd1d7f95a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee4163db3fd5945ed091fac30f80254a21c50602473372e341f2a08164b8ea9fa437163bc81b5bdbf2f8a9cb6be517ced0649111a3c20259845349f1aa04d0f
|
7
|
+
data.tar.gz: e5cc4cb5253e4e50be86dbba49604a61b3743db6693d526c8555497a6fcbb9feef178657a61cb90a30d4165bf2a362e688997fddab47471ab77f8238c59dd7f9
|
data/lib/jekyll_example_embed.rb
CHANGED
@@ -22,7 +22,12 @@ module Jekyll
|
|
22
22
|
Liquid::Template.parse(wrapped_content).render!(context)
|
23
23
|
end
|
24
24
|
|
25
|
-
"<h4>#{name}</h4
|
25
|
+
[ "<h4>#{name}</h4>",
|
26
|
+
'<h5>Source</h5>',
|
27
|
+
highlight,
|
28
|
+
'<h5>Result</h5>',
|
29
|
+
%{<iframe src="#{document.url}" frameBorder="0"></iframe>}
|
30
|
+
].join("\n")
|
26
31
|
end
|
27
32
|
|
28
33
|
Liquid::Template.register_tag('example_embed', Jekyll::ExampleEmbedTag)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_example_embed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sonny Michaud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michaud.sonny@gmail.com
|
@@ -27,17 +27,17 @@ require_paths:
|
|
27
27
|
- lib
|
28
28
|
required_ruby_version: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
33
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '0'
|
38
38
|
requirements: []
|
39
39
|
rubyforge_project:
|
40
|
-
rubygems_version: 2.
|
40
|
+
rubygems_version: 2.2.2
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: Embed examples in Jekyll
|