sanitize 4.6.4 → 4.6.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sanitize might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/HISTORY.md +7 -0
- data/lib/sanitize.rb +3 -4
- data/lib/sanitize/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eab36cec7ac13bd15bd00b1141990e9efc35332c95391cb405128ddfe891e242
|
4
|
+
data.tar.gz: f69f77cf6febfa74b1bdc5103d245543f38ddcfe223d474dffab5913846525ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3358c2574bcdd0e3a8c08460f2dd31ecd3ade8e04ed60380f8037c46dd0f67321ac2c4ccace6e1f82080acecb2dc71054630c2c1fec54b2a99cb50c0476dd0b2
|
7
|
+
data.tar.gz: c10686ec8aacadf3268eafd407e4e2259e88deae363829d5ebe1b2877ed8e15c658bb86fe97b786d116c00b10e6eaff14baf5bb71a7a737ec507f3ab65f61187
|
data/HISTORY.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Sanitize History
|
2
2
|
|
3
|
+
## 4.6.5 (2018-05-16)
|
4
|
+
|
5
|
+
* Improved performance slightly by tweaking the order of built-in transformers.
|
6
|
+
[@rafbm - #180][180]
|
7
|
+
|
8
|
+
[180]:https://github.com/rgrove/sanitize/pull/180
|
9
|
+
|
3
10
|
## 4.6.4 (2018-03-20)
|
4
11
|
|
5
12
|
* Fixed: A change introduced in 4.6.2 broke certain transformers that relied on
|
data/lib/sanitize.rb
CHANGED
@@ -81,6 +81,7 @@ class Sanitize
|
|
81
81
|
|
82
82
|
# Default transformers always run at the end of the chain, after any custom
|
83
83
|
# transformers.
|
84
|
+
@transformers << Transformers::CleanElement.new(@config)
|
84
85
|
@transformers << Transformers::CleanComment unless @config[:allow_comments]
|
85
86
|
|
86
87
|
if @config[:elements].include?('style')
|
@@ -93,10 +94,8 @@ class Sanitize
|
|
93
94
|
@transformers << Transformers::CSS::CleanAttribute.new(scss)
|
94
95
|
end
|
95
96
|
|
96
|
-
@transformers <<
|
97
|
-
|
98
|
-
Transformers::CleanCDATA <<
|
99
|
-
Transformers::CleanElement.new(@config)
|
97
|
+
@transformers << Transformers::CleanDoctype
|
98
|
+
@transformers << Transformers::CleanCDATA
|
100
99
|
end
|
101
100
|
|
102
101
|
# Returns a sanitized copy of the given _html_ document.
|
data/lib/sanitize/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanitize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Grove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: crass
|