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
@@ -2,19 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://mds-sandbox.datacite.org/metadata
5
+ uri: https://mds.test.datacite.org/metadata
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |
9
9
  <?xml version="1.0" encoding="UTF-8"?>
10
10
  <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>
11
+ <identifier identifierType="DOI">10.5438/0000-03VC</identifier>
12
12
  <creators>
13
13
  <creator>
14
14
  <creatorName>Fenner, Martin</creatorName>
15
15
  <givenName>Martin</givenName>
16
16
  <familyName>Fenner</familyName>
17
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
17
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">http://orcid.org/0000-0003-1419-2405</nameIdentifier>
18
18
  </creator>
19
19
  </creators>
20
20
  <titles>
@@ -24,10 +24,11 @@ http_interactions:
24
24
  <publicationYear>2016</publicationYear>
25
25
  <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
26
26
  <alternateIdentifiers>
27
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-123</alternateIdentifier>
27
+ <alternateIdentifier alternateIdentifierType=""/>
28
28
  </alternateIdentifiers>
29
29
  <subjects>
30
30
  <subject>doi</subject>
31
+ <subject>featured</subject>
31
32
  </subjects>
32
33
  <dates>
33
34
  <date dateType="Created">2016-12-15</date>
@@ -35,11 +36,14 @@ http_interactions:
35
36
  <date dateType="Updated">2016-12-15</date>
36
37
  </dates>
37
38
  <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
39
  <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://blog.datacite.org/</relatedIdentifier>
40
+ <relatedIdentifier relatedIdentifierType="URL" relationType="References">https://www.w3.org/Provider/Style/URI</relatedIdentifier>
41
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">https://doi.org/10.1371/journal.pone.0115253</relatedIdentifier>
41
42
  </relatedIdentifiers>
42
43
  <version>1.0</version>
44
+ <rightsList>
45
+ <rights rightsURI="https://creativecommons.org/licenses/by/4.0/"/>
46
+ </rightsList>
43
47
  <descriptions>
44
48
  <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
49
  </descriptions>
@@ -56,40 +60,42 @@ http_interactions:
56
60
  response:
57
61
  status:
58
62
  code: 201
59
- message: ''
63
+ message: Created
60
64
  headers:
61
- Server:
62
- - openresty/1.11.2.1
63
- Date:
64
- - Mon, 02 Jan 2017 21:21:36 GMT
65
+ Access-Control-Allow-Methods:
66
+ - GET, POST, OPTIONS
67
+ Access-Control-Allow-Origin:
68
+ - "*"
69
+ Cache-Control:
70
+ - no-cache, no-store
65
71
  Content-Type:
66
72
  - text/html;charset=UTF-8
67
- Connection:
68
- - keep-alive
69
- Pragma:
70
- - no-cache
73
+ Date:
74
+ - Sat, 22 Jul 2017 07:04:39 GMT
71
75
  Expires:
72
76
  - Thu, 01 Jan 1970 00:00:00 GMT
73
- Cache-Control:
74
- - no-cache, no-store
75
77
  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
78
+ - http://mds.test.datacite.org/metadata/10.5438/0000-03VC
79
+ Pragma:
80
+ - no-cache
81
+ Server:
82
+ - openresty/1.11.2.2
83
+ Content-Length:
84
+ - '22'
85
+ Connection:
86
+ - keep-alive
81
87
  body:
82
88
  encoding: UTF-8
83
- string: OK (10.5072/0000-03VC)
89
+ string: OK (10.5438/0000-03VC)
84
90
  http_version:
85
- recorded_at: Mon, 02 Jan 2017 21:21:36 GMT
91
+ recorded_at: Sat, 22 Jul 2017 07:04:38 GMT
86
92
  - request:
87
93
  method: put
88
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
94
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
89
95
  body:
90
96
  encoding: UTF-8
91
97
  string: |-
92
- doi=10.5072/0000-03VC
98
+ doi=10.5438/0000-03VC
93
99
  url=https://blog.datacite.org/cool-dois/
94
100
  headers:
95
101
  User-Agent:
@@ -103,72 +109,31 @@ http_interactions:
103
109
  response:
104
110
  status:
105
111
  code: 201
106
- message: ''
112
+ message: Created
107
113
  headers:
108
- Server:
109
- - openresty/1.11.2.1
110
- Date:
111
- - Mon, 02 Jan 2017 21:21:37 GMT
114
+ Access-Control-Allow-Methods:
115
+ - GET, POST, OPTIONS
116
+ Access-Control-Allow-Origin:
117
+ - "*"
118
+ Cache-Control:
119
+ - no-cache, no-store
112
120
  Content-Type:
113
121
  - text/html;charset=UTF-8
114
- Connection:
115
- - keep-alive
116
- Pragma:
117
- - no-cache
122
+ Date:
123
+ - Sat, 22 Jul 2017 07:04:39 GMT
118
124
  Expires:
119
125
  - 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
126
- body:
127
- encoding: UTF-8
128
- string: OK
129
- http_version:
130
- recorded_at: Mon, 02 Jan 2017 21:21:37 GMT
131
- - request:
132
- method: post
133
- uri: https://mds-sandbox.datacite.org/media/10.5072/0000-03VC
134
- body:
135
- encoding: UTF-8
136
- string: application/xml=https://blog.datacite.org/cool-dois/cool-dois.xml
137
- headers:
138
- User-Agent:
139
- - Maremma - https://github.com/datacite/maremma
140
- Content-Type:
141
- - text/plain;charset=UTF-8
142
- Accept:
143
- - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
144
- Authorization:
145
- - Basic <MDS_TOKEN>
146
- response:
147
- status:
148
- code: 200
149
- message: ''
150
- headers:
126
+ Pragma:
127
+ - no-cache
151
128
  Server:
152
- - openresty/1.11.2.1
153
- Date:
154
- - Mon, 02 Jan 2017 21:21:37 GMT
155
- Content-Type:
156
- - text/html;charset=UTF-8
129
+ - openresty/1.11.2.2
130
+ Content-Length:
131
+ - '2'
157
132
  Connection:
158
133
  - keep-alive
159
- Pragma:
160
- - no-cache
161
- Expires:
162
- - 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
169
134
  body:
170
135
  encoding: UTF-8
171
136
  string: OK
172
137
  http_version:
173
- recorded_at: Mon, 02 Jan 2017 21:21:37 GMT
138
+ recorded_at: Sat, 22 Jul 2017 07:04:38 GMT
174
139
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://mds-sandbox.datacite.org/doi
5
+ uri: https://mds.test.datacite.org/doi
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,26 +16,28 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: ''
19
+ message: OK
20
20
  headers:
21
- Server:
22
- - openresty/1.11.2.1
23
- Date:
24
- - Mon, 02 Jan 2017 09:16:04 GMT
21
+ Access-Control-Allow-Methods:
22
+ - GET, POST, OPTIONS
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Cache-Control:
26
+ - no-cache, no-store
25
27
  Content-Type:
26
28
  - text/html;charset=UTF-8
27
- Connection:
28
- - keep-alive
29
- Pragma:
30
- - no-cache
29
+ Date:
30
+ - Sat, 22 Jul 2017 07:18:36 GMT
31
31
  Expires:
32
32
  - Thu, 01 Jan 1970 00:00:00 GMT
33
- Cache-Control:
34
- - no-cache, no-store
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Allow-Methods:
38
- - GET, POST, OPTIONS
33
+ Pragma:
34
+ - no-cache
35
+ Server:
36
+ - openresty/1.11.2.2
37
+ Content-Length:
38
+ - '9355'
39
+ Connection:
40
+ - keep-alive
39
41
  body:
40
42
  encoding: UTF-8
41
43
  string: |-
@@ -69,6 +71,7 @@ http_interactions:
69
71
  10.5072/AS75-4EQA
70
72
  10.5072/BVFQ-WN8Z
71
73
  10.5072/BZAK-W7E4
74
+ 10.5072/C569060D-8163-4D69-BEA5-CEE3F8DCC6FBXXXXXXX
72
75
  10.5072/CHN1-2GV1
73
76
  10.5072/DC13-VP4J
74
77
  10.5072/E3S8-K40D
@@ -119,6 +122,8 @@ http_interactions:
119
122
  10.5072/YG5V-06JJ
120
123
  10.5072/YGQG-EN6Y
121
124
  10.5072/YV7E-2TV1
125
+ 10.5438/0000-00SS
126
+ 10.5438/0000-03VC
122
127
  10.5438/0001
123
128
  10.5438/0002
124
129
  10.5438/0003
@@ -553,8 +558,7 @@ http_interactions:
553
558
  10.5438/ZQGA-EWE7
554
559
  10.5438/ZR9Y-K3Z5
555
560
  10.5438/ZSKC-6BC1
556
- 10.5438/ZWSF-4Y7Y
557
561
  10.5438/ZYJN-KXX9
558
562
  http_version:
559
- recorded_at: Mon, 02 Jan 2017 09:16:04 GMT
563
+ recorded_at: Sat, 22 Jul 2017 07:18:35 GMT
560
564
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
5
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,29 +16,31 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: ''
19
+ message: OK
20
20
  headers:
21
- Server:
22
- - openresty/1.11.2.1
23
- Date:
24
- - Mon, 02 Jan 2017 09:16:04 GMT
21
+ Access-Control-Allow-Methods:
22
+ - GET, POST, OPTIONS
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Cache-Control:
26
+ - no-cache, no-store
25
27
  Content-Type:
26
28
  - text/html;charset=UTF-8
27
- Connection:
28
- - keep-alive
29
- Pragma:
30
- - no-cache
29
+ Date:
30
+ - Sat, 22 Jul 2017 07:18:36 GMT
31
31
  Expires:
32
32
  - Thu, 01 Jan 1970 00:00:00 GMT
33
- Cache-Control:
34
- - no-cache, no-store
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Allow-Methods:
38
- - GET, POST, OPTIONS
33
+ Pragma:
34
+ - no-cache
35
+ Server:
36
+ - openresty/1.11.2.2
37
+ Content-Length:
38
+ - '23'
39
+ Connection:
40
+ - keep-alive
39
41
  body:
40
42
  encoding: UTF-8
41
43
  string: http://www.datacite.org
42
44
  http_version:
43
- recorded_at: Mon, 02 Jan 2017 09:16:05 GMT
45
+ recorded_at: Sat, 22 Jul 2017 07:18:35 GMT
44
46
  recorded_with: VCR 3.0.3
@@ -2,11 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://mds-sandbox.datacite.org/doi/10.5072/0000-03VC
5
+ uri: https://mds.test.datacite.org/doi/10.5438/0000-03VC
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |-
9
- doi=10.5072/0000-03VC
9
+ doi=10.5438/0000-03VC
10
10
  url=http://www.datacite.org
11
11
  headers:
12
12
  User-Agent:
@@ -20,29 +20,31 @@ http_interactions:
20
20
  response:
21
21
  status:
22
22
  code: 201
23
- message: ''
23
+ message: Created
24
24
  headers:
25
- Server:
26
- - openresty/1.11.2.1
27
- Date:
28
- - Mon, 02 Jan 2017 09:16:04 GMT
25
+ Access-Control-Allow-Methods:
26
+ - GET, POST, OPTIONS
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Cache-Control:
30
+ - no-cache, no-store
29
31
  Content-Type:
30
32
  - text/html;charset=UTF-8
31
- Connection:
32
- - keep-alive
33
- Pragma:
34
- - no-cache
33
+ Date:
34
+ - Sat, 22 Jul 2017 07:18:36 GMT
35
35
  Expires:
36
36
  - Thu, 01 Jan 1970 00:00:00 GMT
37
- Cache-Control:
38
- - no-cache, no-store
39
- Access-Control-Allow-Origin:
40
- - "*"
41
- Access-Control-Allow-Methods:
42
- - GET, POST, OPTIONS
37
+ Pragma:
38
+ - no-cache
39
+ Server:
40
+ - openresty/1.11.2.2
41
+ Content-Length:
42
+ - '2'
43
+ Connection:
44
+ - keep-alive
43
45
  body:
44
46
  encoding: UTF-8
45
47
  string: OK
46
48
  http_version:
47
- recorded_at: Mon, 02 Jan 2017 09:16:04 GMT
49
+ recorded_at: Sat, 22 Jul 2017 07:18:35 GMT
48
50
  recorded_with: VCR 3.0.3
@@ -0,0 +1,38 @@
1
+ ---
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 08:21:07 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '157'
31
+ Date:
32
+ - Sat, 22 Jul 2017 07:21:57 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: ''
36
+ http_version:
37
+ recorded_at: Sat, 22 Jul 2017 07:21:57 GMT
38
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://mds-sandbox.datacite.org/metadata/10.5072/0000-03WD
5
+ uri: https://mds.test.datacite.org/metadata/10.5438/55E5-T5C0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -16,29 +16,31 @@ http_interactions:
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: ''
19
+ message: OK
20
20
  headers:
21
- Server:
22
- - openresty/1.11.2.1
23
- Date:
24
- - Mon, 02 Jan 2017 21:28:25 GMT
21
+ Access-Control-Allow-Methods:
22
+ - GET, POST, OPTIONS
23
+ Access-Control-Allow-Origin:
24
+ - "*"
25
+ Cache-Control:
26
+ - no-cache, no-store
25
27
  Content-Type:
26
28
  - text/html;charset=UTF-8
27
- Connection:
28
- - keep-alive
29
- Pragma:
30
- - no-cache
29
+ Date:
30
+ - Sat, 22 Jul 2017 07:18:31 GMT
31
31
  Expires:
32
32
  - Thu, 01 Jan 1970 00:00:00 GMT
33
- Cache-Control:
34
- - no-cache, no-store
35
- Access-Control-Allow-Origin:
36
- - "*"
37
- Access-Control-Allow-Methods:
38
- - GET, POST, OPTIONS
33
+ Pragma:
34
+ - no-cache
35
+ Server:
36
+ - openresty/1.11.2.2
37
+ Content-Length:
38
+ - '2'
39
+ Connection:
40
+ - keep-alive
39
41
  body:
40
42
  encoding: UTF-8
41
43
  string: OK
42
44
  http_version:
43
- recorded_at: Mon, 02 Jan 2017 21:28:25 GMT
45
+ recorded_at: Sat, 22 Jul 2017 07:18:30 GMT
44
46
  recorded_with: VCR 3.0.3
@@ -0,0 +1,81 @@
1
+ ---
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:18:33 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: ''
36
+ http_version:
37
+ recorded_at: Sat, 22 Jul 2017 07:18:32 GMT
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
81
+ recorded_with: VCR 3.0.3