sanitize 5.2.1 → 5.2.2

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: 3d1290690a9d32db9e06b8fb19c7e285c94a1d91ed51a4eb7e96389e427348d9
4
- data.tar.gz: 5131063daf1763c83978954bed9ee3a783099e40aa71e50de26d06b8ae0c1054
3
+ metadata.gz: e67616d2378cfe4e0ea979d76d206630a9edc4ed6d31f97e6801f6022a0ea08b
4
+ data.tar.gz: 8bce2fda8409782d0b25e143eb36912bc32183eff3314033f54e74560c9988d5
5
5
  SHA512:
6
- metadata.gz: bfcb7cda6aa70590f642583b41936bc09d8929210046cebdd0d0ff452ccb3213844b4c40d4e205e79c0cd64a2a0d56e16790e38f4c8f247b8abfa32dbec22297
7
- data.tar.gz: 0ea5a6d6848f9a125f17e4e23145adff4d3c4ccfe30a3407466fae074ed33cbd4b1869eb5a9f0a72b808449b8cf166a3695c2a6d63b16a83b047fd260bfe50bd
6
+ metadata.gz: e37c472801a5082c6019fd58f1d47c90c68c4a64a2cba7fc6149ac0c8d9a4c1f3c8c0baa3b659ba8f8bf384a5c6e3a95b30d15553aa3d5bcbc0f5a2dd7aa70fd
7
+ data.tar.gz: cb6db6ed39956a2f02e024d3745908a4c8b9bccf7f7fc3beebbfd2072a3a73948cc8320a1cb4622563ef2a158bcd73d75607adb94b4ce6e924efbabc7fe6a216
data/HISTORY.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Sanitize History
2
2
 
3
+ ## 5.2.2 (2021-01-06)
4
+
5
+ ### Bug Fixes
6
+
7
+ * Fixed a deprecation warning in Ruby 2.7+ when using keyword arguments in a
8
+ custom transformer. [@mscrivo - #206][206]
9
+
10
+ [206]:https://github.com/rgrove/sanitize/pull/206
11
+
3
12
  ## 5.2.1 (2020-06-16)
4
13
 
5
14
  ### Bug Fixes
data/README.md CHANGED
@@ -469,7 +469,7 @@ If this is an Array or Set of element names, then only the contents of the
469
469
  specified elements (when filtered) will be removed, and the contents of all
470
470
  other filtered elements will be left behind.
471
471
 
472
- The default value is `false`.
472
+ The default value is `%w[iframe math noembed noframes noscript plaintext script style svg xmp]`.
473
473
 
474
474
  #### :transformers (Array or callable)
475
475
 
@@ -204,7 +204,7 @@ class Sanitize
204
204
  config[:node_name] = node.name.downcase
205
205
  config[:node_allowlist] = config[:node_whitelist] = node_allowlist
206
206
 
207
- result = transformer.call(config)
207
+ result = transformer.call(**config)
208
208
 
209
209
  if result.is_a?(Hash)
210
210
  result_allowlist = result[:node_allowlist] || result[:node_whitelist]
@@ -6,7 +6,7 @@ class Sanitize
6
6
  :elements => BASIC[:elements] + %w[
7
7
  address article aside bdi bdo body caption col colgroup data del div
8
8
  figcaption figure footer h1 h2 h3 h4 h5 h6 head header hgroup hr html
9
- img ins main nav rp rt ruby section span style summary sup table tbody
9
+ img ins main nav rp rt ruby section span style summary table tbody
10
10
  td tfoot th thead title tr wbr
11
11
  ],
12
12
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class Sanitize
4
- VERSION = '5.2.1'
4
+ VERSION = '5.2.2'
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: 5.2.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Grove
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: crass
@@ -120,7 +120,7 @@ homepage: https://github.com/rgrove/sanitize/
120
120
  licenses:
121
121
  - MIT
122
122
  metadata: {}
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: 1.2.0
137
137
  requirements: []
138
- rubygems_version: 3.1.2
139
- signing_key:
138
+ rubygems_version: 3.2.3
139
+ signing_key:
140
140
  specification_version: 4
141
141
  summary: Allowlist-based HTML and CSS sanitizer.
142
142
  test_files: []