bolognese 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +56 -0
  3. data/.travis.yml +23 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +118 -0
  6. data/LICENSE +21 -0
  7. data/README.md +3 -0
  8. data/Rakefile +12 -0
  9. data/bin/bolognese +5 -0
  10. data/bolognese.gemspec +40 -0
  11. data/lib/bolognese.rb +12 -0
  12. data/lib/bolognese/author_utils.rb +61 -0
  13. data/lib/bolognese/cli.rb +38 -0
  14. data/lib/bolognese/crossref.rb +202 -0
  15. data/lib/bolognese/datacite.rb +157 -0
  16. data/lib/bolognese/date_utils.rb +48 -0
  17. data/lib/bolognese/doi_utils.rb +48 -0
  18. data/lib/bolognese/github.rb +106 -0
  19. data/lib/bolognese/metadata.rb +30 -0
  20. data/lib/bolognese/orcid.rb +24 -0
  21. data/lib/bolognese/pid_utils.rb +23 -0
  22. data/lib/bolognese/pubmed.rb +34 -0
  23. data/lib/bolognese/string.rb +5 -0
  24. data/lib/bolognese/utils.rb +27 -0
  25. data/lib/bolognese/version.rb +3 -0
  26. data/spec/cli_spec.rb +37 -0
  27. data/spec/crossref_spec.rb +113 -0
  28. data/spec/datacite_spec.rb +49 -0
  29. data/spec/doi_spec.rb +89 -0
  30. data/spec/fixtures/crossref.xml +742 -0
  31. data/spec/fixtures/datacite.xml +40 -0
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml +760 -0
  33. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml +1476 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml +214 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml +384 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml +44 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml +44 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml +44 -0
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/not_found.yml +44 -0
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_test.yml +843 -0
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +277 -0
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +15755 -0
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +2691 -0
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +1857 -0
  45. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +93 -0
  46. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +5715 -0
  47. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml +307 -0
  48. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml +343 -0
  49. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml +44 -0
  50. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref_doi_not_url.yml +44 -0
  51. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite.yml +44 -0
  52. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite_doi_http.yml +44 -0
  53. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/orcid.yml +44 -0
  54. data/spec/metadata_spec.rb +35 -0
  55. data/spec/orcid_spec.rb +23 -0
  56. data/spec/spec_helper.rb +88 -0
  57. metadata +419 -0
@@ -0,0 +1,307 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/10.5438/4k3m-nyvg
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - application/vnd.datacite.datacite+xml
14
+ response:
15
+ status:
16
+ code: 303
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - http://data.datacite.org/10.5438%2F4k3m-nyvg
25
+ Expires:
26
+ - Wed, 15 Feb 2017 22:27:42 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '173'
31
+ Date:
32
+ - Wed, 15 Feb 2017 22:02:44 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ <html><head><title>Handle Redirect</title></head>
37
+ <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
38
+ http_version:
39
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Accept:
50
+ - application/vnd.datacite.datacite+xml
51
+ response:
52
+ status:
53
+ code: 301
54
+ message: ''
55
+ headers:
56
+ Server:
57
+ - openresty/1.11.2.2
58
+ Date:
59
+ - Wed, 15 Feb 2017 22:02:44 GMT
60
+ Content-Type:
61
+ - text/html
62
+ Content-Length:
63
+ - '191'
64
+ Connection:
65
+ - keep-alive
66
+ Location:
67
+ - https://data.datacite.org/10.5438%2F4k3m-nyvg
68
+ body:
69
+ encoding: UTF-8
70
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
+ 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"
72
+ http_version:
73
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
74
+ - request:
75
+ method: get
76
+ uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ User-Agent:
82
+ - Maremma - https://github.com/datacite/maremma
83
+ Accept:
84
+ - application/vnd.datacite.datacite+xml
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: ''
89
+ headers:
90
+ Server:
91
+ - openresty/1.11.2.2
92
+ Date:
93
+ - Wed, 15 Feb 2017 22:02:44 GMT
94
+ Content-Type:
95
+ - application/vnd.datacite.datacite+xml
96
+ Content-Length:
97
+ - '2045'
98
+ Connection:
99
+ - keep-alive
100
+ Cache-Control:
101
+ - no-transform, max-age=3600
102
+ Last-Modified:
103
+ - Mon, 09 Jan 2017 13:53:11 GMT
104
+ Vary:
105
+ - Accept
106
+ Access-Control-Allow-Origin:
107
+ - "*"
108
+ Access-Control-Allow-Methods:
109
+ - GET, POST, OPTIONS
110
+ body:
111
+ encoding: UTF-8
112
+ string: |
113
+ <?xml version="1.0" encoding="UTF-8"?>
114
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
115
+ <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
116
+ <creators>
117
+ <creator>
118
+ <creatorName>Fenner, Martin</creatorName>
119
+ <givenName>Martin</givenName>
120
+ <familyName>Fenner</familyName>
121
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
122
+ </creator>
123
+ </creators>
124
+ <titles>
125
+ <title>Eating your own Dog Food</title>
126
+ </titles>
127
+ <publisher>DataCite</publisher>
128
+ <publicationYear>2016</publicationYear>
129
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
130
+ <alternateIdentifiers>
131
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
132
+ </alternateIdentifiers>
133
+ <subjects>
134
+ <subject>datacite</subject>
135
+ <subject>doi</subject>
136
+ <subject>metadata</subject>
137
+ </subjects>
138
+ <dates>
139
+ <date dateType="Created">2016-12-20</date>
140
+ <date dateType="Issued">2016-12-20</date>
141
+ <date dateType="Updated">2016-12-20</date>
142
+ </dates>
143
+ <relatedIdentifiers>
144
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
145
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
146
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
147
+ </relatedIdentifiers>
148
+ <version>1.0</version>
149
+ <descriptions>
150
+ <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
151
+ </descriptions>
152
+ </resource>
153
+ http_version:
154
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
155
+ - request:
156
+ method: get
157
+ uri: https://doi.org/10.5438/4k3m-nyvg
158
+ body:
159
+ encoding: US-ASCII
160
+ string: ''
161
+ headers:
162
+ User-Agent:
163
+ - Maremma - https://github.com/datacite/maremma
164
+ Accept:
165
+ - application/vnd.datacite.datacite+xml
166
+ response:
167
+ status:
168
+ code: 303
169
+ message: ''
170
+ headers:
171
+ Server:
172
+ - Apache-Coyote/1.1
173
+ Vary:
174
+ - Accept
175
+ Location:
176
+ - http://data.datacite.org/10.5438%2F4k3m-nyvg
177
+ Expires:
178
+ - Wed, 15 Feb 2017 22:27:42 GMT
179
+ Content-Type:
180
+ - text/html;charset=utf-8
181
+ Content-Length:
182
+ - '173'
183
+ Date:
184
+ - Wed, 15 Feb 2017 22:02:44 GMT
185
+ body:
186
+ encoding: UTF-8
187
+ string: |-
188
+ <html><head><title>Handle Redirect</title></head>
189
+ <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
190
+ http_version:
191
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
192
+ - request:
193
+ method: get
194
+ uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
195
+ body:
196
+ encoding: US-ASCII
197
+ string: ''
198
+ headers:
199
+ User-Agent:
200
+ - Maremma - https://github.com/datacite/maremma
201
+ Accept:
202
+ - application/vnd.datacite.datacite+xml
203
+ response:
204
+ status:
205
+ code: 301
206
+ message: ''
207
+ headers:
208
+ Server:
209
+ - openresty/1.11.2.2
210
+ Date:
211
+ - Wed, 15 Feb 2017 22:02:44 GMT
212
+ Content-Type:
213
+ - text/html
214
+ Content-Length:
215
+ - '191'
216
+ Connection:
217
+ - keep-alive
218
+ Location:
219
+ - https://data.datacite.org/10.5438%2F4k3m-nyvg
220
+ body:
221
+ encoding: UTF-8
222
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
223
+ 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"
224
+ http_version:
225
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
226
+ - request:
227
+ method: get
228
+ uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
229
+ body:
230
+ encoding: US-ASCII
231
+ string: ''
232
+ headers:
233
+ User-Agent:
234
+ - Maremma - https://github.com/datacite/maremma
235
+ Accept:
236
+ - application/vnd.datacite.datacite+xml
237
+ response:
238
+ status:
239
+ code: 200
240
+ message: ''
241
+ headers:
242
+ Server:
243
+ - openresty/1.11.2.2
244
+ Date:
245
+ - Wed, 15 Feb 2017 22:02:44 GMT
246
+ Content-Type:
247
+ - application/vnd.datacite.datacite+xml
248
+ Content-Length:
249
+ - '2045'
250
+ Connection:
251
+ - keep-alive
252
+ Cache-Control:
253
+ - no-transform, max-age=3600
254
+ Last-Modified:
255
+ - Mon, 09 Jan 2017 13:53:11 GMT
256
+ Vary:
257
+ - Accept
258
+ Access-Control-Allow-Origin:
259
+ - "*"
260
+ Access-Control-Allow-Methods:
261
+ - GET, POST, OPTIONS
262
+ body:
263
+ encoding: UTF-8
264
+ string: |
265
+ <?xml version="1.0" encoding="UTF-8"?>
266
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
267
+ <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
268
+ <creators>
269
+ <creator>
270
+ <creatorName>Fenner, Martin</creatorName>
271
+ <givenName>Martin</givenName>
272
+ <familyName>Fenner</familyName>
273
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
274
+ </creator>
275
+ </creators>
276
+ <titles>
277
+ <title>Eating your own Dog Food</title>
278
+ </titles>
279
+ <publisher>DataCite</publisher>
280
+ <publicationYear>2016</publicationYear>
281
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
282
+ <alternateIdentifiers>
283
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
284
+ </alternateIdentifiers>
285
+ <subjects>
286
+ <subject>datacite</subject>
287
+ <subject>doi</subject>
288
+ <subject>metadata</subject>
289
+ </subjects>
290
+ <dates>
291
+ <date dateType="Created">2016-12-20</date>
292
+ <date dateType="Issued">2016-12-20</date>
293
+ <date dateType="Updated">2016-12-20</date>
294
+ </dates>
295
+ <relatedIdentifiers>
296
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
297
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
298
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
299
+ </relatedIdentifiers>
300
+ <version>1.0</version>
301
+ <descriptions>
302
+ <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
303
+ </descriptions>
304
+ </resource>
305
+ http_version:
306
+ recorded_at: Wed, 15 Feb 2017 22:02:44 GMT
307
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,343 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/10.5061/dryad.8515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - application/vnd.datacite.datacite+xml
14
+ response:
15
+ status:
16
+ code: 303
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - http://data.datacite.org/10.5061%2Fdryad.8515
25
+ Expires:
26
+ - Wed, 15 Feb 2017 22:27:42 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '175'
31
+ Date:
32
+ - Wed, 15 Feb 2017 22:02:45 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ <html><head><title>Handle Redirect</title></head>
37
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
38
+ http_version:
39
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Accept:
50
+ - application/vnd.datacite.datacite+xml
51
+ response:
52
+ status:
53
+ code: 301
54
+ message: ''
55
+ headers:
56
+ Server:
57
+ - openresty/1.11.2.2
58
+ Date:
59
+ - Wed, 15 Feb 2017 22:02:45 GMT
60
+ Content-Type:
61
+ - text/html
62
+ Content-Length:
63
+ - '191'
64
+ Connection:
65
+ - keep-alive
66
+ Location:
67
+ - https://data.datacite.org/10.5061%2Fdryad.8515
68
+ body:
69
+ encoding: UTF-8
70
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
+ 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"
72
+ http_version:
73
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
74
+ - request:
75
+ method: get
76
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ User-Agent:
82
+ - Maremma - https://github.com/datacite/maremma
83
+ Accept:
84
+ - application/vnd.datacite.datacite+xml
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: ''
89
+ headers:
90
+ Server:
91
+ - openresty/1.11.2.2
92
+ Date:
93
+ - Wed, 15 Feb 2017 22:02:45 GMT
94
+ Content-Type:
95
+ - application/vnd.datacite.datacite+xml
96
+ Content-Length:
97
+ - '2601'
98
+ Connection:
99
+ - keep-alive
100
+ Cache-Control:
101
+ - no-transform, max-age=3600
102
+ Last-Modified:
103
+ - Sat, 04 Feb 2017 17:54:37 GMT
104
+ Vary:
105
+ - Accept
106
+ Access-Control-Allow-Origin:
107
+ - "*"
108
+ Access-Control-Allow-Methods:
109
+ - GET, POST, OPTIONS
110
+ body:
111
+ encoding: ASCII-8BIT
112
+ string: !binary |-
113
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
114
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWw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T0iSXNSZWZl
164
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
165
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
166
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
167
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
168
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
169
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
170
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
171
+ http_version:
172
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
173
+ - request:
174
+ method: get
175
+ uri: https://doi.org/10.5061/dryad.8515
176
+ body:
177
+ encoding: US-ASCII
178
+ string: ''
179
+ headers:
180
+ User-Agent:
181
+ - Maremma - https://github.com/datacite/maremma
182
+ Accept:
183
+ - application/vnd.datacite.datacite+xml
184
+ response:
185
+ status:
186
+ code: 303
187
+ message: ''
188
+ headers:
189
+ Server:
190
+ - Apache-Coyote/1.1
191
+ Vary:
192
+ - Accept
193
+ Location:
194
+ - http://data.datacite.org/10.5061%2Fdryad.8515
195
+ Expires:
196
+ - Wed, 15 Feb 2017 22:27:42 GMT
197
+ Content-Type:
198
+ - text/html;charset=utf-8
199
+ Content-Length:
200
+ - '175'
201
+ Date:
202
+ - Wed, 15 Feb 2017 22:02:45 GMT
203
+ body:
204
+ encoding: UTF-8
205
+ string: |-
206
+ <html><head><title>Handle Redirect</title></head>
207
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
208
+ http_version:
209
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
210
+ - request:
211
+ method: get
212
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers:
217
+ User-Agent:
218
+ - Maremma - https://github.com/datacite/maremma
219
+ Accept:
220
+ - application/vnd.datacite.datacite+xml
221
+ response:
222
+ status:
223
+ code: 301
224
+ message: ''
225
+ headers:
226
+ Server:
227
+ - openresty/1.11.2.2
228
+ Date:
229
+ - Wed, 15 Feb 2017 22:02:45 GMT
230
+ Content-Type:
231
+ - text/html
232
+ Content-Length:
233
+ - '191'
234
+ Connection:
235
+ - keep-alive
236
+ Location:
237
+ - https://data.datacite.org/10.5061%2Fdryad.8515
238
+ body:
239
+ encoding: UTF-8
240
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
241
+ 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"
242
+ http_version:
243
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
244
+ - request:
245
+ method: get
246
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
247
+ body:
248
+ encoding: US-ASCII
249
+ string: ''
250
+ headers:
251
+ User-Agent:
252
+ - Maremma - https://github.com/datacite/maremma
253
+ Accept:
254
+ - application/vnd.datacite.datacite+xml
255
+ response:
256
+ status:
257
+ code: 200
258
+ message: ''
259
+ headers:
260
+ Server:
261
+ - openresty/1.11.2.2
262
+ Date:
263
+ - Wed, 15 Feb 2017 22:02:45 GMT
264
+ Content-Type:
265
+ - application/vnd.datacite.datacite+xml
266
+ Content-Length:
267
+ - '2601'
268
+ Connection:
269
+ - keep-alive
270
+ Cache-Control:
271
+ - no-transform, max-age=3600
272
+ Last-Modified:
273
+ - Sat, 04 Feb 2017 17:54:37 GMT
274
+ Vary:
275
+ - Accept
276
+ Access-Control-Allow-Origin:
277
+ - "*"
278
+ Access-Control-Allow-Methods:
279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ki
331
+ IHJlbGF0aW9uVHlwZT0iSGFzUGFydCI+MTAuNTA2MS9EUllBRC44NTE1LzI8
332
+ L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVs
333
+ YXRlZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSXNSZWZl
334
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
335
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
336
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
337
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
338
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
339
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
340
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
341
+ http_version:
342
+ recorded_at: Wed, 15 Feb 2017 22:02:45 GMT
343
+ recorded_with: VCR 3.0.3