bolognese 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/bolognese.gemspec +1 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/fixtures/datacite-schema-2.2.xml +80 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/dataset_neurophysiology.yml +116 -0
- data/spec/writers/bibtex_writer_spec.rb +15 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41feacce450bd72bc9323b146ae2164ab94ffc6440b35d97d4a62ab5423d8204
|
4
|
+
data.tar.gz: 724dc89f8e7d7ac48e59c731edb91a23190cda611e5963cccb807bd63165b77b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a0b30a66a03bae48a0221fbc03aea190cbcbe1822089a6fa95e5e9679b630a63b0ecd85ffec202a8fc968381d7f9fe8123402fd3c4f2581127f01cec0040cf5
|
7
|
+
data.tar.gz: bce1f703f2ff5de51754a9e0db63ac95c4663bf559a48362bb6bd5e53aa94b2c4b8914bdc92e9af0a6eda7c2ece58b66aac38cef730833a389b1d563cde9d562
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bolognese (1.4.
|
4
|
+
bolognese (1.4.6)
|
5
5
|
activesupport (>= 4.2.5, < 6)
|
6
6
|
benchmark_methods (~> 0.7)
|
7
|
-
bibtex-ruby (
|
7
|
+
bibtex-ruby (>= 5.1.0)
|
8
8
|
builder (~> 3.2, >= 3.2.2)
|
9
9
|
citeproc-ruby (~> 1.1, >= 1.1.10)
|
10
10
|
colorize (~> 0.8.1)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
addressable (2.7.0)
|
39
39
|
public_suffix (>= 2.0.2, < 5.0)
|
40
40
|
benchmark_methods (0.7)
|
41
|
-
bibtex-ruby (
|
41
|
+
bibtex-ruby (5.1.1)
|
42
42
|
latex-decode (~> 0.0)
|
43
43
|
builder (3.2.4)
|
44
44
|
citeproc (1.0.10)
|
@@ -49,7 +49,7 @@ GEM
|
|
49
49
|
codeclimate-test-reporter (1.0.9)
|
50
50
|
simplecov (<= 0.13)
|
51
51
|
colorize (0.8.1)
|
52
|
-
concurrent-ruby (1.1.
|
52
|
+
concurrent-ruby (1.1.6)
|
53
53
|
crack (0.4.3)
|
54
54
|
safe_yaml (~> 1.0.0)
|
55
55
|
crass (1.0.6)
|
@@ -92,7 +92,7 @@ GEM
|
|
92
92
|
multi_json (~> 1.14)
|
93
93
|
rack (~> 2.0)
|
94
94
|
rdf (~> 3.1)
|
95
|
-
json-ld-preloaded (3.1.
|
95
|
+
json-ld-preloaded (3.1.1)
|
96
96
|
json-ld (~> 3.1)
|
97
97
|
rdf (~> 3.1)
|
98
98
|
jsonlint (0.3.0)
|
@@ -119,7 +119,7 @@ GEM
|
|
119
119
|
multi_json (1.14.1)
|
120
120
|
multipart-post (2.1.1)
|
121
121
|
namae (1.0.1)
|
122
|
-
nokogiri (1.10.
|
122
|
+
nokogiri (1.10.8)
|
123
123
|
mini_portile2 (~> 2.4.0)
|
124
124
|
oj (3.10.2)
|
125
125
|
oj_mimic_json (1.0.1)
|
@@ -129,7 +129,7 @@ GEM
|
|
129
129
|
nokogiri (>= 1.8.0)
|
130
130
|
public_suffix (>= 2.0.0, < 2.1)
|
131
131
|
public_suffix (2.0.5)
|
132
|
-
rack (2.2.
|
132
|
+
rack (2.2.2)
|
133
133
|
rack-test (0.8.3)
|
134
134
|
rack (>= 1.0, < 3)
|
135
135
|
rake (12.3.3)
|
@@ -186,7 +186,7 @@ GEM
|
|
186
186
|
thread_safe (~> 0.1)
|
187
187
|
unicode_utils (1.4.0)
|
188
188
|
vcr (3.0.3)
|
189
|
-
webmock (3.8.
|
189
|
+
webmock (3.8.2)
|
190
190
|
addressable (>= 2.3.6)
|
191
191
|
crack (>= 0.3.2)
|
192
192
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/bolognese.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'loofah', '~> 2.0', '>= 2.0.3'
|
23
23
|
s.add_dependency 'builder', '~> 3.2', '>= 3.2.2'
|
24
24
|
s.add_dependency 'activesupport', '>= 4.2.5', '< 6'
|
25
|
-
s.add_dependency 'bibtex-ruby', '
|
25
|
+
s.add_dependency 'bibtex-ruby', '>= 5.1.0'
|
26
26
|
s.add_dependency 'thor', '~> 0.19'
|
27
27
|
s.add_dependency 'colorize', '~> 0.8.1'
|
28
28
|
s.add_dependency 'namae', '~> 1.0'
|
data/lib/bolognese/version.rb
CHANGED
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<resource
|
3
|
+
xmlns="http://datacite.org/schema/kernel-2.2"
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-2.2 http://schema.datacite.org/meta/kernel-2.2/metadata.xsd">
|
5
|
+
<identifier identifierType="DOI">10.6080/K0F769GP</identifier>
|
6
|
+
<creators>
|
7
|
+
<creator>
|
8
|
+
<creatorName>Theunissen, Frederic E.</creatorName>
|
9
|
+
</creator>
|
10
|
+
<creator>
|
11
|
+
<creatorName>Hauber, ME</creatorName>
|
12
|
+
</creator>
|
13
|
+
<creator>
|
14
|
+
<creatorName>Woolley, Sarah M. N.</creatorName>
|
15
|
+
</creator>
|
16
|
+
<creator>
|
17
|
+
<creatorName>Gill, Patrick</creatorName>
|
18
|
+
</creator>
|
19
|
+
<creator>
|
20
|
+
<creatorName>Shaevitz, SS</creatorName>
|
21
|
+
</creator>
|
22
|
+
<creator>
|
23
|
+
<creatorName>Amin, Noopur</creatorName>
|
24
|
+
</creator>
|
25
|
+
<creator>
|
26
|
+
<creatorName>Hsu, A</creatorName>
|
27
|
+
</creator>
|
28
|
+
<creator>
|
29
|
+
<creatorName>Singh, NC</creatorName>
|
30
|
+
</creator>
|
31
|
+
<creator>
|
32
|
+
<creatorName>Grace, GA</creatorName>
|
33
|
+
</creator>
|
34
|
+
<creator>
|
35
|
+
<creatorName>Fremouw, Thane</creatorName>
|
36
|
+
</creator>
|
37
|
+
<creator>
|
38
|
+
<creatorName>Zhang, Junli</creatorName>
|
39
|
+
</creator>
|
40
|
+
<creator>
|
41
|
+
<creatorName>Cassey, P</creatorName>
|
42
|
+
</creator>
|
43
|
+
<creator>
|
44
|
+
<creatorName>Doupe, AJ</creatorName>
|
45
|
+
</creator>
|
46
|
+
<creator>
|
47
|
+
<creatorName>David, SV</creatorName>
|
48
|
+
</creator>
|
49
|
+
<creator>
|
50
|
+
<creatorName>Vinje, WE</creatorName>
|
51
|
+
</creator>
|
52
|
+
</creators>
|
53
|
+
<titles>
|
54
|
+
<title>Single-unit recordings from two auditory areas in male zebra finches</title>
|
55
|
+
<title titleType="AlternativeTitle">CRCNS.org aa-1</title>
|
56
|
+
</titles>
|
57
|
+
<publisher>CRCNS.org</publisher>
|
58
|
+
<publicationYear>2009</publicationYear>
|
59
|
+
<subjects>
|
60
|
+
<subject>Neuroscience</subject>
|
61
|
+
<subject>Electrophysiology</subject>
|
62
|
+
<subject>auditory area</subject>
|
63
|
+
<subject>avian (zebra finch)</subject>
|
64
|
+
</subjects>
|
65
|
+
<language>eng</language>
|
66
|
+
<resourceType resourceTypeGeneral="Dataset">Dataset/Neurophysiology</resourceType>
|
67
|
+
<sizes>
|
68
|
+
<size>17 MB</size>
|
69
|
+
</sizes>
|
70
|
+
<formats>
|
71
|
+
<format>application/matlab</format>
|
72
|
+
<format>audio/wav</format>
|
73
|
+
</formats>
|
74
|
+
<version>1.0</version>
|
75
|
+
<descriptions>
|
76
|
+
<description descriptionType="Other">
|
77
|
+
Data consists of simultaneous single-unit recordings from two auditory areas in male zebra finches.
|
78
|
+
</description>
|
79
|
+
</descriptions>
|
80
|
+
</resource>
|
@@ -0,0 +1,116 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://doi.org/ra/10.6080
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Mozilla/5.0 (compatible; Maremma/4.5; mailto:info@datacite.org)
|
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
|
+
Date:
|
20
|
+
- Thu, 13 Feb 2020 17:36:13 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json;charset=UTF-8
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d898c88eb6269e2238b52f7fbced218621581615373; expires=Sat, 14-Mar-20
|
27
|
+
17:36:13 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure
|
28
|
+
Cf-Cache-Status:
|
29
|
+
- DYNAMIC
|
30
|
+
Expect-Ct:
|
31
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
32
|
+
Strict-Transport-Security:
|
33
|
+
- max-age=31536000; includeSubDomains; preload
|
34
|
+
Server:
|
35
|
+
- cloudflare
|
36
|
+
Cf-Ray:
|
37
|
+
- 564890352dffc2f9-FRA
|
38
|
+
body:
|
39
|
+
encoding: ASCII-8BIT
|
40
|
+
string: |-
|
41
|
+
[
|
42
|
+
{
|
43
|
+
"DOI": "10.6080",
|
44
|
+
"RA": "DataCite"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 13 Feb 2020 17:36:13 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://api.datacite.org/dois/10.6080/k0f769gp
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
User-Agent:
|
57
|
+
- Mozilla/5.0 (compatible; Maremma/4.5; mailto:info@datacite.org)
|
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: 200
|
63
|
+
message: OK
|
64
|
+
headers:
|
65
|
+
Date:
|
66
|
+
- Thu, 13 Feb 2020 17:36:14 GMT
|
67
|
+
Content-Type:
|
68
|
+
- application/json; charset=utf-8
|
69
|
+
Connection:
|
70
|
+
- keep-alive
|
71
|
+
Status:
|
72
|
+
- 200 OK
|
73
|
+
X-Anonymous-Consumer:
|
74
|
+
- 'true'
|
75
|
+
Cache-Control:
|
76
|
+
- max-age=0, private, must-revalidate
|
77
|
+
Vary:
|
78
|
+
- Accept-Encoding, Origin
|
79
|
+
X-Request-Id:
|
80
|
+
- ef1844a8-11d8-48b1-aaa3-539b22b9df48
|
81
|
+
Etag:
|
82
|
+
- W/"061643d3e6a77e7cb2e157aab4f842a2"
|
83
|
+
X-Runtime:
|
84
|
+
- '0.037119'
|
85
|
+
X-Powered-By:
|
86
|
+
- Phusion Passenger 6.0.4
|
87
|
+
Server:
|
88
|
+
- nginx/1.14.0 + Phusion Passenger 6.0.4
|
89
|
+
body:
|
90
|
+
encoding: ASCII-8BIT
|
91
|
+
string: '{"data":{"id":"10.6080/k0f769gp","type":"dois","attributes":{"doi":"10.6080/k0f769gp","prefix":"10.6080","suffix":"k0f769gp","identifiers":[{"identifier":"https://doi.org/10.6080/k0f769gp","identifierType":"DOI"}],"creators":[{"name":"Theunissen,
|
92
|
+
Frederic E.","nameType":"Personal","givenName":"Frederic E.","familyName":"Theunissen","affiliation":[]},{"name":"Hauber,
|
93
|
+
ME","nameType":"Personal","givenName":"ME","familyName":"Hauber","affiliation":[]},{"name":"Woolley,
|
94
|
+
Sarah M. N.","nameType":"Personal","givenName":"Sarah M. N.","familyName":"Woolley","affiliation":[]},{"name":"Gill,
|
95
|
+
Patrick","nameType":"Personal","givenName":"Patrick","familyName":"Gill","affiliation":[]},{"name":"Shaevitz,
|
96
|
+
SS","nameType":"Personal","givenName":"SS","familyName":"Shaevitz","affiliation":[]},{"name":"Amin,
|
97
|
+
Noopur","nameType":"Personal","givenName":"Noopur","familyName":"Amin","affiliation":[]},{"name":"Hsu,
|
98
|
+
A","nameType":"Personal","givenName":"A","familyName":"Hsu","affiliation":[]},{"name":"Singh,
|
99
|
+
NC","nameType":"Personal","givenName":"NC","familyName":"Singh","affiliation":[]},{"name":"Grace,
|
100
|
+
GA","nameType":"Personal","givenName":"GA","familyName":"Grace","affiliation":[]},{"name":"Fremouw,
|
101
|
+
Thane","nameType":"Personal","givenName":"Thane","familyName":"Fremouw","affiliation":[]},{"name":"Zhang,
|
102
|
+
Junli","nameType":"Personal","givenName":"Junli","familyName":"Zhang","affiliation":[]},{"name":"Cassey,
|
103
|
+
P","nameType":"Personal","givenName":"P","familyName":"Cassey","affiliation":[]},{"name":"Doupe,
|
104
|
+
AJ","nameType":"Personal","givenName":"AJ","familyName":"Doupe","affiliation":[]},{"name":"David,
|
105
|
+
SV","nameType":"Personal","givenName":"SV","familyName":"David","affiliation":[]},{"name":"Vinje,
|
106
|
+
WE","nameType":"Personal","givenName":"WE","familyName":"Vinje","affiliation":[]}],"titles":[{"title":"Single-unit
|
107
|
+
recordings from two auditory areas in male zebra finches"},{"title":"CRCNS.org
|
108
|
+
aa-1","titleType":"AlternativeTitle"}],"publisher":"CRCNS.org","container":{},"publicationYear":2009,"subjects":[{"subject":"Neuroscience"},{"subject":"Electrophysiology"},{"subject":"auditory
|
109
|
+
area"},{"subject":"avian (zebra finch)"}],"contributors":[],"dates":[{"date":"2009","dateType":"Issued"}],"language":"eng","types":{"ris":"DATA","bibtex":"misc","citeproc":"dataset","schemaOrg":"Dataset","resourceType":"Dataset/Neurophysiology","resourceTypeGeneral":"Dataset"},"relatedIdentifiers":[],"sizes":["17
|
110
|
+
MB"],"formats":["application/matlab","audio/wav"],"version":null,"rightsList":[],"descriptions":[{"description":"Data
|
111
|
+
consists of simultaneous single-unit recordings from two auditory areas in
|
112
|
+
male zebra finches.","descriptionType":"Other"}],"geoLocations":[],"fundingReferences":[],"xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMi4yIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC0yLjIgaHR0cDovL3NjaGVtYS5kYXRhY2l0ZS5vcmcvbWV0YS9rZXJuZWwtMi4yL21ldGFkYXRhLnhzZCI+Cgk8aWRlbnRpZmllciBpZGVudGlmaWVyVHlwZT0iRE9JIj4xMC42MDgwL0swRjc2OUdQPC9pZGVudGlmaWVyPgoJPGNyZWF0b3JzPgoJCTxjcmVhdG9yPgoJCQk8Y3JlYXRvck5hbWU+VGhldW5pc3NlbiwgRnJlZGVyaWMgRS48L2NyZWF0b3JOYW1lPgoJCTwvY3JlYXRvcj4KCQk8Y3JlYXRvcj4KCQkJPGNyZWF0b3JOYW1lPkhhdWJlciwgTUU8L2NyZWF0b3JOYW1lPgoJCTwvY3JlYXRvcj4KCQk8Y3JlYXRvcj4KCQkJPGNyZWF0b3JOYW1lPldvb2xsZXksIFNhcmFoIE0uIE4uPC9jcmVhdG9yTmFtZT4KCQk8L2NyZWF0b3I+CgkJPGNyZWF0b3I+CgkJCTxjcmVh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dWx0YW5lb3VzIHNpbmdsZS11bml0IHJlY29yZGluZ3MgZnJvbSB0d28gYXVkaXRvcnkgYXJlYXMgaW4gbWFsZSB6ZWJyYSBmaW5jaGVzLgoJCTwvZGVzY3JpcHRpb24+Cgk8L2Rlc2NyaXB0aW9ucz4KPC9yZXNvdXJjZT4=","url":"http://crcns.org/data-sets/aa/aa-1","contentUrl":null,"metadataVersion":2,"schemaVersion":"http://datacite.org/schema/kernel-2.2","source":null,"isActive":true,"state":"findable","reason":null,"viewCount":0,"downloadCount":0,"referenceCount":0,"citationCount":0,"partCount":0,"partOfCount":0,"versionCount":0,"versionOfCount":0,"viewsOverTime":[],"downloadsOverTime":[],"created":"2013-06-26T18:08:36.000Z","registered":"2013-06-26T18:08:37.000Z","published":"2009","updated":"2019-08-02T02:24:47.000Z"},"relationships":{"client":{"data":{"id":"cdl.ucb","type":"clients"}},"media":{"data":{"id":"10.6080/k0f769gp","type":"media"}},"references":{"data":[]},"citations":{"data":[]},"parts":{"data":[]},"versions":{"data":[]}}},"included":[{"id":"cdl.ucb","type":"clients","attributes":{"name":"UC
|
113
|
+
Berkeley","symbol":"CDL.UCB","year":2012,"contactEmail":"ezid@ucop.edu","alternateName":null,"description":null,"language":null,"clientType":"periodical","domains":"*","re3data":null,"opendoar":null,"issn":null,"url":null,"created":"2012-03-06T06:01:31.000Z","updated":"2019-07-27T12:46:55.000Z","isActive":true,"hasPassword":true},"relationships":{"provider":{"data":{"id":"cdl","type":"providers"}},"prefixes":{"data":[{"id":"10.6078","type":"prefixes"},{"id":"10.6080","type":"prefixes"},{"id":"10.7286","type":"prefixes"},{"id":"10.7297","type":"prefixes"},{"id":"10.7299","type":"prefixes"},{"id":"10.7922","type":"prefixes"},{"id":"10.7928","type":"prefixes"},{"id":"10.7932","type":"prefixes"},{"id":"10.7933","type":"prefixes"},{"id":"10.7941","type":"prefixes"},{"id":"10.7943","type":"prefixes"},{"id":"10.15779","type":"prefixes"},{"id":"10.18118","type":"prefixes"},{"id":"10.18431","type":"prefixes"},{"id":"10.18734","type":"prefixes"},{"id":"10.20357","type":"prefixes"},{"id":"10.20358","type":"prefixes"},{"id":"10.21239","type":"prefixes"},{"id":"10.21418","type":"prefixes"},{"id":"10.21990","type":"prefixes"},{"id":"10.25342","type":"prefixes"},{"id":"10.25344","type":"prefixes"},{"id":"10.25350","type":"prefixes"},{"id":"10.25498","type":"prefixes"}]}}}]}'
|
114
|
+
http_version:
|
115
|
+
recorded_at: Thu, 13 Feb 2020 17:36:14 GMT
|
116
|
+
recorded_with: VCR 3.0.3
|
@@ -160,5 +160,20 @@ describe Bolognese::Metadata, vcr: true do
|
|
160
160
|
expect(bibtex[:bibtex_key]).to eq("https://doi.org/10.25491/9hx8-ke93")
|
161
161
|
expect(bibtex[:author]).to eq("{The GTEx Consortium}")
|
162
162
|
end
|
163
|
+
|
164
|
+
it "dataset neurophysiology" do
|
165
|
+
input = "10.6080/k0f769gp"
|
166
|
+
subject = Bolognese::Metadata.new(input: input)
|
167
|
+
expect(subject.valid?).to be true
|
168
|
+
bibtex = BibTeX.parse(subject.bibtex).to_a(quotes: '').first
|
169
|
+
expect(bibtex[:bibtex_type].to_s).to eq("misc")
|
170
|
+
expect(bibtex[:bibtex_key]).to eq("https://doi.org/10.6080/k0f769gp")
|
171
|
+
expect(bibtex[:doi]).to eq("10.6080/k0f769gp")
|
172
|
+
expect(bibtex[:title]).to eq("Single-unit recordings from two auditory areas in male zebra finches")
|
173
|
+
expect(bibtex[:author]).to eq("Theunissen, Frederic E. and Hauber, ME and Woolley, Sarah M. N. and Gill, Patrick and Shaevitz, SS and Amin, Noopur and Hsu, A and Singh, NC and Grace, GA and Fremouw, Thane and Zhang, Junli and Cassey, P and Doupe, AJ and David, SV and Vinje, WE")
|
174
|
+
expect(bibtex[:publisher]).to eq("CRCNS.org")
|
175
|
+
expect(bibtex[:keywords]).to eq("Neuroscience, Electrophysiology, auditory area, avian (zebra finch)")
|
176
|
+
expect(bibtex[:year]).to eq("2009")
|
177
|
+
end
|
163
178
|
end
|
164
179
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolognese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|
@@ -122,16 +122,16 @@ dependencies:
|
|
122
122
|
name: bibtex-ruby
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- - "
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
127
|
+
version: 5.1.0
|
128
128
|
type: :runtime
|
129
129
|
prerelease: false
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- - "
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 5.1.0
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: thor
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -783,6 +783,7 @@ files:
|
|
783
783
|
- spec/fixtures/datacite-metadata-sample-complicated-v2.2.xml
|
784
784
|
- spec/fixtures/datacite-multiple-language.xml
|
785
785
|
- spec/fixtures/datacite-multiple-rights.xml
|
786
|
+
- spec/fixtures/datacite-schema-2.2.xml
|
786
787
|
- spec/fixtures/datacite-seriesinformation.xml
|
787
788
|
- spec/fixtures/datacite-xml-lang.xml
|
788
789
|
- spec/fixtures/datacite.json
|
@@ -1093,6 +1094,7 @@ files:
|
|
1093
1094
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/Dataset.yml
|
1094
1095
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/authors_with_affiliations.yml
|
1095
1096
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/climate_data.yml
|
1097
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/dataset_neurophysiology.yml
|
1096
1098
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/from_schema_org.yml
|
1097
1099
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/keywords_subject_scheme.yml
|
1098
1100
|
- spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/maremma.yml
|