bridgetown-sitemap 3.0.1 → 3.0.2

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: e3861b442e826131e4785cbe018f823f909d5186d3ce469ada13d969c7c43f44
4
- data.tar.gz: f435969e4c250eeb04650029388de9f15dcd9455f6376d808dbe1e72ba7dc421
3
+ metadata.gz: 549a10754e46862c85bcf21f63d605644f861939245598093152af4862009c92
4
+ data.tar.gz: 70e6268b85f3448c415a1b6acb7c4aa27bf9f3ab5b83b7cc3a778b8b18d4c7b6
5
5
  SHA512:
6
- metadata.gz: ef07dcbbcdbbbbe707ea88e03ae9563863ad8a5ea93d3f057d01e54b3cb84b1d6f6eb7d69d45340a76ba2aada1faad626a7e671ee9822bcfadf22647a7450201
7
- data.tar.gz: 6da9dfa17c7d4c56e6a4321f21cfbff872ae3684cd90a1282854679c44482377a20e78d00ec36d58519dbdebf60b2f990e527c2da4c7866baf651ddf46ce29c6
6
+ metadata.gz: 025d45947ead07e7a9c9f6a6cad5b67748d5442b69fb4c42f16fcbf87bd1bd47a79ef2a27dda6536bb052aa207f1daff66e52036be22b0652c57dc4729db1637
7
+ data.tar.gz: '07790cc195ceeebcd204456cf21df88e22b8724256a247c4fd89f9eef1937b9d3a1a7f9c8e44ade8539a676e1ffe76aa45d26a202d59d8a383269f93b1da26be'
@@ -14,7 +14,7 @@ jobs:
14
14
  strategy:
15
15
  matrix:
16
16
  ruby_version: [3.2.4, 3.3.6, 3.4.2]
17
- bridgetown_version: [1.3.4, 2.0.0.beta4]
17
+ bridgetown_version: [2.0.0, 2.1.0]
18
18
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
19
19
  # Has to be top level to cache properly
20
20
  env:
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ inherit_gem:
4
4
  rubocop-bridgetown: .rubocop.yml
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.7
7
+ TargetRubyVersion: 3.2
8
8
 
9
9
  Exclude:
10
10
  - .gitignore
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # main
2
2
 
3
+ # 3.0.2 / 25-03-2026
4
+
5
+ * Fix the accidental inclusion of a sitemap XSL stylesheet within the sitemap itself
6
+
3
7
  # 3.0.1 / 24-12-2025
4
8
 
5
9
  * Remove uses of `.present?`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownSitemap
4
- VERSION = "3.0.1"
4
+ VERSION = "3.0.2"
5
5
  end
data/lib/sitemap.erb CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
 
3
- <% if !page.data.xsl.nil? %>
3
+ <% if page.data.xsl %>
4
4
  <?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
5
5
  <% end %>
6
6
 
data/script/test CHANGED
@@ -9,15 +9,13 @@ if [ -d test/dest ]
9
9
  then rm -r test/dest
10
10
  fi
11
11
 
12
- testopts="--profile"
13
-
14
12
  if [[ $# -lt 1 ]]
15
13
  then
16
14
  set -x
17
15
  time ruby -S bundle exec \
18
- rake TESTOPTS=$testopts test
16
+ rake test
19
17
  else
20
18
  set -x
21
19
  time ruby -S bundle exec ruby -I test \
22
- "$@" $testops
20
+ "$@"
23
21
  fi
data/test/test_sitemap.rb CHANGED
@@ -41,6 +41,10 @@ class TestSitemap < BridgetownSitemap::Test
41
41
  refute_match %r!\ATHIS IS MY LAYOUT!, @robots
42
42
  end
43
43
 
44
+ it "does not include an XML stylesheet declaration" do
45
+ refute_match %r!xml-stylesheet!, @sitemap
46
+ end
47
+
44
48
  it "puts all the pages in the sitemap" do
45
49
  assert_match %r!<loc>https://example\.com/</loc>!, @sitemap
46
50
  assert_match %r!<loc>https://example\.com/some-subfolder/this-is-a-subpage/</loc>!, @sitemap
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayush Newatia
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-12-24 00:00:00.000000000 Z
10
+ date: 2026-03-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bridgetown