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
@@ -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.7554
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -16,31 +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
|
-
- '57'
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
29
33
|
Date:
|
30
|
-
-
|
34
|
+
- Sun, 12 Mar 2017 09:08:57 GMT
|
35
|
+
Etag:
|
36
|
+
- W/"daf85afdb45f3c2713bc7e75916ba82a"
|
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
|
+
- '738'
|
53
|
+
X-Powered-By:
|
54
|
+
- Phusion Passenger 5.1.2
|
55
|
+
X-Ratelimit-Limit-Hour:
|
56
|
+
- '10000'
|
57
|
+
X-Ratelimit-Remaining-Hour:
|
58
|
+
- '9993'
|
59
|
+
X-Request-Id:
|
60
|
+
- 7c66ad50-27a7-494e-9440-afd797194982
|
61
|
+
X-Runtime:
|
62
|
+
- '0.736820'
|
63
|
+
X-Xss-Protection:
|
64
|
+
- 1; mode=block
|
31
65
|
Connection:
|
32
|
-
-
|
66
|
+
- keep-alive
|
33
67
|
body:
|
34
68
|
encoding: UTF-8
|
35
|
-
string:
|
36
|
-
[
|
37
|
-
{
|
38
|
-
"DOI": "10.7554/elife.01567",
|
39
|
-
"RA": "Crossref"
|
40
|
-
}
|
41
|
-
]
|
69
|
+
string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
|
42
70
|
http_version:
|
43
|
-
recorded_at:
|
71
|
+
recorded_at: Sun, 12 Mar 2017 09:08:57 GMT
|
44
72
|
- request:
|
45
73
|
method: get
|
46
74
|
uri: https://doi.org/10.7554/elife.01567
|
@@ -64,20 +92,20 @@ http_interactions:
|
|
64
92
|
Location:
|
65
93
|
- http://data.crossref.org/10.7554%2Felife.01567
|
66
94
|
Expires:
|
67
|
-
-
|
95
|
+
- Sun, 12 Mar 2017 09:59:19 GMT
|
68
96
|
Content-Type:
|
69
97
|
- text/html;charset=utf-8
|
70
98
|
Content-Length:
|
71
99
|
- '177'
|
72
100
|
Date:
|
73
|
-
-
|
101
|
+
- Sun, 12 Mar 2017 09:09:05 GMT
|
74
102
|
body:
|
75
103
|
encoding: UTF-8
|
76
104
|
string: |-
|
77
105
|
<html><head><title>Handle Redirect</title></head>
|
78
106
|
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
79
107
|
http_version:
|
80
|
-
recorded_at:
|
108
|
+
recorded_at: Sun, 12 Mar 2017 09:09:06 GMT
|
81
109
|
- request:
|
82
110
|
method: get
|
83
111
|
uri: http://data.crossref.org/10.7554%2Felife.01567
|
@@ -113,7 +141,7 @@ http_interactions:
|
|
113
141
|
Server:
|
114
142
|
- http-kit
|
115
143
|
Date:
|
116
|
-
-
|
144
|
+
- Sun, 12 Mar 2017 09:09:06 GMT
|
117
145
|
Connection:
|
118
146
|
- close
|
119
147
|
body:
|
@@ -756,5 +784,5 @@ http_interactions:
|
|
756
784
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
757
785
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
758
786
|
http_version:
|
759
|
-
recorded_at:
|
787
|
+
recorded_at: Sun, 12 Mar 2017 09:09:06 GMT
|
760
788
|
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.7554
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -16,31 +16,61 @@ 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
|
-
- '57'
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
29
33
|
Date:
|
30
|
-
-
|
34
|
+
- Sun, 12 Mar 2017 09:08:38 GMT
|
35
|
+
Etag:
|
36
|
+
- W/"daf85afdb45f3c2713bc7e75916ba82a"
|
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
|
+
- '763'
|
53
|
+
X-Powered-By:
|
54
|
+
- Phusion Passenger 5.1.2
|
55
|
+
X-Ratelimit-Limit-Hour:
|
56
|
+
- '10000'
|
57
|
+
X-Ratelimit-Remaining-Hour:
|
58
|
+
- '9995'
|
59
|
+
X-Request-Id:
|
60
|
+
- 908532d6-8aca-4090-9663-72b0d44a6aca
|
61
|
+
X-Runtime:
|
62
|
+
- '0.761693'
|
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.7554/elife.01567",
|
39
|
-
"RA": "Crossref"
|
40
|
-
}
|
41
|
-
]
|
71
|
+
string: '{"data":{"id":"10.7554","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:07:27Z"}}}'
|
42
72
|
http_version:
|
43
|
-
recorded_at:
|
73
|
+
recorded_at: Sun, 12 Mar 2017 09:08:38 GMT
|
44
74
|
- request:
|
45
75
|
method: get
|
46
76
|
uri: https://doi.org/10.7554/elife.01567
|
@@ -64,20 +94,20 @@ http_interactions:
|
|
64
94
|
Location:
|
65
95
|
- http://data.crossref.org/10.7554%2Felife.01567
|
66
96
|
Expires:
|
67
|
-
-
|
97
|
+
- Sun, 12 Mar 2017 09:59:19 GMT
|
68
98
|
Content-Type:
|
69
99
|
- text/html;charset=utf-8
|
70
100
|
Content-Length:
|
71
101
|
- '177'
|
72
102
|
Date:
|
73
|
-
-
|
103
|
+
- Sun, 12 Mar 2017 09:08:46 GMT
|
74
104
|
body:
|
75
105
|
encoding: UTF-8
|
76
106
|
string: |-
|
77
107
|
<html><head><title>Handle Redirect</title></head>
|
78
108
|
<body><a href="http://data.crossref.org/10.7554%2Felife.01567">http://data.crossref.org/10.7554%2Felife.01567</a></body></html>
|
79
109
|
http_version:
|
80
|
-
recorded_at:
|
110
|
+
recorded_at: Sun, 12 Mar 2017 09:08:46 GMT
|
81
111
|
- request:
|
82
112
|
method: get
|
83
113
|
uri: http://data.crossref.org/10.7554%2Felife.01567
|
@@ -113,7 +143,7 @@ http_interactions:
|
|
113
143
|
Server:
|
114
144
|
- http-kit
|
115
145
|
Date:
|
116
|
-
-
|
146
|
+
- Sun, 12 Mar 2017 09:08:47 GMT
|
117
147
|
Connection:
|
118
148
|
- close
|
119
149
|
body:
|
@@ -756,5 +786,5 @@ http_interactions:
|
|
756
786
|
aWNsZT4NCiAgICAgIDwvam91cm5hbD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8
|
757
787
|
L2RvaV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
758
788
|
http_version:
|
759
|
-
recorded_at:
|
789
|
+
recorded_at: Sun, 12 Mar 2017 09:08:47 GMT
|
760
790
|
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.5061
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -16,31 +16,61 @@ 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
|
-
- '56'
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
29
33
|
Date:
|
30
|
-
-
|
34
|
+
- Sun, 12 Mar 2017 09:09:47 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
|
+
- '1'
|
51
|
+
X-Kong-Upstream-Latency:
|
52
|
+
- '795'
|
53
|
+
X-Powered-By:
|
54
|
+
- Phusion Passenger 5.1.2
|
55
|
+
X-Ratelimit-Limit-Hour:
|
56
|
+
- '10000'
|
57
|
+
X-Ratelimit-Remaining-Hour:
|
58
|
+
- '9988'
|
59
|
+
X-Request-Id:
|
60
|
+
- 71fc2855-5f89-491a-892d-d3d07db7fcf6
|
61
|
+
X-Runtime:
|
62
|
+
- '0.793704'
|
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.5061/dryad.8515",
|
39
|
-
"RA": "DataCite"
|
40
|
-
}
|
41
|
-
]
|
71
|
+
string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
|
42
72
|
http_version:
|
43
|
-
recorded_at:
|
73
|
+
recorded_at: Sun, 12 Mar 2017 09:09:47 GMT
|
44
74
|
- request:
|
45
75
|
method: get
|
46
76
|
uri: https://doi.org/10.5061/dryad.8515
|
@@ -64,20 +94,20 @@ http_interactions:
|
|
64
94
|
Location:
|
65
95
|
- http://data.datacite.org/10.5061%2Fdryad.8515
|
66
96
|
Expires:
|
67
|
-
-
|
97
|
+
- Sun, 12 Mar 2017 09:39:33 GMT
|
68
98
|
Content-Type:
|
69
99
|
- text/html;charset=utf-8
|
70
100
|
Content-Length:
|
71
101
|
- '175'
|
72
102
|
Date:
|
73
|
-
-
|
103
|
+
- Sun, 12 Mar 2017 09:09:55 GMT
|
74
104
|
body:
|
75
105
|
encoding: UTF-8
|
76
106
|
string: |-
|
77
107
|
<html><head><title>Handle Redirect</title></head>
|
78
108
|
<body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
|
79
109
|
http_version:
|
80
|
-
recorded_at:
|
110
|
+
recorded_at: Sun, 12 Mar 2017 09:09:55 GMT
|
81
111
|
- request:
|
82
112
|
method: get
|
83
113
|
uri: http://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -94,24 +124,24 @@ http_interactions:
|
|
94
124
|
code: 301
|
95
125
|
message: ''
|
96
126
|
headers:
|
97
|
-
Server:
|
98
|
-
- openresty/1.11.2.2
|
99
|
-
Date:
|
100
|
-
- Wed, 22 Feb 2017 17:20:29 GMT
|
101
127
|
Content-Type:
|
102
128
|
- text/html
|
129
|
+
Date:
|
130
|
+
- Sun, 12 Mar 2017 09:09:55 GMT
|
131
|
+
Location:
|
132
|
+
- https://data.datacite.org/10.5061%2Fdryad.8515
|
133
|
+
Server:
|
134
|
+
- openresty/1.11.2.2
|
103
135
|
Content-Length:
|
104
136
|
- '191'
|
105
137
|
Connection:
|
106
138
|
- keep-alive
|
107
|
-
Location:
|
108
|
-
- https://data.datacite.org/10.5061%2Fdryad.8515
|
109
139
|
body:
|
110
140
|
encoding: UTF-8
|
111
141
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
112
142
|
bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
|
113
143
|
http_version:
|
114
|
-
recorded_at:
|
144
|
+
recorded_at: Sun, 12 Mar 2017 09:09:55 GMT
|
115
145
|
- request:
|
116
146
|
method: get
|
117
147
|
uri: https://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -128,26 +158,26 @@ http_interactions:
|
|
128
158
|
code: 200
|
129
159
|
message: ''
|
130
160
|
headers:
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
-
|
135
|
-
Content-Type:
|
136
|
-
- application/vnd.datacite.datacite+xml
|
137
|
-
Content-Length:
|
138
|
-
- '2601'
|
139
|
-
Connection:
|
140
|
-
- keep-alive
|
161
|
+
Access-Control-Allow-Methods:
|
162
|
+
- GET, POST, OPTIONS
|
163
|
+
Access-Control-Allow-Origin:
|
164
|
+
- "*"
|
141
165
|
Cache-Control:
|
142
166
|
- no-transform, max-age=3600
|
167
|
+
Content-Type:
|
168
|
+
- application/vnd.datacite.datacite+xml
|
169
|
+
Date:
|
170
|
+
- Sun, 12 Mar 2017 09:09:55 GMT
|
143
171
|
Last-Modified:
|
144
172
|
- Sat, 04 Feb 2017 17:54:37 GMT
|
173
|
+
Server:
|
174
|
+
- openresty/1.11.2.2
|
145
175
|
Vary:
|
146
176
|
- Accept
|
147
|
-
|
148
|
-
-
|
149
|
-
|
150
|
-
-
|
177
|
+
Content-Length:
|
178
|
+
- '2601'
|
179
|
+
Connection:
|
180
|
+
- keep-alive
|
151
181
|
body:
|
152
182
|
encoding: ASCII-8BIT
|
153
183
|
string: !binary |-
|
@@ -210,5 +240,5 @@ http_interactions:
|
|
210
240
|
ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
|
211
241
|
cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
|
212
242
|
http_version:
|
213
|
-
recorded_at:
|
243
|
+
recorded_at: Sun, 12 Mar 2017 09:09:55 GMT
|
214
244
|
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.5061
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -16,31 +16,61 @@ 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
|
-
- '56'
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
29
33
|
Date:
|
30
|
-
-
|
34
|
+
- Sun, 12 Mar 2017 09:10:05 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
|
+
- '1'
|
51
|
+
X-Kong-Upstream-Latency:
|
52
|
+
- '252'
|
53
|
+
X-Powered-By:
|
54
|
+
- Phusion Passenger 5.1.2
|
55
|
+
X-Ratelimit-Limit-Hour:
|
56
|
+
- '10000'
|
57
|
+
X-Ratelimit-Remaining-Hour:
|
58
|
+
- '9986'
|
59
|
+
X-Request-Id:
|
60
|
+
- 6e465d23-a8c3-4602-a30e-ee435ea96f6a
|
61
|
+
X-Runtime:
|
62
|
+
- '0.250432'
|
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.5061/dryad.8515",
|
39
|
-
"RA": "DataCite"
|
40
|
-
}
|
41
|
-
]
|
71
|
+
string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
|
42
72
|
http_version:
|
43
|
-
recorded_at:
|
73
|
+
recorded_at: Sun, 12 Mar 2017 09:10:06 GMT
|
44
74
|
- request:
|
45
75
|
method: get
|
46
76
|
uri: https://doi.org/10.5061/dryad.8515
|
@@ -64,20 +94,20 @@ http_interactions:
|
|
64
94
|
Location:
|
65
95
|
- http://data.datacite.org/10.5061%2Fdryad.8515
|
66
96
|
Expires:
|
67
|
-
-
|
97
|
+
- Sun, 12 Mar 2017 09:39:33 GMT
|
68
98
|
Content-Type:
|
69
99
|
- text/html;charset=utf-8
|
70
100
|
Content-Length:
|
71
101
|
- '175'
|
72
102
|
Date:
|
73
|
-
-
|
103
|
+
- Sun, 12 Mar 2017 09:10:14 GMT
|
74
104
|
body:
|
75
105
|
encoding: UTF-8
|
76
106
|
string: |-
|
77
107
|
<html><head><title>Handle Redirect</title></head>
|
78
108
|
<body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
|
79
109
|
http_version:
|
80
|
-
recorded_at:
|
110
|
+
recorded_at: Sun, 12 Mar 2017 09:10:14 GMT
|
81
111
|
- request:
|
82
112
|
method: get
|
83
113
|
uri: http://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -94,24 +124,24 @@ http_interactions:
|
|
94
124
|
code: 301
|
95
125
|
message: ''
|
96
126
|
headers:
|
97
|
-
Server:
|
98
|
-
- openresty/1.11.2.2
|
99
|
-
Date:
|
100
|
-
- Wed, 22 Feb 2017 17:30:23 GMT
|
101
127
|
Content-Type:
|
102
128
|
- text/html
|
129
|
+
Date:
|
130
|
+
- Sun, 12 Mar 2017 09:10:14 GMT
|
131
|
+
Location:
|
132
|
+
- https://data.datacite.org/10.5061%2Fdryad.8515
|
133
|
+
Server:
|
134
|
+
- openresty/1.11.2.2
|
103
135
|
Content-Length:
|
104
136
|
- '191'
|
105
137
|
Connection:
|
106
138
|
- keep-alive
|
107
|
-
Location:
|
108
|
-
- https://data.datacite.org/10.5061%2Fdryad.8515
|
109
139
|
body:
|
110
140
|
encoding: UTF-8
|
111
141
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
112
142
|
bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
|
113
143
|
http_version:
|
114
|
-
recorded_at:
|
144
|
+
recorded_at: Sun, 12 Mar 2017 09:10:14 GMT
|
115
145
|
- request:
|
116
146
|
method: get
|
117
147
|
uri: https://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -128,26 +158,26 @@ http_interactions:
|
|
128
158
|
code: 200
|
129
159
|
message: ''
|
130
160
|
headers:
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
-
|
135
|
-
Content-Type:
|
136
|
-
- application/vnd.datacite.datacite+xml
|
137
|
-
Content-Length:
|
138
|
-
- '2601'
|
139
|
-
Connection:
|
140
|
-
- keep-alive
|
161
|
+
Access-Control-Allow-Methods:
|
162
|
+
- GET, POST, OPTIONS
|
163
|
+
Access-Control-Allow-Origin:
|
164
|
+
- "*"
|
141
165
|
Cache-Control:
|
142
166
|
- no-transform, max-age=3600
|
167
|
+
Content-Type:
|
168
|
+
- application/vnd.datacite.datacite+xml
|
169
|
+
Date:
|
170
|
+
- Sun, 12 Mar 2017 09:10:14 GMT
|
143
171
|
Last-Modified:
|
144
172
|
- Sat, 04 Feb 2017 17:54:37 GMT
|
173
|
+
Server:
|
174
|
+
- openresty/1.11.2.2
|
145
175
|
Vary:
|
146
176
|
- Accept
|
147
|
-
|
148
|
-
-
|
149
|
-
|
150
|
-
-
|
177
|
+
Content-Length:
|
178
|
+
- '2601'
|
179
|
+
Connection:
|
180
|
+
- keep-alive
|
151
181
|
body:
|
152
182
|
encoding: ASCII-8BIT
|
153
183
|
string: !binary |-
|
@@ -210,5 +240,5 @@ http_interactions:
|
|
210
240
|
ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
|
211
241
|
cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
|
212
242
|
http_version:
|
213
|
-
recorded_at:
|
243
|
+
recorded_at: Sun, 12 Mar 2017 09:10:14 GMT
|
214
244
|
recorded_with: VCR 3.0.3
|