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 +4 -4
- data/NEWS.md +6 -0
- data/lib/nanoc/checking/checks/external_links.rb +7 -0
- data/lib/nanoc/checking/link_collector.rb +0 -2
- data/lib/nanoc/checking/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b380e10a13a38c13d712399af8308a0cb67b533094287649eb30283fceba9be3
|
4
|
+
data.tar.gz: bd6715348e5527f23bedf1812b56bc49d75e5827b5bb318a5165bf5cf689077f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e31cc485a14e7a75199c65df33d172dd69caad7d00be40725ec55ca5203f052213846b974dd842be2a33d021d10be184a1266810f9fdcddf89db1a7def572d
|
7
|
+
data.tar.gz: 2472f804af1d3facea1b840d89280070042b27fc03d91475b91db5e41a6783261a84ac62f83d6ea25811112ee85ff045e5a9110bc8ca398f08b4650dcfbc65ae
|
data/NEWS.md
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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.
|
102
|
+
rubygems_version: 3.5.9
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Checking support for Nanoc
|