cirneco 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cirneco/data_center.rb +5 -0
- data/lib/cirneco/doi.rb +6 -1
- data/lib/cirneco/file_utils.rb +368 -0
- data/lib/cirneco/media.rb +3 -1
- data/lib/cirneco/metadata.rb +2 -0
- data/lib/cirneco/utils.rb +5 -379
- data/lib/cirneco/version.rb +1 -1
- data/lib/cirneco/work.rb +2 -0
- data/spec/api_spec.rb +3 -3
- data/spec/doi_spec.rb +7 -7
- data/spec/file_utils_spec.rb +203 -0
- data/spec/fixtures/cool-dois-minted/index.html +1 -1
- data/spec/fixtures/cool-dois-minted.html.md +1 -1
- data/spec/fixtures/cool-dois.html.md +1 -1
- data/spec/fixtures/index-minted.html +1 -1
- data/spec/fixtures/index.html +2 -2
- data/spec/fixtures/index.html.erb +1 -1
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/jats/should_generate_jats_for_all_urls.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +3 -44
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +4 -374
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/jats/writes_jats_for_list_of_urls.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +4 -47
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +4 -374
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +16 -577
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +15 -58
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi_not_found.yml +16 -57
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/username_missing.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +16 -63
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +16 -61
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +17 -62
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +17 -60
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +17 -104
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +17 -108
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/media/includes_media.yml +17 -17
- data/spec/fixtures/vcr_cassettes/Cirneco_Work/schema/BlogPosting.yml +15 -15
- data/spec/utils_spec.rb +9 -186
- data/spec/work_spec.rb +1 -1
- metadata +4 -12
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +0 -562
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +0 -46
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +0 -46
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +0 -182
- data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +0 -139
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +0 -564
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +0 -46
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +0 -50
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +0 -46
- data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +0 -182
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: head
|
|
5
|
-
uri: https://doi.org/10.5438/
|
|
5
|
+
uri: https://doi.org/10.5438/55e5-t5c0
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -23,386 +23,16 @@ http_interactions:
|
|
|
23
23
|
Location:
|
|
24
24
|
- https://blog.datacite.org/cool-dois/
|
|
25
25
|
Expires:
|
|
26
|
-
-
|
|
26
|
+
- Sun, 23 Jul 2017 07:26:33 GMT
|
|
27
27
|
Content-Type:
|
|
28
28
|
- text/html;charset=utf-8
|
|
29
29
|
Content-Length:
|
|
30
30
|
- '157'
|
|
31
31
|
Date:
|
|
32
|
-
-
|
|
32
|
+
- Sun, 23 Jul 2017 06:56:12 GMT
|
|
33
33
|
body:
|
|
34
34
|
encoding: UTF-8
|
|
35
35
|
string: ''
|
|
36
36
|
http_version:
|
|
37
|
-
recorded_at:
|
|
38
|
-
- request:
|
|
39
|
-
method: post
|
|
40
|
-
uri: https://mds.test.datacite.org/metadata
|
|
41
|
-
body:
|
|
42
|
-
encoding: UTF-8
|
|
43
|
-
string: |
|
|
44
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
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">
|
|
46
|
-
<identifier identifierType="DOI">10.5438/0000-03VC</identifier>
|
|
47
|
-
<creators>
|
|
48
|
-
<creator>
|
|
49
|
-
<creatorName>Fenner, Martin</creatorName>
|
|
50
|
-
<givenName>Martin</givenName>
|
|
51
|
-
<familyName>Fenner</familyName>
|
|
52
|
-
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
|
|
53
|
-
</creator>
|
|
54
|
-
</creators>
|
|
55
|
-
<titles>
|
|
56
|
-
<title>Cool DOI's</title>
|
|
57
|
-
</titles>
|
|
58
|
-
<publisher>DataCite</publisher>
|
|
59
|
-
<publicationYear>2016</publicationYear>
|
|
60
|
-
<resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
|
|
61
|
-
<alternateIdentifiers>
|
|
62
|
-
<alternateIdentifier alternateIdentifierType=""/>
|
|
63
|
-
</alternateIdentifiers>
|
|
64
|
-
<subjects>
|
|
65
|
-
<subject>doi</subject>
|
|
66
|
-
<subject>featured</subject>
|
|
67
|
-
</subjects>
|
|
68
|
-
<dates>
|
|
69
|
-
<date dateType="Created">2016-12-15</date>
|
|
70
|
-
<date dateType="Issued">2016-12-15</date>
|
|
71
|
-
<date dateType="Updated">2016-12-15</date>
|
|
72
|
-
</dates>
|
|
73
|
-
<relatedIdentifiers>
|
|
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>
|
|
77
|
-
</relatedIdentifiers>
|
|
78
|
-
<version>1.0</version>
|
|
79
|
-
<rightsList>
|
|
80
|
-
<rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
|
|
81
|
-
</rightsList>
|
|
82
|
-
<descriptions>
|
|
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>
|
|
84
|
-
</descriptions>
|
|
85
|
-
</resource>
|
|
86
|
-
headers:
|
|
87
|
-
User-Agent:
|
|
88
|
-
- Maremma - https://github.com/datacite/maremma
|
|
89
|
-
Content-Type:
|
|
90
|
-
- application/xml;charset=UTF-8
|
|
91
|
-
Accept:
|
|
92
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
93
|
-
Authorization:
|
|
94
|
-
- Basic <MDS_TOKEN>
|
|
95
|
-
response:
|
|
96
|
-
status:
|
|
97
|
-
code: 201
|
|
98
|
-
message: Created
|
|
99
|
-
headers:
|
|
100
|
-
Access-Control-Allow-Methods:
|
|
101
|
-
- GET, POST, OPTIONS
|
|
102
|
-
Access-Control-Allow-Origin:
|
|
103
|
-
- "*"
|
|
104
|
-
Cache-Control:
|
|
105
|
-
- no-cache, no-store
|
|
106
|
-
Content-Type:
|
|
107
|
-
- text/html;charset=UTF-8
|
|
108
|
-
Date:
|
|
109
|
-
- Sat, 22 Jul 2017 07:17:36 GMT
|
|
110
|
-
Expires:
|
|
111
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
112
|
-
Location:
|
|
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
|
|
122
|
-
body:
|
|
123
|
-
encoding: UTF-8
|
|
124
|
-
string: OK (10.5438/0000-03VC)
|
|
125
|
-
http_version:
|
|
126
|
-
recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
|
|
127
|
-
- request:
|
|
128
|
-
method: put
|
|
129
|
-
uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
|
|
130
|
-
body:
|
|
131
|
-
encoding: UTF-8
|
|
132
|
-
string: |-
|
|
133
|
-
doi=10.5438/0000-03VC
|
|
134
|
-
url=https://blog.datacite.org/cool-dois/
|
|
135
|
-
headers:
|
|
136
|
-
User-Agent:
|
|
137
|
-
- Maremma - https://github.com/datacite/maremma
|
|
138
|
-
Content-Type:
|
|
139
|
-
- text/plain;charset=UTF-8
|
|
140
|
-
Accept:
|
|
141
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
142
|
-
Authorization:
|
|
143
|
-
- Basic <MDS_TOKEN>
|
|
144
|
-
response:
|
|
145
|
-
status:
|
|
146
|
-
code: 201
|
|
147
|
-
message: Created
|
|
148
|
-
headers:
|
|
149
|
-
Access-Control-Allow-Methods:
|
|
150
|
-
- GET, POST, OPTIONS
|
|
151
|
-
Access-Control-Allow-Origin:
|
|
152
|
-
- "*"
|
|
153
|
-
Cache-Control:
|
|
154
|
-
- no-cache, no-store
|
|
155
|
-
Content-Type:
|
|
156
|
-
- text/html;charset=UTF-8
|
|
157
|
-
Date:
|
|
158
|
-
- Sat, 22 Jul 2017 07:17:36 GMT
|
|
159
|
-
Expires:
|
|
160
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
161
|
-
Pragma:
|
|
162
|
-
- no-cache
|
|
163
|
-
Server:
|
|
164
|
-
- openresty/1.11.2.2
|
|
165
|
-
Content-Length:
|
|
166
|
-
- '2'
|
|
167
|
-
Connection:
|
|
168
|
-
- keep-alive
|
|
169
|
-
body:
|
|
170
|
-
encoding: UTF-8
|
|
171
|
-
string: OK
|
|
172
|
-
http_version:
|
|
173
|
-
recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
|
|
174
|
-
- request:
|
|
175
|
-
method: delete
|
|
176
|
-
uri: https://mds.test.datacite.org/metadata/10.5438/0000-03VC
|
|
177
|
-
body:
|
|
178
|
-
encoding: US-ASCII
|
|
179
|
-
string: ''
|
|
180
|
-
headers:
|
|
181
|
-
User-Agent:
|
|
182
|
-
- Maremma - https://github.com/datacite/maremma
|
|
183
|
-
Accept:
|
|
184
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
185
|
-
Authorization:
|
|
186
|
-
- Basic <MDS_TOKEN>
|
|
187
|
-
response:
|
|
188
|
-
status:
|
|
189
|
-
code: 200
|
|
190
|
-
message: OK
|
|
191
|
-
headers:
|
|
192
|
-
Access-Control-Allow-Methods:
|
|
193
|
-
- GET, POST, OPTIONS
|
|
194
|
-
Access-Control-Allow-Origin:
|
|
195
|
-
- "*"
|
|
196
|
-
Cache-Control:
|
|
197
|
-
- no-cache, no-store
|
|
198
|
-
Content-Type:
|
|
199
|
-
- text/html;charset=UTF-8
|
|
200
|
-
Date:
|
|
201
|
-
- Sat, 22 Jul 2017 07:17:36 GMT
|
|
202
|
-
Expires:
|
|
203
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
204
|
-
Pragma:
|
|
205
|
-
- no-cache
|
|
206
|
-
Server:
|
|
207
|
-
- openresty/1.11.2.2
|
|
208
|
-
Content-Length:
|
|
209
|
-
- '2'
|
|
210
|
-
Connection:
|
|
211
|
-
- keep-alive
|
|
212
|
-
body:
|
|
213
|
-
encoding: UTF-8
|
|
214
|
-
string: OK
|
|
215
|
-
http_version:
|
|
216
|
-
recorded_at: Sat, 22 Jul 2017 07:17:35 GMT
|
|
217
|
-
- request:
|
|
218
|
-
method: post
|
|
219
|
-
uri: https://mds.test.datacite.org/metadata
|
|
220
|
-
body:
|
|
221
|
-
encoding: UTF-8
|
|
222
|
-
string: |
|
|
223
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
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">
|
|
225
|
-
<identifier identifierType="DOI">10.5438/0000-00SS</identifier>
|
|
226
|
-
<creators>
|
|
227
|
-
<creator>
|
|
228
|
-
<creatorName>Cruse, Patricia</creatorName>
|
|
229
|
-
<givenName>Patricia</givenName>
|
|
230
|
-
<familyName>Cruse</familyName>
|
|
231
|
-
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0002-9300-5278</nameIdentifier>
|
|
232
|
-
</creator>
|
|
233
|
-
<creator>
|
|
234
|
-
<creatorName>Rueda, Laura</creatorName>
|
|
235
|
-
<givenName>Laura</givenName>
|
|
236
|
-
<familyName>Rueda</familyName>
|
|
237
|
-
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0001-5952-7630</nameIdentifier>
|
|
238
|
-
</creator>
|
|
239
|
-
<creator>
|
|
240
|
-
<creatorName>Garza, Kristian</creatorName>
|
|
241
|
-
<givenName>Kristian</givenName>
|
|
242
|
-
<familyName>Garza</familyName>
|
|
243
|
-
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-3484-6875</nameIdentifier>
|
|
244
|
-
</creator>
|
|
245
|
-
<creator>
|
|
246
|
-
<creatorName>Fenner, Martin</creatorName>
|
|
247
|
-
<givenName>Martin</givenName>
|
|
248
|
-
<familyName>Fenner</familyName>
|
|
249
|
-
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
|
|
250
|
-
</creator>
|
|
251
|
-
</creators>
|
|
252
|
-
<titles>
|
|
253
|
-
<title>DataCite Blog</title>
|
|
254
|
-
</titles>
|
|
255
|
-
<publisher>DataCite</publisher>
|
|
256
|
-
<publicationYear>2015</publicationYear>
|
|
257
|
-
<resourceType resourceTypeGeneral="Text">Blog</resourceType>
|
|
258
|
-
<alternateIdentifiers>
|
|
259
|
-
<alternateIdentifier alternateIdentifierType=""/>
|
|
260
|
-
</alternateIdentifiers>
|
|
261
|
-
<dates>
|
|
262
|
-
<date dateType="Created">2015-08-03</date>
|
|
263
|
-
<date dateType="Issued">2015-08-03</date>
|
|
264
|
-
<date dateType="Updated">2017-07-11</date>
|
|
265
|
-
</dates>
|
|
266
|
-
<relatedIdentifiers>
|
|
267
|
-
<relatedIdentifier relatedIdentifierType="DOI" relationType="HasPart">https://doi.org/10.5438/55e5-t5c0</relatedIdentifier>
|
|
268
|
-
</relatedIdentifiers>
|
|
269
|
-
<version>1.0</version>
|
|
270
|
-
<rightsList>
|
|
271
|
-
<rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
|
|
272
|
-
</rightsList>
|
|
273
|
-
<descriptions>
|
|
274
|
-
<description descriptionType="Abstract">DataCite staff writes about topics relevant to DataCite members and the wider data citation community.</description>
|
|
275
|
-
</descriptions>
|
|
276
|
-
</resource>
|
|
277
|
-
headers:
|
|
278
|
-
User-Agent:
|
|
279
|
-
- Maremma - https://github.com/datacite/maremma
|
|
280
|
-
Content-Type:
|
|
281
|
-
- application/xml;charset=UTF-8
|
|
282
|
-
Accept:
|
|
283
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
284
|
-
Authorization:
|
|
285
|
-
- Basic <MDS_TOKEN>
|
|
286
|
-
response:
|
|
287
|
-
status:
|
|
288
|
-
code: 201
|
|
289
|
-
message: Created
|
|
290
|
-
headers:
|
|
291
|
-
Access-Control-Allow-Methods:
|
|
292
|
-
- GET, POST, OPTIONS
|
|
293
|
-
Access-Control-Allow-Origin:
|
|
294
|
-
- "*"
|
|
295
|
-
Cache-Control:
|
|
296
|
-
- no-cache, no-store
|
|
297
|
-
Content-Type:
|
|
298
|
-
- text/html;charset=UTF-8
|
|
299
|
-
Date:
|
|
300
|
-
- Sat, 22 Jul 2017 07:17:37 GMT
|
|
301
|
-
Expires:
|
|
302
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
303
|
-
Location:
|
|
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
|
|
313
|
-
body:
|
|
314
|
-
encoding: UTF-8
|
|
315
|
-
string: OK (10.5438/0000-00SS)
|
|
316
|
-
http_version:
|
|
317
|
-
recorded_at: Sat, 22 Jul 2017 07:17:36 GMT
|
|
318
|
-
- request:
|
|
319
|
-
method: put
|
|
320
|
-
uri: https://mds.test.datacite.org/doi/10.5438/0000-00SS
|
|
321
|
-
body:
|
|
322
|
-
encoding: UTF-8
|
|
323
|
-
string: |-
|
|
324
|
-
doi=10.5438/0000-00SS
|
|
325
|
-
url=https://blog.datacite.org/
|
|
326
|
-
headers:
|
|
327
|
-
User-Agent:
|
|
328
|
-
- Maremma - https://github.com/datacite/maremma
|
|
329
|
-
Content-Type:
|
|
330
|
-
- text/plain;charset=UTF-8
|
|
331
|
-
Accept:
|
|
332
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
333
|
-
Authorization:
|
|
334
|
-
- Basic <MDS_TOKEN>
|
|
335
|
-
response:
|
|
336
|
-
status:
|
|
337
|
-
code: 201
|
|
338
|
-
message: Created
|
|
339
|
-
headers:
|
|
340
|
-
Access-Control-Allow-Methods:
|
|
341
|
-
- GET, POST, OPTIONS
|
|
342
|
-
Access-Control-Allow-Origin:
|
|
343
|
-
- "*"
|
|
344
|
-
Cache-Control:
|
|
345
|
-
- no-cache, no-store
|
|
346
|
-
Content-Type:
|
|
347
|
-
- text/html;charset=UTF-8
|
|
348
|
-
Date:
|
|
349
|
-
- Sat, 22 Jul 2017 07:17:37 GMT
|
|
350
|
-
Expires:
|
|
351
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
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:
|
|
383
|
-
Access-Control-Allow-Methods:
|
|
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
|
|
403
|
-
body:
|
|
404
|
-
encoding: UTF-8
|
|
405
|
-
string: OK
|
|
406
|
-
http_version:
|
|
407
|
-
recorded_at: Sat, 22 Jul 2017 07:17:36 GMT
|
|
37
|
+
recorded_at: Sun, 23 Jul 2017 06:56:11 GMT
|
|
408
38
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: head
|
|
5
|
-
uri: https://doi.org/10.5438/
|
|
5
|
+
uri: https://doi.org/10.5438/55e5-t5c0
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -23,16 +23,16 @@ http_interactions:
|
|
|
23
23
|
Location:
|
|
24
24
|
- https://blog.datacite.org/cool-dois/
|
|
25
25
|
Expires:
|
|
26
|
-
-
|
|
26
|
+
- Sun, 23 Jul 2017 07:26:33 GMT
|
|
27
27
|
Content-Type:
|
|
28
28
|
- text/html;charset=utf-8
|
|
29
29
|
Content-Length:
|
|
30
30
|
- '157'
|
|
31
31
|
Date:
|
|
32
|
-
-
|
|
32
|
+
- Sun, 23 Jul 2017 06:56:10 GMT
|
|
33
33
|
body:
|
|
34
34
|
encoding: UTF-8
|
|
35
35
|
string: ''
|
|
36
36
|
http_version:
|
|
37
|
-
recorded_at:
|
|
37
|
+
recorded_at: Sun, 23 Jul 2017 06:56:09 GMT
|
|
38
38
|
recorded_with: VCR 3.0.3
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: head
|
|
5
|
-
uri: https://doi.org/10.5438/
|
|
5
|
+
uri: https://doi.org/10.5438/55e5-t5c0
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -23,16 +23,16 @@ http_interactions:
|
|
|
23
23
|
Location:
|
|
24
24
|
- https://blog.datacite.org/cool-dois/
|
|
25
25
|
Expires:
|
|
26
|
-
-
|
|
26
|
+
- Sun, 23 Jul 2017 07:26:33 GMT
|
|
27
27
|
Content-Type:
|
|
28
28
|
- text/html;charset=utf-8
|
|
29
29
|
Content-Length:
|
|
30
30
|
- '157'
|
|
31
31
|
Date:
|
|
32
|
-
-
|
|
32
|
+
- Sun, 23 Jul 2017 06:56:23 GMT
|
|
33
33
|
body:
|
|
34
34
|
encoding: UTF-8
|
|
35
35
|
string: ''
|
|
36
36
|
http_version:
|
|
37
|
-
recorded_at:
|
|
37
|
+
recorded_at: Sun, 23 Jul 2017 06:56:23 GMT
|
|
38
38
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: head
|
|
5
|
-
uri: https://doi.org/10.5438/
|
|
5
|
+
uri: https://doi.org/10.5438/55e5-t5c0
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -23,59 +23,16 @@ http_interactions:
|
|
|
23
23
|
Location:
|
|
24
24
|
- https://blog.datacite.org/cool-dois/
|
|
25
25
|
Expires:
|
|
26
|
-
-
|
|
26
|
+
- Sun, 23 Jul 2017 07:26:33 GMT
|
|
27
27
|
Content-Type:
|
|
28
28
|
- text/html;charset=utf-8
|
|
29
29
|
Content-Length:
|
|
30
30
|
- '157'
|
|
31
31
|
Date:
|
|
32
|
-
-
|
|
32
|
+
- Sun, 23 Jul 2017 06:56:19 GMT
|
|
33
33
|
body:
|
|
34
34
|
encoding: UTF-8
|
|
35
35
|
string: ''
|
|
36
36
|
http_version:
|
|
37
|
-
recorded_at:
|
|
38
|
-
- request:
|
|
39
|
-
method: delete
|
|
40
|
-
uri: https://mds.test.datacite.org/metadata/10.5438/0000-00SS
|
|
41
|
-
body:
|
|
42
|
-
encoding: US-ASCII
|
|
43
|
-
string: ''
|
|
44
|
-
headers:
|
|
45
|
-
User-Agent:
|
|
46
|
-
- Maremma - https://github.com/datacite/maremma
|
|
47
|
-
Accept:
|
|
48
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
|
49
|
-
Authorization:
|
|
50
|
-
- Basic <MDS_TOKEN>
|
|
51
|
-
response:
|
|
52
|
-
status:
|
|
53
|
-
code: 200
|
|
54
|
-
message: OK
|
|
55
|
-
headers:
|
|
56
|
-
Access-Control-Allow-Methods:
|
|
57
|
-
- GET, POST, OPTIONS
|
|
58
|
-
Access-Control-Allow-Origin:
|
|
59
|
-
- "*"
|
|
60
|
-
Cache-Control:
|
|
61
|
-
- no-cache, no-store
|
|
62
|
-
Content-Type:
|
|
63
|
-
- text/html;charset=UTF-8
|
|
64
|
-
Date:
|
|
65
|
-
- Sat, 22 Jul 2017 07:18:33 GMT
|
|
66
|
-
Expires:
|
|
67
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
|
68
|
-
Pragma:
|
|
69
|
-
- no-cache
|
|
70
|
-
Server:
|
|
71
|
-
- openresty/1.11.2.2
|
|
72
|
-
Content-Length:
|
|
73
|
-
- '2'
|
|
74
|
-
Connection:
|
|
75
|
-
- keep-alive
|
|
76
|
-
body:
|
|
77
|
-
encoding: UTF-8
|
|
78
|
-
string: OK
|
|
79
|
-
http_version:
|
|
80
|
-
recorded_at: Sat, 22 Jul 2017 07:18:32 GMT
|
|
37
|
+
recorded_at: Sun, 23 Jul 2017 06:56:18 GMT
|
|
81
38
|
recorded_with: VCR 3.0.3
|