bridgetown-sitemap 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a214c1c4828f21552166aaf52882263e89c2fc60ff77eddb0dbf68de80cc0ef2
4
- data.tar.gz: fd9ec9a4678f59564a8955e0a06307b7722d744bdab00dd570094bd93cf4b82f
3
+ metadata.gz: f7fdbaa3c96e9fc71d97de9a13f7828a2d3aa6cc45c1a396b8157cc3281b3231
4
+ data.tar.gz: ee8c8d4adc46245e9ed35ab05b4450c319c0fc0c0a9d475a0114c5ef02557296
5
5
  SHA512:
6
- metadata.gz: f90353391f700cd3568967b84939aca4ba481dd61c876247bc1f506d987f22f2213d9d6192f7bee56b43f02500218cc9783feb7ca6d9cc38b434b7e3994e99f4
7
- data.tar.gz: a701b188efd9fa488c75f54218cd4d8307cfbbce3d42aebad518d2dceaea6523fd61375b9e2606ffac4062fbfdf9058b60dfe24e49e03c5694cf8de585a4eba9
6
+ metadata.gz: f3667fc1df4b0e1d8f6e7ddfd404272c56ae996cc7d638a5d2390e9a233849e2a342aae11f7724691b81f3843e9afda18c32c04e5d9ee80c276b1d2529fe2e79
7
+ data.tar.gz: f4bf13d4337464aa9455b645971e277d4952c5c4554b8dbf7b9aced457b504842299c79af5ec70d063205192d378ce5f16f3e0ba9f804953f657b1b95eb9c59a
@@ -13,12 +13,14 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby_version: [2.6.6, 2.7.3, 3.0.1]
16
+ ruby_version: [2.7.7, 3.0.5, 3.1.3, 3.2.0]
17
+ bridgetown_version: [1.0.0, 1.1.0]
17
18
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
18
19
  # Has to be top level to cache properly
19
20
  env:
20
21
  BUNDLE_JOBS: 3
21
22
  BUNDLE_PATH: "vendor/bundle"
23
+ BRIDGETOWN_VERSION: ${{ matrix.bridgetown_version }}
22
24
  steps:
23
25
  - uses: actions/checkout@master
24
26
  - name: Setup Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # main
2
2
 
3
+ # 1.2.0 / 23-01-2023
4
+
5
+ * Require Bridgetown 1.0 or newer.
6
+ * Require Ruby 2.7 or newer.
7
+
3
8
  # 1.1.2 / 18-02-2022
4
9
 
5
10
  * Handle cases where the site is not in a git repo
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.required_ruby_version = ">= 2.5.0"
19
+ spec.required_ruby_version = ">= 2.7.0"
20
20
 
21
- spec.add_dependency "bridgetown", ">= 0.20", "< 2.0"
21
+ spec.add_dependency "bridgetown", ">= 1.0", "< 2.0"
22
22
 
23
23
  spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
- spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
25
+ spec.add_development_dependency "rubocop-bridgetown"
26
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownSitemap
4
- VERSION = "1.1.2"
4
+ VERSION = "1.2.0"
5
5
  end
@@ -1,4 +1,4 @@
1
- class GeneratedPagesBuilder < SiteBuilder
1
+ class Builders::GeneratedPages < SiteBuilder
2
2
  def build
3
3
  generator do
4
4
  generated_page = Bridgetown::GeneratedPage.new(site, site.source, "/", "generated_page.erb")
data/test/test_sitemap.rb CHANGED
@@ -46,7 +46,6 @@ class TestSitemap < BridgetownSitemap::Test
46
46
  assert_match %r!<lastmod>2021-05-06T00:00:00(-|\+)\d+:\d+</lastmod>!, @sitemap
47
47
  assert_match %r!<lastmod>2021-03-04T00:00:00(-|\+)\d+:\d+</lastmod>!, @sitemap
48
48
  assert_match %r!<lastmod>2021-03-02T00:00:00(-|\+)\d+:\d+</lastmod>!, @sitemap
49
- assert_match %r!<lastmod>2022-02-18T00:00:00(-|\+)\d+:\d+</lastmod>!, @sitemap
50
49
 
51
50
  # This doesn't work on CI because it runs a git command which isn't allowed I guess
52
51
  unless ENV["GITHUB_ACTIONS"]
@@ -121,7 +120,7 @@ class TestSitemap < BridgetownSitemap::Test
121
120
 
122
121
  context "rendering the site with a baseurl" do
123
122
  setup do
124
- config.baseurl = "/baseurl"
123
+ config.base_path = "/baseurl"
125
124
  build_site
126
125
  end
127
126
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayush Newatia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-18 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.20'
19
+ version: '1.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.20'
29
+ version: '1.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'
@@ -62,17 +62,17 @@ dependencies:
62
62
  name: rubocop-bridgetown
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '0.2'
67
+ version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: '0.2'
75
- description:
74
+ version: '0'
75
+ description:
76
76
  email: ayush@hey.com
77
77
  executables: []
78
78
  extensions: []
@@ -98,7 +98,7 @@ files:
98
98
  - script/release
99
99
  - script/test
100
100
  - test/fixtures/bridgetown.config.yml
101
- - test/fixtures/plugins/builders/generated_pages_builder.rb
101
+ - test/fixtures/plugins/builders/generated_pages.rb
102
102
  - test/fixtures/plugins/site_builder.rb
103
103
  - test/fixtures/src/_data/.keep
104
104
  - test/fixtures/src/_layouts/default.html
@@ -133,7 +133,7 @@ homepage: https://github.com/ayushn21/bridgetown-sitemap
133
133
  licenses:
134
134
  - MIT
135
135
  metadata: {}
136
- post_install_message:
136
+ post_install_message:
137
137
  rdoc_options: []
138
138
  require_paths:
139
139
  - lib
@@ -141,20 +141,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: 2.5.0
144
+ version: 2.7.0
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.1.6
152
- signing_key:
151
+ rubygems_version: 3.2.32
152
+ signing_key:
153
153
  specification_version: 4
154
154
  summary: Automatically generate a sitemap.xml for your Bridgetown site.
155
155
  test_files:
156
156
  - test/fixtures/bridgetown.config.yml
157
- - test/fixtures/plugins/builders/generated_pages_builder.rb
157
+ - test/fixtures/plugins/builders/generated_pages.rb
158
158
  - test/fixtures/plugins/site_builder.rb
159
159
  - test/fixtures/src/_data/.keep
160
160
  - test/fixtures/src/_layouts/default.html