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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e47d126f23b96ed593098da55ac6b7d66d8da92e92e7c2e68525a8ac9d492702
4
- data.tar.gz: 7f3c41662a9fd909a721d6e68286ab8968cb5f11717010a5d6adb230fdb51b71
3
+ metadata.gz: e5d9ed3838e0c1b650676239018878a1a0c45be35c7b587aad73d6f0d5ac21be
4
+ data.tar.gz: b86bbe7de20c897da7c0a54c5fa37be6757507a54fe85abe99c9eccb18d8044d
5
5
  SHA512:
6
- metadata.gz: 4fb1cd52d9464fe4c6b746003b170204fba329c24bf485ab8da6bb40add0415821fd753d2a9a2397667d302b50f3632b7f3ff693aada11e5e6e3031f6be416e9
7
- data.tar.gz: a485d8c283beb8a6414abd52e1823635950f743a6f9dfdf4471fc6cf4756d8ce796ebcf138b59270f8e16f8795e6798731cc3095cb78b02dfae8d7e4a11e0990
6
+ metadata.gz: 0bed6a9e824ef41b28ecd3b3e57c441765f9db7fcadff7a8c45384ef69cc7532713bb226af17e1ded790f35876bf0bf4f02aed46854e25fe0553aff91d75d00f
7
+ data.tar.gz: 7fdba301e95c47787c6dec71ce311b0a410967568771ad4b1f1349cb0ce346dc89345fd3a725a8692e51256313e83f7601850883af272d235d583915d5f5c39d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- YAML.load_file(path, aliases: true, symbolize_names: true, permitted_classes: [Date, Time])
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, path)
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, path|
109
- add(author, time, path)
110
+ contributors.each do |path, author, time|
111
+ add(path, author, time)
110
112
  end
111
113
  end
112
114
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.14.3"
8
+ VERSION = "0.15.0"
9
9
  end
10
10
  end
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.14.3
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-01-18 00:00:00.000000000 Z
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.1
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