loofah 2.21.0 → 2.21.2

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: 0b8eaa7f3006e69a9879def4bb63d4ffce0c8ed5ee404032379702d25e7b12c1
4
- data.tar.gz: ed432220263d87db39f150c772e63b39ee30a2c133bf0179fa6f31d43a538ca8
3
+ metadata.gz: f6cad9f8621046eb04ea5c9c0fbcf700406806d0917ced25eb8cfd91e6a5b2fc
4
+ data.tar.gz: ead331468121d1c81293ce96c6c8502519830205ae6446cb3bb528f156970de8
5
5
  SHA512:
6
- metadata.gz: 0cb076b4d791c0c121058b0b7a8f63032b27fcf75f338e98d3ec2e63ad42db21ee0cce87c6bd7381b3d88e7d41d1912002ce949779fa7037732692521ed881ec
7
- data.tar.gz: f90b086a629919f3e01d8535ed735b3c2d918310638895220218b2a88f43f6a023c8d87466aa70311afdc93323227cc1813729643bf88ad77126ca8d3eb7324d
6
+ metadata.gz: a1f2c92b7e379a2303e52ab83b99d1e0cb6828bfd9015732affaac78ffd8a55fc09c30916409211abd4d890b9f8ee689b8051aad9fcf970d84dc466c65492078
7
+ data.tar.gz: 4323a4996b105dbaa010c69f68f51becaacd936da5209fa2975fb35e3f842f71e7c46962b79c82cb5fde8df2504409325accbc0975617e45777e7414d82bdea2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.21.2 / 2023-05-11
4
+
5
+ ### Dependencies
6
+
7
+ * Update the dependency on Nokogiri to be `>= 1.12.0`. The dependency in 2.21.0 and 2.21.1 was left at `>= 1.5.9` but versions before 1.12 would result in a `NameError` exception. [[#266](https://github.com/flavorjones/loofah/issues/266)]
8
+
9
+
10
+ ## 2.21.1 / 2023-05-10
11
+
12
+ ### Fixed
13
+
14
+ * 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.
15
+
16
+
3
17
  ## 2.21.0 / 2023-05-10
4
18
 
5
19
  ### HTML5 Support
data/README.md CHANGED
@@ -290,7 +290,11 @@ These are not required automatically. You must require `loofah/helpers` to use t
290
290
 
291
291
  Unsurprisingly:
292
292
 
293
- * gem install loofah
293
+ > gem install loofah
294
+
295
+ Requirements:
296
+
297
+ * Ruby >= 2.5
294
298
 
295
299
 
296
300
  ## Support
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Loofah
4
4
  # The version of Loofah you are using
5
- VERSION = "2.21.0"
5
+ VERSION = "2.21.2"
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
4
+ version: 2.21.2
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-05-10 00:00:00.000000000 Z
12
+ date: 2023-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crass
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 1.5.9
34
+ version: 1.12.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 1.5.9
41
+ version: 1.12.0
42
42
  description: |
43
43
  Loofah is a general library for manipulating and transforming HTML/XML documents and fragments,
44
44
  built on top of Nokogiri.
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 2.5.0
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="