commonmeta-ruby 3.12.0 → 3.12.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: 5acc4ac253ffc536724d14bf4d6cc58710978da3587c21035d946889b454a959
4
- data.tar.gz: c1eac95196a7e2f01b52c5f6f94e0055299554e59824dfc88bda9de661c34193
3
+ metadata.gz: b48e44936ddd71a38a9d019c33972d02cf66af57c02542f48d37a022017c8208
4
+ data.tar.gz: deb5ca7a1b1ec9387583e0039edc45ab382d8989c31012dacd81560c8cbaeaa3
5
5
  SHA512:
6
- metadata.gz: 95b8264ab1e837f26971d12df81ec4b3fc156d21d63387b0053646aacf80f8be6b03d77837759d2876ecd35c05400114a8c559df45219c74160422e58b73d868
7
- data.tar.gz: 1cca6f5bfa1bd30d966744931a88054cea207f4ed50f1c94b5a428e656be4f7216b71055f9e66d2ac03cb60b2140e3610f1a8c60c5bd26d4644daa0d4ece0b13
6
+ metadata.gz: e72bf66b0e72b62640d6f528c2279b119499a225acbe26498efe2afc7c5679b018175097144f6fef3a592186ae518e4073b9f209a31a56bda82e697fc3287408
7
+ data.tar.gz: '099621bbc5109437cf592a34bb8810d6d7c6a26c68bec0e13c43061410066218bf38fc0a3f809a84dc9f2861075a2b6a53d41836da9c2e909e5096529b7f87cd'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.12.0)
4
+ commonmeta-ruby (3.12.1)
5
5
  activesupport (>= 4.2.5, < 8.0)
6
6
  addressable (~> 2.8.1, < 2.8.2)
7
7
  base32-url (>= 0.7.0, < 1)
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.12.0'
4
+ VERSION = '3.12.1'
5
5
  end
@@ -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.0
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-01-31 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport