nanoc-checking 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.md +6 -0
- data/lib/nanoc/checking/checks/external_links.rb +3 -0
- data/lib/nanoc/checking/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ed6936aa477c05d5d8cf11fc5958af89981b4bcd2d1b75d18a3bfea57ad32ba
|
|
4
|
+
data.tar.gz: 02feeabc06a6ef2959a070cfea91fa936734e4da9ac5e5327d0d92a8fc3ed829
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c96031cf8552bd11e4f35113f4017481c6eb23afe95f9b5ad0446ece3c766e7aecf1600c10966826b67d18f25a2faea80ee70deb099f3bff7ed79cd0880d910
|
|
7
|
+
data.tar.gz: 1311b947dc8a91e4a42fe20470b80b2c993e8d8056c2ef2e198c7b903c9cd41d7d275aa87fda97ac05c9154aece6070e588179ee20f5d7872db8ed6927104969
|
data/NEWS.md
CHANGED
|
@@ -79,6 +79,9 @@ module Nanoc
|
|
|
79
79
|
location = extract_location(res, url)
|
|
80
80
|
return Result.new(href, 'redirection without a target location') if location.nil?
|
|
81
81
|
|
|
82
|
+
# ignore redirects back onto self (misused to set HTTP cookies)
|
|
83
|
+
return nil if href == location
|
|
84
|
+
|
|
82
85
|
if /^30[18]$/.match?(res.code)
|
|
83
86
|
return Result.new(href, "link has moved permanently to '#{location}'")
|
|
84
87
|
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.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Defreyne
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nanoc-cli
|
|
@@ -81,23 +81,23 @@ homepage: https://nanoc.ws/
|
|
|
81
81
|
licenses:
|
|
82
82
|
- MIT
|
|
83
83
|
metadata: {}
|
|
84
|
-
post_install_message:
|
|
84
|
+
post_install_message:
|
|
85
85
|
rdoc_options: []
|
|
86
86
|
require_paths:
|
|
87
87
|
- lib
|
|
88
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
|
90
|
-
- - "
|
|
90
|
+
- - ">="
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '2.
|
|
92
|
+
version: '2.5'
|
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - ">="
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
97
|
version: '0'
|
|
98
98
|
requirements: []
|
|
99
|
-
rubygems_version: 3.
|
|
100
|
-
signing_key:
|
|
99
|
+
rubygems_version: 3.2.4
|
|
100
|
+
signing_key:
|
|
101
101
|
specification_version: 4
|
|
102
102
|
summary: Checking support for Nanoc
|
|
103
103
|
test_files: []
|