html-pipeline 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -35,6 +35,7 @@ module HTML
35
35
  div ins del sup sub p ol ul table blockquote dl dt dd
36
36
  kbd q samp var hr ruby rt rp li tr td th
37
37
  ),
38
+ :remove_contents => ['script'],
38
39
  :attributes => {
39
40
  'a' => ['href'],
40
41
  'img' => ['src'],
@@ -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="mini-icon mini-icon-link"></span></a>})
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
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Pipeline
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -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.12
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-04-01 00:00:00.000000000 Z
13
+ date: 2013-05-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gemoji