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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5d9ed3838e0c1b650676239018878a1a0c45be35c7b587aad73d6f0d5ac21be
4
- data.tar.gz: b86bbe7de20c897da7c0a54c5fa37be6757507a54fe85abe99c9eccb18d8044d
3
+ metadata.gz: 715e7310bed56e56203b7b689bae99fcfaea4d1466d314cc2ce91b6902550596
4
+ data.tar.gz: 20bd920437aaf896ff8dbc71c7ddcd9cd29a3d4a32ebc099234cd366df6e8e91
5
5
  SHA512:
6
- metadata.gz: 0bed6a9e824ef41b28ecd3b3e57c441765f9db7fcadff7a8c45384ef69cc7532713bb226af17e1ded790f35876bf0bf4f02aed46854e25fe0553aff91d75d00f
7
- data.tar.gz: 7fdba301e95c47787c6dec71ce311b0a410967568771ad4b1f1349cb0ce346dc89345fd3a725a8692e51256313e83f7601850883af272d235d583915d5f5c39d
6
+ metadata.gz: fe0673005c97cfe3dabe1e11db1e6412194544b7eb0f3a68849381c505003d007f2ededbb470bdcb93801efc6fee608e0aa94722b01c1129e2726383c7e244dc
7
+ data.tar.gz: 43edd77b36cbdd4438447dce0b065c89127b531e7e227444ddf717a063c6d4d2c6859963215860dce04a8f5a79db80a96d15877d1c915fbf64f457d563e6e9f2
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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 'bake/modernize'
7
7
 
@@ -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
- # Format: Full Name <email@address>
38
- line.match(/^(.*) <(.*)>$/) do |match|
39
- @names[match[2]] = match[1]
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
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2022, by Samuel Williams.
4
+ # Copyright, 2020-2023, by Samuel Williams.
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.15.0"
8
+ VERSION = "0.15.1"
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.15.0
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: rspec
114
+ name: sus
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
metadata.gz.sig CHANGED
Binary file