bake-modernize 0.21.0 → 0.22.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/modernize/gemspec.rb +20 -2
- data/lib/bake/modernize/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d542b9f217be5accb11267d80cb119cacfa024daff79eea13cbf126a6304fbf
|
|
4
|
+
data.tar.gz: 8133d29df7687adc0aa1eb9b0cb582c5b83693d8b6a29dda729c9ae0a4fe316a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0069b3dfc715b5128185b8d1ce470b92b9871936c3f910418c45e0fd2c8f6ee06931bb4627d51995697631a8c0107b636a2642afbcd3d24f776ea5caeda3834
|
|
7
|
+
data.tar.gz: bff99903d39bbc32bf7be6c485f0166bce2318eabce8626b9c887c4266979a44c69b64c7d286f61123f0a98be93d498328db931bf931e7ab9b19eada0ce1c2a8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/bake/modernize/gemspec.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2020-
|
|
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)
|
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.
|
|
4
|
+
version: 0.22.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-
|
|
41
|
+
date: 2024-04-05 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
|