bolognese 0.8.5 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -9
- data/README.md +15 -1
- data/lib/bolognese.rb +2 -0
- data/lib/bolognese/bibtex.rb +57 -1
- data/lib/bolognese/citeproc.rb +116 -0
- data/lib/bolognese/codemeta.rb +9 -1
- data/lib/bolognese/crossref.rb +20 -0
- data/lib/bolognese/datacite.rb +9 -1
- data/lib/bolognese/datacite_json.rb +9 -1
- data/lib/bolognese/datacite_utils.rb +1 -1
- data/lib/bolognese/metadata.rb +185 -1
- data/lib/bolognese/ris.rb +117 -0
- data/lib/bolognese/schema_org.rb +8 -0
- data/lib/bolognese/utils.rb +84 -17
- data/lib/bolognese/version.rb +1 -1
- data/resources/kernel-3/metadata.xsd +3 -3
- data/spec/bibtex_spec.rb +34 -0
- data/spec/citeproc_spec.rb +48 -0
- data/spec/codemeta_spec.rb +33 -3
- data/spec/crossref_spec.rb +80 -2
- data/spec/datacite_json_spec.rb +28 -12
- data/spec/datacite_spec.rb +72 -0
- data/spec/datacite_utils_spec.rb +1 -1
- data/spec/fixtures/citeproc.json +21 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_citeproc/maremma.yml +100 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/BlogPosting.yml +100 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/maremma.yml +100 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml +723 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/with_pages.yml +370 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/journal_article.yml +723 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/with_pages.yml +370 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Citeproc_JSON.yml +173 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/BlogPosting.yml +155 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/Dataset.yml +173 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/BlogPosting.yml +155 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/Dataset.yml +173 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/read/datacite.yml +173 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write/datacite_to_bibtex.yml +173 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_citeproc/BlogPosting.yml +653 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_ris/BlogPosting.yml +653 -0
- data/spec/schema_org_spec.rb +30 -0
- data/spec/utils_spec.rb +50 -0
- metadata +22 -2
data/spec/datacite_json_spec.rb
CHANGED
@@ -40,7 +40,7 @@ describe Bolognese::DataciteJson, vcr: true do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
context "get metadata as bibtex" do
|
43
|
-
it "
|
43
|
+
it "BlogPosting" do
|
44
44
|
bibtex = BibTeX.parse(subject.bibtex).to_a(quotes: '').first
|
45
45
|
expect(bibtex[:bibtex_type].to_s).to eq("article")
|
46
46
|
expect(bibtex[:bibtex_key]).to eq("https://doi.org/10.5438/4k3m-nyvg")
|
@@ -50,19 +50,35 @@ describe Bolognese::DataciteJson, vcr: true do
|
|
50
50
|
expect(bibtex[:publisher]).to eq("DataCite")
|
51
51
|
expect(bibtex[:year]).to eq("2016")
|
52
52
|
end
|
53
|
+
end
|
53
54
|
|
55
|
+
context "get metadata as citeproc" do
|
54
56
|
it "BlogPosting" do
|
55
|
-
|
56
|
-
|
57
|
-
expect(
|
58
|
-
|
59
|
-
expect(
|
60
|
-
expect(
|
61
|
-
expect(
|
62
|
-
expect(
|
63
|
-
|
64
|
-
|
65
|
-
|
57
|
+
json = JSON.parse(subject.citeproc)
|
58
|
+
expect(json["type"]).to eq("report")
|
59
|
+
expect(json["id"]).to eq("https://doi.org/10.5438/4k3m-nyvg")
|
60
|
+
expect(json["DOI"]).to eq("10.5438/4K3M-NYVG")
|
61
|
+
expect(json["title"]).to eq("Eating your own Dog Food")
|
62
|
+
expect(json["author"]).to eq("family" => "Fenner","given" => "Martin")
|
63
|
+
expect(json["publisher"]).to eq("DataCite")
|
64
|
+
expect(json["issued"]).to eq("date-parts" => [[2016, 12, 20]])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
context "get metadata as ris" do
|
69
|
+
it "BlogPosting" do
|
70
|
+
ris = subject.ris.split("\r\n")
|
71
|
+
expect(ris[0]).to eq("TY - GEN")
|
72
|
+
expect(ris[1]).to eq("T1 - Eating your own Dog Food")
|
73
|
+
expect(ris[2]).to eq("T2 - DataCite")
|
74
|
+
expect(ris[3]).to eq("AU - Fenner, Martin")
|
75
|
+
expect(ris[4]).to eq("DO - 10.5438/4K3M-NYVG")
|
76
|
+
expect(ris[5]).to eq("AB - Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...")
|
77
|
+
expect(ris[6]).to eq("KW - datacite")
|
78
|
+
expect(ris[9]).to eq("PY - 2016")
|
79
|
+
expect(ris[10]).to eq("PB - DataCite")
|
80
|
+
expect(ris[11]).to eq("AN - MS-49-3632-5083")
|
81
|
+
expect(ris[12]).to eq("ER - ")
|
66
82
|
end
|
67
83
|
end
|
68
84
|
end
|
data/spec/datacite_spec.rb
CHANGED
@@ -257,4 +257,76 @@ describe Bolognese::Datacite, vcr: true do
|
|
257
257
|
expect(bibtex[:year]).to eq("2016")
|
258
258
|
end
|
259
259
|
end
|
260
|
+
|
261
|
+
context "get metadata as citeproc" do
|
262
|
+
it "Dataset" do
|
263
|
+
subject = Bolognese::Datacite.new(id: id)
|
264
|
+
expect(subject.valid?).to be true
|
265
|
+
json = JSON.parse(subject.citeproc)
|
266
|
+
expect(json["type"]).to eq("dataset")
|
267
|
+
expect(json["id"]).to eq("https://doi.org/10.5061/dryad.8515")
|
268
|
+
expect(json["DOI"]).to eq("10.5061/DRYAD.8515")
|
269
|
+
expect(json["title"]).to eq("Data from: A new malaria agent in African hominids.")
|
270
|
+
expect(json["author"]).to eq([{"family"=>"Ollomo", "given"=>"Benjamin"},
|
271
|
+
{"family"=>"Durand", "given"=>"Patrick"},
|
272
|
+
{"family"=>"Prugnolle", "given"=>"Franck"},
|
273
|
+
{"family"=>"Douzery", "given"=>"Emmanuel J. P."},
|
274
|
+
{"family"=>"Arnathau", "given"=>"Céline"},
|
275
|
+
{"family"=>"Nkoghe", "given"=>"Dieudonné"},
|
276
|
+
{"family"=>"Leroy", "given"=>"Eric"},
|
277
|
+
{"family"=>"Renaud", "given"=>"François"}])
|
278
|
+
expect(json["publisher"]).to eq("Dryad Digital Repository")
|
279
|
+
expect(json["issued"]).to eq("date-parts" => [[2011]])
|
280
|
+
end
|
281
|
+
|
282
|
+
it "BlogPosting" do
|
283
|
+
id = "https://doi.org/10.5438/4K3M-NYVG"
|
284
|
+
subject = Bolognese::Datacite.new(id: id)
|
285
|
+
expect(subject.valid?).to be true
|
286
|
+
json = JSON.parse(subject.citeproc)
|
287
|
+
expect(json["type"]).to eq("report")
|
288
|
+
expect(json["id"]).to eq("https://doi.org/10.5438/4k3m-nyvg")
|
289
|
+
expect(json["DOI"]).to eq("10.5438/4K3M-NYVG")
|
290
|
+
expect(json["title"]).to eq("Eating your own Dog Food")
|
291
|
+
expect(json["author"]).to eq("family"=>"Fenner", "given"=>"Martin")
|
292
|
+
expect(json["publisher"]).to eq("DataCite")
|
293
|
+
expect(json["issued"]).to eq("date-parts"=>[[2016, 12, 20]])
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
context "get metadata as ris" do
|
298
|
+
it "Dataset" do
|
299
|
+
subject = Bolognese::Datacite.new(id: id)
|
300
|
+
expect(subject.valid?).to be true
|
301
|
+
ris = subject.ris.split("\r\n")
|
302
|
+
expect(ris[0]).to eq("TY - DATA")
|
303
|
+
expect(ris[1]).to eq("T1 - Data from: A new malaria agent in African hominids.")
|
304
|
+
expect(ris[2]).to eq("T2 - Dryad Digital Repository")
|
305
|
+
expect(ris[3]).to eq("AU - Ollomo, Benjamin")
|
306
|
+
expect(ris[11]).to eq("DO - 10.5061/DRYAD.8515")
|
307
|
+
expect(ris[13]).to eq("KW - Malaria")
|
308
|
+
expect(ris[19]).to eq("PY - 2011")
|
309
|
+
expect(ris[20]).to eq("PB - Dryad Digital Repository")
|
310
|
+
expect(ris[21]).to eq("AN - Ollomo B, Durand P, Prugnolle F, Douzery EJP, Arnathau C, Nkoghe D, Leroy E, Renaud F (2009) A new malaria agent in African hominids. PLoS Pathogens 5(5): e1000446.")
|
311
|
+
expect(ris[22]).to eq("ER - ")
|
312
|
+
end
|
313
|
+
|
314
|
+
it "BlogPosting" do
|
315
|
+
id = "https://doi.org/10.5438/4K3M-NYVG"
|
316
|
+
subject = Bolognese::Datacite.new(id: id)
|
317
|
+
expect(subject.valid?).to be true
|
318
|
+
ris = subject.ris.split("\r\n")
|
319
|
+
expect(ris[0]).to eq("TY - GEN")
|
320
|
+
expect(ris[1]).to eq("T1 - Eating your own Dog Food")
|
321
|
+
expect(ris[2]).to eq("T2 - DataCite")
|
322
|
+
expect(ris[3]).to eq("AU - Fenner, Martin")
|
323
|
+
expect(ris[4]).to eq("DO - 10.5438/4K3M-NYVG")
|
324
|
+
expect(ris[5]).to eq("AB - Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...")
|
325
|
+
expect(ris[6]).to eq("KW - datacite")
|
326
|
+
expect(ris[9]).to eq("PY - 2016")
|
327
|
+
expect(ris[10]).to eq("PB - DataCite")
|
328
|
+
expect(ris[11]).to eq("AN - MS-49-3632-5083")
|
329
|
+
expect(ris[12]).to eq("ER - ")
|
330
|
+
end
|
331
|
+
end
|
260
332
|
end
|
data/spec/datacite_utils_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe Bolognese::Datacite, vcr: true do
|
|
17
17
|
it "insert" do
|
18
18
|
xml = Nokogiri::XML::Builder.new { |xml| subject.insert_creators(xml) }.to_xml
|
19
19
|
response = Maremma.from_xml(xml)
|
20
|
-
expect(response.dig("creators", "creator").first).to eq("creatorName"=>"Benjamin
|
20
|
+
expect(response.dig("creators", "creator").first).to eq("creatorName"=>"Ollomo, Benjamin", "givenName"=>"Benjamin", "familyName"=>"Ollomo")
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"type": "post-weblog",
|
3
|
+
"id": "https://doi.org/10.5438/4k3m-nyvg",
|
4
|
+
"DOI": "10.5438/4k3m-nyvg",
|
5
|
+
"URL": "https://blog.datacite.org/eating-your-own-dog-food",
|
6
|
+
"title": "Eating your own Dog Food",
|
7
|
+
"container-title": "DataCite Blog",
|
8
|
+
"publisher": "DataCite",
|
9
|
+
"abstract": "Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...",
|
10
|
+
"issued": {
|
11
|
+
"date-parts": [
|
12
|
+
[
|
13
|
+
2016, 12, 20
|
14
|
+
]
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"author": [{
|
18
|
+
"family": "Fenner",
|
19
|
+
"given": "Martin"
|
20
|
+
}]
|
21
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://raw.githubusercontent.com/datacite/maremma/master/codemeta.json
|
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
|
+
Content-Security-Policy:
|
20
|
+
- default-src 'none'; style-src 'unsafe-inline'
|
21
|
+
Strict-Transport-Security:
|
22
|
+
- max-age=31536000
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Frame-Options:
|
26
|
+
- deny
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
Etag:
|
30
|
+
- '"196d90076a30d5604c5f5710dcce236a25ce60a7"'
|
31
|
+
Content-Type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=300
|
35
|
+
X-Geo-Block-List:
|
36
|
+
- ''
|
37
|
+
X-Github-Request-Id:
|
38
|
+
- 5094:2BCA5:2829DA4:29BBD9D:58E950A2
|
39
|
+
Content-Length:
|
40
|
+
- '1260'
|
41
|
+
Accept-Ranges:
|
42
|
+
- bytes
|
43
|
+
Date:
|
44
|
+
- Sat, 08 Apr 2017 21:05:39 GMT
|
45
|
+
Via:
|
46
|
+
- 1.1 varnish
|
47
|
+
Connection:
|
48
|
+
- keep-alive
|
49
|
+
X-Served-By:
|
50
|
+
- cache-hhn1522-HHN
|
51
|
+
X-Cache:
|
52
|
+
- MISS
|
53
|
+
X-Cache-Hits:
|
54
|
+
- '0'
|
55
|
+
X-Timer:
|
56
|
+
- S1491685539.332544,VS0,VE120
|
57
|
+
Vary:
|
58
|
+
- Authorization,Accept-Encoding
|
59
|
+
Access-Control-Allow-Origin:
|
60
|
+
- "*"
|
61
|
+
X-Fastly-Request-Id:
|
62
|
+
- 13ddb24abdba610a9377e0254b2eccf87b6e5249
|
63
|
+
Expires:
|
64
|
+
- Sat, 08 Apr 2017 21:10:39 GMT
|
65
|
+
Source-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+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://raw.githubusercontent.com/datacite/maremma/master/codemeta.json
|
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
|
+
Content-Security-Policy:
|
20
|
+
- default-src 'none'; style-src 'unsafe-inline'
|
21
|
+
Strict-Transport-Security:
|
22
|
+
- max-age=31536000
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Frame-Options:
|
26
|
+
- deny
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
Etag:
|
30
|
+
- '"196d90076a30d5604c5f5710dcce236a25ce60a7"'
|
31
|
+
Content-Type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=300
|
35
|
+
X-Geo-Block-List:
|
36
|
+
- ''
|
37
|
+
X-Github-Request-Id:
|
38
|
+
- 1946:2BCA3:C7BC11:D09AF4:58EA68E2
|
39
|
+
Content-Length:
|
40
|
+
- '1260'
|
41
|
+
Accept-Ranges:
|
42
|
+
- bytes
|
43
|
+
Date:
|
44
|
+
- Sun, 09 Apr 2017 17:01:22 GMT
|
45
|
+
Via:
|
46
|
+
- 1.1 varnish
|
47
|
+
Connection:
|
48
|
+
- keep-alive
|
49
|
+
X-Served-By:
|
50
|
+
- cache-hhn1531-HHN
|
51
|
+
X-Cache:
|
52
|
+
- MISS
|
53
|
+
X-Cache-Hits:
|
54
|
+
- '0'
|
55
|
+
X-Timer:
|
56
|
+
- S1491757283.770143,VS0,VE118
|
57
|
+
Vary:
|
58
|
+
- Authorization,Accept-Encoding
|
59
|
+
Access-Control-Allow-Origin:
|
60
|
+
- "*"
|
61
|
+
X-Fastly-Request-Id:
|
62
|
+
- b428c0b56668a45092dba6d6b52af6cf315559a0
|
63
|
+
Expires:
|
64
|
+
- Sun, 09 Apr 2017 17:06:22 GMT
|
65
|
+
Source-Age:
|
66
|
+
- '0'
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: !binary |-
|
70
|
+
ewoJIkBjb250ZXh0IjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50
|
71
|
+
LmNvbS9jb2RlbWV0YS9jb2RlbWV0YS9tYXN0ZXIvY29kZW1ldGEuanNvbmxk
|
72
|
+
IiwKCSJAdHlwZSI6ICJTb2Z0d2FyZVNvdXJjZUNvZGUiLAoJIkBpZCI6ICJo
|
73
|
+
dHRwczovL2RvaS5vcmcvMTAuNTQzOC9RRUcwLTNHTTMiLAoJImFnZW50cyI6
|
74
|
+
IHsKCQkiQGlkIjogImh0dHA6Ly9vcmNpZC5vcmcvMDAwMC0wMDAzLTAwNzct
|
75
|
+
NDczOCIsCgkJIkB0eXBlIjogInBlcnNvbiIsCgkJIm5hbWUiOiAiTWFydGlu
|
76
|
+
IEZlbm5lciIsCgkJImFmZmlsaWF0aW9uIjogIkRhdGFDaXRlIiwKCQkibXVz
|
77
|
+
dEJlQ2l0ZWQiOiB0cnVlLAoJCSJpc01haW50YWluZXIiOiB0cnVlLAoJCSJp
|
78
|
+
c1JpZ2h0c0hvbGRlciI6IHRydWUKCX0sCgkiaWRlbnRpZmllciI6ICJodHRw
|
79
|
+
czovL2RvaS5vcmcvMTAuNTQzOC9RRUcwLTNHTTMiLAoJImNvZGVSZXBvc2l0
|
80
|
+
b3J5IjogImh0dHBzOi8vZ2l0aHViLmNvbS9kYXRhY2l0ZS9tYXJlbW1hIiwK
|
81
|
+
CSJjb250cm9sbGVkVGVtIjogInNvZnR3YXJlIiwKCSJkYXRlQ3JlYXRlZCI6
|
82
|
+
ICIyMDE1L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lci9SRUFETUUubWQiCn0K
|
98
|
+
http_version:
|
99
|
+
recorded_at: Sun, 09 Apr 2017 17:01:22 GMT
|
100
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://raw.githubusercontent.com/datacite/maremma/master/codemeta.json
|
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
|
+
Content-Security-Policy:
|
20
|
+
- default-src 'none'; style-src 'unsafe-inline'
|
21
|
+
Strict-Transport-Security:
|
22
|
+
- max-age=31536000
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Frame-Options:
|
26
|
+
- deny
|
27
|
+
X-Xss-Protection:
|
28
|
+
- 1; mode=block
|
29
|
+
Etag:
|
30
|
+
- '"196d90076a30d5604c5f5710dcce236a25ce60a7"'
|
31
|
+
Content-Type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=300
|
35
|
+
X-Geo-Block-List:
|
36
|
+
- ''
|
37
|
+
X-Github-Request-Id:
|
38
|
+
- C3A0:2BCA7:441C0DD:46B6E35:58EA6A93
|
39
|
+
Content-Length:
|
40
|
+
- '1260'
|
41
|
+
Accept-Ranges:
|
42
|
+
- bytes
|
43
|
+
Date:
|
44
|
+
- Sun, 09 Apr 2017 17:08:36 GMT
|
45
|
+
Via:
|
46
|
+
- 1.1 varnish
|
47
|
+
Connection:
|
48
|
+
- keep-alive
|
49
|
+
X-Served-By:
|
50
|
+
- cache-hhn1522-HHN
|
51
|
+
X-Cache:
|
52
|
+
- MISS
|
53
|
+
X-Cache-Hits:
|
54
|
+
- '0'
|
55
|
+
X-Timer:
|
56
|
+
- S1491757716.942913,VS0,VE108
|
57
|
+
Vary:
|
58
|
+
- Authorization,Accept-Encoding
|
59
|
+
Access-Control-Allow-Origin:
|
60
|
+
- "*"
|
61
|
+
X-Fastly-Request-Id:
|
62
|
+
- 684521ec3ef611bab15de1a8c42c371f4e16a0eb
|
63
|
+
Expires:
|
64
|
+
- Sun, 09 Apr 2017 17:13:36 GMT
|
65
|
+
Source-Age:
|
66
|
+
- '0'
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: !binary |-
|
70
|
+
ewoJIkBjb250ZXh0IjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50
|
71
|
+
LmNvbS9jb2RlbWV0YS9jb2RlbWV0YS9tYXN0ZXIvY29kZW1ldGEuanNvbmxk
|
72
|
+
IiwKCSJAdHlwZSI6ICJTb2Z0d2FyZVNvdXJjZUNvZGUiLAoJIkBpZCI6ICJo
|
73
|
+
dHRwczovL2RvaS5vcmcvMTAuNTQzOC9RRUcwLTNHTTMiLAoJImFnZW50cyI6
|
74
|
+
IHsKCQkiQGlkIjogImh0dHA6Ly9vcmNpZC5vcmcvMDAwMC0wMDAzLTAwNzct
|
75
|
+
NDczOCIsCgkJIkB0eXBlIjogInBlcnNvbiIsCgkJIm5hbWUiOiAiTWFydGlu
|
76
|
+
IEZlbm5lciIsCgkJImFmZmlsaWF0aW9uIjogIkRhdGFDaXRlIiwKCQkibXVz
|
77
|
+
dEJlQ2l0ZWQiOiB0cnVlLAoJCSJpc01haW50YWluZXIiOiB0cnVlLAoJCSJp
|
78
|
+
c1JpZ2h0c0hvbGRlciI6IHRydWUKCX0sCgkiaWRlbnRpZmllciI6ICJodHRw
|
79
|
+
czovL2RvaS5vcmcvMTAuNTQzOC9RRUcwLTNHTTMiLAoJImNvZGVSZXBvc2l0
|
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