commonmeta-ruby 3.12.0 → 3.13

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: 5acc4ac253ffc536724d14bf4d6cc58710978da3587c21035d946889b454a959
4
- data.tar.gz: c1eac95196a7e2f01b52c5f6f94e0055299554e59824dfc88bda9de661c34193
3
+ metadata.gz: 45f03097245e6ea7ff57e27a045716cd4e760f30d93a9231694ebc4e8213819a
4
+ data.tar.gz: 17b1800fb4ccda9e163f731b1e3231d9d95580e8a05a352e5834cbf3da660bff
5
5
  SHA512:
6
- metadata.gz: 95b8264ab1e837f26971d12df81ec4b3fc156d21d63387b0053646aacf80f8be6b03d77837759d2876ecd35c05400114a8c559df45219c74160422e58b73d868
7
- data.tar.gz: 1cca6f5bfa1bd30d966744931a88054cea207f4ed50f1c94b5a428e656be4f7216b71055f9e66d2ac03cb60b2140e3610f1a8c60c5bd26d4644daa0d4ece0b13
6
+ metadata.gz: 3f0181cccbcf6b3eedce7d9f56d8f5f9278f07d02e6726e5b03b6dac5a0f61ea547c3b766d3474ec9007cd1fcb66adf1de3e77cef001951b933785b301bf106f
7
+ data.tar.gz: 468a8d956aa09af44cd5b8eda1881ab70dab822545c04de1b68070536ca5f68bb78e0896ec1257c6ec8237ee61425eeff597ae1402520ef39209c33360dd7240
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.13)
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)
@@ -138,7 +138,7 @@ GEM
138
138
  mutex_m (0.2.0)
139
139
  namae (1.2.0)
140
140
  racc (~> 1.7)
141
- nokogiri (1.16.0-arm64-darwin)
141
+ nokogiri (1.16.2-arm64-darwin)
142
142
  racc (~> 1.4)
143
143
  oj (3.16.3)
144
144
  bigdecimal (>= 3.0)
@@ -176,19 +176,19 @@ GEM
176
176
  rexml (~> 3.2)
177
177
  regexp_parser (2.9.0)
178
178
  rexml (3.2.6)
179
- rspec (3.12.0)
180
- rspec-core (~> 3.12.0)
181
- rspec-expectations (~> 3.12.0)
182
- rspec-mocks (~> 3.12.0)
183
- rspec-core (3.12.2)
184
- rspec-support (~> 3.12.0)
185
- rspec-expectations (3.12.3)
179
+ rspec (3.13.0)
180
+ rspec-core (~> 3.13.0)
181
+ rspec-expectations (~> 3.13.0)
182
+ rspec-mocks (~> 3.13.0)
183
+ rspec-core (3.13.0)
184
+ rspec-support (~> 3.13.0)
185
+ rspec-expectations (3.13.0)
186
186
  diff-lcs (>= 1.2.0, < 2.0)
187
- rspec-support (~> 3.12.0)
188
- rspec-mocks (3.12.6)
187
+ rspec-support (~> 3.13.0)
188
+ rspec-mocks (3.13.0)
189
189
  diff-lcs (>= 1.2.0, < 2.0)
190
- rspec-support (~> 3.12.0)
191
- rspec-support (3.12.1)
190
+ rspec-support (~> 3.13.0)
191
+ rspec-support (3.13.0)
192
192
  rspec-xsd (0.1.0)
193
193
  nokogiri (~> 1.6)
194
194
  rspec (~> 3)
@@ -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)
@@ -5,7 +5,7 @@ require "pathname"
5
5
 
6
6
  module Commonmeta
7
7
  module SchemaUtils
8
- COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.7.json",
8
+ COMMONMETA = File.read(File.expand_path("../../resources/commonmeta_v0.10.8.json",
9
9
  __dir__))
10
10
 
11
11
  def json_schema_errors
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.12.0'
4
+ VERSION = '3.13'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://commonmeta.org/commonmeta_v0.10.7.json",
4
- "title": "Commonmeta v0.10.7",
3
+ "$id": "https://commonmeta.org/commonmeta_v0.10.8.json",
4
+ "title": "Commonmeta v0.10.8",
5
5
  "description": "JSON representation of the Commonmeta schema.",
6
6
  "additionalProperties": false,
7
7
  "definitions": {
@@ -118,6 +118,7 @@
118
118
  "Journal",
119
119
  "PeerReview",
120
120
  "PhysicalObject",
121
+ "Presentation",
121
122
  "ProceedingsArticle",
122
123
  "ProceedingsSeries",
123
124
  "Proceedings",
@@ -266,27 +267,48 @@
266
267
  "description": "The container of the resource.",
267
268
  "type": "object",
268
269
  "properties": {
269
- "id": {
270
+ "identifier": {
270
271
  "description": "The identifier for the container.",
271
272
  "type": "string"
272
273
  },
274
+ "identifierType": {
275
+ "description": "The identifierType for the container.",
276
+ "type": "string"
277
+ },
273
278
  "type": {
274
279
  "description": "The type of the container.",
275
280
  "type": "string",
276
281
  "enum": [
277
282
  "Book",
278
283
  "BookSeries",
279
- "DataCatalog",
280
284
  "Journal",
281
- "Periodical",
285
+ "Proceedings",
282
286
  "ProceedingsSeries",
283
287
  "Repository",
288
+ "DataRepository",
289
+ "Periodical",
284
290
  "Series"
285
291
  ]
286
292
  },
287
293
  "title": {
288
294
  "description": "The title of the container.",
289
295
  "type": "string"
296
+ },
297
+ "firstPage": {
298
+ "description": "The first page of the resource.",
299
+ "type": "string"
300
+ },
301
+ "lastPage": {
302
+ "description": "The last page of the resource.",
303
+ "type": "string"
304
+ },
305
+ "volume": {
306
+ "description": "The volume of the resource.",
307
+ "type": "string"
308
+ },
309
+ "issue": {
310
+ "description": "The issue of the resource.",
311
+ "type": "string"
290
312
  }
291
313
  }
292
314
  },
@@ -382,7 +404,7 @@
382
404
  "Reviews",
383
405
  "IsPreprintOf",
384
406
  "HasPreprint",
385
- "isSupplementTo"
407
+ "IsSupplementTo"
386
408
  ]
387
409
  }
388
410
  },
@@ -483,7 +505,7 @@
483
505
  "provider": {
484
506
  "description": "The provider of the resource. This can be a DOI registration agency or a repository.",
485
507
  "type": "string",
486
- "enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP"]
508
+ "enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP", "InvenioRDM"]
487
509
  },
488
510
  "alternate_identifiers": {
489
511
  "description": "Alternate identifiers for the resource.",
@@ -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.13'
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-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -694,7 +694,7 @@ files:
694
694
  - lib/commonmeta/xml_converter.rb
695
695
  - resources/2008/09/xsd.xsl
696
696
  - resources/cff.json
697
- - resources/commonmeta_v0.10.7.json
697
+ - resources/commonmeta_v0.10.8.json
698
698
  - resources/crossref/AccessIndicators.xsd
699
699
  - resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd
700
700
  - resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd
@@ -1096,7 +1096,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1096
1096
  - !ruby/object:Gem::Version
1097
1097
  version: '0'
1098
1098
  requirements: []
1099
- rubygems_version: 3.4.22
1099
+ rubygems_version: 3.5.5
1100
1100
  signing_key:
1101
1101
  specification_version: 4
1102
1102
  summary: Ruby client library for conversion of scholarly metadata