cirneco 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +124 -49
  3. data/cirneco.gemspec +5 -4
  4. data/lib/cirneco/api.rb +8 -8
  5. data/lib/cirneco/base.rb +2 -2
  6. data/lib/cirneco/cli.rb +1 -1
  7. data/lib/cirneco/utils.rb +48 -95
  8. data/lib/cirneco/version.rb +1 -1
  9. data/lib/cirneco/work.rb +8 -203
  10. data/spec/api_spec.rb +16 -28
  11. data/spec/doi_spec.rb +9 -11
  12. data/spec/fixtures/cool-dois-minted/index.html +189 -234
  13. data/spec/fixtures/cool-dois-minted.html.md +1 -1
  14. data/spec/fixtures/cool-dois.html.md +2 -2
  15. data/spec/fixtures/index-minted.html +1 -1
  16. data/spec/fixtures/index.html +50 -1
  17. data/spec/fixtures/index.html.erb +2 -2
  18. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +20 -18
  19. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/jats/should_generate_jats_for_all_urls.yml +38 -0
  20. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +20 -20
  21. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +19 -17
  22. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +19 -17
  23. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +204 -108
  24. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +72 -64
  25. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +17 -291
  26. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +47 -82
  27. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +22 -18
  28. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +19 -17
  29. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +20 -18
  30. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/jats/writes_jats_for_list_of_urls.yml +38 -0
  31. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +19 -17
  32. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +81 -0
  33. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +72 -64
  34. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +204 -108
  35. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +17 -291
  36. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +140 -18
  37. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +137 -17
  38. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi_not_found.yml +134 -16
  39. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/username_missing.yml +121 -0
  40. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +138 -18
  41. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +135 -17
  42. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +137 -17
  43. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +137 -17
  44. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +170 -27
  45. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +173 -28
  46. data/spec/fixtures/vcr_cassettes/Cirneco_Work/media/includes_media.yml +121 -0
  47. data/spec/fixtures/vcr_cassettes/Cirneco_Work/schema/BlogPosting.yml +121 -0
  48. data/spec/spec_helper.rb +1 -1
  49. data/spec/utils_spec.rb +28 -41
  50. data/spec/work_spec.rb +33 -43
  51. metadata +43 -19
  52. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_url.yml +0 -174
  53. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_a_doi.yml +0 -174
@@ -1,20 +1,55 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://doi.org/10.5438/55E5-T5C0
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: 303
17
+ message: See Other
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - https://blog.datacite.org/cool-dois/
25
+ Expires:
26
+ - Sat, 22 Jul 2017 07:20:45 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '157'
31
+ Date:
32
+ - Sat, 22 Jul 2017 07:17:35 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: ''
36
+ http_version:
37
+ recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
3
38
  - request:
4
39
  method: post
5
- uri: https://mds-sandbox.datacite.org/metadata
40
+ uri: https://mds.test.datacite.org/metadata
6
41
  body:
7
42
  encoding: UTF-8
8
43
  string: |
9
44
  <?xml version="1.0" encoding="UTF-8"?>
10
45
  <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">
11
- <identifier identifierType="DOI">10.5072/0000-03VC</identifier>
46
+ <identifier identifierType="DOI">10.5438/0000-03VC</identifier>
12
47
  <creators>
13
48
  <creator>
14
49
  <creatorName>Fenner, Martin</creatorName>
15
50
  <givenName>Martin</givenName>
16
51
  <familyName>Fenner</familyName>
17
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
52
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
18
53
  </creator>
19
54
  </creators>
20
55
  <titles>
@@ -24,10 +59,11 @@ http_interactions:
24
59
  <publicationYear>2016</publicationYear>
25
60
  <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
61
  <alternateIdentifiers>
27
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
62
+ <alternateIdentifier alternateIdentifierType=""/>
28
63
  </alternateIdentifiers>
29
64
  <subjects>
30
65
  <subject>doi</subject>
66
+ <subject>featured</subject>
31
67
  </subjects>
32
68
  <dates>
33
69
  <date dateType="Created">2016-12-15</date>
@@ -35,11 +71,14 @@ http_interactions:
35
71
  <date dateType="Updated">2016-12-15</date>
36
72
  </dates>
37
73
  <relatedIdentifiers>
38
- <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
39
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.1371/JOURNAL.PONE.0115253</relatedIdentifier>
40
74
  <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://blog.datacite.org/</relatedIdentifier>
75
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
76
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">https://doi.org/10.1371/journal.pone.0115253</relatedIdentifier>
41
77
  </relatedIdentifiers>
42
78
  <version>1.0</version>
79
+ <rightsList>
80
+ <rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
81
+ </rightsList>
43
82
  <descriptions>
44
83
  <description descriptionType="Abstract">In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot (Klein et al., 2014) and making it hard or impossible to find...</description>
45
84
  </descriptions>
@@ -56,40 +95,42 @@ http_interactions:
56
95
  response:
57
96
  status:
58
97
  code: 201
59
- message: ''
98
+ message: Created
60
99
  headers:
61
- Server:
62
- - openresty/1.11.2.1
63
- Date:
64
- - Mon, 02 Jan 2017 21:21:34 GMT
100
+ Access-Control-Allow-Methods:
101
+ - GET, POST, OPTIONS
102
+ Access-Control-Allow-Origin:
103
+ - "*"
104
+ Cache-Control:
105
+ - no-cache, no-store
65
106
  Content-Type:
66
107
  - text/html;charset=UTF-8
67
- Connection:
68
- - keep-alive
69
- Pragma:
70
- - no-cache
108
+ Date:
109
+ - Sat, 22 Jul 2017 07:17:36 GMT
71
110
  Expires:
72
111
  - Thu, 01 Jan 1970 00:00:00 GMT
73
- Cache-Control:
74
- - no-cache, no-store
75
112
  Location:
76
- - http://mds-sandbox.datacite.org/metadata/10.5072/0000-03VC
77
- Access-Control-Allow-Origin:
78
- - "*"
79
- Access-Control-Allow-Methods:
80
- - GET, POST, OPTIONS
113
+ - http://mds.test.datacite.org/metadata/10.5438/0000-03VC
114
+ Pragma:
115
+ - no-cache
116
+ Server:
117
+ - openresty/1.11.2.2
118
+ Content-Length:
119
+ - '22'
120
+ Connection:
121
+ - keep-alive
81
122
  body:
82
123
  encoding: UTF-8
83
- string: OK (10.5072/0000-03VC)
124
+ string: OK (10.5438/0000-03VC)
84
125
  http_version:
85
- recorded_at: Mon, 02 Jan 2017 21:21:34 GMT
126
+ recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
86
127
  - request:
87
128
  method: put
88
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
129
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
89
130
  body:
90
131
  encoding: UTF-8
91
132
  string: |-
92
- doi=10.5072/0000-03VC
133
+ doi=10.5438/0000-03VC
93
134
  url=https://blog.datacite.org/cool-dois/
94
135
  headers:
95
136
  User-Agent:
@@ -103,42 +144,42 @@ http_interactions:
103
144
  response:
104
145
  status:
105
146
  code: 201
106
- message: ''
147
+ message: Created
107
148
  headers:
108
- Server:
109
- - openresty/1.11.2.1
110
- Date:
111
- - Mon, 02 Jan 2017 21:21:34 GMT
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ Access-Control-Allow-Origin:
152
+ - "*"
153
+ Cache-Control:
154
+ - no-cache, no-store
112
155
  Content-Type:
113
156
  - text/html;charset=UTF-8
114
- Connection:
115
- - keep-alive
116
- Pragma:
117
- - no-cache
157
+ Date:
158
+ - Sat, 22 Jul 2017 07:17:36 GMT
118
159
  Expires:
119
160
  - Thu, 01 Jan 1970 00:00:00 GMT
120
- Cache-Control:
121
- - no-cache, no-store
122
- Access-Control-Allow-Origin:
123
- - "*"
124
- Access-Control-Allow-Methods:
125
- - GET, POST, OPTIONS
161
+ Pragma:
162
+ - no-cache
163
+ Server:
164
+ - openresty/1.11.2.2
165
+ Content-Length:
166
+ - '2'
167
+ Connection:
168
+ - keep-alive
126
169
  body:
127
170
  encoding: UTF-8
128
171
  string: OK
129
172
  http_version:
130
- recorded_at: Mon, 02 Jan 2017 21:21:34 GMT
173
+ recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
131
174
  - request:
132
- method: post
133
- uri: https://mds-sandbox.datacite.org/media/10.5072/0000-03VC
175
+ method: delete
176
+ uri: https://mds.test.datacite.org/metadata/10.5438/0000-03VC
134
177
  body:
135
- encoding: UTF-8
136
- string: application/xml=https://blog.datacite.org/cool-dois/cool-dois.xml
178
+ encoding: US-ASCII
179
+ string: ''
137
180
  headers:
138
181
  User-Agent:
139
182
  - Maremma - https://github.com/datacite/maremma
140
- Content-Type:
141
- - text/plain;charset=UTF-8
142
183
  Accept:
143
184
  - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
144
185
  Authorization:
@@ -146,64 +187,66 @@ http_interactions:
146
187
  response:
147
188
  status:
148
189
  code: 200
149
- message: ''
190
+ message: OK
150
191
  headers:
151
- Server:
152
- - openresty/1.11.2.1
153
- Date:
154
- - Mon, 02 Jan 2017 21:21:35 GMT
192
+ Access-Control-Allow-Methods:
193
+ - GET, POST, OPTIONS
194
+ Access-Control-Allow-Origin:
195
+ - "*"
196
+ Cache-Control:
197
+ - no-cache, no-store
155
198
  Content-Type:
156
199
  - text/html;charset=UTF-8
157
- Connection:
158
- - keep-alive
159
- Pragma:
160
- - no-cache
200
+ Date:
201
+ - Sat, 22 Jul 2017 07:17:36 GMT
161
202
  Expires:
162
203
  - Thu, 01 Jan 1970 00:00:00 GMT
163
- Cache-Control:
164
- - no-cache, no-store
165
- Access-Control-Allow-Origin:
166
- - "*"
167
- Access-Control-Allow-Methods:
168
- - GET, POST, OPTIONS
204
+ Pragma:
205
+ - no-cache
206
+ Server:
207
+ - openresty/1.11.2.2
208
+ Content-Length:
209
+ - '2'
210
+ Connection:
211
+ - keep-alive
169
212
  body:
170
213
  encoding: UTF-8
171
214
  string: OK
172
215
  http_version:
173
- recorded_at: Mon, 02 Jan 2017 21:21:35 GMT
216
+ recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
174
217
  - request:
175
218
  method: post
176
- uri: https://mds-sandbox.datacite.org/metadata
219
+ uri: https://mds.test.datacite.org/metadata
177
220
  body:
178
221
  encoding: UTF-8
179
222
  string: |
180
223
  <?xml version="1.0" encoding="UTF-8"?>
181
224
  <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">
182
- <identifier identifierType="DOI">10.5072/0000-00SS</identifier>
225
+ <identifier identifierType="DOI">10.5438/0000-00SS</identifier>
183
226
  <creators>
184
227
  <creator>
185
228
  <creatorName>Cruse, Patricia</creatorName>
186
229
  <givenName>Patricia</givenName>
187
230
  <familyName>Cruse</familyName>
188
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-9300-5278</nameIdentifier>
231
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0002-9300-5278</nameIdentifier>
189
232
  </creator>
190
233
  <creator>
191
234
  <creatorName>Rueda, Laura</creatorName>
192
235
  <givenName>Laura</givenName>
193
236
  <familyName>Rueda</familyName>
194
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-5952-7630</nameIdentifier>
237
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0001-5952-7630</nameIdentifier>
195
238
  </creator>
196
239
  <creator>
197
240
  <creatorName>Garza, Kristian</creatorName>
198
241
  <givenName>Kristian</givenName>
199
242
  <familyName>Garza</familyName>
200
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-3484-6875</nameIdentifier>
243
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-3484-6875</nameIdentifier>
201
244
  </creator>
202
245
  <creator>
203
246
  <creatorName>Fenner, Martin</creatorName>
204
247
  <givenName>Martin</givenName>
205
248
  <familyName>Fenner</familyName>
206
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
249
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
207
250
  </creator>
208
251
  </creators>
209
252
  <titles>
@@ -211,18 +254,24 @@ http_interactions:
211
254
  </titles>
212
255
  <publisher>DataCite</publisher>
213
256
  <publicationYear>2015</publicationYear>
214
- <resourceType resourceTypeGeneral="Collection">Blog</resourceType>
257
+ <resourceType resourceTypeGeneral="Text">Blog</resourceType>
215
258
  <alternateIdentifiers>
216
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-25-1785</alternateIdentifier>
259
+ <alternateIdentifier alternateIdentifierType=""/>
217
260
  </alternateIdentifiers>
218
261
  <dates>
219
262
  <date dateType="Created">2015-08-03</date>
220
263
  <date dateType="Issued">2015-08-03</date>
221
- <date dateType="Updated">2015-08-03</date>
264
+ <date dateType="Updated">2017-07-11</date>
222
265
  </dates>
266
+ <relatedIdentifiers>
267
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="HasPart">https://doi.org/10.5438/55e5-t5c0</relatedIdentifier>
268
+ </relatedIdentifiers>
223
269
  <version>1.0</version>
270
+ <rightsList>
271
+ <rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
272
+ </rightsList>
224
273
  <descriptions>
225
- <description descriptionType="Abstract">The DataCite blog.</description>
274
+ <description descriptionType="Abstract">DataCite staff writes about topics relevant to DataCite members and the wider data citation community.</description>
226
275
  </descriptions>
227
276
  </resource>
228
277
  headers:
@@ -237,40 +286,42 @@ http_interactions:
237
286
  response:
238
287
  status:
239
288
  code: 201
240
- message: ''
289
+ message: Created
241
290
  headers:
242
- Server:
243
- - openresty/1.11.2.1
244
- Date:
245
- - Mon, 02 Jan 2017 21:21:35 GMT
291
+ Access-Control-Allow-Methods:
292
+ - GET, POST, OPTIONS
293
+ Access-Control-Allow-Origin:
294
+ - "*"
295
+ Cache-Control:
296
+ - no-cache, no-store
246
297
  Content-Type:
247
298
  - text/html;charset=UTF-8
248
- Connection:
249
- - keep-alive
250
- Pragma:
251
- - no-cache
299
+ Date:
300
+ - Sat, 22 Jul 2017 07:17:37 GMT
252
301
  Expires:
253
302
  - Thu, 01 Jan 1970 00:00:00 GMT
254
- Cache-Control:
255
- - no-cache, no-store
256
303
  Location:
257
- - http://mds-sandbox.datacite.org/metadata/10.5072/0000-00SS
258
- Access-Control-Allow-Origin:
259
- - "*"
260
- Access-Control-Allow-Methods:
261
- - GET, POST, OPTIONS
304
+ - http://mds.test.datacite.org/metadata/10.5438/0000-00SS
305
+ Pragma:
306
+ - no-cache
307
+ Server:
308
+ - openresty/1.11.2.2
309
+ Content-Length:
310
+ - '22'
311
+ Connection:
312
+ - keep-alive
262
313
  body:
263
314
  encoding: UTF-8
264
- string: OK (10.5072/0000-00SS)
315
+ string: OK (10.5438/0000-00SS)
265
316
  http_version:
266
- recorded_at: Mon, 02 Jan 2017 21:21:35 GMT
317
+ recorded_at: Sat, 22 Jul 2017 07:17:36 GMT
267
318
  - request:
268
319
  method: put
269
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-00SS
320
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-00SS
270
321
  body:
271
322
  encoding: UTF-8
272
323
  string: |-
273
- doi=10.5072/0000-00SS
324
+ doi=10.5438/0000-00SS
274
325
  url=https://blog.datacite.org/
275
326
  headers:
276
327
  User-Agent:
@@ -284,29 +335,74 @@ http_interactions:
284
335
  response:
285
336
  status:
286
337
  code: 201
287
- message: ''
338
+ message: Created
288
339
  headers:
289
- Server:
290
- - openresty/1.11.2.1
291
- Date:
292
- - Mon, 02 Jan 2017 21:21:36 GMT
340
+ Access-Control-Allow-Methods:
341
+ - GET, POST, OPTIONS
342
+ Access-Control-Allow-Origin:
343
+ - "*"
344
+ Cache-Control:
345
+ - no-cache, no-store
293
346
  Content-Type:
294
347
  - text/html;charset=UTF-8
295
- Connection:
296
- - keep-alive
297
- Pragma:
298
- - no-cache
348
+ Date:
349
+ - Sat, 22 Jul 2017 07:17:37 GMT
299
350
  Expires:
300
351
  - Thu, 01 Jan 1970 00:00:00 GMT
301
- Cache-Control:
302
- - no-cache, no-store
303
- Access-Control-Allow-Origin:
304
- - "*"
352
+ Pragma:
353
+ - no-cache
354
+ Server:
355
+ - openresty/1.11.2.2
356
+ Content-Length:
357
+ - '2'
358
+ Connection:
359
+ - keep-alive
360
+ body:
361
+ encoding: UTF-8
362
+ string: OK
363
+ http_version:
364
+ recorded_at: Sat, 22 Jul 2017 07:17:36 GMT
365
+ - request:
366
+ method: delete
367
+ uri: https://mds.test.datacite.org/metadata/10.5438/0000-00SS
368
+ body:
369
+ encoding: US-ASCII
370
+ string: ''
371
+ headers:
372
+ User-Agent:
373
+ - Maremma - https://github.com/datacite/maremma
374
+ Accept:
375
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
376
+ Authorization:
377
+ - Basic <MDS_TOKEN>
378
+ response:
379
+ status:
380
+ code: 200
381
+ message: OK
382
+ headers:
305
383
  Access-Control-Allow-Methods:
306
384
  - GET, POST, OPTIONS
385
+ Access-Control-Allow-Origin:
386
+ - "*"
387
+ Cache-Control:
388
+ - no-cache, no-store
389
+ Content-Type:
390
+ - text/html;charset=UTF-8
391
+ Date:
392
+ - Sat, 22 Jul 2017 07:17:37 GMT
393
+ Expires:
394
+ - Thu, 01 Jan 1970 00:00:00 GMT
395
+ Pragma:
396
+ - no-cache
397
+ Server:
398
+ - openresty/1.11.2.2
399
+ Content-Length:
400
+ - '2'
401
+ Connection:
402
+ - keep-alive
307
403
  body:
308
404
  encoding: UTF-8
309
405
  string: OK
310
406
  http_version:
311
- recorded_at: Mon, 02 Jan 2017 21:21:36 GMT
407
+ recorded_at: Sat, 22 Jul 2017 07:17:36 GMT
312
408
  recorded_with: VCR 3.0.3