bolognese 1.0.35 → 1.0.36
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74569083d960bc53779f88ad8d7f12c8daa7f9e4478506c33c6044f26a861bda
|
4
|
+
data.tar.gz: d6e1d157f2b9377071cbd4bc2e461d192dfa3837f18cc9939ddb00982d28eba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c91f16a942182e934880d8b69b7a575cc6e1efb220a9a8c36fb6e146423fe2fa5bf385055c9f2b3cf42eb22b7010b2e3ca4bddcf1eb2dc8a2bb4159809969007
|
7
|
+
data.tar.gz: 495ede87e9082ca255b37a8339fdcb9a43aea9ad35e48ad541cf0782fd0e1f8b41e4633ec49c10117349750c1172feace5956a575394558f6ac9edcba1600d6f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bolognese (1.0.
|
4
|
+
bolognese (1.0.36)
|
5
5
|
activesupport (>= 4.2.5, < 6)
|
6
6
|
benchmark_methods (~> 0.7)
|
7
7
|
bibtex-ruby (~> 4.1)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
loofah (2.2.3)
|
94
94
|
crass (~> 1.0.2)
|
95
95
|
nokogiri (>= 1.5.9)
|
96
|
-
maremma (4.2)
|
96
|
+
maremma (4.2.1)
|
97
97
|
activesupport (>= 4.2.5, < 6)
|
98
98
|
addressable (>= 2.3.6)
|
99
99
|
builder (~> 3.2, >= 3.2.2)
|
data/lib/bolognese/version.rb
CHANGED
@@ -1,5 +1,80 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://doi.org/10.3334/ornldaac/1339
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Mozilla/5.0 (compatible; Maremma/4.2.1; +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: 302
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Thu, 10 Jan 2019 20:16:16 GMT
|
21
|
+
Content-Type:
|
22
|
+
- text/html;charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '187'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d7b5b32dd3b95a6b197a80bb4d8c9fb3c1547151376; expires=Fri, 10-Jan-20
|
29
|
+
20:16:16 GMT; path=/; domain=.doi.org; HttpOnly
|
30
|
+
Expires:
|
31
|
+
- Thu, 10 Jan 2019 20:23:01 GMT
|
32
|
+
Location:
|
33
|
+
- http://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339
|
34
|
+
Vary:
|
35
|
+
- Accept
|
36
|
+
Expect-Ct:
|
37
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
38
|
+
Server:
|
39
|
+
- cloudflare
|
40
|
+
Cf-Ray:
|
41
|
+
- 4971d204fc8140a0-HAM
|
42
|
+
body:
|
43
|
+
encoding: ASCII-8BIT
|
44
|
+
string: |-
|
45
|
+
<html><head><title>Handle Redirect</title></head>
|
46
|
+
<body><a href="http://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339">http://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339</a></body></html>
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 10 Jan 2019 20:16:16 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: http://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
User-Agent:
|
57
|
+
- Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma)
|
58
|
+
Accept:
|
59
|
+
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 301
|
63
|
+
message: Moved permanently
|
64
|
+
headers:
|
65
|
+
Location:
|
66
|
+
- https://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339
|
67
|
+
Connection:
|
68
|
+
- close
|
69
|
+
Cache-Control:
|
70
|
+
- no-cache
|
71
|
+
Pragma:
|
72
|
+
- no-cache
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: ''
|
76
|
+
http_version:
|
77
|
+
recorded_at: Thu, 10 Jan 2019 20:16:16 GMT
|
3
78
|
- request:
|
4
79
|
method: get
|
5
80
|
uri: https://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1339
|
@@ -8,7 +83,7 @@ http_interactions:
|
|
8
83
|
string: ''
|
9
84
|
headers:
|
10
85
|
User-Agent:
|
11
|
-
- Mozilla/5.0 (compatible; Maremma/4.2; +https://github.com/datacite/maremma)
|
86
|
+
- Mozilla/5.0 (compatible; Maremma/4.2.1; +https://github.com/datacite/maremma)
|
12
87
|
Accept:
|
13
88
|
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
89
|
response:
|
@@ -17,7 +92,7 @@ http_interactions:
|
|
17
92
|
message: OK
|
18
93
|
headers:
|
19
94
|
Date:
|
20
|
-
- Thu, 10 Jan 2019
|
95
|
+
- Thu, 10 Jan 2019 20:16:17 GMT
|
21
96
|
Server:
|
22
97
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
23
98
|
Strict-Transport-Security:
|
@@ -871,5 +946,5 @@ http_interactions:
|
|
871
946
|
targets: [1] }\n ],\n order: [[0, \"asc\"]]\n } );\n\n
|
872
947
|
\ } );\n</script>\n\n</body>\n</html>\n"
|
873
948
|
http_version:
|
874
|
-
recorded_at: Thu, 10 Jan 2019
|
949
|
+
recorded_at: Thu, 10 Jan 2019 20:16:17 GMT
|
875
950
|
recorded_with: VCR 3.0.3
|
@@ -72,7 +72,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
72
72
|
end
|
73
73
|
|
74
74
|
it "ornl" do
|
75
|
-
input = "https://
|
75
|
+
input = "https://doi.org/10.3334/ornldaac/1339"
|
76
76
|
subject = Bolognese::Metadata.new(input: input, from: "schema_org")
|
77
77
|
expect(subject.valid?).to be true
|
78
78
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.3334/ornldaac/1339", "identifierType"=>"DOI"}])
|
@@ -84,21 +84,6 @@ describe Bolognese::Metadata, vcr: true do
|
|
84
84
|
expect(subject.creators.first).to eq("familyName"=>"MOGHADDAM", "givenName"=>"M.", "name"=>"MOGHADDAM, M.", "nameType"=>"Personal")
|
85
85
|
end
|
86
86
|
|
87
|
-
# service doesn't return html to script
|
88
|
-
# it "ornl daac" do
|
89
|
-
# input = "https://daac.ornl.gov/cgi-bin/dsviewer.pl?ds_id=1418"
|
90
|
-
# subject = Bolognese::Metadata.new(input: input, from: "schema_org")
|
91
|
-
# subject.id = "https://doi.org/10.3334/ornldaac/1418"
|
92
|
-
# #expect(subject.errors).to be true
|
93
|
-
# expect(subject.identifier).to eq("https://doi.org/10.3334/ornldaac/1418")
|
94
|
-
# expect(subject.doi).to eq("10.3334/ornldaac/1418")
|
95
|
-
# expect(subject.url).to eq("https://doi.org/10.3334/ornldaac/1418")
|
96
|
-
# expect(subject.type).to eq("DataSet")
|
97
|
-
# expect(subject.title).to eq("AirMOSS: L2/3 Volumetric Soil Moisture Profiles Derived From Radar, 2012-2015")
|
98
|
-
# expect(subject.creators.size).to eq(8)
|
99
|
-
# expect(subject.creators.first).to eq("type"=>"Person", "name"=>"M. MOGHADDAM", "givenName"=>"M.", "familyName"=>"MOGHADDAM")
|
100
|
-
# end
|
101
|
-
|
102
87
|
it "harvard dataverse" do
|
103
88
|
input = "https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/NJ7XSO"
|
104
89
|
subject = Bolognese::Metadata.new(input: input, from: "schema_org")
|