nanoc-checking 1.0.3 → 1.0.4

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: 89d7860391ed030af4773bd204ce6a94b7c76b966c42b2384efb53619f5b33f4
4
- data.tar.gz: c60649c0f1f12ca8475f4c06e47348fa39dc599dcfc30c21f06e801f15f942df
3
+ metadata.gz: b380e10a13a38c13d712399af8308a0cb67b533094287649eb30283fceba9be3
4
+ data.tar.gz: bd6715348e5527f23bedf1812b56bc49d75e5827b5bb318a5165bf5cf689077f
5
5
  SHA512:
6
- metadata.gz: 3db4309a8fbd02942f9d8cd3db83701779ae44fd0f0e32cb92cdfc4569a3c05572ad52e309317ce911e7fd1775afe255b1c1fba4e2ff90d150716ab7f48e6d3e
7
- data.tar.gz: 2e5839f8e46c65adf9721ab8eb29a09ea8734204eaa83475fb83ec66c87d0dcb440d5dc4fe06a3f476e7336f78d0af39d095d11657712f32c6473709c77e3e33
6
+ metadata.gz: 61e31cc485a14e7a75199c65df33d172dd69caad7d00be40725ec55ca5203f052213846b974dd842be2a33d021d10be184a1266810f9fdcddf89db1a7def572d
7
+ data.tar.gz: 2472f804af1d3facea1b840d89280070042b27fc03d91475b91db5e41a6783261a84ac62f83d6ea25811112ee85ff045e5a9110bc8ca398f08b4650dcfbc65ae
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # nanoc-checking news
2
2
 
3
+ ## 1.0.4 (2024-04-19)
4
+
5
+ Enhancements:
6
+
7
+ - Added support for `javascript:` pseudo-URLs (#1698)
8
+
3
9
  ## 1.0.3 (2024-03-15)
4
10
 
5
11
  Fixes:
@@ -43,6 +43,13 @@ module Nanoc
43
43
  end
44
44
 
45
45
  def validate(href)
46
+ # Skip javascript: URLs
47
+ #
48
+ # This needs to be handled explicitly, because URI.parse does not
49
+ # like `javascript:` URLs -- presumably because those are not
50
+ # technically valid URLs.
51
+ return nil if href.start_with?('javascript:')
52
+
46
53
  # Parse
47
54
  url = nil
48
55
  begin
@@ -23,8 +23,6 @@ module ::Nanoc
23
23
  GLOBAL_ATTRS = %i[about resource].freeze
24
24
 
25
25
  def initialize(filenames, mode = nil)
26
- Nanoc::Extra::JRubyNokogiriWarner.check_and_warn
27
-
28
26
  @filenames = filenames
29
27
  @filter =
30
28
  case mode
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module Checking
5
- VERSION = '1.0.3'
5
+ VERSION = '1.0.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-checking
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nanoc-cli
@@ -83,7 +83,7 @@ licenses:
83
83
  - MIT
84
84
  metadata:
85
85
  rubygems_mfa_required: 'true'
86
- source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-checking-v1.0.3/nanoc-checking
86
+ source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-checking-v1.0.4/nanoc-checking
87
87
  post_install_message:
88
88
  rdoc_options: []
89
89
  require_paths:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.5.3
102
+ rubygems_version: 3.5.9
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Checking support for Nanoc