bake-modernize 0.5.0 → 0.8.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 +22 -0
- data/lib/bake/modernize/version.rb +1 -1
- data/template/actions/.github/workflows/development.yml +1 -0
- data/template/actions/.github/workflows/documentation.yml +2 -2
- data.tar.gz.sig +0 -0
- metadata +4 -3
- 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: 9a7da2f3243b5c36b0eb365a98e350868b8834db66f71b549cfc14a06103691c
|
|
4
|
+
data.tar.gz: 976f7c5d8fc9198b479f80d210efce7c78664bca1a1dab6c4825c660229c0ffb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23b5d5a149758808e2c5802c8bb5ac9dd63afaf769b1a5257324243f2c56f96b46e0bbd34ccb86a47b87071855e4f1d9bee12fb7e33d98de04551c95cde819d7
|
|
7
|
+
data.tar.gz: fdae79916724bc2d7f4ff8df55f6ebd7689dca2fbb0a3c94a8597a6302b1bfd9cd24f6a9a6910b9cbc4039287b62f4e05129ae8f5eded297cd4fadd70d30accd
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/bake/modernize/gemspec.rb
CHANGED
|
@@ -25,8 +25,11 @@ def update(path: default_gemspec_path, output: $stdout)
|
|
|
25
25
|
spec.metadata["funding_uri"] ||= detect_funding_uri(spec)
|
|
26
26
|
spec.metadata["documentation_uri"] ||= detect_documentation_uri(spec)
|
|
27
27
|
|
|
28
|
+
spec.authors = sorted_authors(spec)
|
|
29
|
+
|
|
28
30
|
spec.metadata.delete_if{|_, value| value.nil?}
|
|
29
31
|
|
|
32
|
+
output.puts "# frozen_string_literal: true"
|
|
30
33
|
output.puts
|
|
31
34
|
output.puts "require_relative #{version_path.sub(/\.rb$/, '').inspect}"
|
|
32
35
|
output.puts
|
|
@@ -187,3 +190,22 @@ def detect_documentation_uri(spec)
|
|
|
187
190
|
end
|
|
188
191
|
end
|
|
189
192
|
end
|
|
193
|
+
|
|
194
|
+
def sorted_authors(spec)
|
|
195
|
+
input, output = IO.pipe
|
|
196
|
+
|
|
197
|
+
pid = Process.spawn("git", "log", "--format=%aN", out: output)
|
|
198
|
+
output.close
|
|
199
|
+
|
|
200
|
+
authors = Hash.new{|h,k| h[k] = 0}
|
|
201
|
+
|
|
202
|
+
input.each_line do |author|
|
|
203
|
+
author = author.chomp!
|
|
204
|
+
authors[author] += 1
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
Process.wait(pid)
|
|
208
|
+
input.close
|
|
209
|
+
|
|
210
|
+
return authors.keys
|
|
211
|
+
end
|
|
@@ -3,7 +3,7 @@ name: Documentation
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- main
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
deploy:
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
env:
|
|
16
16
|
BUNDLE_WITH: maintenance
|
|
17
17
|
with:
|
|
18
|
-
ruby-version:
|
|
18
|
+
ruby-version: 3.0
|
|
19
19
|
bundler-cache: true
|
|
20
20
|
|
|
21
21
|
- name: Installing packages
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bake-modernize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
|
+
- Olle Jonsson
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain:
|
|
@@ -36,7 +37,7 @@ cert_chain:
|
|
|
36
37
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
|
37
38
|
HiLJ8VOFx6w=
|
|
38
39
|
-----END CERTIFICATE-----
|
|
39
|
-
date:
|
|
40
|
+
date: 2022-02-18 00:00:00.000000000 Z
|
|
40
41
|
dependencies:
|
|
41
42
|
- !ruby/object:Gem::Dependency
|
|
42
43
|
name: async-http
|
|
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
162
|
- !ruby/object:Gem::Version
|
|
162
163
|
version: '0'
|
|
163
164
|
requirements: []
|
|
164
|
-
rubygems_version: 3.
|
|
165
|
+
rubygems_version: 3.2.32
|
|
165
166
|
signing_key:
|
|
166
167
|
specification_version: 4
|
|
167
168
|
summary: Automatically modernize parts of your project/gem.
|
metadata.gz.sig
CHANGED
|
Binary file
|