softcover 0.7.1 → 0.7.2
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.
- checksums.yaml +4 -4
- data/lib/softcover/rails/railtie.rb +1 -1
- data/lib/softcover/sanitizer.rb +2 -1
- data/lib/softcover/version.rb +1 -1
- data/spec/sanitizer_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0e79a3c86ec047f330161c816a9a79dc88a1404
|
|
4
|
+
data.tar.gz: a8ecbcbac8f49cb65cac301baa31ac589c48ac11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 "
|
|
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
|
data/lib/softcover/sanitizer.rb
CHANGED
|
@@ -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
|
},
|
data/lib/softcover/version.rb
CHANGED
data/spec/sanitizer_spec.rb
CHANGED
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.
|
|
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.
|
|
1032
|
+
rubygems_version: 2.0.3
|
|
1033
1033
|
signing_key:
|
|
1034
1034
|
specification_version: 4
|
|
1035
1035
|
summary: A typesetting system for technical authors
|