loofah 2.21.0.rc1 → 2.21.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d72ad662816af09936024ca82a2b98a8fcd06c4328b8dfa434fc1a9166cdcce6
4
- data.tar.gz: 91484fe22c738402d3336a3e88562fb8adaac96d4536a94136b57ac1f0885de1
3
+ metadata.gz: fc4c92807e83a1ba62b6b092217150c2784904f3e0ba5c3aff1a4f0415faa739
4
+ data.tar.gz: a1e7028ff5eea1725b46adde2f14b350cae3381e6770c33db14714c380875241
5
5
  SHA512:
6
- metadata.gz: da8b034a54f89a9b9d18a9865ba9d67afd1442970af25cf14ac894c9cf9859d1d65e476f3953284fc24f22766b963ca9d481df2540cc6c65fb8d100b43847090
7
- data.tar.gz: 6f30d4337334c7e2cf69da88827ba92df868e1c3a5aac66ba0b8416cd9df7afa01ddb6c84c30a8c6cabeb6a6a7d26f621415c6f5633d75909d0e61e97118089c
6
+ metadata.gz: 268e899470213cd80a6a7f661a754dd029f217f559006f9a587a7977c7ebcad4b440a7e6c3a476d6e8a26fea27e114541d985413f593b32b020adc93794e81ee
7
+ data.tar.gz: b59bcf306343775afa03d313534801e9259db2462acbfd7f52f7e91b7b98657c51ba78fa0f7a2dcaa6c24167da4e6e93803e63622228e74bab1ec98813c24cad
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 2.21.0.rc1 / 2023-04-02
3
+ ## 2.21.1 / 2023-05-10
4
+
5
+ ### Fixed
6
+
7
+ * Don't define `HTML5::Document` and `HTML5::DocumentFragment` when Nokogiri is `< 1.14`. In 2.21.0 these classes were defined whenever `Nokogiri::HTML5` was defined, but Nokogiri v1.12 and v1.13 do not support Loofah subclassing properly.
8
+
9
+
10
+ ## 2.21.0 / 2023-05-10
4
11
 
5
12
  ### HTML5 Support
6
13
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Loofah
4
4
  # The version of Loofah you are using
5
- VERSION = "2.21.0.rc1"
5
+ VERSION = "2.21.1"
6
6
  end
data/lib/loofah.rb CHANGED
@@ -36,7 +36,7 @@ require_relative "loofah/xml/document_fragment"
36
36
  require_relative "loofah/html4/document"
37
37
  require_relative "loofah/html4/document_fragment"
38
38
 
39
- if Nokogiri.respond_to?(:uses_gumbo?) && Nokogiri.uses_gumbo?
39
+ if Loofah.html5_support?
40
40
  require_relative "loofah/html5/document"
41
41
  require_relative "loofah/html5/document_fragment"
42
42
  end
@@ -123,19 +123,19 @@ module Loofah
123
123
  end
124
124
  else
125
125
  def html5_document(*args, &block)
126
- raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
126
+ raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
127
127
  end
128
128
 
129
129
  def html5_fragment(*args, &block)
130
- raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
130
+ raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
131
131
  end
132
132
 
133
133
  def scrub_html5_document(string_or_io, method)
134
- raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
134
+ raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
135
135
  end
136
136
 
137
137
  def scrub_html5_fragment(string_or_io, method)
138
- raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
138
+ raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
139
139
  end
140
140
  end
141
141
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loofah
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0.rc1
4
+ version: 2.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-03 00:00:00.000000000 Z
12
+ date: 2023-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crass
@@ -93,9 +93,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">"
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 1.3.1
98
+ version: '0'
99
99
  requirements: []
100
100
  rubygems_version: 3.4.10
101
101
  signing_key: