bolognese 0.9.53 → 0.9.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bolognese/metadata.rb +5 -7
  4. data/lib/bolognese/readers/datacite_reader.rb +10 -6
  5. data/lib/bolognese/version.rb +1 -1
  6. data/spec/cli_spec.rb +1 -1
  7. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/default.yml +2 -2
  8. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_bibtex.yml +2 -2
  9. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_crossref.yml +2 -2
  10. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_datacite.yml +2 -2
  11. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_schema_org.yml +2 -2
  12. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/default.yml +38 -0
  13. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_bibtex.yml +38 -0
  14. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite.yml +38 -0
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite_invalid.yml +38 -0
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_schema_org.yml +38 -0
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +20 -28
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +22 -28
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_citation.yml +23 -31
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +20 -30
  21. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +19 -29
  22. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +20 -30
  23. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +27 -31
  24. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +26 -30
  25. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_citation.yml +27 -33
  26. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +24 -32
  27. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +25 -29
  28. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +27 -31
  29. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +19 -19
  30. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +19 -19
  31. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +17 -17
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +20 -20
  33. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting_from_string.yml +38 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Schema_4_1_from_string.yml +38 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/missing_creator.yml +38 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_raw/BlogPosting.yml +38 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_multiple_names_in_display-order.yml +16 -12
  38. metadata +10 -1
@@ -17,27 +17,29 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  Access-Control-Allow-Methods:
20
- - GET, POST, OPTIONS
20
+ - GET, POST, PATCH, PUT, DELETE, OPTIONS
21
21
  Access-Control-Allow-Origin:
22
22
  - "*"
23
23
  Content-Type:
24
24
  - application/json;charset=UTF-8
25
25
  Date:
26
- - Wed, 23 Aug 2017 08:06:06 GMT
26
+ - Mon, 25 Sep 2017 19:27:32 GMT
27
27
  Server:
28
28
  - openresty/1.11.2.2
29
+ Content-Length:
30
+ - '3820'
29
31
  Connection:
30
32
  - keep-alive
31
33
  body:
32
34
  encoding: UTF-8
33
- string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"FIGSHARE.ARS","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+PGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNjA4NC9NOS5GSUdTSEFSRS4zNDc5MTQxPC9pZGVudGlmaWVyPjxjcmVhdG9ycz48Y3JlYXRvcj48Y3JlYXRvck5hbWU+VG9tIERlbWVyYW52aWxsZTwvY3JlYXRvck5hbWU+PG5hbWVJZGVudGlmaWVyIG5hbWVJZGVudGlmaWVyU2NoZW1lPSJPUkNJRCIgc2NoZW1lVVJJPSJodHRwOi8vb3JjaWQub3JnIj4wMDAwLTAwMDMtMDkwMi00Mzg2PC9uYW1lSWRlbnRpZmllcj48L2NyZWF0b3I+PGNyZWF0b3I+PGNyZWF0b3JOYW1lPkpvc2ggQnJvd248L2Ny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hYnNALm5zZi8wLzZCQjQyN0FCOTY5NkMyMjVDQTI1NzQxODAwMDQ0NjNFIiBzdWJqZWN0U2NoZW1lPSJGT1IiPjgwNjEyIEludGVyb3JnYW5pc2F0aW9uYWwgSW5mb3JtYXRpb24gU3lzdGVtcyBhbmQgV2ViIFNlcnZpY2VzPC9zdWJqZWN0Pjwvc3ViamVjdHM+PHB1Ymxpc2hlcj5GaWdzaGFyZTwvcHVibGlzaGVyPjxwdWJsaWNhdGlvblllYXI+MjAxNjwvcHVibGljYXRpb25ZZWFyPjxkYXRlcz48ZGF0ZSBkYXRlVHlwZT0iQ3JlYXRlZCI+MjAxNi0wNy0xMTwvZGF0ZT48ZGF0ZSBkYXRlVHlwZT0iVXBkYXRlZCI+MjAxNi0wNy0xMTwvZGF0ZT48L2RhdGVzPjxyZXNvdXJjZVR5cGUgcmVzb3VyY2VUeXBlR2VuZXJhbD0iRGF0YXNldCI+RGF0YXNldDwvcmVzb3VyY2VUeXBlPjxzaXplcz48c2l6ZT4zNzEwOTkgQnl0ZXM8L3NpemU+PC9zaXplcz48cmlnaHRzTGlzdD48cmlnaHRzIHJpZ2h0c1VSST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wL3VzLyI+Q0MtQlk8L3JpZ2h0cz48L3JpZ2h0c0xpc3Q+PC9yZXNvdXJjZT4=","allocator_symbol":"FIGSHARE","minted":"2016-07-11T10:40:48Z","updated":"2016-07-11T10:45:29Z","doi":"10.6084/M9.FIGSHARE.3479141"}]}}
35
+ string: '{"responseHeader":{"status":0,"QTime":3},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"FIGSHARE.ARS","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9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NldCI+RGF0YXNldDwvcmVzb3VyY2VUeXBlPjxzaXplcz48c2l6ZT4zNzEwOTkgQnl0ZXM8L3NpemU+PC9zaXplcz48cmlnaHRzTGlzdD48cmlnaHRzIHJpZ2h0c1VSST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wL3VzLyI+Q0MtQlk8L3JpZ2h0cz48L3JpZ2h0c0xpc3Q+PC9yZXNvdXJjZT4=","allocator_symbol":"FIGSHARE","minted":"2016-07-11T10:40:48Z","updated":"2016-07-11T10:45:29Z","doi":"10.6084/M9.FIGSHARE.3479141"}]}}
34
36
 
35
37
  '
36
38
  http_version:
37
- recorded_at: Wed, 23 Aug 2017 08:06:06 GMT
39
+ recorded_at: Mon, 25 Sep 2017 19:27:32 GMT
38
40
  - request:
39
41
  method: head
40
- uri: https://doi.org/10.6084/m9.figshare.3479141%20
42
+ uri: https://doi.org/10.6084/m9.figshare.3479141
41
43
  body:
42
44
  encoding: US-ASCII
43
45
  string: ''
@@ -58,18 +60,18 @@ http_interactions:
58
60
  Location:
59
61
  - https://figshare.com/articles/Organisation_Identifiers_-_Minimum_viable_product_requirements/3479141
60
62
  Expires:
61
- - Wed, 23 Aug 2017 08:12:45 GMT
63
+ - Mon, 25 Sep 2017 19:29:21 GMT
62
64
  Content-Type:
63
65
  - text/html;charset=utf-8
64
66
  Content-Length:
65
67
  - '285'
66
68
  Date:
67
- - Wed, 23 Aug 2017 08:06:06 GMT
69
+ - Mon, 25 Sep 2017 19:27:32 GMT
68
70
  body:
69
71
  encoding: UTF-8
70
72
  string: ''
71
73
  http_version:
72
- recorded_at: Wed, 23 Aug 2017 08:06:07 GMT
74
+ recorded_at: Mon, 25 Sep 2017 19:27:33 GMT
73
75
  - request:
74
76
  method: get
75
77
  uri: https://search.datacite.org/api?fl=doi,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.6084/m9.figshare.3479141%20&wt=json
@@ -87,22 +89,24 @@ http_interactions:
87
89
  message: OK
88
90
  headers:
89
91
  Access-Control-Allow-Methods:
90
- - GET, POST, OPTIONS
92
+ - GET, POST, PATCH, PUT, DELETE, OPTIONS
91
93
  Access-Control-Allow-Origin:
92
94
  - "*"
93
95
  Content-Type:
94
96
  - application/json;charset=UTF-8
95
97
  Date:
96
- - Wed, 23 Aug 2017 08:06:08 GMT
98
+ - Mon, 25 Sep 2017 19:27:34 GMT
97
99
  Server:
98
100
  - openresty/1.11.2.2
101
+ Content-Length:
102
+ - '3820'
99
103
  Connection:
100
104
  - keep-alive
101
105
  body:
102
106
  encoding: UTF-8
103
- string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"FIGSHARE.ARS","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+PGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNjA4NC9NOS5GSUdTSEFSRS4zNDc5MTQxPC9pZGVudGlmaWVyPjxjcmVhdG9ycz48Y3JlYXRvcj48Y3JlYXRvck5hbWU+VG9tIERlbWVyYW52aWxsZTwvY3JlYXRvck5hbWU+PG5hbWVJZGVudGlmaWVyIG5hbWVJZGVudGlmaWVyU2NoZW1lPSJPUkNJRCIgc2NoZW1lVVJJPSJodHRwOi8vb3JjaWQub3JnIj4wMDAwLTAwMDMtMDkwMi00Mzg2PC9uYW1lSWRlbn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c3ViamVjdCBzY2hlbWVVUkk9Imh0dHA6Ly93d3cuYWJzLmdvdi5hdS9hdXNzdGF0cy9hYnNALm5zZi8wLzZCQjQyN0FCOTY5NkMyMjVDQTI1NzQxODAwMDQ0NjNFIiBzdWJqZWN0U2NoZW1lPSJGT1IiPjgwNjEyIEludGVyb3JnYW5pc2F0aW9uYWwgSW5mb3JtYXRpb24gU3lzdGVtcyBhbmQgV2ViIFNlcnZpY2VzPC9zdWJqZWN0Pjwvc3ViamVjdHM+PHB1Ymxpc2hlcj5GaWdzaGFyZTwvcHVibGlzaGVyPjxwdWJsaWNhdGlvblllYXI+MjAxNjwvcHVibGljYXRpb25ZZWFyPjxkYXRlcz48ZGF0ZSBkYXRlVHlwZT0iQ3JlYXRlZCI+MjAxNi0wNy0xMTwvZGF0ZT48ZGF0ZSBkYXRlVHlwZT0iVXBkYXRlZCI+MjAxNi0wNy0xMTwvZGF0ZT48L2RhdGVzPjxyZXNvdXJjZVR5cGUgcmVzb3VyY2VUeXBlR2VuZXJhbD0iRGF0YXNldCI+RGF0YXNldDwvcmVzb3VyY2VUeXBlPjxzaXplcz48c2l6ZT4zNzEwOTkgQnl0ZXM8L3NpemU+PC9zaXplcz48cmlnaHRzTGlzdD48cmlnaHRzIHJpZ2h0c1VSST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wL3VzLyI+Q0MtQlk8L3JpZ2h0cz48L3JpZ2h0c0xpc3Q+PC9yZXNvdXJjZT4=","allocator_symbol":"FIGSHARE","minted":"2016-07-11T10:40:48Z","updated":"2016-07-11T10:45:29Z","doi":"10.6084/M9.FIGSHARE.3479141"}]}}
107
+ string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"FIGSHARE.ARS","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YW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ZT48L2RhdGVzPjxyZXNvdXJjZVR5cGUgcmVzb3VyY2VUeXBlR2VuZXJhbD0iRGF0YXNldCI+RGF0YXNldDwvcmVzb3VyY2VUeXBlPjxzaXplcz48c2l6ZT4zNzEwOTkgQnl0ZXM8L3NpemU+PC9zaXplcz48cmlnaHRzTGlzdD48cmlnaHRzIHJpZ2h0c1VSST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wL3VzLyI+Q0MtQlk8L3JpZ2h0cz48L3JpZ2h0c0xpc3Q+PC9yZXNvdXJjZT4=","allocator_symbol":"FIGSHARE","minted":"2016-07-11T10:40:48Z","updated":"2016-07-11T10:45:29Z","doi":"10.6084/M9.FIGSHARE.3479141"}]}}
104
108
 
105
109
  '
106
110
  http_version:
107
- recorded_at: Wed, 23 Aug 2017 08:06:08 GMT
111
+ recorded_at: Mon, 25 Sep 2017 19:27:34 GMT
108
112
  recorded_with: VCR 3.0.3
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.9.53
4
+ version: 0.9.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -557,6 +557,11 @@ files:
557
557
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_crossref.yml
558
558
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_datacite.yml
559
559
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_schema_org.yml
560
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/default.yml
561
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_bibtex.yml
562
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite.yml
563
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite_invalid.yml
564
+ - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_schema_org.yml
560
565
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml
561
566
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml
562
567
  - spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_citation.yml
@@ -636,12 +641,14 @@ files:
636
641
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/posted_content.yml
637
642
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_raw/journal_article.yml
638
643
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting.yml
644
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting_from_string.yml
639
645
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting_in_test_system.yml
640
646
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_test_system.yml
641
647
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_not_found.yml
642
648
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Dataset.yml
643
649
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding.yml
644
650
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding_schema_version_4.yml
651
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Schema_4_1_from_string.yml
645
652
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_only_full_name.yml
646
653
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_scheme.yml
647
654
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_wrong_orcid_scheme.yml
@@ -651,8 +658,10 @@ files:
651
658
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/is_identical_to.yml
652
659
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/keywords_with_attributes.yml
653
660
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/leading_and_trailing_whitespace.yml
661
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/missing_creator.yml
654
662
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_author_names_in_one_creatorName.yml
655
663
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_licenses.yml
664
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_raw/BlogPosting.yml
656
665
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/date.yml
657
666
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year-month.yml
658
667
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year.yml