bolognese 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/bolognese/doi_utils.rb +10 -11
  4. data/lib/bolognese/utils.rb +2 -1
  5. data/lib/bolognese/version.rb +1 -1
  6. data/spec/doi_utils_spec.rb +14 -9
  7. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +55 -25
  8. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +55 -25
  9. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +55 -25
  10. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +53 -25
  11. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +55 -25
  12. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +75 -45
  13. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +75 -45
  14. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +73 -45
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +73 -45
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +73 -45
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +62 -53
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +62 -53
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +62 -53
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +62 -53
  21. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/crossref.yml +74 -0
  22. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/datacite.yml +74 -0
  23. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/medra.yml +72 -0
  24. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_found.yml +67 -0
  25. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +50 -20
  26. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +50 -20
  27. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +50 -20
  28. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +48 -20
  29. data/spec/utils_spec.rb +2 -3
  30. metadata +5 -15
  31. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_bibtex.yml +0 -760
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_crossref.yml +0 -760
  33. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_datacite.yml +0 -760
  34. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_schema_org.yml +0 -760
  35. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_bibtex.yml +0 -214
  36. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_datacite.yml +0 -214
  37. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_schema_org.yml +0 -214
  38. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_bibtex.yml +0 -653
  39. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_datacite.yml +0 -653
  40. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_schema_org.yml +0 -653
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml +0 -971
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml +0 -971
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml +0 -971
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/not_found.yml +0 -971
@@ -16,30 +16,32 @@ http_interactions:
16
16
  code: 302
17
17
  message: ''
18
18
  headers:
19
- Server:
20
- - openresty/1.11.2.2
21
- Date:
22
- - Wed, 22 Feb 2017 17:30:09 GMT
23
19
  Content-Type:
24
20
  - text/html; charset=utf-8
25
- Content-Length:
26
- - '313'
27
- Connection:
28
- - keep-alive
21
+ Date:
22
+ - Sun, 12 Mar 2017 09:09:25 GMT
23
+ Location:
24
+ - "/eating-your-own-dog-food/"
25
+ Server:
26
+ - openresty/1.11.2.2
27
+ Via:
28
+ - kong/0.10.0rc3
29
29
  X-Amz-Error-Code:
30
30
  - Found
31
31
  X-Amz-Error-Message:
32
32
  - Resource Found
33
- X-Amz-Request-Id:
34
- - E369941E8C247C00
35
33
  X-Amz-Id-2:
36
- - 5MYkrd5RpI0KNxA7HjdpAmc0hcePnX5muVSiaQ92AzsGwUfulGNL9VF0ecaPnAMsiFhmPmg/nUM=
37
- Location:
38
- - "/eating-your-own-dog-food/"
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Access-Control-Allow-Methods:
42
- - GET, POST, OPTIONS
34
+ - 9jdHgQ+9GyJo1YT9bvC8o//COhxkhwYGsvqawXX/be7mygkdHKyMyzD6jxz/DMpAS1B4krOqkT8=
35
+ X-Amz-Request-Id:
36
+ - ED6352DA16FA8CA4
37
+ X-Kong-Proxy-Latency:
38
+ - '1'
39
+ X-Kong-Upstream-Latency:
40
+ - '6'
41
+ Content-Length:
42
+ - '313'
43
+ Connection:
44
+ - keep-alive
43
45
  body:
44
46
  encoding: UTF-8
45
47
  string: |
@@ -50,14 +52,14 @@ http_interactions:
50
52
  <ul>
51
53
  <li>Code: Found</li>
52
54
  <li>Message: Resource Found</li>
53
- <li>RequestId: E369941E8C247C00</li>
54
- <li>HostId: 5MYkrd5RpI0KNxA7HjdpAmc0hcePnX5muVSiaQ92AzsGwUfulGNL9VF0ecaPnAMsiFhmPmg/nUM=</li>
55
+ <li>RequestId: ED6352DA16FA8CA4</li>
56
+ <li>HostId: 9jdHgQ+9GyJo1YT9bvC8o//COhxkhwYGsvqawXX/be7mygkdHKyMyzD6jxz/DMpAS1B4krOqkT8=</li>
55
57
  </ul>
56
58
  <hr/>
57
59
  </body>
58
60
  </html>
59
61
  http_version:
60
- recorded_at: Wed, 22 Feb 2017 17:30:09 GMT
62
+ recorded_at: Sun, 12 Mar 2017 09:09:25 GMT
61
63
  - request:
62
64
  method: get
63
65
  uri: https://blog.datacite.org/eating-your-own-dog-food/
@@ -74,32 +76,34 @@ http_interactions:
74
76
  code: 200
75
77
  message: ''
76
78
  headers:
79
+ Cache-Control:
80
+ - max-age=31536000
81
+ Content-Type:
82
+ - text/html; charset=UTF-8
83
+ Date:
84
+ - Sun, 12 Mar 2017 09:09:25 GMT
85
+ Etag:
86
+ - '"310417d9f61ee203489a9dc00d91e347"'
87
+ Last-Modified:
88
+ - Thu, 02 Mar 2017 17:22:04 GMT
77
89
  Server:
78
90
  - openresty/1.11.2.2
79
- Date:
80
- - Wed, 22 Feb 2017 17:30:09 GMT
81
- Content-Type:
82
- - text/html
83
- Content-Length:
84
- - '24492'
85
- Connection:
86
- - keep-alive
91
+ Via:
92
+ - kong/0.10.0rc3
87
93
  X-Amz-Id-2:
88
- - BLE86wvHxHwuMfZ2Qbt0DbVB1LNGmLRmR43q1CZ/l2vOEr7aKXyZcbe10NbSmxaw71IkoRQfXJk=
94
+ - wkYtg+dnecY/MD1Mx/LU53tySAsIInG/LHiAL2lsPRejQlO231qBZmdDfzFcNj0UAHII8fwmU5w=
89
95
  X-Amz-Request-Id:
90
- - 01F36103DDF6A0FC
91
- Cache-Control:
92
- - max-age=31536000
93
- Last-Modified:
94
- - Tue, 17 Jan 2017 11:38:17 GMT
96
+ - 92EB1ED78F76468C
95
97
  X-Amz-Version-Id:
96
- - EzciZoWvrAjlf20yy3iZwuejZmA67F0d
97
- Etag:
98
- - '"7b74efae0346df7609adc5535ec2259d"'
99
- Access-Control-Allow-Origin:
100
- - "*"
101
- Access-Control-Allow-Methods:
102
- - GET, POST, OPTIONS
98
+ - wv1VlqcPGRvO2ygnBw0tDdqE4NIBpPjE
99
+ X-Kong-Proxy-Latency:
100
+ - '0'
101
+ X-Kong-Upstream-Latency:
102
+ - '18'
103
+ Content-Length:
104
+ - '24743'
105
+ Connection:
106
+ - keep-alive
103
107
  body:
104
108
  encoding: ASCII-8BIT
105
109
  string: !binary |-
@@ -637,17 +641,22 @@ http_interactions:
637
641
  cmM9Ii9qYXZhc2NyaXB0cy9pbmRleC5qcyI+PC9zY3JpcHQ+CjxzY3JpcHQg
638
642
  c3JjPSIvamF2YXNjcmlwdHMvc2VhcmNoLmpzIj48L3NjcmlwdD4KPHNjcmlw
639
643
  dCBpZD0iZHNxLWNvdW50LXNjciIgc3JjPSIvL2RhdGFjaXRlLmRpc3F1cy5j
640
- b20vY291bnQuanMiIGFzeW5jPjwvc2NyaXB0PgoKICAgIDxzY3JpcHQ+CiAg
641
- KGZ1bmN0aW9uKGkscyxvLGcscixhLG0pe2lbJ0dvb2dsZUFuYWx5dGljc09i
642
- amVjdCddPXI7aVtyXT1pW3JdfHxmdW5jdGlvbigpewogIChpW3JdLnE9aVty
643
- XS5xfHxbXSkucHVzaChhcmd1bWVudHMpfSxpW3JdLmw9MSpuZXcgRGF0ZSgp
644
- O2E9cy5jcmVhdGVFbGVtZW50KG8pLAogIG09cy5nZXRFbGVtZW50c0J5VGFn
645
- TmFtZShvKVswXTthLmFzeW5jPTE7YS5zcmM9ZzttLnBhcmVudE5vZGUuaW5z
646
- ZXJ0QmVmb3JlKGEsbSkKICB9KSh3aW5kb3csZG9jdW1lbnQsJ3NjcmlwdCcs
647
- Jy8vd3d3Lmdvb2dsZS1hbmFseXRpY3MuY29tL2FuYWx5dGljcy5qcycsJ2dh
648
- Jyk7CgogIGdhKCdjcmVhdGUnLCAnVUEtMjI4MDYxOTYtNicsICdhdXRvJyk7
649
- CiAgZ2EoJ3NlbmQnLCAncGFnZXZpZXcnKTsKCjwvc2NyaXB0PgoKICA8L2Jv
650
- ZHk+CjwvaHRtbD4K
644
+ b20vY291bnQuanMiIGFzeW5jPjwvc2NyaXB0Pgo8c2NyaXB0PgogICQuZ2V0
645
+ SlNPTignaHR0cHM6Ly9kYXRhLmRhdGFjaXRlLm9yZy9jb250ZW50LXJlc29s
646
+ dmVyL2FwcGxpY2F0aW9uL3ZuZC5zY2hlbWFvcmcubGQranNvbi8xMC41NDM4
647
+ L1ROSFgtNTRDRycsIGZ1bmN0aW9uKCBkYXRhICkgewogICAgJCgiI3NjaGVt
648
+ YV9vcmciKS5odG1sKCBkYXRhICk7CiAgfSk7Cjwvc2NyaXB0Pgo8c2NyaXB0
649
+ IHR5cGU9ImFwcGxpY2F0aW9uL2xkK2pzb24iIGlkPSJzY2hlbWFfb3JnIj4K
650
+ PC9zY3JpcHQ+CgogICAgPHNjcmlwdD4KICAoZnVuY3Rpb24oaSxzLG8sZyxy
651
+ LGEsbSl7aVsnR29vZ2xlQW5hbHl0aWNzT2JqZWN0J109cjtpW3JdPWlbcl18
652
+ fGZ1bmN0aW9uKCl7CiAgKGlbcl0ucT1pW3JdLnF8fFtdKS5wdXNoKGFyZ3Vt
653
+ ZW50cyl9LGlbcl0ubD0xKm5ldyBEYXRlKCk7YT1zLmNyZWF0ZUVsZW1lbnQo
654
+ byksCiAgbT1zLmdldEVsZW1lbnRzQnlUYWdOYW1lKG8pWzBdO2EuYXN5bmM9
655
+ MTthLnNyYz1nO20ucGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUoYSxtKQogIH0p
656
+ KHdpbmRvdyxkb2N1bWVudCwnc2NyaXB0JywnLy93d3cuZ29vZ2xlLWFuYWx5
657
+ dGljcy5jb20vYW5hbHl0aWNzLmpzJywnZ2EnKTsKCiAgZ2EoJ2NyZWF0ZScs
658
+ ICdVQS0yMjgwNjE5Ni02JywgJ2F1dG8nKTsKICBnYSgnc2VuZCcsICdwYWdl
659
+ dmlldycpOwoKPC9zY3JpcHQ+CgogIDwvYm9keT4KPC9odG1sPgo=
651
660
  http_version:
652
- recorded_at: Wed, 22 Feb 2017 17:30:09 GMT
661
+ recorded_at: Sun, 12 Mar 2017 09:09:25 GMT
653
662
  recorded_with: VCR 3.0.3
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.datacite.org/prefixes/10.1371
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-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, OPTIONS
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Access-Control-Max-Age:
28
+ - '1728000'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Date:
34
+ - Sun, 12 Mar 2017 09:03:18 GMT
35
+ Etag:
36
+ - W/"a078870f021fe1686525a8135b0e29b8"
37
+ Server:
38
+ - openresty/1.11.2.2
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ Via:
44
+ - kong/0.10.0rc3
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Kong-Proxy-Latency:
50
+ - '1'
51
+ X-Kong-Upstream-Latency:
52
+ - '473'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9998'
59
+ X-Request-Id:
60
+ - 56485efe-d66a-4061-8620-9f61b46aec2e
61
+ X-Runtime:
62
+ - '0.472139'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
65
+ Content-Length:
66
+ - '124'
67
+ Connection:
68
+ - keep-alive
69
+ body:
70
+ encoding: UTF-8
71
+ string: '{"data":{"id":"10.1371","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:47:32Z"}}}'
72
+ http_version:
73
+ recorded_at: Sun, 12 Mar 2017 09:03:18 GMT
74
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.datacite.org/prefixes/10.5061
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-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, OPTIONS
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Access-Control-Max-Age:
28
+ - '1728000'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Date:
34
+ - Sun, 12 Mar 2017 09:03:17 GMT
35
+ Etag:
36
+ - W/"1eb3f4f371821b1becc6cd25a71755ce"
37
+ Server:
38
+ - openresty/1.11.2.2
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ Via:
44
+ - kong/0.10.0rc3
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Kong-Proxy-Latency:
50
+ - '2'
51
+ X-Kong-Upstream-Latency:
52
+ - '616'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9999'
59
+ X-Request-Id:
60
+ - a36a73fd-6359-4239-a885-c8ad34090655
61
+ X-Runtime:
62
+ - '0.615409'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
65
+ Content-Length:
66
+ - '124'
67
+ Connection:
68
+ - keep-alive
69
+ body:
70
+ encoding: UTF-8
71
+ string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
72
+ http_version:
73
+ recorded_at: Sun, 12 Mar 2017 09:03:17 GMT
74
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,72 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.datacite.org/prefixes/10.1392
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-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, OPTIONS
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Access-Control-Max-Age:
28
+ - '1728000'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/vnd.api+json; charset=utf-8
33
+ Date:
34
+ - Sun, 12 Mar 2017 09:03:18 GMT
35
+ Etag:
36
+ - W/"f8c9b097aad19d4351c99fa3da69edd0"
37
+ Server:
38
+ - openresty/1.11.2.2
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ Via:
44
+ - kong/0.10.0rc3
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Kong-Proxy-Latency:
50
+ - '1'
51
+ X-Kong-Upstream-Latency:
52
+ - '568'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9997'
59
+ X-Request-Id:
60
+ - 67d89447-f3f4-4cc3-bef6-dbee8c474a4c
61
+ X-Runtime:
62
+ - '0.566509'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
65
+ Connection:
66
+ - keep-alive
67
+ body:
68
+ encoding: UTF-8
69
+ string: '{"data":{"id":"10.1392","type":"prefixes","attributes":{"registration-agency":"mEDRA","updated":"2016-09-21T20:02:33Z"}}}'
70
+ http_version:
71
+ recorded_at: Sun, 12 Mar 2017 09:03:19 GMT
72
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.datacite.org/prefixes/10.99999
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: 404
17
+ message: ''
18
+ headers:
19
+ Access-Control-Allow-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Sun, 12 Mar 2017 09:03:19 GMT
31
+ Server:
32
+ - openresty/1.11.2.2
33
+ Status:
34
+ - 404 Not Found
35
+ Vary:
36
+ - Accept-Encoding
37
+ Via:
38
+ - kong/0.10.0rc3
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Kong-Proxy-Latency:
44
+ - '6'
45
+ X-Kong-Upstream-Latency:
46
+ - '611'
47
+ X-Powered-By:
48
+ - Phusion Passenger 5.1.2
49
+ X-Ratelimit-Limit-Hour:
50
+ - '10000'
51
+ X-Ratelimit-Remaining-Hour:
52
+ - '9996'
53
+ X-Request-Id:
54
+ - 1ca09f30-05be-4547-8113-c9a8870284e4
55
+ X-Runtime:
56
+ - '0.609896'
57
+ X-Xss-Protection:
58
+ - 1; mode=block
59
+ Connection:
60
+ - keep-alive
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"errors":[{"status":"404","title":"The resource you are looking for
64
+ doesn''t exist."}]}'
65
+ http_version:
66
+ recorded_at: Sun, 12 Mar 2017 09:03:19 GMT
67
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.crossref.org/doiRA/10.1371/journal.pone.0000030
5
+ uri: https://api.datacite.org/prefixes/10.1371
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,29 +16,59 @@ http_interactions:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Server:
20
- - Apache-Coyote/1.1
21
- Crossref-Deployment-Name:
22
- - svc1-1
19
+ Access-Control-Allow-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, OPTIONS
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Access-Control-Max-Age:
28
+ - '1728000'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
23
31
  Content-Type:
24
- - application/json;charset=UTF-8
25
- Content-Language:
26
- - en-US
27
- Content-Length:
28
- - '66'
32
+ - application/vnd.api+json; charset=utf-8
29
33
  Date:
30
- - Wed, 22 Feb 2017 17:15:32 GMT
34
+ - Sun, 12 Mar 2017 08:48:43 GMT
35
+ Etag:
36
+ - W/"a078870f021fe1686525a8135b0e29b8"
37
+ Server:
38
+ - openresty/1.11.2.2
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ Via:
44
+ - kong/0.10.0rc3
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Kong-Proxy-Latency:
50
+ - '19'
51
+ X-Kong-Upstream-Latency:
52
+ - '514'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9998'
59
+ X-Request-Id:
60
+ - a8bc01a5-52cf-4f2b-8db4-7c736c8d71ba
61
+ X-Runtime:
62
+ - '0.513586'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
65
+ Content-Length:
66
+ - '124'
31
67
  Connection:
32
- - close
68
+ - keep-alive
33
69
  body:
34
70
  encoding: UTF-8
35
- string: |-
36
- [
37
- {
38
- "DOI": "10.1371/journal.pone.0000030",
39
- "RA": "Crossref"
40
- }
41
- ]
71
+ string: '{"data":{"id":"10.1371","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:47:32Z"}}}'
42
72
  http_version:
43
- recorded_at: Wed, 22 Feb 2017 17:15:32 GMT
73
+ recorded_at: Sun, 12 Mar 2017 08:48:43 GMT
44
74
  recorded_with: VCR 3.0.3