softcover 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af8f43b281e28ba6fa3d54db66e9088d791c126b
4
- data.tar.gz: e3a83137f10d3b370358413bf87a4888437202ef
3
+ metadata.gz: f0e79a3c86ec047f330161c816a9a79dc88a1404
4
+ data.tar.gz: a8ecbcbac8f49cb65cac301baa31ac589c48ac11
5
5
  SHA512:
6
- metadata.gz: 2de36c5e7afb0c1031434494719774548f82927cc9d5a033dc5ad6ada99262d2207cc5b3972c33c052b4592d8598bc328108aafa23955875ede2adc5a6c3a4e3
7
- data.tar.gz: c65204cd7a619a4c005c852ee6abf8f8735eb261413e95a1a2f219568cb407d4841145f3e55778347b9cd3cabb1dde07e5d87f94019c0894c8c00bb19b467e5f
6
+ metadata.gz: baa75183612376a2624f412239b13f943f4d75f607f7227c181b66d696481330ea9744673fa87d659a71bed4abe93c53343da3b1de5e97d6d71361ca9cc1bd22
7
+ data.tar.gz: 9ecd20e1f236e60b207934ff967011163ea37b2c370354956a002dbd6f2b1fa73363fec6b1b75ecddfeae779c1907d7cfa41bee5561125035b9d44e5822b2572
@@ -1,6 +1,6 @@
1
1
  module Softcover
2
2
  class Railtie < ::Rails::Railtie
3
- initializer "polytexnic", group: :all do |app|
3
+ initializer "softcover", group: :all do |app|
4
4
  path = File.expand_path(File.join(File.dirname(__FILE__),
5
5
  "..", "template", "html", "stylesheets"))
6
6
  app.config.assets.paths << path
@@ -11,7 +11,7 @@ module Softcover
11
11
  return unless html
12
12
 
13
13
  sanitize_options = {
14
- elements: %w{div span p a ul ol li h1 h2 h3
14
+ elements: %w{div span p a ul ol li h1 h2 h3 h4
15
15
  pre em sup table tbody thead tr td img},
16
16
  remove_contents: %w{script},
17
17
  attributes: {
@@ -25,6 +25,7 @@ module Softcover
25
25
  'h1' => %w{id class},
26
26
  'h2' => %w{id class},
27
27
  'h3' => %w{id class},
28
+ 'h4' => %w{id class},
28
29
  'img' => %w{id class src alt},
29
30
  'em' => %w{id class}
30
31
  },
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -23,6 +23,7 @@ describe Softcover::Sanitizer do
23
23
  <h1 id="a" class="b"></h1>
24
24
  <h2 id="a" class="b"></h2>
25
25
  <h3 id="a" class="b"></h3>
26
+ <h4 id="a" class="b"></h4>
26
27
  <img id="a" class="b" src="c" alt="d" />
27
28
  <em id="a" class="b"></em>
28
29
  EOS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softcover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -1029,7 +1029,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1029
1029
  version: '0'
1030
1030
  requirements: []
1031
1031
  rubyforge_project:
1032
- rubygems_version: 2.0.14
1032
+ rubygems_version: 2.0.3
1033
1033
  signing_key:
1034
1034
  specification_version: 4
1035
1035
  summary: A typesetting system for technical authors