crawlscope 0.11.0 → 0.11.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/CHANGELOG.md +9 -0
- data/UPGRADE.md +5 -0
- data/lib/crawlscope/rules/links/outgoing_checks.rb +1 -0
- data/lib/crawlscope/version.rb +1 -1
- data/test/crawlscope/links_rule_test.rb +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b762eff7cebfcc183918035d2f35516378192355af00750936b9eb20bc0f5f4
|
|
4
|
+
data.tar.gz: f275d0a2c99ad2e7774c6dc9247e4b8d6963c55bcc97806a9204dbb685c56739
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fd13e485bc833f324a6b65bf897d7dc062ca46d7553df9bcfe682d367ddaf790ee47c047ed92d6068b1b90b21fbf55748278730f8e26720cf83a5ae9ef31810
|
|
7
|
+
data.tar.gz: 235ae91febd74f0afcf4dcbaaff0dd15226da2923a214247560c644b2b22bdbbdb59171b2c7b49d9a124de1aafec7dbeb68bd0d3d8b88af74d0dd263a1fbde82
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.11.1] - 2026-11-28
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- skip missing-entry warnings for query URLs
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
8
17
|
## [0.11.0] - 2026-11-28
|
|
9
18
|
|
|
10
19
|
|
data/UPGRADE.md
CHANGED
|
@@ -133,6 +133,11 @@ Nofollow warnings exclude self-links and destinations that explicitly declare
|
|
|
133
133
|
including query URLs, still produce nofollow warnings. Broken and redirected
|
|
134
134
|
links remain checked. No host configuration changes are required.
|
|
135
135
|
|
|
136
|
+
The `indexable_page_missing_from_sitemap` warning now applies only to resolved
|
|
137
|
+
destinations without a query string. Keep the URLs you intend to index in the
|
|
138
|
+
sitemap and update any warning-count baselines that included query variants.
|
|
139
|
+
Existing sitemap entries with query strings still receive sitemap validation.
|
|
140
|
+
|
|
136
141
|
### Structured-data length errors include the measured size
|
|
137
142
|
|
|
138
143
|
String-length schema errors now include an optional `length` field with the
|
|
@@ -83,6 +83,7 @@ module Crawlscope
|
|
|
83
83
|
link = grouped_links.first
|
|
84
84
|
next if sitemap_urls.include?(final_url)
|
|
85
85
|
next unless @scope.crawlable_path?(link[:final_path])
|
|
86
|
+
next if URI.parse(final_url).query
|
|
86
87
|
|
|
87
88
|
target = @targets.fetch(final_url)
|
|
88
89
|
next unless target.allowed?(@allowed_statuses) && target.html?
|
data/lib/crawlscope/version.rb
CHANGED
|
@@ -333,6 +333,26 @@ class CrawlscopeLinksRuleTest < Minitest::Test
|
|
|
333
333
|
assert_equal "https://example.com/hidden", issue.url
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
+
def test_query_destinations_do_not_require_sitemap_entries
|
|
337
|
+
issues = Crawlscope::IssueCollection.new
|
|
338
|
+
resolver = lambda do |url|
|
|
339
|
+
status = url.include?("billing=invalid") ? 404 : 200
|
|
340
|
+
{crawled: false, error: nil, final_url: url, html: true, status: status}
|
|
341
|
+
end
|
|
342
|
+
guide = page(url: "https://example.com/guide", body: <<~HTML)
|
|
343
|
+
<a href="/contact?from=guide&intent=custom">Contact</a>
|
|
344
|
+
<a href="/pricing?billing=invalid">Invalid billing option</a>
|
|
345
|
+
HTML
|
|
346
|
+
|
|
347
|
+
Crawlscope::Rules::Links.new.call(
|
|
348
|
+
urls: [guide.url], pages: [guide], issues: issues, context: context(resolver: resolver)
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
refute_includes issues.map(&:code), :indexable_page_missing_from_sitemap
|
|
352
|
+
broken = issues.find { |issue| issue.code == :broken_internal_link }
|
|
353
|
+
assert_equal "https://example.com/pricing?billing=invalid", broken&.url
|
|
354
|
+
end
|
|
355
|
+
|
|
336
356
|
def test_does_not_report_noindex_internal_pages_missing_from_sitemap
|
|
337
357
|
issues = Crawlscope::IssueCollection.new
|
|
338
358
|
resolver = lambda do |target_url|
|