bolognese 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +85 -24
  4. data/bin/bolognese +5 -1
  5. data/lib/bolognese/bibtex.rb +5 -1
  6. data/lib/bolognese/cli.rb +22 -23
  7. data/lib/bolognese/metadata.rb +3 -21
  8. data/lib/bolognese/utils.rb +38 -21
  9. data/lib/bolognese/version.rb +1 -1
  10. data/spec/bibtex_spec.rb +3 -0
  11. data/spec/cli_spec.rb +94 -43
  12. data/spec/fixtures/crossref.bib +3 -1
  13. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/crossref/as_bibtex.yml +7 -7
  14. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/crossref/as_crossref.yml +7 -7
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/crossref/as_datacite.yml +7 -723
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/crossref/as_schema_org.yml +7 -723
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/crossref/default.yml +7 -7
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +760 -0
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +760 -0
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +760 -0
  21. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +760 -0
  22. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/datacite/as_bibtex.yml +9 -9
  23. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/datacite/as_datacite.yml +9 -9
  24. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/datacite/as_schema_org.yml +9 -179
  25. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/datacite/default.yml +9 -9
  26. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +214 -0
  27. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +214 -0
  28. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +214 -0
  29. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/schema_org/as_bibtex.yml +10 -10
  30. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/schema_org/as_datacite.yml +10 -10
  31. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/schema_org/as_schema_org.yml +10 -10
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/{read → convert_from_id}/schema_org/default.yml +10 -10
  33. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +653 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +653 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +653 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/crossref.yml +44 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/crossref_doi_not_url.yml +44 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/datacite.yml +44 -0
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/datacite_doi_http.yml +44 -0
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +44 -0
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +44 -0
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +44 -0
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +44 -0
  44. data/spec/metadata_spec.rb +27 -7
  45. metadata +32 -14
@@ -0,0 +1,214 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.crossref.org/doiRA/10.5061/dryad.8515
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: 200
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - svc1-1
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
27
+ Content-Length:
28
+ - '56'
29
+ Date:
30
+ - Wed, 22 Feb 2017 17:30:22 GMT
31
+ Connection:
32
+ - close
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ [
37
+ {
38
+ "DOI": "10.5061/dryad.8515",
39
+ "RA": "DataCite"
40
+ }
41
+ ]
42
+ http_version:
43
+ recorded_at: Wed, 22 Feb 2017 17:30:23 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://doi.org/10.5061/dryad.8515
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Maremma - https://github.com/datacite/maremma
53
+ Accept:
54
+ - application/vnd.datacite.datacite+xml
55
+ response:
56
+ status:
57
+ code: 303
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - Accept
64
+ Location:
65
+ - http://data.datacite.org/10.5061%2Fdryad.8515
66
+ Expires:
67
+ - Wed, 22 Feb 2017 17:30:51 GMT
68
+ Content-Type:
69
+ - text/html;charset=utf-8
70
+ Content-Length:
71
+ - '175'
72
+ Date:
73
+ - Wed, 22 Feb 2017 17:30:23 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |-
77
+ <html><head><title>Handle Redirect</title></head>
78
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
+ http_version:
80
+ recorded_at: Wed, 22 Feb 2017 17:30:23 GMT
81
+ - request:
82
+ method: get
83
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ''
87
+ headers:
88
+ User-Agent:
89
+ - Maremma - https://github.com/datacite/maremma
90
+ Accept:
91
+ - application/vnd.datacite.datacite+xml
92
+ response:
93
+ status:
94
+ code: 301
95
+ message: ''
96
+ headers:
97
+ Server:
98
+ - openresty/1.11.2.2
99
+ Date:
100
+ - Wed, 22 Feb 2017 17:30:23 GMT
101
+ Content-Type:
102
+ - text/html
103
+ Content-Length:
104
+ - '191'
105
+ Connection:
106
+ - keep-alive
107
+ Location:
108
+ - https://data.datacite.org/10.5061%2Fdryad.8515
109
+ body:
110
+ encoding: UTF-8
111
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
113
+ http_version:
114
+ recorded_at: Wed, 22 Feb 2017 17:30:23 GMT
115
+ - request:
116
+ method: get
117
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ User-Agent:
123
+ - Maremma - https://github.com/datacite/maremma
124
+ Accept:
125
+ - application/vnd.datacite.datacite+xml
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: ''
130
+ headers:
131
+ Server:
132
+ - openresty/1.11.2.2
133
+ Date:
134
+ - Wed, 22 Feb 2017 17:30:23 GMT
135
+ Content-Type:
136
+ - application/vnd.datacite.datacite+xml
137
+ Content-Length:
138
+ - '2601'
139
+ Connection:
140
+ - keep-alive
141
+ Cache-Control:
142
+ - no-transform, max-age=3600
143
+ Last-Modified:
144
+ - Sat, 04 Feb 2017 17:54:37 GMT
145
+ Vary:
146
+ - Accept
147
+ Access-Control-Allow-Origin:
148
+ - "*"
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ body:
152
+ encoding: ASCII-8BIT
153
+ string: !binary |-
154
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
155
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwt
156
+ MyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVt
157
+ YS1pbnN0YW5jZSIgeG1sbnM6bWV0cz0iaHR0cDovL3d3dy5sb2MuZ292L01F
158
+ VFMvIiB4bWxuczpkc3BhY2U9Imh0dHA6Ly93d3cuZHNwYWNlLm9yZy94bWxu
159
+ cy9kc3BhY2UvZGltIiB4bWxuczpkaW09Imh0dHA6Ly93d3cuZHNwYWNlLm9y
160
+ Zy94bWxucy9kc3BhY2UvZGltIiB4bWxuczpkcnlhZD0iaHR0cDovL3B1cmwu
161
+ b3JnL2RyeWFkL3Rlcm1zLyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8v
162
+ ZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRh
163
+ dGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+ICA8aWRl
164
+ bnRpZmllciBpZGVudGlmaWVyVHlwZT0iRE9JIj4xMC41MDYxL0RSWUFELjg1
165
+ MTU8L2lkZW50aWZpZXI+ICA8dmVyc2lvbj4xPC92ZXJza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ZElkZW50aWZpZXJzPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRl
199
+ ZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSGFzUGFydCI+
200
+ MTAuNTA2MS9EUllBRC44NTE1LzE8L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8
201
+ cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElkZW50aWZpZXJUeXBlPSJET0ki
202
+ IHJlbGF0aW9uVHlwZT0iSGFzUGFydCI+MTAuNTA2MS9EUllBRC44NTE1LzI8
203
+ L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVs
204
+ YXRlZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSXNSZWZl
205
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
206
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
207
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
208
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
209
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
210
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
+ http_version:
213
+ recorded_at: Wed, 22 Feb 2017 17:30:23 GMT
214
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,214 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.crossref.org/doiRA/10.5061/dryad.8515
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: 200
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - svc1-1
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
27
+ Content-Length:
28
+ - '56'
29
+ Date:
30
+ - Wed, 22 Feb 2017 17:30:25 GMT
31
+ Connection:
32
+ - close
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ [
37
+ {
38
+ "DOI": "10.5061/dryad.8515",
39
+ "RA": "DataCite"
40
+ }
41
+ ]
42
+ http_version:
43
+ recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://doi.org/10.5061/dryad.8515
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Maremma - https://github.com/datacite/maremma
53
+ Accept:
54
+ - application/vnd.datacite.datacite+xml
55
+ response:
56
+ status:
57
+ code: 303
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - Accept
64
+ Location:
65
+ - http://data.datacite.org/10.5061%2Fdryad.8515
66
+ Expires:
67
+ - Wed, 22 Feb 2017 17:30:51 GMT
68
+ Content-Type:
69
+ - text/html;charset=utf-8
70
+ Content-Length:
71
+ - '175'
72
+ Date:
73
+ - Wed, 22 Feb 2017 17:30:25 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |-
77
+ <html><head><title>Handle Redirect</title></head>
78
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
+ http_version:
80
+ recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
81
+ - request:
82
+ method: get
83
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ''
87
+ headers:
88
+ User-Agent:
89
+ - Maremma - https://github.com/datacite/maremma
90
+ Accept:
91
+ - application/vnd.datacite.datacite+xml
92
+ response:
93
+ status:
94
+ code: 301
95
+ message: ''
96
+ headers:
97
+ Server:
98
+ - openresty/1.11.2.2
99
+ Date:
100
+ - Wed, 22 Feb 2017 17:30:26 GMT
101
+ Content-Type:
102
+ - text/html
103
+ Content-Length:
104
+ - '191'
105
+ Connection:
106
+ - keep-alive
107
+ Location:
108
+ - https://data.datacite.org/10.5061%2Fdryad.8515
109
+ body:
110
+ encoding: UTF-8
111
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
113
+ http_version:
114
+ recorded_at: Wed, 22 Feb 2017 17:30:26 GMT
115
+ - request:
116
+ method: get
117
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ User-Agent:
123
+ - Maremma - https://github.com/datacite/maremma
124
+ Accept:
125
+ - application/vnd.datacite.datacite+xml
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: ''
130
+ headers:
131
+ Server:
132
+ - openresty/1.11.2.2
133
+ Date:
134
+ - Wed, 22 Feb 2017 17:30:26 GMT
135
+ Content-Type:
136
+ - application/vnd.datacite.datacite+xml
137
+ Content-Length:
138
+ - '2601'
139
+ Connection:
140
+ - keep-alive
141
+ Cache-Control:
142
+ - no-transform, max-age=3600
143
+ Last-Modified:
144
+ - Sat, 04 Feb 2017 17:54:37 GMT
145
+ Vary:
146
+ - Accept
147
+ Access-Control-Allow-Origin:
148
+ - "*"
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ body:
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0iSGFzUGFydCI+MTAuNTA2MS9EUllBRC44NTE1LzI8
203
+ L3JlbGF0ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVs
204
+ YXRlZElkZW50aWZpZXJUeXBlPSJET0kiIHJlbGF0aW9uVHlwZT0iSXNSZWZl
205
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
206
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
207
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
208
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
209
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
210
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
+ http_version:
213
+ recorded_at: Wed, 22 Feb 2017 17:30:26 GMT
214
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,214 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.crossref.org/doiRA/10.5061/dryad.8515
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: 200
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Crossref-Deployment-Name:
22
+ - svc1-1
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Language:
26
+ - en-US
27
+ Content-Length:
28
+ - '56'
29
+ Date:
30
+ - Wed, 22 Feb 2017 17:30:23 GMT
31
+ Connection:
32
+ - close
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ [
37
+ {
38
+ "DOI": "10.5061/dryad.8515",
39
+ "RA": "DataCite"
40
+ }
41
+ ]
42
+ http_version:
43
+ recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://doi.org/10.5061/dryad.8515
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Maremma - https://github.com/datacite/maremma
53
+ Accept:
54
+ - application/vnd.datacite.datacite+xml
55
+ response:
56
+ status:
57
+ code: 303
58
+ message: ''
59
+ headers:
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Vary:
63
+ - Accept
64
+ Location:
65
+ - http://data.datacite.org/10.5061%2Fdryad.8515
66
+ Expires:
67
+ - Wed, 22 Feb 2017 17:30:51 GMT
68
+ Content-Type:
69
+ - text/html;charset=utf-8
70
+ Content-Length:
71
+ - '175'
72
+ Date:
73
+ - Wed, 22 Feb 2017 17:30:24 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |-
77
+ <html><head><title>Handle Redirect</title></head>
78
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
79
+ http_version:
80
+ recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
81
+ - request:
82
+ method: get
83
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ''
87
+ headers:
88
+ User-Agent:
89
+ - Maremma - https://github.com/datacite/maremma
90
+ Accept:
91
+ - application/vnd.datacite.datacite+xml
92
+ response:
93
+ status:
94
+ code: 301
95
+ message: ''
96
+ headers:
97
+ Server:
98
+ - openresty/1.11.2.2
99
+ Date:
100
+ - Wed, 22 Feb 2017 17:30:24 GMT
101
+ Content-Type:
102
+ - text/html
103
+ Content-Length:
104
+ - '191'
105
+ Connection:
106
+ - keep-alive
107
+ Location:
108
+ - https://data.datacite.org/10.5061%2Fdryad.8515
109
+ body:
110
+ encoding: UTF-8
111
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
112
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
113
+ http_version:
114
+ recorded_at: Wed, 22 Feb 2017 17:30:24 GMT
115
+ - request:
116
+ method: get
117
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ headers:
122
+ User-Agent:
123
+ - Maremma - https://github.com/datacite/maremma
124
+ Accept:
125
+ - application/vnd.datacite.datacite+xml
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: ''
130
+ headers:
131
+ Server:
132
+ - openresty/1.11.2.2
133
+ Date:
134
+ - Wed, 22 Feb 2017 17:30:25 GMT
135
+ Content-Type:
136
+ - application/vnd.datacite.datacite+xml
137
+ Content-Length:
138
+ - '2601'
139
+ Connection:
140
+ - keep-alive
141
+ Cache-Control:
142
+ - no-transform, max-age=3600
143
+ Last-Modified:
144
+ - Sat, 04 Feb 2017 17:54:37 GMT
145
+ Vary:
146
+ - Accept
147
+ Access-Control-Allow-Origin:
148
+ - "*"
149
+ Access-Control-Allow-Methods:
150
+ - GET, POST, OPTIONS
151
+ body:
152
+ encoding: ASCII-8BIT
153
+ string: !binary |-
154
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
155
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwt
156
+ MyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVt
157
+ YS1pbnN0YW5jZSIgeG1sbnM6bWV0cz0iaHR0c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sYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
207
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
208
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
209
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
210
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
211
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
212
+ http_version:
213
+ recorded_at: Wed, 22 Feb 2017 17:30:25 GMT
214
+ recorded_with: VCR 3.0.3