bolognese 0.2.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/bolognese/cli.rb +3 -1
  4. data/lib/bolognese/crossref.rb +24 -2
  5. data/lib/bolognese/datacite.rb +8 -2
  6. data/lib/bolognese/datacite_utils.rb +211 -0
  7. data/lib/bolognese/version.rb +1 -1
  8. data/resources/kernel-4.0/include/datacite-contributorType-v4.xsd +35 -0
  9. data/resources/kernel-4.0/include/datacite-dateType-v4.xsd +21 -0
  10. data/resources/kernel-4.0/include/datacite-descriptionType-v4.xsd +19 -0
  11. data/resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd +15 -0
  12. data/resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd +32 -0
  13. data/resources/kernel-4.0/include/datacite-relationType-v4.xsd +39 -0
  14. data/resources/kernel-4.0/include/datacite-resourceType-v4.xsd +26 -0
  15. data/resources/kernel-4.0/include/datacite-titleType-v4.xsd +14 -0
  16. data/resources/kernel-4.0/metadata.xsd +470 -0
  17. data/spec/cli_spec.rb +5 -0
  18. data/spec/crossref_spec.rb +14 -6
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml +7 -7
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_datacite.yml +1476 -0
  21. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml +12 -12
  22. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml +9 -9
  23. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml +16 -16
  24. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +6 -6
  25. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_data_citation.yml +1435 -0
  26. metadata +15 -35
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -319,6 +319,7 @@ files:
319
319
  - lib/bolognese/cli.rb
320
320
  - lib/bolognese/crossref.rb
321
321
  - lib/bolognese/datacite.rb
322
+ - lib/bolognese/datacite_utils.rb
322
323
  - lib/bolognese/date_utils.rb
323
324
  - lib/bolognese/doi_utils.rb
324
325
  - lib/bolognese/github.rb
@@ -329,6 +330,15 @@ files:
329
330
  - lib/bolognese/string.rb
330
331
  - lib/bolognese/utils.rb
331
332
  - lib/bolognese/version.rb
333
+ - resources/kernel-4.0/include/datacite-contributorType-v4.xsd
334
+ - resources/kernel-4.0/include/datacite-dateType-v4.xsd
335
+ - resources/kernel-4.0/include/datacite-descriptionType-v4.xsd
336
+ - resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd
337
+ - resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd
338
+ - resources/kernel-4.0/include/datacite-relationType-v4.xsd
339
+ - resources/kernel-4.0/include/datacite-resourceType-v4.xsd
340
+ - resources/kernel-4.0/include/datacite-titleType-v4.xsd
341
+ - resources/kernel-4.0/metadata.xsd
332
342
  - spec/cli_spec.rb
333
343
  - spec/crossref_spec.rb
334
344
  - spec/datacite_spec.rb
@@ -336,6 +346,7 @@ files:
336
346
  - spec/fixtures/crossref.xml
337
347
  - spec/fixtures/datacite.xml
338
348
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml
349
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_datacite.yml
339
350
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml
340
351
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml
341
352
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml
@@ -350,6 +361,7 @@ files:
350
361
  - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml
351
362
  - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml
352
363
  - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml
364
+ - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_data_citation.yml
353
365
  - spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml
354
366
  - spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml
355
367
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml
@@ -380,40 +392,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
380
392
  version: '0'
381
393
  requirements: []
382
394
  rubyforge_project:
383
- rubygems_version: 2.6.8
395
+ rubygems_version: 2.4.5
384
396
  signing_key:
385
397
  specification_version: 4
386
398
  summary: Ruby client library for conversion of DOI Metadata
387
- test_files:
388
- - spec/cli_spec.rb
389
- - spec/crossref_spec.rb
390
- - spec/datacite_spec.rb
391
- - spec/doi_spec.rb
392
- - spec/fixtures/crossref.xml
393
- - spec/fixtures/datacite.xml
394
- - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml
395
- - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml
396
- - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml
397
- - spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml
398
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml
399
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml
400
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml
401
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/not_found.yml
402
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_test.yml
403
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml
404
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml
405
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml
406
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml
407
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml
408
- - spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml
409
- - spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml
410
- - spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml
411
- - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml
412
- - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref_doi_not_url.yml
413
- - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite.yml
414
- - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite_doi_http.yml
415
- - spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/orcid.yml
416
- - spec/metadata_spec.rb
417
- - spec/orcid_spec.rb
418
- - spec/spec_helper.rb
419
- has_rdoc:
399
+ test_files: []