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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac9e4e6beb6025350578007019bf48458a64b82ef26cd11e4547aee35b72625c
4
- data.tar.gz: 000a0cd02b3a2690589f042f3d27fb0dd8fe34d150cc1ba073793dcfb2eb0a92
3
+ metadata.gz: eab36cec7ac13bd15bd00b1141990e9efc35332c95391cb405128ddfe891e242
4
+ data.tar.gz: f69f77cf6febfa74b1bdc5103d245543f38ddcfe223d474dffab5913846525ec
5
5
  SHA512:
6
- metadata.gz: 127b1656fa575c9ba793db8d6026a37b240a884172b18b05bb2776c80b2cda6fc2982938e3a98272b46d5741b05c8c05f3238ebb61e439a9f7ded36615854c4d
7
- data.tar.gz: adb7c8b6bf29118b82094dd2cb7109dfaa6286ca57b73e98ec457b8eb433e91c76efd987fe2c6d3b6dac1ed554331f7d067240c4a96e7522d7122da5c5b925b1
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
@@ -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
- Transformers::CleanDoctype <<
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.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class Sanitize
4
- VERSION = '4.6.4'
4
+ VERSION = '4.6.5'
5
5
  end
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
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-03-20 00:00:00.000000000 Z
11
+ date: 2018-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: crass