datacite_doi_ify 0.0.1

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.
@@ -0,0 +1,234 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://test:test@mds.datacite.org/metadata
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <resource xmlns="http://datacite.org/schema/kernel-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd">
10
+ <identifier identifierType="DOI">10.5072/test_doi</identifier>
11
+ <creators>
12
+ <creator>
13
+ <creatorName>First, Last</creatorName>
14
+ </creator>
15
+ <creator>
16
+ <creatorName>Test, Doi</creatorName>
17
+ </creator>
18
+ </creators>
19
+ <titles>
20
+ <title>For testing</title>
21
+ </titles>
22
+ <publisher>ABC</publisher>
23
+ <publicationYear>2013</publicationYear>
24
+ <subjects>
25
+ <subject>Assessment</subject>
26
+ <subject>Information Literacy</subject>
27
+ <subject>Engineering</subject>
28
+ </subjects>
29
+ <language>eng</language>
30
+ <resourceType resourceTypeGeneral="Dataset">Dataset</resourceType>
31
+ <version>1</version>
32
+ <descriptions>
33
+ <description descriptionType="Abstract">
34
+ A test
35
+ </description>
36
+ </descriptions>
37
+ </resource>
38
+ headers:
39
+ Accept:
40
+ - "*/*; q=0.5, application/xml"
41
+ Accept-Encoding:
42
+ - gzip, deflate
43
+ Content-Type:
44
+ - application/xml;charset=UTF-8
45
+ Content-Length:
46
+ - '882'
47
+ User-Agent:
48
+ - Ruby
49
+ response:
50
+ status:
51
+ code: 201
52
+ message: Created
53
+ headers:
54
+ Date:
55
+ - Tue, 04 Nov 2014 15:06:55 GMT
56
+ Pragma:
57
+ - no-cache
58
+ Expires:
59
+ - Thu, 01 Jan 1970 00:00:00 GMT
60
+ Cache-Control:
61
+ - no-cache
62
+ - no-store
63
+ Location:
64
+ - https://mds.datacite.org/metadata/10.5072/test_doi
65
+ Content-Type:
66
+ - application/xml;charset=UTF-8
67
+ Content-Length:
68
+ - '21'
69
+ body:
70
+ encoding: UTF-8
71
+ string: OK (10.5072/test_doi)
72
+ http_version:
73
+ recorded_at: Tue, 04 Nov 2014 15:06:57 GMT
74
+ - request:
75
+ method: post
76
+ uri: https://test:test@mds.datacite.org/doi
77
+ body:
78
+ encoding: UTF-8
79
+ string: |-
80
+ doi=10.5072/test_doi
81
+ url=https://seek.sysmo-db.org
82
+ headers:
83
+ Accept:
84
+ - "*/*; q=0.5, application/xml"
85
+ Accept-Encoding:
86
+ - gzip, deflate
87
+ Content-Type:
88
+ - text/plain;charset=UTF-8
89
+ Content-Length:
90
+ - '50'
91
+ User-Agent:
92
+ - Ruby
93
+ response:
94
+ status:
95
+ code: 201
96
+ message: Created
97
+ headers:
98
+ Date:
99
+ - Tue, 04 Nov 2014 15:15:01 GMT
100
+ Pragma:
101
+ - no-cache
102
+ Expires:
103
+ - Thu, 01 Jan 1970 00:00:00 GMT
104
+ Cache-Control:
105
+ - no-cache
106
+ - no-store
107
+ Location:
108
+ - https://mds.datacite.org/doi/10.5072/TEST_DOI
109
+ Content-Type:
110
+ - application/xml;charset=UTF-8
111
+ Content-Length:
112
+ - '2'
113
+ body:
114
+ encoding: UTF-8
115
+ string: OK
116
+ http_version:
117
+ recorded_at: Tue, 04 Nov 2014 15:15:03 GMT
118
+ - request:
119
+ method: get
120
+ uri: https://test:test@mds.datacite.org/doi/10.5072/test_doi
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ''
124
+ headers:
125
+ Accept:
126
+ - "*/*; q=0.5, application/xml"
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ User-Agent:
130
+ - Ruby
131
+ response:
132
+ status:
133
+ code: 200
134
+ message: OK
135
+ headers:
136
+ Date:
137
+ - Tue, 04 Nov 2014 15:16:38 GMT
138
+ Cache-Control:
139
+ - no-cache
140
+ - no-store
141
+ Expires:
142
+ - Thu, 01 Jan 1970 00:00:00 GMT
143
+ Pragma:
144
+ - no-cache
145
+ Content-Type:
146
+ - application/xml;charset=UTF-8
147
+ Content-Length:
148
+ - '25'
149
+ body:
150
+ encoding: UTF-8
151
+ string: https://seek.sysmo-db.org
152
+ http_version:
153
+ recorded_at: Tue, 04 Nov 2014 15:16:41 GMT
154
+ - request:
155
+ method: post
156
+ uri: https://test:test@mds.datacite.org/doi
157
+ body:
158
+ encoding: UTF-8
159
+ string: |-
160
+ doi=10.5072/test_doi
161
+ url=https://seek.sysmo-db.org/data_files
162
+ headers:
163
+ Accept:
164
+ - "*/*; q=0.5, application/xml"
165
+ Accept-Encoding:
166
+ - gzip, deflate
167
+ Content-Type:
168
+ - text/plain;charset=UTF-8
169
+ Content-Length:
170
+ - '61'
171
+ User-Agent:
172
+ - Ruby
173
+ response:
174
+ status:
175
+ code: 201
176
+ message: Created
177
+ headers:
178
+ Date:
179
+ - Tue, 04 Nov 2014 15:01:54 GMT
180
+ Pragma:
181
+ - no-cache
182
+ Expires:
183
+ - Thu, 01 Jan 1970 00:00:00 GMT
184
+ Cache-Control:
185
+ - no-cache
186
+ - no-store
187
+ Location:
188
+ - https://mds.datacite.org/doi/10.5072/TEST_DOI
189
+ Content-Type:
190
+ - application/xml;charset=UTF-8
191
+ Content-Length:
192
+ - '2'
193
+ body:
194
+ encoding: UTF-8
195
+ string: OK
196
+ http_version:
197
+ recorded_at: Tue, 04 Nov 2014 15:01:57 GMT
198
+ - request:
199
+ method: get
200
+ uri: https://test:test@mds.datacite.org/doi/10.5072/test_doi
201
+ body:
202
+ encoding: US-ASCII
203
+ string: ''
204
+ headers:
205
+ Accept:
206
+ - "*/*; q=0.5, application/xml"
207
+ Accept-Encoding:
208
+ - gzip, deflate
209
+ User-Agent:
210
+ - Ruby
211
+ response:
212
+ status:
213
+ code: 200
214
+ message: OK
215
+ headers:
216
+ Date:
217
+ - Tue, 04 Nov 2014 15:01:55 GMT
218
+ Cache-Control:
219
+ - no-cache
220
+ - no-store
221
+ Expires:
222
+ - Thu, 01 Jan 1970 00:00:00 GMT
223
+ Pragma:
224
+ - no-cache
225
+ Content-Type:
226
+ - application/xml;charset=UTF-8
227
+ Content-Length:
228
+ - '36'
229
+ body:
230
+ encoding: UTF-8
231
+ string: https://seek.sysmo-db.org/data_files
232
+ http_version:
233
+ recorded_at: Tue, 04 Nov 2014 15:01:57 GMT
234
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://invalid:invalid@mds.datacite.org/doi/10.5072/MY_TEST
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 401
19
+ message: Unauthorized
20
+ headers:
21
+ Date:
22
+ - Tue, 04 Nov 2014 13:41:33 GMT
23
+ Cache-Control:
24
+ - private
25
+ Expires:
26
+ - Thu, 01 Jan 1970 00:00:00 UTC
27
+ Www-Authenticate:
28
+ - Basic realm="mds.datacite.org"
29
+ Content-Length:
30
+ - '15'
31
+ Content-Type:
32
+ - text/plain
33
+ body:
34
+ encoding: UTF-8
35
+ string: Bad credentials
36
+ http_version:
37
+ recorded_at: Tue, 04 Nov 2014 13:41:35 GMT
38
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://test:test@mds.datacite.org/doi/non-existing
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Date:
22
+ - Tue, 04 Nov 2014 13:44:01 GMT
23
+ Cache-Control:
24
+ - no-cache
25
+ - no-store
26
+ Expires:
27
+ - Thu, 01 Jan 1970 00:00:00 GMT
28
+ Pragma:
29
+ - no-cache
30
+ Content-Length:
31
+ - '13'
32
+ Content-Type:
33
+ - text/plain
34
+ body:
35
+ encoding: UTF-8
36
+ string: DOI not found
37
+ http_version:
38
+ recorded_at: Tue, 04 Nov 2014 13:44:03 GMT
39
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://test:test@mds.datacite.org/doi/10.5072/MY_TEST
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 04 Nov 2014 13:33:23 GMT
23
+ Cache-Control:
24
+ - no-cache
25
+ - no-store
26
+ Expires:
27
+ - Thu, 01 Jan 1970 00:00:00 GMT
28
+ Pragma:
29
+ - no-cache
30
+ Content-Type:
31
+ - application/xml;charset=UTF-8
32
+ Content-Length:
33
+ - '25'
34
+ body:
35
+ encoding: UTF-8
36
+ string: https://seek.sysmo-db.org
37
+ http_version:
38
+ recorded_at: Tue, 04 Nov 2014 13:33:26 GMT
39
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://test:test@mds.datacite.org/metadata/non-existing
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Date:
22
+ - Tue, 04 Nov 2014 13:47:48 GMT
23
+ Cache-Control:
24
+ - no-cache
25
+ - no-store
26
+ Expires:
27
+ - Thu, 01 Jan 1970 00:00:00 GMT
28
+ Pragma:
29
+ - no-cache
30
+ Content-Length:
31
+ - '21'
32
+ Content-Type:
33
+ - text/plain
34
+ body:
35
+ encoding: UTF-8
36
+ string: DOI is unknown to MDS
37
+ http_version:
38
+ recorded_at: Tue, 04 Nov 2014 13:47:50 GMT
39
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://test:test@mds.datacite.org/metadata/10.5072/MY_TEST
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 04 Nov 2014 13:46:11 GMT
23
+ Cache-Control:
24
+ - no-cache
25
+ - no-store
26
+ Expires:
27
+ - Thu, 01 Jan 1970 00:00:00 GMT
28
+ Pragma:
29
+ - no-cache
30
+ Content-Type:
31
+ - application/xml;charset=UTF-8
32
+ Content-Length:
33
+ - '821'
34
+ body:
35
+ encoding: UTF-8
36
+ string: |
37
+ <resource xmlns="http://datacite.org/schema/kernel-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd">
38
+ <identifier identifierType="DOI">10.5072/my_test</identifier>
39
+ <creators>
40
+ <creator>
41
+ <creatorName>First, Last</creatorName>
42
+ </creator>
43
+ </creators>
44
+ <titles>
45
+ <title>For testing</title>
46
+ </titles>
47
+ <publisher>ABC</publisher>
48
+ <publicationYear>2013</publicationYear>
49
+ <subjects>
50
+ <subject>Assessment</subject>
51
+ <subject>Information Literacy</subject>
52
+ <subject>Engineering</subject>
53
+ </subjects>
54
+ <language>eng</language>
55
+ <resourceType resourceTypeGeneral="Dataset">Dataset</resourceType>
56
+ <version>1</version>
57
+ <descriptions>
58
+ <description descriptionType="Abstract">
59
+ A test
60
+ </description>
61
+ </descriptions>
62
+ </resource>
63
+ http_version:
64
+ recorded_at: Tue, 04 Nov 2014 13:46:14 GMT
65
+ recorded_with: VCR 2.9.3