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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4873e04bb4a26d3fb4bd2fa4e5f08f879a03391df0f4b95fa1c1c9d454c333f
4
- data.tar.gz: 0c6712a5c9187adc383d988cd8702f28201652d515d085de9a3604f754bcf1ba
3
+ metadata.gz: 3b762eff7cebfcc183918035d2f35516378192355af00750936b9eb20bc0f5f4
4
+ data.tar.gz: f275d0a2c99ad2e7774c6dc9247e4b8d6963c55bcc97806a9204dbb685c56739
5
5
  SHA512:
6
- metadata.gz: 6c6bad08e6e1a60df82a9b17fadaa556f1acbab71e9e46af2065dddae0846546c3298fc5941297c1c1944c9d6161ecd155f8e4da423b60ab9600865b0d459eb7
7
- data.tar.gz: f967564ccb9e3dace5fbda693cf674e1b69f741437b2204c05eb61684e1d062ec25e2a2079fc75335349fb13ec51c0f64bdacd46b3f00e53d5d1f6645a08edfc
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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Crawlscope
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
@@ -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&amp;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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crawlscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Fidalgo