commonmeta-ruby 3.12.0 → 3.12.1
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
- data/Gemfile.lock +1 -1
- data/lib/commonmeta/author_utils.rb +1 -1
- data/lib/commonmeta/version.rb +1 -1
- data/spec/author_utils_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b48e44936ddd71a38a9d019c33972d02cf66af57c02542f48d37a022017c8208
|
|
4
|
+
data.tar.gz: deb5ca7a1b1ec9387583e0039edc45ab382d8989c31012dacd81560c8cbaeaa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e72bf66b0e72b62640d6f528c2279b119499a225acbe26498efe2afc7c5679b018175097144f6fef3a592186ae518e4073b9f209a31a56bda82e697fc3287408
|
|
7
|
+
data.tar.gz: '099621bbc5109437cf592a34bb8810d6d7c6a26c68bec0e13c43061410066218bf38fc0a3f809a84dc9f2861075a2b6a53d41836da9c2e909e5096529b7f87cd'
|
data/Gemfile.lock
CHANGED
|
@@ -169,7 +169,7 @@ module Commonmeta
|
|
|
169
169
|
return false if name.to_s.split(" ").size == 1 && name.to_s.exclude?(",")
|
|
170
170
|
|
|
171
171
|
# check if name contains words known to be used in organization names
|
|
172
|
-
return false if %w[University College Institute School Center Department Laboratory Library Museum Foundation Society Association Company Corporation Collaboration Consortium Incorporated Inc. Institut Research Science].any? { |word| name.to_s.include?(word) }
|
|
172
|
+
return false if %w[University College Institute School Center Department Laboratory Library Museum Foundation Society Association Company Corporation Collaboration Consortium Incorporated Inc. Institut Research Science Team].any? { |word| name.to_s.include?(word) }
|
|
173
173
|
|
|
174
174
|
# check for suffixes, e.g. "John Smith, MD"
|
|
175
175
|
return true if name && %w[MD PhD].include?(name.split(", ").last)
|
data/lib/commonmeta/version.rb
CHANGED
data/spec/author_utils_spec.rb
CHANGED
|
@@ -68,6 +68,11 @@ describe Commonmeta::Metadata, vcr: true do
|
|
|
68
68
|
author = { "name" => "Research Graph" }
|
|
69
69
|
expect(subject.is_personal_name?(name: author["name"])).to be false
|
|
70
70
|
end
|
|
71
|
+
|
|
72
|
+
it "name with ye another organization string" do
|
|
73
|
+
author = { "name" => "Team OA Brandenburg" }
|
|
74
|
+
expect(subject.is_personal_name?(name: author["name"])).to be false
|
|
75
|
+
end
|
|
71
76
|
end
|
|
72
77
|
|
|
73
78
|
context "cleanup_author" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: commonmeta-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.12.
|
|
4
|
+
version: 3.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Fenner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|