bake-modernize 0.21.0 → 0.23.0

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: 97619ecf26d612765128d5d230c2ef3eaf1206672924340fc4d39b954fb9b57a
4
- data.tar.gz: 6902a97b42d283fdd766bf9ed1da7fcc9d48b5a5aa99ccadb4b258ac4c3bcc97
3
+ metadata.gz: 4f694823b781a3648b3e3f669158b972a8abd200d437f3a9e8327a4cc2df421c
4
+ data.tar.gz: 9ac4cc75af7023e058787798b184d7b7e00766e6fc8537d33c8a177b30e1a5f6
5
5
  SHA512:
6
- metadata.gz: 0d40bb9823d62852a886c663d501b3834eadce9b81535a090d5b5641e59d9a8dab76896f38256bcd1afefdb20287428b616a402c4a3cc07da0e4dc333c3d3e38
7
- data.tar.gz: 6a8e1e291023423f566ec76147f93aab94a63587f1596e2e44a6758458f092eb14663c11384f98deeaf5532d3a608d9248be782a1a8f5e519e996d9ed62bcbe8
6
+ metadata.gz: 0436bedeb068a4de12303e9a7f26e9135b10718a12e066ba919a84076f2e57f7376aea0a7c7c942fce77634c603c71dcbeb56d570d289f0358b8da5d5c8db79d
7
+ data.tar.gz: f74a635a8cd60197628da50251df422ab1044ad89328c3290dc8e7b59e1c14ef45db32011e180987a0e09f046a598bf68e56fd2675f878decc3ac5dec3e987b7
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2023, by Samuel Williams.
4
+ # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  # Rewrite the current gemspec.
7
7
  def gemspec
@@ -29,8 +29,11 @@ def update(path: default_gemspec_path, output: $stdout)
29
29
  .flatten
30
30
  .join("::")
31
31
 
32
+ normalize_homepage(spec)
33
+
32
34
  spec.metadata["funding_uri"] ||= detect_funding_uri(spec)
33
35
  spec.metadata["documentation_uri"] ||= detect_documentation_uri(spec)
36
+ spec.metadata["source_code_uri"] ||= detect_source_code_uri(spec)
34
37
 
35
38
  spec.authors = sorted_authors(Dir.pwd)
36
39
 
@@ -184,7 +187,13 @@ def valid_uri?(uri)
184
187
  end
185
188
  end
186
189
 
187
- GITHUB_PROJECT = /github.com\/(?<account>.*?)\/(?<project>.*?)\/?/
190
+ GITHUB_PROJECT = /github.com\/(?<account>.*?)\/(?<project>.*?)(\/|\Z)/
191
+
192
+ def normalize_homepage(spec)
193
+ if homepage = spec.homepage
194
+ spec.homepage = homepage.chomp("/")
195
+ end
196
+ end
188
197
 
189
198
  def detect_funding_uri(spec)
190
199
  if match = spec.homepage&.match(GITHUB_PROJECT)
@@ -211,6 +220,15 @@ def detect_documentation_uri(spec)
211
220
  end
212
221
  end
213
222
 
223
+ def detect_source_code_uri(spec)
224
+ if match = spec.homepage.match(GITHUB_PROJECT)
225
+ account = match[:account]
226
+ project = match[:project]
227
+
228
+ return "https://github.com/#{account}/#{project}.git"
229
+ end
230
+ end
231
+
214
232
  def sorted_authors(root)
215
233
  authorship = Bake::Modernize::License::Authorship.new
216
234
  authorship.extract(root)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.21.0"
8
+ VERSION = "0.23.0"
9
9
  end
10
10
  end
@@ -40,7 +40,7 @@ jobs:
40
40
  run: bundle exec bake utopia:project:static --force no
41
41
 
42
42
  - name: Upload documentation artifact
43
- uses: actions/upload-pages-artifact@v2
43
+ uses: actions/upload-pages-artifact@v3
44
44
  with:
45
45
  path: docs
46
46
 
@@ -55,4 +55,4 @@ jobs:
55
55
  steps:
56
56
  - name: Deploy to GitHub Pages
57
57
  id: deployment
58
- uses: actions/deploy-pages@v3
58
+ uses: actions/deploy-pages@v4
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-modernize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-04-01 00:00:00.000000000 Z
41
+ date: 2024-04-28 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: async-http
@@ -144,7 +144,9 @@ homepage: https://github.com/ioquatix/bake-modernize
144
144
  licenses:
145
145
  - MIT
146
146
  metadata:
147
+ documentation_uri: https://ioquatix.github.io/bake-modernize/
147
148
  funding_uri: https://github.com/sponsors/ioquatix/
149
+ source_code_uri: https://github.com/ioquatix/bake-modernize.git
148
150
  post_install_message:
149
151
  rdoc_options: []
150
152
  require_paths:
metadata.gz.sig CHANGED
Binary file