html-pipeline 0.0.12 → 0.0.13
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.
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.0.13
|
|
4
|
+
|
|
5
|
+
* Update icon class name (only affects TOC pipeline) cameronmcefee #52
|
|
6
|
+
|
|
3
7
|
## 0.0.12
|
|
4
8
|
|
|
5
9
|
* add additional payload information for instrumentation mtodd #46
|
|
@@ -40,4 +44,4 @@
|
|
|
40
44
|
|
|
41
45
|
## 0.0.4
|
|
42
46
|
|
|
43
|
-
* initial public release
|
|
47
|
+
* initial public release
|
|
@@ -18,7 +18,7 @@ module HTML
|
|
|
18
18
|
uniq = (headers[name] > 0) ? "-#{headers[name]}" : ''
|
|
19
19
|
headers[name] += 1
|
|
20
20
|
if header_content = node.children.first
|
|
21
|
-
header_content.add_previous_sibling(%Q{<a name="#{name}#{uniq}" class="anchor" href="##{name}#{uniq}"><span class="
|
|
21
|
+
header_content.add_previous_sibling(%Q{<a name="#{name}#{uniq}" class="anchor" href="##{name}#{uniq}"><span class="octicon octicon-link"></span></a>})
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
doc
|
|
@@ -44,4 +44,9 @@ class HTML::Pipeline::SanitizationFilterTest < Test::Unit::TestCase
|
|
|
44
44
|
stuff = '<a href="github-windows://spillthelog">Spill this yo</a> and so on'
|
|
45
45
|
assert_equal stuff, SanitizationFilter.call(stuff).to_s
|
|
46
46
|
end
|
|
47
|
+
|
|
48
|
+
def test_script_contents_are_removed
|
|
49
|
+
orig = '<script>JavaScript!</script>'
|
|
50
|
+
assert_equal "", SanitizationFilter.call(orig).to_s
|
|
51
|
+
end
|
|
47
52
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-pipeline
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-
|
|
13
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: gemoji
|