bake-modernize 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/modernize/license.rb +1 -1
- data/lib/bake/modernize/license.rb +18 -4
- data/lib/bake/modernize/version.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -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: 715e7310bed56e56203b7b689bae99fcfaea4d1466d314cc2ce91b6902550596
|
4
|
+
data.tar.gz: 20bd920437aaf896ff8dbc71c7ddcd9cd29a3d4a32ebc099234cd366df6e8e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe0673005c97cfe3dabe1e11db1e6412194544b7eb0f3a68849381c505003d007f2ededbb470bdcb93801efc6fee608e0aa94722b01c1129e2726383c7e244dc
|
7
|
+
data.tar.gz: 43edd77b36cbdd4438447dce0b065c89127b531e7e227444ddf717a063c6d4d2c6859963215860dce04a8f5a79db80a96d15877d1c915fbf64f457d563e6e9f2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/modernize/license.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2022, by Samuel Williams.
|
4
|
+
# Copyright, 2022-2023, by Samuel Williams.
|
5
5
|
|
6
6
|
require 'rugged'
|
7
7
|
require 'yaml'
|
@@ -34,13 +34,27 @@ module Bake
|
|
34
34
|
# Skip empty lines
|
35
35
|
next if line =~ /^\s*$/
|
36
36
|
# Parse line
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
|
38
|
+
|
39
|
+
user = extract_from_line(line)
|
40
|
+
if commit_email = user[:commit_email] and proper_name = user[:proper_name]
|
41
|
+
@names[commit_email] = proper_name
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
43
45
|
end
|
46
|
+
|
47
|
+
# Format: Proper Name <proper@email.xx> Commit Name <commit@email.xx>
|
48
|
+
PATTERN = /
|
49
|
+
(?<proper_name>[^<]+)?
|
50
|
+
(\s+<(?<proper_email>[^>]+)>)?
|
51
|
+
(\s+(?<commit_name>[^<]+)?)?
|
52
|
+
\s+<(?<commit_email>[^>]+)>
|
53
|
+
/x
|
54
|
+
|
55
|
+
def extract_from_line(line)
|
56
|
+
line.match(PATTERN)
|
57
|
+
end
|
44
58
|
end
|
45
59
|
|
46
60
|
class Contributors
|
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.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -111,7 +111,7 @@ dependencies:
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
114
|
+
name: sus
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|