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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.crossref.org/doiRA/10.5061/dryad.8515
5
+ uri: https://api.datacite.org/prefixes/10.5061
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
- 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
- - '56'
32
+ - application/vnd.api+json; charset=utf-8
29
33
  Date:
30
- - Wed, 22 Feb 2017 17:30:25 GMT
34
+ - Sun, 12 Mar 2017 09:09:37 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
+ - '20'
51
+ X-Kong-Upstream-Latency:
52
+ - '534'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9989'
59
+ X-Request-Id:
60
+ - 7b4da6d8-21c4-4f38-beb1-a52fdfedd371
61
+ X-Runtime:
62
+ - '0.531845'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
31
65
  Connection:
32
- - close
66
+ - keep-alive
33
67
  body:
34
68
  encoding: UTF-8
35
- string: |-
36
- [
37
- {
38
- "DOI": "10.5061/dryad.8515",
39
- "RA": "DataCite"
40
- }
41
- ]
69
+ string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
42
70
  http_version:
43
- recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
71
+ recorded_at: Sun, 12 Mar 2017 09:09:37 GMT
44
72
  - request:
45
73
  method: get
46
74
  uri: https://doi.org/10.5061/dryad.8515
@@ -64,20 +92,20 @@ http_interactions:
64
92
  Location:
65
93
  - http://data.datacite.org/10.5061%2Fdryad.8515
66
94
  Expires:
67
- - Wed, 22 Feb 2017 17:30:51 GMT
95
+ - Sun, 12 Mar 2017 09:39:33 GMT
68
96
  Content-Type:
69
97
  - text/html;charset=utf-8
70
98
  Content-Length:
71
99
  - '175'
72
100
  Date:
73
- - Wed, 22 Feb 2017 17:30:25 GMT
101
+ - Sun, 12 Mar 2017 09:09:45 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.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
107
  http_version:
80
- recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
108
+ recorded_at: Sun, 12 Mar 2017 09:09:45 GMT
81
109
  - request:
82
110
  method: get
83
111
  uri: http://data.datacite.org/10.5061%2Fdryad.8515
@@ -94,24 +122,24 @@ http_interactions:
94
122
  code: 301
95
123
  message: ''
96
124
  headers:
97
- Server:
98
- - openresty/1.11.2.2
99
- Date:
100
- - Wed, 22 Feb 2017 17:30:26 GMT
101
125
  Content-Type:
102
126
  - text/html
127
+ Date:
128
+ - Sun, 12 Mar 2017 09:09:45 GMT
129
+ Location:
130
+ - https://data.datacite.org/10.5061%2Fdryad.8515
131
+ Server:
132
+ - openresty/1.11.2.2
103
133
  Content-Length:
104
134
  - '191'
105
135
  Connection:
106
136
  - keep-alive
107
- Location:
108
- - https://data.datacite.org/10.5061%2Fdryad.8515
109
137
  body:
110
138
  encoding: UTF-8
111
139
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
140
  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
141
  http_version:
114
- recorded_at: Wed, 22 Feb 2017 17:30:26 GMT
142
+ recorded_at: Sun, 12 Mar 2017 09:09:45 GMT
115
143
  - request:
116
144
  method: get
117
145
  uri: https://data.datacite.org/10.5061%2Fdryad.8515
@@ -128,26 +156,26 @@ http_interactions:
128
156
  code: 200
129
157
  message: ''
130
158
  headers:
131
- Server:
132
- - openresty/1.11.2.2
133
- Date:
134
- - Wed, 22 Feb 2017 17:30:26 GMT
135
- Content-Type:
136
- - application/vnd.datacite.datacite+xml
137
- Content-Length:
138
- - '2601'
139
- Connection:
140
- - keep-alive
159
+ Access-Control-Allow-Methods:
160
+ - GET, POST, OPTIONS
161
+ Access-Control-Allow-Origin:
162
+ - "*"
141
163
  Cache-Control:
142
164
  - no-transform, max-age=3600
165
+ Content-Type:
166
+ - application/vnd.datacite.datacite+xml
167
+ Date:
168
+ - Sun, 12 Mar 2017 09:09:46 GMT
143
169
  Last-Modified:
144
170
  - Sat, 04 Feb 2017 17:54:37 GMT
171
+ Server:
172
+ - openresty/1.11.2.2
145
173
  Vary:
146
174
  - Accept
147
- Access-Control-Allow-Origin:
148
- - "*"
149
- Access-Control-Allow-Methods:
150
- - GET, POST, OPTIONS
175
+ Content-Length:
176
+ - '2601'
177
+ Connection:
178
+ - keep-alive
151
179
  body:
152
180
  encoding: ASCII-8BIT
153
181
  string: !binary |-
@@ -210,5 +238,5 @@ http_interactions:
210
238
  ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
239
  cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
240
  http_version:
213
- recorded_at: Wed, 22 Feb 2017 17:30:26 GMT
241
+ recorded_at: Sun, 12 Mar 2017 09:09:46 GMT
214
242
  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.5061/dryad.8515
5
+ uri: https://api.datacite.org/prefixes/10.5061
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
- 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
- - '56'
32
+ - application/vnd.api+json; charset=utf-8
29
33
  Date:
30
- - Mon, 27 Feb 2017 20:46:45 GMT
34
+ - Sun, 12 Mar 2017 09:09:27 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
+ - '865'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9990'
59
+ X-Request-Id:
60
+ - 571f899a-8ac5-44ed-a1d9-12f68fce50bf
61
+ X-Runtime:
62
+ - '0.863145'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
31
65
  Connection:
32
- - close
66
+ - keep-alive
33
67
  body:
34
68
  encoding: UTF-8
35
- string: |-
36
- [
37
- {
38
- "DOI": "10.5061/dryad.8515",
39
- "RA": "DataCite"
40
- }
41
- ]
69
+ string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
42
70
  http_version:
43
- recorded_at: Mon, 27 Feb 2017 20:46:46 GMT
71
+ recorded_at: Sun, 12 Mar 2017 09:09:27 GMT
44
72
  - request:
45
73
  method: get
46
74
  uri: https://doi.org/10.5061/dryad.8515
@@ -64,20 +92,20 @@ http_interactions:
64
92
  Location:
65
93
  - http://data.datacite.org/10.5061%2Fdryad.8515
66
94
  Expires:
67
- - Mon, 27 Feb 2017 21:33:17 GMT
95
+ - Sun, 12 Mar 2017 09:39:33 GMT
68
96
  Content-Type:
69
97
  - text/html;charset=utf-8
70
98
  Content-Length:
71
99
  - '175'
72
100
  Date:
73
- - Mon, 27 Feb 2017 20:46:54 GMT
101
+ - Sun, 12 Mar 2017 09:09:36 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.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
107
  http_version:
80
- recorded_at: Mon, 27 Feb 2017 20:46:54 GMT
108
+ recorded_at: Sun, 12 Mar 2017 09:09:36 GMT
81
109
  - request:
82
110
  method: get
83
111
  uri: http://data.datacite.org/10.5061%2Fdryad.8515
@@ -94,24 +122,24 @@ http_interactions:
94
122
  code: 301
95
123
  message: ''
96
124
  headers:
97
- Server:
98
- - openresty/1.11.2.2
99
- Date:
100
- - Mon, 27 Feb 2017 20:46:54 GMT
101
125
  Content-Type:
102
126
  - text/html
127
+ Date:
128
+ - Sun, 12 Mar 2017 09:09:36 GMT
129
+ Location:
130
+ - https://data.datacite.org/10.5061%2Fdryad.8515
131
+ Server:
132
+ - openresty/1.11.2.2
103
133
  Content-Length:
104
134
  - '191'
105
135
  Connection:
106
136
  - keep-alive
107
- Location:
108
- - https://data.datacite.org/10.5061%2Fdryad.8515
109
137
  body:
110
138
  encoding: UTF-8
111
139
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
140
  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
141
  http_version:
114
- recorded_at: Mon, 27 Feb 2017 20:46:54 GMT
142
+ recorded_at: Sun, 12 Mar 2017 09:09:36 GMT
115
143
  - request:
116
144
  method: get
117
145
  uri: https://data.datacite.org/10.5061%2Fdryad.8515
@@ -128,26 +156,26 @@ http_interactions:
128
156
  code: 200
129
157
  message: ''
130
158
  headers:
131
- Server:
132
- - openresty/1.11.2.2
133
- Date:
134
- - Mon, 27 Feb 2017 20:46:55 GMT
135
- Content-Type:
136
- - application/vnd.datacite.datacite+xml
137
- Content-Length:
138
- - '2601'
139
- Connection:
140
- - keep-alive
159
+ Access-Control-Allow-Methods:
160
+ - GET, POST, OPTIONS
161
+ Access-Control-Allow-Origin:
162
+ - "*"
141
163
  Cache-Control:
142
164
  - no-transform, max-age=3600
165
+ Content-Type:
166
+ - application/vnd.datacite.datacite+xml
167
+ Date:
168
+ - Sun, 12 Mar 2017 09:09:36 GMT
143
169
  Last-Modified:
144
170
  - Sat, 04 Feb 2017 17:54:37 GMT
171
+ Server:
172
+ - openresty/1.11.2.2
145
173
  Vary:
146
174
  - Accept
147
- Access-Control-Allow-Origin:
148
- - "*"
149
- Access-Control-Allow-Methods:
150
- - GET, POST, OPTIONS
175
+ Content-Length:
176
+ - '2601'
177
+ Connection:
178
+ - keep-alive
151
179
  body:
152
180
  encoding: ASCII-8BIT
153
181
  string: !binary |-
@@ -210,5 +238,5 @@ http_interactions:
210
238
  ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
239
  cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
240
  http_version:
213
- recorded_at: Mon, 27 Feb 2017 20:46:54 GMT
241
+ recorded_at: Sun, 12 Mar 2017 09:09:36 GMT
214
242
  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.5061/dryad.8515
5
+ uri: https://api.datacite.org/prefixes/10.5061
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
- 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
- - '56'
32
+ - application/vnd.api+json; charset=utf-8
29
33
  Date:
30
- - Wed, 22 Feb 2017 17:30:23 GMT
34
+ - Sun, 12 Mar 2017 09:09:56 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
+ - '5'
51
+ X-Kong-Upstream-Latency:
52
+ - '543'
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.1.2
55
+ X-Ratelimit-Limit-Hour:
56
+ - '10000'
57
+ X-Ratelimit-Remaining-Hour:
58
+ - '9987'
59
+ X-Request-Id:
60
+ - 70851c78-7c82-4edd-abd0-b215c74e3963
61
+ X-Runtime:
62
+ - '0.542494'
63
+ X-Xss-Protection:
64
+ - 1; mode=block
31
65
  Connection:
32
- - close
66
+ - keep-alive
33
67
  body:
34
68
  encoding: UTF-8
35
- string: |-
36
- [
37
- {
38
- "DOI": "10.5061/dryad.8515",
39
- "RA": "DataCite"
40
- }
41
- ]
69
+ string: '{"data":{"id":"10.5061","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:07Z"}}}'
42
70
  http_version:
43
- recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
71
+ recorded_at: Sun, 12 Mar 2017 09:09:56 GMT
44
72
  - request:
45
73
  method: get
46
74
  uri: https://doi.org/10.5061/dryad.8515
@@ -64,20 +92,20 @@ http_interactions:
64
92
  Location:
65
93
  - http://data.datacite.org/10.5061%2Fdryad.8515
66
94
  Expires:
67
- - Wed, 22 Feb 2017 17:30:51 GMT
95
+ - Sun, 12 Mar 2017 09:39:33 GMT
68
96
  Content-Type:
69
97
  - text/html;charset=utf-8
70
98
  Content-Length:
71
99
  - '175'
72
100
  Date:
73
- - Wed, 22 Feb 2017 17:30:24 GMT
101
+ - Sun, 12 Mar 2017 09:10:04 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.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
107
  http_version:
80
- recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
108
+ recorded_at: Sun, 12 Mar 2017 09:10:05 GMT
81
109
  - request:
82
110
  method: get
83
111
  uri: http://data.datacite.org/10.5061%2Fdryad.8515
@@ -94,24 +122,24 @@ http_interactions:
94
122
  code: 301
95
123
  message: ''
96
124
  headers:
97
- Server:
98
- - openresty/1.11.2.2
99
- Date:
100
- - Wed, 22 Feb 2017 17:30:24 GMT
101
125
  Content-Type:
102
126
  - text/html
127
+ Date:
128
+ - Sun, 12 Mar 2017 09:10:05 GMT
129
+ Location:
130
+ - https://data.datacite.org/10.5061%2Fdryad.8515
131
+ Server:
132
+ - openresty/1.11.2.2
103
133
  Content-Length:
104
134
  - '191'
105
135
  Connection:
106
136
  - keep-alive
107
- Location:
108
- - https://data.datacite.org/10.5061%2Fdryad.8515
109
137
  body:
110
138
  encoding: UTF-8
111
139
  string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
140
  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
141
  http_version:
114
- recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
142
+ recorded_at: Sun, 12 Mar 2017 09:10:05 GMT
115
143
  - request:
116
144
  method: get
117
145
  uri: https://data.datacite.org/10.5061%2Fdryad.8515
@@ -128,26 +156,26 @@ http_interactions:
128
156
  code: 200
129
157
  message: ''
130
158
  headers:
131
- Server:
132
- - openresty/1.11.2.2
133
- Date:
134
- - Wed, 22 Feb 2017 17:30:25 GMT
135
- Content-Type:
136
- - application/vnd.datacite.datacite+xml
137
- Content-Length:
138
- - '2601'
139
- Connection:
140
- - keep-alive
159
+ Access-Control-Allow-Methods:
160
+ - GET, POST, OPTIONS
161
+ Access-Control-Allow-Origin:
162
+ - "*"
141
163
  Cache-Control:
142
164
  - no-transform, max-age=3600
165
+ Content-Type:
166
+ - application/vnd.datacite.datacite+xml
167
+ Date:
168
+ - Sun, 12 Mar 2017 09:10:05 GMT
143
169
  Last-Modified:
144
170
  - Sat, 04 Feb 2017 17:54:37 GMT
171
+ Server:
172
+ - openresty/1.11.2.2
145
173
  Vary:
146
174
  - Accept
147
- Access-Control-Allow-Origin:
148
- - "*"
149
- Access-Control-Allow-Methods:
150
- - GET, POST, OPTIONS
175
+ Content-Length:
176
+ - '2601'
177
+ Connection:
178
+ - keep-alive
151
179
  body:
152
180
  encoding: ASCII-8BIT
153
181
  string: !binary |-
@@ -210,5 +238,5 @@ http_interactions:
210
238
  ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
239
  cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
240
  http_version:
213
- recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
241
+ recorded_at: Sun, 12 Mar 2017 09:10:05 GMT
214
242
  recorded_with: VCR 3.0.3