rails-html-sanitizer 1.1.0 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b391f62382bca60620a37a2b7a1fe6cd8e81545210d308bc56991d11b39b6e
4
- data.tar.gz: a8065b0d76a88caadeb594ac9e70857aaf061cdceab106781af41285c2e7302f
3
+ metadata.gz: 870e022a24bf7e490864eb68c6676617508060c44cb0fbcfbce1f476b7bfa453
4
+ data.tar.gz: 280abb7f0ce9d0d311f4a1b8ac84d94dbe009592c32c2364eea594b0d336f5eb
5
5
  SHA512:
6
- metadata.gz: b2a15acaf0bf620db43645b28d44d4e75d9bb9111bf77d4c7d90f812f697cbd8e33b704694af590e2af3c5e083d600c1cf82f7234ef737a05954582d1785bebb
7
- data.tar.gz: af8b02f7811544234b263bfa6dd7062f117e549a6b58271be609c827a1468131caa56afd14b4f2b34e069e5f5d088ef3ba05f11c62b7d84ed69da6794c2c7de0
6
+ metadata.gz: d3780c7ea8e6e77bafe1486aef16852ba326adf8a9cbcdc5fe2639f8ea47e9bb8a2e50553ecb25bceeeeb1665b5edfab92c1022707c7aa59a4f0d0c605b67223
7
+ data.tar.gz: 14bba8b83f0e0a6782b0e12a8c29fc73d469cda550104d7ad32b8cf8ef3628d981d4c82637e7826c79e2dc4bfd86c230a74031acf53ec0b10a40d2cabf7eed84
@@ -1,3 +1,17 @@
1
+ ## 1.2.0
2
+
3
+ * Remove needless `white_list_sanitizer` deprecation.
4
+
5
+ By deprecating this, we were forcing Rails 5.2 to be updated or spew
6
+ deprecations that users could do nothing about.
7
+
8
+ That's pointless and I'm sorry for adding that!
9
+
10
+ Now there's no deprecation warning and Rails 5.2 works out of the box, while
11
+ Rails 6 can use the updated naming.
12
+
13
+ *Kasper Timm Hansen*
14
+
1
15
  ## 1.1.0
2
16
 
3
17
  * Add `safe_list_sanitizer` and deprecate `white_list_sanitizer` to be removed
@@ -20,8 +20,6 @@ module Rails
20
20
  end
21
21
 
22
22
  def white_list_sanitizer
23
- ActiveSupport::Deprecation.warn "warning: white_list_sanitizer is" \
24
- "deprecated, please use safe_list_sanitizer instead."
25
23
  safe_list_sanitizer
26
24
  end
27
25
  end
@@ -151,8 +151,5 @@ module Rails
151
151
  end
152
152
 
153
153
  WhiteListSanitizer = SafeListSanitizer
154
- if Object.respond_to?(:deprecate_constant)
155
- deprecate_constant :WhiteListSanitizer
156
- end
157
154
  end
158
155
  end
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module Html
3
3
  class Sanitizer
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-html-sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Mendonça França
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-05 00:00:00.000000000 Z
12
+ date: 2019-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: loofah