bake-modernize 0.14.3 → 0.15.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/license.rb +5 -0
- data/lib/bake/modernize/license.rb +6 -4
- data/lib/bake/modernize/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -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: e5d9ed3838e0c1b650676239018878a1a0c45be35c7b587aad73d6f0d5ac21be
|
|
4
|
+
data.tar.gz: b86bbe7de20c897da7c0a54c5fa37be6757507a54fe85abe99c9eccb18d8044d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bed6a9e824ef41b28ecd3b3e57c441765f9db7fcadff7a8c45384ef69cc7532713bb226af17e1ded790f35876bf0bf4f02aed46854e25fe0553aff91d75d00f
|
|
7
|
+
data.tar.gz: 7fdba301e95c47787c6dec71ce311b0a410967568771ad4b1f1349cb0ce346dc89345fd3a725a8692e51256313e83f7601850883af272d235d583915d5f5c39d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/bake/modernize/license.rb
CHANGED
|
@@ -71,6 +71,11 @@ def update_source_file_authors(authorship, path, modifications)
|
|
|
71
71
|
output.push input.shift
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# Drop any old copyright statements.
|
|
75
|
+
while input.first =~ /Copyright/i
|
|
76
|
+
input.shift
|
|
77
|
+
end
|
|
78
|
+
|
|
74
79
|
if input.first =~ /^\#.*?\:/
|
|
75
80
|
output.push input.shift
|
|
76
81
|
if input.first.chomp.empty?
|
|
@@ -68,7 +68,9 @@ module Bake
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def extract(path)
|
|
71
|
-
|
|
71
|
+
@contributions.concat(
|
|
72
|
+
YAML.load_file(path, aliases: true, symbolize_names: true, permitted_classes: [Date, Time])
|
|
73
|
+
)
|
|
72
74
|
end
|
|
73
75
|
end
|
|
74
76
|
|
|
@@ -96,7 +98,7 @@ module Bake
|
|
|
96
98
|
|
|
97
99
|
attr :paths
|
|
98
100
|
|
|
99
|
-
def add(author, time
|
|
101
|
+
def add(path, author, time)
|
|
100
102
|
@paths[path] ||= []
|
|
101
103
|
@paths[path] << Modification.new(author, time, path)
|
|
102
104
|
end
|
|
@@ -105,8 +107,8 @@ module Bake
|
|
|
105
107
|
mailmap = Mailmap.for(root)
|
|
106
108
|
|
|
107
109
|
if contributors = Contributors.for(root)
|
|
108
|
-
contributors.each do |author, time
|
|
109
|
-
add(author, time
|
|
110
|
+
contributors.each do |path, author, time|
|
|
111
|
+
add(path, author, time)
|
|
110
112
|
end
|
|
111
113
|
end
|
|
112
114
|
|
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.15.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: 2023-
|
|
41
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
|
42
42
|
dependencies:
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: async-http
|
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
173
|
version: '0'
|
|
174
174
|
requirements: []
|
|
175
|
-
rubygems_version: 3.4.
|
|
175
|
+
rubygems_version: 3.4.6
|
|
176
176
|
signing_key:
|
|
177
177
|
specification_version: 4
|
|
178
178
|
summary: Automatically modernize parts of your project/gem.
|
metadata.gz.sig
CHANGED
|
Binary file
|