nokogiri-html-ext 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/nokogiri/html_ext/document.rb +10 -10
- data/lib/nokogiri/html_ext/version.rb +1 -1
- data/nokogiri-html-ext.gemspec +4 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1e8ccc895065ee004f1a9af49239a904bd8502c3ab04de7d3847c3853e00fc7
|
4
|
+
data.tar.gz: a3dad0ed90b2c1e9c21495fb8bf5c5a1657347141fb314c8c8c74c63d5a897ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f1cdaa630087d202ac0cd4b524a4f125755cac8f727dcece8d8a13b8d352b4ee100a0fa4e045b1da87ef5a709e147410b34a2bb7aebbb7d152357536837324
|
7
|
+
data.tar.gz: bb27e089de5d905bafb9f4f8c129a474686b487585fd745c094abe0d623e8499748af76cc7bb63a669b207aad2b71fd51e4695cb81eb1cab38e0c1fb259c20e9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
Before installing and using nokogiri-html-ext, you'll want to have [Ruby](https://www.ruby-lang.org) 2.7 (or newer) installed. Using a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm) is recommended.
|
18
18
|
|
19
|
-
nokogiri-html-ext is developed using Ruby 2.7.8 and is tested against additional Ruby versions using [GitHub Actions](https://github.com/
|
19
|
+
nokogiri-html-ext is developed using Ruby 2.7.8 and is tested against additional Ruby versions using [GitHub Actions](https://github.com/jgarber623/nokogiri-html-ext/actions).
|
20
20
|
|
21
21
|
## Installation
|
22
22
|
|
@@ -10,8 +10,8 @@ module Nokogiri
|
|
10
10
|
# @see https://html.spec.whatwg.org/#srcset-attributes
|
11
11
|
# @see https://html.spec.whatwg.org/#attributes-3
|
12
12
|
IMAGE_CANDIDATE_STRINGS_ATTRIBUTES_MAP = {
|
13
|
-
"imagesrcset" =>
|
14
|
-
"srcset" =>
|
13
|
+
"imagesrcset" => ["link"],
|
14
|
+
"srcset" => ["img", "source"]
|
15
15
|
}.freeze
|
16
16
|
|
17
17
|
private_constant :IMAGE_CANDIDATE_STRINGS_ATTRIBUTES_MAP
|
@@ -20,14 +20,14 @@ module Nokogiri
|
|
20
20
|
#
|
21
21
|
# @see https://html.spec.whatwg.org/#attributes-3
|
22
22
|
URL_ATTRIBUTES_MAP = {
|
23
|
-
"action" =>
|
24
|
-
"cite" =>
|
25
|
-
"data" =>
|
26
|
-
"formaction" =>
|
27
|
-
"href" =>
|
28
|
-
"ping" =>
|
29
|
-
"poster" =>
|
30
|
-
"src" =>
|
23
|
+
"action" => ["form"],
|
24
|
+
"cite" => ["blockquote", "del", "ins", "q"],
|
25
|
+
"data" => ["object"],
|
26
|
+
"formaction" => ["button", "input"],
|
27
|
+
"href" => ["a", "area", "base", "link"],
|
28
|
+
"ping" => ["a", "area"],
|
29
|
+
"poster" => ["video"],
|
30
|
+
"src" => ["audio", "embed", "iframe", "img", "input", "script", "source", "track", "video"]
|
31
31
|
}.freeze
|
32
32
|
|
33
33
|
private_constant :URL_ATTRIBUTES_MAP
|
data/nokogiri-html-ext.gemspec
CHANGED
@@ -16,15 +16,16 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.files = Dir["lib/**/*"].reject { |f| File.directory?(f) }
|
19
|
-
spec.files +=
|
20
|
-
spec.files +=
|
19
|
+
spec.files += ["LICENSE", "CHANGELOG.md", "README.md"]
|
20
|
+
spec.files += ["nokogiri-html-ext.gemspec"]
|
21
21
|
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
24
|
spec.metadata = {
|
25
25
|
"bug_tracker_uri" => "#{spec.homepage}/issues",
|
26
26
|
"changelog_uri" => "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md",
|
27
|
-
"rubygems_mfa_required" => "true"
|
27
|
+
"rubygems_mfa_required" => "true",
|
28
|
+
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}"
|
28
29
|
}
|
29
30
|
|
30
31
|
spec.add_runtime_dependency "nokogiri", ">= 1.14"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri-html-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -43,8 +43,9 @@ licenses:
|
|
43
43
|
- MIT
|
44
44
|
metadata:
|
45
45
|
bug_tracker_uri: https://github.com/jgarber623/nokogiri-html-ext/issues
|
46
|
-
changelog_uri: https://github.com/jgarber623/nokogiri-html-ext/blob/v0.4.
|
46
|
+
changelog_uri: https://github.com/jgarber623/nokogiri-html-ext/blob/v0.4.2/CHANGELOG.md
|
47
47
|
rubygems_mfa_required: 'true'
|
48
|
+
source_code_uri: https://github.com/jgarber623/nokogiri-html-ext/tree/v0.4.2
|
48
49
|
post_install_message:
|
49
50
|
rdoc_options: []
|
50
51
|
require_paths:
|