jekyll-code-example-tag 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +7 -0
- data/Gemfile.lock +9 -7
- data/jekyll-code-example-tag.gemspec +2 -1
- data/lib/jekyll-code-example-tag.rb +3 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f2ab79f86acddefec8aa74003093c252fc75b7
|
4
|
+
data.tar.gz: 6e5d038047c3b5ae4d07bb5d3b9cbe71295f3da6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b817c25f782472b674716642a2f6b9179b08208199223b14901f38165a5963a7f8e7c3e64dde6ab0d878ae2db631a753b92dcd3869390db4b7fddc5f0593abc7
|
7
|
+
data.tar.gz: 1a3a21821590c632bdc392c6534b3f3796da94fc29b6d6d8469bbe805617ba152336ee169fad8178101283741e9d3580024a44565a17a959b88c143a3cd22137
|
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
jekyll-code-example-tag (0.0.6)
|
5
|
+
htmlentities
|
5
6
|
jekyll
|
6
7
|
|
7
8
|
GEM
|
@@ -16,14 +17,15 @@ GEM
|
|
16
17
|
coffee-script (2.3.0)
|
17
18
|
coffee-script-source
|
18
19
|
execjs
|
19
|
-
coffee-script-source (1.9.
|
20
|
+
coffee-script-source (1.9.1)
|
20
21
|
colorator (0.1)
|
21
22
|
diff-lcs (1.2.5)
|
22
|
-
execjs (2.
|
23
|
+
execjs (2.4.0)
|
23
24
|
fakefs (0.6.5)
|
24
25
|
fast-stemmer (1.0.2)
|
25
|
-
ffi (1.9.
|
26
|
+
ffi (1.9.8)
|
26
27
|
hitimes (1.2.2)
|
28
|
+
htmlentities (4.3.3)
|
27
29
|
jekyll (2.5.3)
|
28
30
|
classifier-reborn (~> 2.0)
|
29
31
|
colorator (~> 0.1)
|
@@ -47,9 +49,9 @@ GEM
|
|
47
49
|
sass (~> 3.2)
|
48
50
|
jekyll-watch (1.2.1)
|
49
51
|
listen (~> 2.7)
|
50
|
-
kramdown (1.
|
52
|
+
kramdown (1.6.0)
|
51
53
|
liquid (2.6.2)
|
52
|
-
listen (2.
|
54
|
+
listen (2.9.0)
|
53
55
|
celluloid (>= 0.15.2)
|
54
56
|
rb-fsevent (>= 0.9.3)
|
55
57
|
rb-inotify (>= 0.9)
|
@@ -60,7 +62,7 @@ GEM
|
|
60
62
|
mini_portile (~> 0.6.0)
|
61
63
|
parslet (1.5.0)
|
62
64
|
blankslate (~> 2.0)
|
63
|
-
posix-spawn (0.3.
|
65
|
+
posix-spawn (0.3.10)
|
64
66
|
pry (0.10.1)
|
65
67
|
coderay (~> 1.1.0)
|
66
68
|
method_source (~> 0.8.1)
|
@@ -86,7 +88,7 @@ GEM
|
|
86
88
|
rspec-support (~> 3.2.0)
|
87
89
|
rspec-support (3.2.0)
|
88
90
|
safe_yaml (1.0.4)
|
89
|
-
sass (3.4.
|
91
|
+
sass (3.4.13)
|
90
92
|
slop (3.6.0)
|
91
93
|
timers (4.0.1)
|
92
94
|
hitimes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jekyll-code-example-tag'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.7'
|
4
4
|
s.date = '2015-02-03'
|
5
5
|
s.authors = ['GovDelivery']
|
6
6
|
s.email = 'support@govdelivery.com'
|
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
all code examples that are on a page.}
|
14
14
|
|
15
15
|
s.add_runtime_dependency 'jekyll'
|
16
|
+
s.add_runtime_dependency 'htmlentities'
|
16
17
|
|
17
18
|
s.files = `git ls-files`.split($\)
|
18
19
|
s.require_paths = ['lib']
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require_relative 'js/jekyll-code-example-buttons.js.rb'
|
2
|
+
require 'htmlentities'
|
2
3
|
|
3
4
|
module Jekyll
|
4
5
|
module CodeExampleTags
|
@@ -48,9 +49,10 @@ EOF
|
|
48
49
|
end
|
49
50
|
|
50
51
|
def self.example_markup(language, content)
|
52
|
+
he = HTMLEntities.new
|
51
53
|
<<EOF
|
52
54
|
<div class="highlight example #{language}">
|
53
|
-
<pre><code class="language #{language}" data-lang="#{language}">#{content}</code></pre>
|
55
|
+
<pre><code class="language #{language}" data-lang="#{language}">#{he.encode(content)}</code></pre>
|
54
56
|
</div>
|
55
57
|
EOF
|
56
58
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-code-example-tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GovDelivery
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: htmlentities
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: "Provides a tag that allows you to include in your posts \n and
|
28
42
|
pages code examples for multiple langagues that are \n kept
|
29
43
|
in seperate files. Another tag allows you to combine\n all code
|