bolognese 0.8.3 → 0.8.4
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/lib/bolognese/doi_utils.rb +10 -11
- data/lib/bolognese/utils.rb +2 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/doi_utils_spec.rb +14 -9
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +55 -25
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +55 -25
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +55 -25
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +53 -25
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +55 -25
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +75 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +75 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +73 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +73 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +73 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +62 -53
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +62 -53
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +62 -53
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +62 -53
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/crossref.yml +74 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/datacite.yml +74 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/medra.yml +72 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_found.yml +67 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +50 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +50 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +50 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +48 -20
- data/spec/utils_spec.rb +2 -3
- metadata +5 -15
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_bibtex.yml +0 -760
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_crossref.yml +0 -760
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_datacite.yml +0 -760
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/as_schema_org.yml +0 -760
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_bibtex.yml +0 -214
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_datacite.yml +0 -214
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/as_schema_org.yml +0 -214
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_bibtex.yml +0 -653
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_datacite.yml +0 -653
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/as_schema_org.yml +0 -653
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml +0 -971
- 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
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
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
|
-
-
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
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:
|
54
|
-
<li>HostId:
|
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:
|
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
|
-
|
80
|
-
-
|
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
|
-
-
|
94
|
+
- wkYtg+dnecY/MD1Mx/LU53tySAsIInG/LHiAL2lsPRejQlO231qBZmdDfzFcNj0UAHII8fwmU5w=
|
89
95
|
X-Amz-Request-Id:
|
90
|
-
-
|
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
|
-
-
|
97
|
-
|
98
|
-
- '
|
99
|
-
|
100
|
-
-
|
101
|
-
|
102
|
-
-
|
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
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
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:
|
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://
|
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
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
-
|
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=
|
25
|
-
Content-Language:
|
26
|
-
- en-US
|
27
|
-
Content-Length:
|
28
|
-
- '66'
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
29
33
|
Date:
|
30
|
-
-
|
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
|
-
-
|
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:
|
73
|
+
recorded_at: Sun, 12 Mar 2017 08:48:43 GMT
|
44
74
|
recorded_with: VCR 3.0.3
|