cirneco 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -3
  3. data/Gemfile.lock +3 -3
  4. data/lib/cirneco/doi.rb +9 -21
  5. data/lib/cirneco/utils.rb +55 -25
  6. data/lib/cirneco/version.rb +1 -1
  7. data/spec/api_spec.rb +1 -1
  8. data/spec/doi_spec.rb +8 -7
  9. data/spec/fixtures/index-minted.html +271 -0
  10. data/spec/fixtures/index.html +1 -1
  11. data/spec/fixtures/index.html.erb +42 -0
  12. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +14 -2
  13. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +42 -7
  14. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_url.yml +2 -2
  15. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_metadata_for_work.yml +2 -2
  16. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +142 -4
  17. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_url.yml +4 -4
  18. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +142 -4
  19. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_url.yml +4 -4
  20. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_post_metadata_for_work.yml +4 -4
  21. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_all_dois.yml +14 -2
  22. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/get/should_get_doi.yml +2 -2
  23. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/MDS_DOI_API/put/should_put_doi.yml +2 -2
  24. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_a_doi.yml +2 -2
  25. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_a_doi.yml +4 -4
  26. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_a_doi.yml +4 -4
  27. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +142 -4
  28. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +142 -4
  29. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +14 -2
  30. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +2 -2
  31. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +2 -2
  32. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +2 -2
  33. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +2 -2
  34. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +2 -2
  35. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +2 -2
  36. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +2 -2
  37. data/spec/utils_spec.rb +63 -13
  38. metadata +4 -3
  39. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +0 -44
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: DataCite Blog
3
+ type: Blog
4
+ author:
5
+ - tcruse
6
+ - lrueda
7
+ - kgarza
8
+ - mfenner
9
+ date: 2015-08-03
10
+ accession_number: MS-25-1785
11
+ doi: 10.5072/0000-00SS
12
+ published: false
13
+ ---
14
+ <div class="container-fluid">
15
+ <div class="row">
16
+ <div class='col-md-8'>
17
+ <div class="search-wide">
18
+ <form action="/index.html" method="get" id="search-form" class="form-horizontal" role="form" data-site-url="<%= ENV['SITE_URL'] %>" data-search-url="<%= data.site.search_url %>">
19
+ <div class="input-group">
20
+ <input type="text" id="query" name="query" placeholder="Search blog" class="form-control">
21
+ <div class="input-group-btn">
22
+ <button type="submit" class="btn btn-primary hidden-xs">Search</button>
23
+ </div>
24
+ </div>
25
+ </form>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <div id="content"></div>
30
+ <div class="row">
31
+ <div class='col-md-4 post-list' id="left-col">
32
+ </div>
33
+ <div class='col-md-4 post-list' id="right-col">
34
+ </div>
35
+ <div class='col-md-3 col-md-offset-1'>
36
+ <div id="tags"/>
37
+ </div>
38
+ </div></div>
39
+ <div class="row">
40
+ <div class='col-md-8' id="pager"></div>
41
+ </div>
42
+ </div>
@@ -21,7 +21,7 @@ http_interactions:
21
21
  Server:
22
22
  - openresty/1.11.2.1
23
23
  Date:
24
- - Sun, 01 Jan 2017 15:59:28 GMT
24
+ - Mon, 02 Jan 2017 09:16:12 GMT
25
25
  Content-Type:
26
26
  - text/html;charset=UTF-8
27
27
  Connection:
@@ -43,25 +43,31 @@ http_interactions:
43
43
  10.23725/0000-0A53
44
44
  10.23725/GQZDGNZW
45
45
  10.23725/MDS-CLIENT-RUBY-TEST
46
+ 10.5072/0000-00SS
46
47
  10.5072/0000-03VC
47
48
  10.5072/0000-03WD
48
49
  10.5072/08RN-F1SH
50
+ 10.5072/0BJH-K98F
49
51
  10.5072/0PP7-Y177
50
52
  10.5072/12ZF-4WZ4
53
+ 10.5072/1E2G-ZPR8
51
54
  10.5072/1TMX-A6FN
52
55
  10.5072/398J-5ZER
56
+ 10.5072/457P-8XES
53
57
  10.5072/467B-F0A~
54
58
  10.5072/4JPZ-7BMP
55
59
  10.5072/4QAV-6XK=
56
60
  10.5072/50YP-8G06
57
61
  10.5072/56EB-DQE4
58
62
  10.5072/5C8N-VY7M
63
+ 10.5072/6A5F-RR75
59
64
  10.5072/6ECH-0D2~
60
65
  10.5072/89G2-HB6~
61
66
  10.5072/8QA7-RQY0
62
67
  10.5072/9EN1-ZN3X
63
68
  10.5072/A8V9-XV63
64
69
  10.5072/AS75-4EQA
70
+ 10.5072/BVFQ-WN8Z
65
71
  10.5072/BZAK-W7E4
66
72
  10.5072/CHN1-2GV1
67
73
  10.5072/DC13-VP4J
@@ -71,6 +77,7 @@ http_interactions:
71
77
  10.5072/GD9A-67NT
72
78
  10.5072/GKHJ-AKB?
73
79
  10.5072/GP22-T2A9
80
+ 10.5072/H79F-4625
74
81
  10.5072/HD51-MMED
75
82
  10.5072/J2TP-BYTE
76
83
  10.5072/J8TX-CN7D
@@ -78,10 +85,13 @@ http_interactions:
78
85
  10.5072/K0QW-GYP~
79
86
  10.5072/K9TB-ZPP4
80
87
  10.5072/MECQ-MR80
88
+ 10.5072/MZ4M-8CH$
81
89
  10.5072/NDB4-D1X0
82
90
  10.5072/NEEC-2C0J
91
+ 10.5072/NNEG-GGZK
83
92
  10.5072/P6B9-C5ZH
84
93
  10.5072/P6NP-J9EK
94
+ 10.5072/P6TD-2WRA
85
95
  10.5072/QM4Z-6QEY
86
96
  10.5072/QVPT-2RAP
87
97
  10.5072/QX88-1JZT
@@ -89,6 +99,7 @@ http_interactions:
89
99
  10.5072/RYXH-FS4R
90
100
  10.5072/S7SK-3V7*
91
101
  10.5072/SEP1-QW77
102
+ 10.5072/SRFY-F38E
92
103
  10.5072/ST5J-D2E1
93
104
  10.5072/T5RH-ZKH9
94
105
  10.5072/TB6E-8D1F
@@ -107,6 +118,7 @@ http_interactions:
107
118
  10.5072/YEPH-28DB
108
119
  10.5072/YG5V-06JJ
109
120
  10.5072/YGQG-EN6Y
121
+ 10.5072/YV7E-2TV1
110
122
  10.5438/0001
111
123
  10.5438/0002
112
124
  10.5438/0003
@@ -544,5 +556,5 @@ http_interactions:
544
556
  10.5438/ZWSF-4Y7Y
545
557
  10.5438/ZYJN-KXX9
546
558
  http_version:
547
- recorded_at: Sun, 01 Jan 2017 15:59:28 GMT
559
+ recorded_at: Mon, 02 Jan 2017 09:16:12 GMT
548
560
  recorded_with: VCR 3.0.3
@@ -1,8 +1,43 @@
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: ''
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
+ - Mon, 02 Jan 2017 09:38:08 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '157'
31
+ Date:
32
+ - Mon, 02 Jan 2017 09:36:56 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: ''
36
+ http_version:
37
+ recorded_at: Mon, 02 Jan 2017 09:36:57 GMT
3
38
  - request:
4
39
  method: delete
5
- uri: https://mds-sandbox.datacite.org/metadata/10.5072/0000-03WD
40
+ uri: https://mds-sandbox.datacite.org/metadata/10.5072/0000-NW90
6
41
  body:
7
42
  encoding: US-ASCII
8
43
  string: ''
@@ -15,15 +50,15 @@ http_interactions:
15
50
  - Basic <MDS_TOKEN>
16
51
  response:
17
52
  status:
18
- code: 200
53
+ code: 404
19
54
  message: ''
20
55
  headers:
21
56
  Server:
22
57
  - openresty/1.11.2.1
23
58
  Date:
24
- - Sun, 01 Jan 2017 16:05:22 GMT
25
- Content-Type:
26
- - text/html;charset=UTF-8
59
+ - Mon, 02 Jan 2017 09:36:57 GMT
60
+ Content-Length:
61
+ - '17'
27
62
  Connection:
28
63
  - keep-alive
29
64
  Pragma:
@@ -38,7 +73,7 @@ http_interactions:
38
73
  - GET, POST, OPTIONS
39
74
  body:
40
75
  encoding: UTF-8
41
- string: OK
76
+ string: DOI doesn't exist
42
77
  http_version:
43
- recorded_at: Sun, 01 Jan 2017 16:05:22 GMT
78
+ recorded_at: Mon, 02 Jan 2017 09:36:57 GMT
44
79
  recorded_with: VCR 3.0.3
@@ -21,7 +21,7 @@ http_interactions:
21
21
  Server:
22
22
  - openresty/1.11.2.1
23
23
  Date:
24
- - Sun, 01 Jan 2017 16:05:20 GMT
24
+ - Mon, 02 Jan 2017 09:16:14 GMT
25
25
  Content-Type:
26
26
  - text/html;charset=UTF-8
27
27
  Connection:
@@ -40,5 +40,5 @@ http_interactions:
40
40
  encoding: UTF-8
41
41
  string: OK
42
42
  http_version:
43
- recorded_at: Sun, 01 Jan 2017 16:05:20 GMT
43
+ recorded_at: Mon, 02 Jan 2017 09:16:14 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -21,7 +21,7 @@ http_interactions:
21
21
  Server:
22
22
  - openresty/1.11.2.1
23
23
  Date:
24
- - Sun, 01 Jan 2017 15:59:36 GMT
24
+ - Mon, 02 Jan 2017 09:16:28 GMT
25
25
  Content-Type:
26
26
  - text/html;charset=UTF-8
27
27
  Connection:
@@ -40,5 +40,5 @@ http_interactions:
40
40
  encoding: UTF-8
41
41
  string: OK
42
42
  http_version:
43
- recorded_at: Sun, 01 Jan 2017 15:59:36 GMT
43
+ recorded_at: Mon, 02 Jan 2017 09:16:28 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Server:
61
61
  - openresty/1.11.2.1
62
62
  Date:
63
- - Sun, 01 Jan 2017 15:59:34 GMT
63
+ - Mon, 02 Jan 2017 09:36:58 GMT
64
64
  Content-Type:
65
65
  - text/html;charset=UTF-8
66
66
  Connection:
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: UTF-8
82
82
  string: OK (10.5072/0000-03VC)
83
83
  http_version:
84
- recorded_at: Sun, 01 Jan 2017 15:59:34 GMT
84
+ recorded_at: Mon, 02 Jan 2017 09:36:58 GMT
85
85
  - request:
86
86
  method: put
87
87
  uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
@@ -107,7 +107,7 @@ http_interactions:
107
107
  Server:
108
108
  - openresty/1.11.2.1
109
109
  Date:
110
- - Sun, 01 Jan 2017 15:59:35 GMT
110
+ - Mon, 02 Jan 2017 09:36:58 GMT
111
111
  Content-Type:
112
112
  - text/html;charset=UTF-8
113
113
  Connection:
@@ -126,5 +126,143 @@ http_interactions:
126
126
  encoding: UTF-8
127
127
  string: OK
128
128
  http_version:
129
- recorded_at: Sun, 01 Jan 2017 15:59:35 GMT
129
+ recorded_at: Mon, 02 Jan 2017 09:36:58 GMT
130
+ - request:
131
+ method: post
132
+ uri: https://mds-sandbox.datacite.org/metadata
133
+ body:
134
+ encoding: UTF-8
135
+ string: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <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">
138
+ <identifier identifierType="DOI">10.5072/0000-00SS</identifier>
139
+ <creators>
140
+ <creator>
141
+ <creatorName>Cruse, Patricia</creatorName>
142
+ <givenName>Patricia</givenName>
143
+ <familyName>Cruse</familyName>
144
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-9300-5278</nameIdentifier>
145
+ </creator>
146
+ <creator>
147
+ <creatorName>Rueda, Laura</creatorName>
148
+ <givenName>Laura</givenName>
149
+ <familyName>Rueda</familyName>
150
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-5952-7630</nameIdentifier>
151
+ </creator>
152
+ <creator>
153
+ <creatorName>Garza, Kristian</creatorName>
154
+ <givenName>Kristian</givenName>
155
+ <familyName>Garza</familyName>
156
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-3484-6875</nameIdentifier>
157
+ </creator>
158
+ <creator>
159
+ <creatorName>Fenner, Martin</creatorName>
160
+ <givenName>Martin</givenName>
161
+ <familyName>Fenner</familyName>
162
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
163
+ </creator>
164
+ </creators>
165
+ <titles>
166
+ <title>DataCite Blog</title>
167
+ </titles>
168
+ <publisher>DataCite</publisher>
169
+ <publicationYear>2015</publicationYear>
170
+ <resourceType resourceTypeGeneral="Collection">Blog</resourceType>
171
+ <alternateIdentifiers>
172
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-25-1785</alternateIdentifier>
173
+ </alternateIdentifiers>
174
+ <dates>
175
+ <date dateType="Created">2015-08-03</date>
176
+ <date dateType="Issued">2015-08-03</date>
177
+ <date dateType="Updated">2015-08-03</date>
178
+ </dates>
179
+ <version>1.0</version>
180
+ <descriptions>
181
+ <description descriptionType="Abstract">The DataCite blog.</description>
182
+ </descriptions>
183
+ </resource>
184
+ headers:
185
+ User-Agent:
186
+ - Maremma - https://github.com/datacite/maremma
187
+ Content-Type:
188
+ - application/xml;charset=UTF-8
189
+ Accept:
190
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
191
+ Authorization:
192
+ - Basic <MDS_TOKEN>
193
+ response:
194
+ status:
195
+ code: 201
196
+ message: ''
197
+ headers:
198
+ Server:
199
+ - openresty/1.11.2.1
200
+ Date:
201
+ - Mon, 02 Jan 2017 09:36:58 GMT
202
+ Content-Type:
203
+ - text/html;charset=UTF-8
204
+ Connection:
205
+ - keep-alive
206
+ Pragma:
207
+ - no-cache
208
+ Expires:
209
+ - Thu, 01 Jan 1970 00:00:00 GMT
210
+ Cache-Control:
211
+ - no-cache, no-store
212
+ Location:
213
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-00SS
214
+ Access-Control-Allow-Origin:
215
+ - "*"
216
+ Access-Control-Allow-Methods:
217
+ - GET, POST, OPTIONS
218
+ body:
219
+ encoding: UTF-8
220
+ string: OK (10.5072/0000-00SS)
221
+ http_version:
222
+ recorded_at: Mon, 02 Jan 2017 09:36:58 GMT
223
+ - request:
224
+ method: put
225
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-00SS
226
+ body:
227
+ encoding: UTF-8
228
+ string: |-
229
+ doi=10.5072/0000-00SS
230
+ url=https://blog.datacite.org/
231
+ headers:
232
+ User-Agent:
233
+ - Maremma - https://github.com/datacite/maremma
234
+ Content-Type:
235
+ - text/plain;charset=UTF-8
236
+ Accept:
237
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
238
+ Authorization:
239
+ - Basic <MDS_TOKEN>
240
+ response:
241
+ status:
242
+ code: 201
243
+ message: ''
244
+ headers:
245
+ Server:
246
+ - openresty/1.11.2.1
247
+ Date:
248
+ - Mon, 02 Jan 2017 09:36:59 GMT
249
+ Content-Type:
250
+ - text/html;charset=UTF-8
251
+ Connection:
252
+ - keep-alive
253
+ Pragma:
254
+ - no-cache
255
+ Expires:
256
+ - Thu, 01 Jan 1970 00:00:00 GMT
257
+ Cache-Control:
258
+ - no-cache, no-store
259
+ Access-Control-Allow-Origin:
260
+ - "*"
261
+ Access-Control-Allow-Methods:
262
+ - GET, POST, OPTIONS
263
+ body:
264
+ encoding: UTF-8
265
+ string: OK
266
+ http_version:
267
+ recorded_at: Mon, 02 Jan 2017 09:36:59 GMT
130
268
  recorded_with: VCR 3.0.3
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Server:
61
61
  - openresty/1.11.2.1
62
62
  Date:
63
- - Sun, 01 Jan 2017 15:59:31 GMT
63
+ - Mon, 02 Jan 2017 09:16:14 GMT
64
64
  Content-Type:
65
65
  - text/html;charset=UTF-8
66
66
  Connection:
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: UTF-8
82
82
  string: OK (10.5072/0000-03VC)
83
83
  http_version:
84
- recorded_at: Sun, 01 Jan 2017 15:59:31 GMT
84
+ recorded_at: Mon, 02 Jan 2017 09:16:14 GMT
85
85
  - request:
86
86
  method: put
87
87
  uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
@@ -107,7 +107,7 @@ http_interactions:
107
107
  Server:
108
108
  - openresty/1.11.2.1
109
109
  Date:
110
- - Sun, 01 Jan 2017 15:59:31 GMT
110
+ - Mon, 02 Jan 2017 09:16:15 GMT
111
111
  Content-Type:
112
112
  - text/html;charset=UTF-8
113
113
  Connection:
@@ -126,5 +126,5 @@ http_interactions:
126
126
  encoding: UTF-8
127
127
  string: OK
128
128
  http_version:
129
- recorded_at: Sun, 01 Jan 2017 15:59:31 GMT
129
+ recorded_at: Mon, 02 Jan 2017 09:16:15 GMT
130
130
  recorded_with: VCR 3.0.3
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Server:
61
61
  - openresty/1.11.2.1
62
62
  Date:
63
- - Sun, 01 Jan 2017 15:59:32 GMT
63
+ - Mon, 02 Jan 2017 09:36:47 GMT
64
64
  Content-Type:
65
65
  - text/html;charset=UTF-8
66
66
  Connection:
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: UTF-8
82
82
  string: OK (10.5072/0000-03VC)
83
83
  http_version:
84
- recorded_at: Sun, 01 Jan 2017 15:59:32 GMT
84
+ recorded_at: Mon, 02 Jan 2017 09:36:47 GMT
85
85
  - request:
86
86
  method: put
87
87
  uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
@@ -107,7 +107,7 @@ http_interactions:
107
107
  Server:
108
108
  - openresty/1.11.2.1
109
109
  Date:
110
- - Sun, 01 Jan 2017 15:59:33 GMT
110
+ - Mon, 02 Jan 2017 09:36:47 GMT
111
111
  Content-Type:
112
112
  - text/html;charset=UTF-8
113
113
  Connection:
@@ -126,5 +126,143 @@ http_interactions:
126
126
  encoding: UTF-8
127
127
  string: OK
128
128
  http_version:
129
- recorded_at: Sun, 01 Jan 2017 15:59:33 GMT
129
+ recorded_at: Mon, 02 Jan 2017 09:36:48 GMT
130
+ - request:
131
+ method: post
132
+ uri: https://mds-sandbox.datacite.org/metadata
133
+ body:
134
+ encoding: UTF-8
135
+ string: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <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">
138
+ <identifier identifierType="DOI">10.5072/0000-00SS</identifier>
139
+ <creators>
140
+ <creator>
141
+ <creatorName>Cruse, Patricia</creatorName>
142
+ <givenName>Patricia</givenName>
143
+ <familyName>Cruse</familyName>
144
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-9300-5278</nameIdentifier>
145
+ </creator>
146
+ <creator>
147
+ <creatorName>Rueda, Laura</creatorName>
148
+ <givenName>Laura</givenName>
149
+ <familyName>Rueda</familyName>
150
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-5952-7630</nameIdentifier>
151
+ </creator>
152
+ <creator>
153
+ <creatorName>Garza, Kristian</creatorName>
154
+ <givenName>Kristian</givenName>
155
+ <familyName>Garza</familyName>
156
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-3484-6875</nameIdentifier>
157
+ </creator>
158
+ <creator>
159
+ <creatorName>Fenner, Martin</creatorName>
160
+ <givenName>Martin</givenName>
161
+ <familyName>Fenner</familyName>
162
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
163
+ </creator>
164
+ </creators>
165
+ <titles>
166
+ <title>DataCite Blog</title>
167
+ </titles>
168
+ <publisher>DataCite</publisher>
169
+ <publicationYear>2015</publicationYear>
170
+ <resourceType resourceTypeGeneral="Collection">Blog</resourceType>
171
+ <alternateIdentifiers>
172
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-25-1785</alternateIdentifier>
173
+ </alternateIdentifiers>
174
+ <dates>
175
+ <date dateType="Created">2015-08-03</date>
176
+ <date dateType="Issued">2015-08-03</date>
177
+ <date dateType="Updated">2015-08-03</date>
178
+ </dates>
179
+ <version>1.0</version>
180
+ <descriptions>
181
+ <description descriptionType="Abstract">The DataCite blog.</description>
182
+ </descriptions>
183
+ </resource>
184
+ headers:
185
+ User-Agent:
186
+ - Maremma - https://github.com/datacite/maremma
187
+ Content-Type:
188
+ - application/xml;charset=UTF-8
189
+ Accept:
190
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
191
+ Authorization:
192
+ - Basic <MDS_TOKEN>
193
+ response:
194
+ status:
195
+ code: 201
196
+ message: ''
197
+ headers:
198
+ Server:
199
+ - openresty/1.11.2.1
200
+ Date:
201
+ - Mon, 02 Jan 2017 09:36:48 GMT
202
+ Content-Type:
203
+ - text/html;charset=UTF-8
204
+ Connection:
205
+ - keep-alive
206
+ Pragma:
207
+ - no-cache
208
+ Expires:
209
+ - Thu, 01 Jan 1970 00:00:00 GMT
210
+ Cache-Control:
211
+ - no-cache, no-store
212
+ Location:
213
+ - http://mds-sandbox.datacite.org/metadata/10.5072/0000-00SS
214
+ Access-Control-Allow-Origin:
215
+ - "*"
216
+ Access-Control-Allow-Methods:
217
+ - GET, POST, OPTIONS
218
+ body:
219
+ encoding: UTF-8
220
+ string: OK (10.5072/0000-00SS)
221
+ http_version:
222
+ recorded_at: Mon, 02 Jan 2017 09:36:48 GMT
223
+ - request:
224
+ method: put
225
+ uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-00SS
226
+ body:
227
+ encoding: UTF-8
228
+ string: |-
229
+ doi=10.5072/0000-00SS
230
+ url=https://blog.datacite.org/
231
+ headers:
232
+ User-Agent:
233
+ - Maremma - https://github.com/datacite/maremma
234
+ Content-Type:
235
+ - text/plain;charset=UTF-8
236
+ Accept:
237
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
238
+ Authorization:
239
+ - Basic <MDS_TOKEN>
240
+ response:
241
+ status:
242
+ code: 201
243
+ message: ''
244
+ headers:
245
+ Server:
246
+ - openresty/1.11.2.1
247
+ Date:
248
+ - Mon, 02 Jan 2017 09:36:48 GMT
249
+ Content-Type:
250
+ - text/html;charset=UTF-8
251
+ Connection:
252
+ - keep-alive
253
+ Pragma:
254
+ - no-cache
255
+ Expires:
256
+ - Thu, 01 Jan 1970 00:00:00 GMT
257
+ Cache-Control:
258
+ - no-cache, no-store
259
+ Access-Control-Allow-Origin:
260
+ - "*"
261
+ Access-Control-Allow-Methods:
262
+ - GET, POST, OPTIONS
263
+ body:
264
+ encoding: UTF-8
265
+ string: OK
266
+ http_version:
267
+ recorded_at: Mon, 02 Jan 2017 09:36:48 GMT
130
268
  recorded_with: VCR 3.0.3
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Server:
61
61
  - openresty/1.11.2.1
62
62
  Date:
63
- - Sun, 01 Jan 2017 15:59:29 GMT
63
+ - Mon, 02 Jan 2017 09:16:13 GMT
64
64
  Content-Type:
65
65
  - text/html;charset=UTF-8
66
66
  Connection:
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: UTF-8
82
82
  string: OK (10.5072/0000-03VC)
83
83
  http_version:
84
- recorded_at: Sun, 01 Jan 2017 15:59:29 GMT
84
+ recorded_at: Mon, 02 Jan 2017 09:16:13 GMT
85
85
  - request:
86
86
  method: put
87
87
  uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
@@ -107,7 +107,7 @@ http_interactions:
107
107
  Server:
108
108
  - openresty/1.11.2.1
109
109
  Date:
110
- - Sun, 01 Jan 2017 15:59:29 GMT
110
+ - Mon, 02 Jan 2017 09:16:14 GMT
111
111
  Content-Type:
112
112
  - text/html;charset=UTF-8
113
113
  Connection:
@@ -126,5 +126,5 @@ http_interactions:
126
126
  encoding: UTF-8
127
127
  string: OK
128
128
  http_version:
129
- recorded_at: Sun, 01 Jan 2017 15:59:29 GMT
129
+ recorded_at: Mon, 02 Jan 2017 09:16:14 GMT
130
130
  recorded_with: VCR 3.0.3
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Server:
61
61
  - openresty/1.11.2.1
62
62
  Date:
63
- - Sun, 01 Jan 2017 15:59:35 GMT
63
+ - Mon, 02 Jan 2017 09:16:27 GMT
64
64
  Content-Type:
65
65
  - text/html;charset=UTF-8
66
66
  Connection:
@@ -81,7 +81,7 @@ http_interactions:
81
81
  encoding: UTF-8
82
82
  string: OK (10.5072/0000-03VC)
83
83
  http_version:
84
- recorded_at: Sun, 01 Jan 2017 15:59:35 GMT
84
+ recorded_at: Mon, 02 Jan 2017 09:16:27 GMT
85
85
  - request:
86
86
  method: put
87
87
  uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
@@ -107,7 +107,7 @@ http_interactions:
107
107
  Server:
108
108
  - openresty/1.11.2.1
109
109
  Date:
110
- - Sun, 01 Jan 2017 15:59:36 GMT
110
+ - Mon, 02 Jan 2017 09:16:27 GMT
111
111
  Content-Type:
112
112
  - text/html;charset=UTF-8
113
113
  Connection:
@@ -126,5 +126,5 @@ http_interactions:
126
126
  encoding: UTF-8
127
127
  string: OK
128
128
  http_version:
129
- recorded_at: Sun, 01 Jan 2017 15:59:36 GMT
129
+ recorded_at: Mon, 02 Jan 2017 09:16:27 GMT
130
130
  recorded_with: VCR 3.0.3