bolognese 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/bolognese.gemspec +1 -1
- data/lib/bolognese/author_utils.rb +10 -5
- data/lib/bolognese/version.rb +1 -1
- data/spec/author_utils_spec.rb +23 -6
- data/spec/datacite_spec.rb +32 -2
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/author.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_Thai.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/hyper-authorship.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/multiple_author_names.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/multiple_author_names_in_one_field.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author_only_full_name.yml +40 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author_with_scheme.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/jsonlint.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/multiple_author_names_in_one_creatorName.yml +38 -0
- metadata +18 -2
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.18429/jacow-ipac2016-tupmy003&wt=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Maremma - https://github.com/datacite/maremma
|
12
|
+
Accept:
|
13
|
+
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Access-Control-Allow-Methods:
|
20
|
+
- GET, POST, OPTIONS
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Date:
|
26
|
+
- Sat, 22 Apr 2017 05:05:09 GMT
|
27
|
+
Server:
|
28
|
+
- openresty/1.11.2.2
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"xml":"PHJlc291cmNlIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL2RhdGFjaXRlLm9yZy9zY2hlbWEva2VybmVsLTMgaHR0cDovL3NjaGVtYS5kYXRhY2l0ZS5vcmcvbWV0YS9rZXJuZWwtMy9tZXRhZGF0YS54c2QiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+DQo8aWRlbnRpZmllciBpZGVudGlmaWVyVHlwZT0iRE9JIj4xMC4xODQyOS9KQUNvVy1JUEFDMjAxNi1UVVBNWTAwMzwvaWRlbnRpZmllcj4NCjxjcmVhdG9ycz4NCiAgPGNyZWF0b3I+DQogICAgPGNyZWF0b3JOYW1lPk90YW5pLCBNYXNhc2hpPC9jcmVhdG9yTmFtZT4NCiAgICA8bmFtZUlkZW50aWZpZXIgc2NoZW1lVVJJPSJodHRwOi8vamFjb3cub3JnLyIgbmFtZUlkZW50aWZpZXJTY2hlbWU9IkpBQ29XLUlEIj5KQUNvVy0wMDA3NzM4OTwvbmFtZUlkZW50aWZpZXI+DQogICAgPGFmZmlsaWF0aW9uPktFSywgV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iB0aGUgbXVvbiBMSU5BQyB3aWxsIGJlIHJlcG9ydGVkLg0KICA8L2Rlc2NyaXB0aW9uPg0KICA8ZGVzY3JpcHRpb24gZGVzY3JpcHRpb25UeXBlPSJTZXJpZXNJbmZvcm1hdGlvbiI+DQogICAgUHJvY2VlZGluZ3Mgb2YgdGhlIDd0aCBJbnRlcm5hdGlvbmFsIFBhcnRpY2xlIEFjY2VsZXJhdG9yIENvbmZlcmVuY2UsIElQQUMyMDE2LCBCdXNhbiwgS29yZWENCiAgPC9kZXNjcmlwdGlvbj4NCjwvZGVzY3JpcHRpb25zPg0KPC9yZXNvdXJjZT4NCg==","minted":"2016-06-03T12:52:47Z","updated":"2016-06-03T13:20:15Z","doi":"10.18429/JACOW-IPAC2016-TUPMY003"}]}}
|
34
|
+
|
35
|
+
'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 22 Apr 2017 05:05:09 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.5169/seals-517428&wt=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Maremma - https://github.com/datacite/maremma
|
12
|
+
Accept:
|
13
|
+
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Access-Control-Allow-Methods:
|
20
|
+
- GET, POST, OPTIONS
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Date:
|
26
|
+
- Sat, 22 Apr 2017 05:12:59 GMT
|
27
|
+
Server:
|
28
|
+
- openresty/1.11.2.2
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"xml":"PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz48cmVzb3VyY2UgeG1sbnM9Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC0zIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC0zIGh0dHA6Ly9zY2hlbWEuZGF0YWNpdGUub3JnL21ldGEva2VybmVsLTMvbWV0YWRhdGEueHNkIj48aWRlbnRpZmllciBpZGVudGlmaWVyVHlwZT0iRE9JIj4xMC41MTY5L3NlYWxzLTUxNzQyODwvaWRlbnRpZmllcj48Y3JlYXRvcnM+PGNyZWF0b3I+PGNyZWF0b3JOYW1lPkt1cno8L2NyZWF0b3JOYW1lPjwvY3JlYXRvcj48L2NyZWF0b3JzPjx0aXRsZXM+PHRpdGxlPlZvbiBNb25hdCB6dSBNb25hdCA6IGRpZSBEb2t1bWVudGUgdm9uIExhIENoYXJpdMOpPC90aXRsZT48L3RpdGxlcz48cHVibGlzaGVyPkJ1Y2hkcnVja2VyZWkgUm9iZXJ0IE3DvGxsZXIgQUc8L3B1Ymxpc2hlcj48cHVibGljYXRpb25ZZWFyPjE5NjE8L3B1YmxpY2F0aW9uWWVhcj48ZGF0ZXM+PGRhdGUgZGF0ZVR5cGU9IkF2YWlsYWJsZSI+MTk2MS0wNi0wMTwvZGF0ZT48L2RhdGVzPjxyZXNvdXJjZVR5cGUgcmVzb3VyY2VUeXBlR2VuZXJhbD0iVGV4dCI+Sm91cm5hbCBBcnRpY2xlPC9yZXNvdXJjZVR5cGU+PGZvcm1hdHM+PGZvcm1hdD50ZXh0L2h0bWw8L2Zvcm1hdD48Zm9ybWF0PmFwcGxpY2F0aW9uL3BkZjwvZm9ybWF0PjwvZm9ybWF0cz48L3Jlc291cmNlPg==","minted":"2017-03-23T00:21:40Z","updated":"2017-03-23T00:21:40Z","doi":"10.5169/SEALS-517428"}]}}
|
34
|
+
|
35
|
+
'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 22 Apr 2017 05:12:59 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.7910/dvn/eqtqyo&wt=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Maremma - https://github.com/datacite/maremma
|
12
|
+
Accept:
|
13
|
+
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Access-Control-Allow-Methods:
|
20
|
+
- GET, POST, OPTIONS
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Date:
|
26
|
+
- Sat, 22 Apr 2017 04:02:05 GMT
|
27
|
+
Server:
|
28
|
+
- openresty/1.11.2.2
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlI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doi":"10.7910/DVN/EQTQYO"}]}}
|
34
|
+
|
35
|
+
'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 22 Apr 2017 04:02:05 GMT
|
38
|
+
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolognese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|
@@ -97,6 +97,9 @@ dependencies:
|
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: 4.2.5
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '6'
|
100
103
|
type: :runtime
|
101
104
|
prerelease: false
|
102
105
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -104,6 +107,9 @@ dependencies:
|
|
104
107
|
- - ">="
|
105
108
|
- !ruby/object:Gem::Version
|
106
109
|
version: 4.2.5
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '6'
|
107
113
|
- !ruby/object:Gem::Dependency
|
108
114
|
name: bibtex-ruby
|
109
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -550,11 +556,16 @@ files:
|
|
550
556
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/with_pages.yml
|
551
557
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_ORCID.yml
|
552
558
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_no_ORCID.yml
|
559
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/author.yml
|
553
560
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_familyName.yml
|
561
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_Thai.yml
|
554
562
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order.yml
|
555
563
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order_with_ORCID.yml
|
556
564
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_sort-order.yml
|
565
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/hyper-authorship.yml
|
557
566
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/is_organization.yml
|
567
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/multiple_author_names.yml
|
568
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/multiple_author_names_in_one_field.yml
|
558
569
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_comma.yml
|
559
570
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_family_name.yml
|
560
571
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_id.yml
|
@@ -568,7 +579,12 @@ files:
|
|
568
579
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Funding_schema_version_4.yml
|
569
580
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON_IsSupplementTo.yml
|
570
581
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON_isReferencedBy.yml
|
582
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author.yml
|
583
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author_only_full_name.yml
|
584
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/author_with_scheme.yml
|
571
585
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/is_identical_to.yml
|
586
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/jsonlint.yml
|
587
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/multiple_author_names_in_one_creatorName.yml
|
572
588
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/multiple_licenses.yml
|
573
589
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/BlogPosting.yml
|
574
590
|
- spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/Dataset.yml
|