bake-modernize 0.6.0 → 0.8.1

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: e11c201a35fdc9cd899028ac476adab1f763a51671b8007968e35f91225ea53f
4
- data.tar.gz: 8299d83c2cc14942f10df8b9a9b0689b1ac61d558894e32e91b621cf5bd96307
3
+ metadata.gz: 2b9096c895a0d3e52db792b8a2ac1c8bd6521657dbf67b47a516b4a4d2f5a8ee
4
+ data.tar.gz: 12eadd0c70dde88d9814ab6a59e2d8a8fbd97a180de75804dd3e5fff71c6fe2b
5
5
  SHA512:
6
- metadata.gz: b466a7d30dd821f6e83a5eb7c0be394e3d1fd6089ab1c2e2a43516e33cc127971ca20b98dbd15e80d2278e402e5f005383a4623b5bc7328b1a01667525a5cc1b
7
- data.tar.gz: 1e2208a4ee6f2aaa6aa4c2763307c583f3dd21346e04853720392d546b83ec6f15f6006214b3ded3d0f2d2138742355236fbc706ff4a526d853a363940367f63
6
+ metadata.gz: 817af1732ea746f061f27c936abb3e00bed80f4b3ceb879494bdcf16338449886dae5c55f3798914faa4e1d16d3560d4639ef56a3fc6268b7f04efb8b439c737
7
+ data.tar.gz: '094e4e74707c71ec246267018facf4ab4590a478aa16268ca86320abd68d8346d7d02158fa723d1c32cae28144a7b55d70e258916de503aa2c17e023790b8433'
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Bake
22
22
  module Modernize
23
- VERSION = "0.6.0"
23
+ VERSION = "0.8.1"
24
24
  end
25
25
  end
@@ -5,6 +5,9 @@ on:
5
5
  branches:
6
6
  - main
7
7
 
8
+ env:
9
+ BUNDLE_WITH: maintenance
10
+
8
11
  jobs:
9
12
  deploy:
10
13
  runs-on: ubuntu-latest
@@ -12,8 +15,6 @@ jobs:
12
15
  steps:
13
16
  - uses: actions/checkout@v2
14
17
  - uses: ruby/setup-ruby@v1
15
- env:
16
- BUNDLE_WITH: maintenance
17
18
  with:
18
19
  ruby-version: 3.0
19
20
  bundler-cache: true
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.6.0
4
+ version: 0.8.1
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: 2021-09-20 00:00:00.000000000 Z
40
+ date: 2022-03-09 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.1.6
165
+ rubygems_version: 3.3.8
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