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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7967d8d98d8778c9a5690637757071c8357b3c55e14d100d508f6ce12469887
4
- data.tar.gz: b8f5601a2c40f4edaf77c60afda07a6adf848052d2bf0810cef1c497691c22f2
3
+ metadata.gz: a1e8ccc895065ee004f1a9af49239a904bd8502c3ab04de7d3847c3853e00fc7
4
+ data.tar.gz: a3dad0ed90b2c1e9c21495fb8bf5c5a1657347141fb314c8c8c74c63d5a897ca
5
5
  SHA512:
6
- metadata.gz: f9d396e7c18ecce3e9d19f97e90c3ea6753861ce8f5b330e7db1f7d5e9e0ae888b65e388cd6b745fc250b559ab6ed519b79151e2d802f94086c278cb6b756968
7
- data.tar.gz: 56dcade1b0b103b7174fa567082007f9d9bd24bc01af8f8bb1a3babaf56844eedd839be9a213861c0c655f204704145fd1c758c9943285e2489a1259b420157a
6
+ metadata.gz: 67f1cdaa630087d202ac0cd4b524a4f125755cac8f727dcece8d8a13b8d352b4ee100a0fa4e045b1da87ef5a709e147410b34a2bb7aebbb7d152357536837324
7
+ data.tar.gz: bb27e089de5d905bafb9f4f8c129a474686b487585fd745c094abe0d623e8499748af76cc7bb63a669b207aad2b71fd51e4695cb81eb1cab38e0c1fb259c20e9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2 / 2023-12-30
4
+
5
+ - Add `source_code_uri` to metadata (fd29f7c)
6
+
3
7
  ## 0.4.1 / 2023-12-07
4
8
 
5
9
  - Add publish workflow (039abd0)
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/indieweb/nokogiri-html-ext/actions).
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" => %w[link],
14
- "srcset" => %w[img source]
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" => %w[form],
24
- "cite" => %w[blockquote del ins q],
25
- "data" => %w[object],
26
- "formaction" => %w[button input],
27
- "href" => %w[a area base link],
28
- "ping" => %w[a area],
29
- "poster" => %w[video],
30
- "src" => %w[audio embed iframe img input script source track video]
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nokogiri
4
4
  module HTMLExt
5
- VERSION = "0.4.1"
5
+ VERSION = "0.4.2"
6
6
  end
7
7
  end
@@ -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 += %w[LICENSE CHANGELOG.md README.md]
20
- spec.files += %w[nokogiri-html-ext.gemspec]
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.1
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-07 00:00:00.000000000 Z
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.1/CHANGELOG.md
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: