commonmeta-ruby 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -3
- data/Gemfile.lock +11 -13
- data/commonmeta.gemspec +0 -1
- data/lib/commonmeta/crossref_utils.rb +4 -7
- data/lib/commonmeta/metadata.rb +4 -10
- data/lib/commonmeta/version.rb +1 -1
- data/lib/commonmeta.rb +0 -1
- data/spec/cli_spec.rb +21 -1
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_crossref_xml.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml.yml +52 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml_refresh.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_crossref_xml.yml +2189 -0
- data/spec/metadata_spec.rb +1 -1
- data/spec/readers/datacite_reader_spec.rb +1 -1
- data/spec/writers/crossref_xml_writer_spec.rb +1 -1
- metadata +4 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd0cff9167f3cf4cbef16d1b2f344dfbaaaa0c5f121f385f8e2703fedd42b0d
|
4
|
+
data.tar.gz: 601f92cc97809057378e7dd89e36d1918a18280201b25a25ad8a13ecd1412a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e2953f19c0364ad7f774fe38be92bf9df6b975c02568e980ac4cfb7a0fae590aeda39df9d3c80332701db4cc7bfd81648c987b1e96eed6cd1595baf758376d
|
7
|
+
data.tar.gz: 76b133fe3e101ba09c62c362d41035fd323e262575338866bacdbd2e07544b4b1e63583c304c827f9c386c22c7ea45c7f2b0c6eb304cf060b10f8e32e77e3796
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
commonmeta-ruby (3.0.
|
4
|
+
commonmeta-ruby (3.0.10)
|
5
5
|
activesupport (>= 4.2.5, < 8.0)
|
6
6
|
addressable (~> 2.8.1, < 2.8.2)
|
7
7
|
base32-url (>= 0.5.0, < 1)
|
@@ -9,7 +9,6 @@ PATH
|
|
9
9
|
builder (~> 3.2, >= 3.2.4)
|
10
10
|
citeproc-ruby (~> 2.0)
|
11
11
|
csl-styles (~> 2.0)
|
12
|
-
dotenv (~> 2.1, >= 2.1.1)
|
13
12
|
edtf (~> 3.0, >= 3.0.4)
|
14
13
|
gender_detector (~> 2.0)
|
15
14
|
http (~> 5.1, >= 5.1.1)
|
@@ -58,7 +57,6 @@ GEM
|
|
58
57
|
docile (1.4.0)
|
59
58
|
domain_name (0.5.20190701)
|
60
59
|
unf (>= 0.0.5, < 1.0.0)
|
61
|
-
dotenv (2.8.1)
|
62
60
|
ebnf (2.3.2)
|
63
61
|
htmlentities (~> 4.3)
|
64
62
|
rdf (~> 3.2)
|
@@ -74,9 +72,8 @@ GEM
|
|
74
72
|
ffi (>= 1.0.0)
|
75
73
|
rake
|
76
74
|
gender_detector (2.0.0)
|
77
|
-
haml (
|
78
|
-
temple (>= 0.8.
|
79
|
-
thor
|
75
|
+
haml (5.2.2)
|
76
|
+
temple (>= 0.8.0)
|
80
77
|
tilt
|
81
78
|
hana (1.3.7)
|
82
79
|
hashdiff (1.0.1)
|
@@ -123,9 +120,9 @@ GEM
|
|
123
120
|
minitest (5.18.0)
|
124
121
|
multi_json (1.15.0)
|
125
122
|
namae (1.1.1)
|
126
|
-
nokogiri (1.14.
|
123
|
+
nokogiri (1.14.3-arm64-darwin)
|
127
124
|
racc (~> 1.4)
|
128
|
-
oj (3.14.
|
125
|
+
oj (3.14.3)
|
129
126
|
optimist (3.0.1)
|
130
127
|
parallel (1.22.1)
|
131
128
|
parser (3.2.2.0)
|
@@ -145,14 +142,15 @@ GEM
|
|
145
142
|
link_header (~> 0.0, >= 0.0.8)
|
146
143
|
rdf-aggregate-repo (3.2.1)
|
147
144
|
rdf (~> 3.2)
|
148
|
-
rdf-rdfa (3.2.
|
145
|
+
rdf-rdfa (3.2.2)
|
149
146
|
haml (>= 5.2, < 7)
|
150
147
|
htmlentities (~> 4.3)
|
151
148
|
rdf (~> 3.2)
|
152
149
|
rdf-aggregate-repo (~> 3.2)
|
153
150
|
rdf-vocab (~> 3.2)
|
154
151
|
rdf-xsd (~> 3.2)
|
155
|
-
rdf-rdfxml (3.2.
|
152
|
+
rdf-rdfxml (3.2.1)
|
153
|
+
haml (~> 5.2)
|
156
154
|
htmlentities (~> 4.3)
|
157
155
|
rdf (~> 3.2)
|
158
156
|
rdf-rdfa (~> 3.2)
|
@@ -160,7 +158,7 @@ GEM
|
|
160
158
|
rdf-turtle (3.2.1)
|
161
159
|
ebnf (~> 2.3)
|
162
160
|
rdf (~> 3.2)
|
163
|
-
rdf-vocab (3.2.
|
161
|
+
rdf-vocab (3.2.5)
|
164
162
|
rdf (~> 3.2, >= 3.2.4)
|
165
163
|
rdf-xsd (3.2.1)
|
166
164
|
rdf (~> 3.2)
|
@@ -183,7 +181,7 @@ GEM
|
|
183
181
|
rspec-xsd (0.1.0)
|
184
182
|
nokogiri (~> 1.6)
|
185
183
|
rspec (~> 3)
|
186
|
-
rubocop (1.
|
184
|
+
rubocop (1.50.1)
|
187
185
|
json (~> 2.3)
|
188
186
|
parallel (~> 1.10)
|
189
187
|
parser (>= 3.2.0.0)
|
@@ -197,7 +195,7 @@ GEM
|
|
197
195
|
parser (>= 3.2.1.0)
|
198
196
|
rubocop-capybara (2.17.1)
|
199
197
|
rubocop (~> 1.41)
|
200
|
-
rubocop-performance (1.
|
198
|
+
rubocop-performance (1.17.1)
|
201
199
|
rubocop (>= 1.7.0, < 2.0)
|
202
200
|
rubocop-ast (>= 0.4.0)
|
203
201
|
rubocop-rake (0.6.0)
|
data/commonmeta.gemspec
CHANGED
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_dependency 'builder', '~> 3.2', '>= 3.2.4'
|
26
26
|
s.add_dependency 'citeproc-ruby', '~> 2.0'
|
27
27
|
s.add_dependency 'csl-styles', '~> 2.0'
|
28
|
-
s.add_dependency 'dotenv', '~> 2.1', '>= 2.1.1'
|
29
28
|
s.add_dependency 'edtf', '~> 3.0', '>= 3.0.4'
|
30
29
|
s.add_dependency 'gender_detector', '~> 2.0'
|
31
30
|
s.add_dependency 'http', '~> 5.1', '>= 5.1.1'
|
@@ -2,9 +2,6 @@
|
|
2
2
|
|
3
3
|
module Commonmeta
|
4
4
|
module CrossrefUtils
|
5
|
-
# To configure the writing of Crossref metadata, use environmental
|
6
|
-
# variables CROSSREF_DEPOSITOR_NAME, CROSSREF_DEPOSITOR_EMAIL and CROSSREF_REGISTRANT,
|
7
|
-
# e.g. in a .env file
|
8
5
|
def write_crossref_xml
|
9
6
|
@crossref_xml ||= Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml|
|
10
7
|
xml.doi_batch(crossref_root_attributes) do
|
@@ -13,10 +10,10 @@ module Commonmeta
|
|
13
10
|
xml.doi_batch_id(SecureRandom.uuid)
|
14
11
|
xml.timestamp(Time.now.utc.strftime('%Y%m%d%H%M%S'))
|
15
12
|
xml.depositor do
|
16
|
-
xml.depositor_name(
|
17
|
-
xml.email_address(
|
13
|
+
xml.depositor_name(depositor)
|
14
|
+
xml.email_address(email)
|
18
15
|
end
|
19
|
-
xml.registrant(
|
16
|
+
xml.registrant(registrant)
|
20
17
|
end
|
21
18
|
xml.body do
|
22
19
|
insert_crossref_work(xml)
|
@@ -133,7 +130,7 @@ module Commonmeta
|
|
133
130
|
|
134
131
|
def insert_citation_list(xml)
|
135
132
|
xml.citation_list do
|
136
|
-
references.each do |ref|
|
133
|
+
Array.wrap(references).each do |ref|
|
137
134
|
xml.citation('key' => ref['key']) do
|
138
135
|
xml.journal_article(ref['journal_title'])
|
139
136
|
xml.author(ref['author'])
|
data/lib/commonmeta/metadata.rb
CHANGED
@@ -45,9 +45,6 @@ module Commonmeta
|
|
45
45
|
'state' => options[:state],
|
46
46
|
'provider_id' => options[:provider_id],
|
47
47
|
'client_id' => options[:client_id],
|
48
|
-
'depositor' => options[:depositor],
|
49
|
-
'email' => options[:email],
|
50
|
-
'registrant' => options[:registrant],
|
51
48
|
'content_url' => options[:content_url]
|
52
49
|
}
|
53
50
|
string = File.read(options[:input])
|
@@ -62,9 +59,6 @@ module Commonmeta
|
|
62
59
|
'state' => options[:state],
|
63
60
|
'provider_id' => options[:provider_id],
|
64
61
|
'client_id' => options[:client_id],
|
65
|
-
'depositor' => options[:depositor],
|
66
|
-
'email' => options[:email],
|
67
|
-
'registrant' => options[:registrant],
|
68
62
|
'content_url' => options[:content_url],
|
69
63
|
'creators' => options[:creators],
|
70
64
|
'contributors' => options[:contributors],
|
@@ -94,11 +88,11 @@ module Commonmeta
|
|
94
88
|
@client_id = hsh.to_h['client_id'].presence
|
95
89
|
@content_url = hsh.to_h['content_url'].presence
|
96
90
|
|
97
|
-
# options that come from the
|
91
|
+
# options that come from the cli, needed
|
98
92
|
# for crossref doi registration
|
99
|
-
@depositor =
|
100
|
-
@email =
|
101
|
-
@registrant =
|
93
|
+
@depositor = options[:depositor]
|
94
|
+
@email = options[:email]
|
95
|
+
@registrant = options[:registrant]
|
102
96
|
|
103
97
|
# set attributes directly
|
104
98
|
read_options = options.slice(
|
data/lib/commonmeta/version.rb
CHANGED
data/lib/commonmeta.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -11,6 +11,7 @@ describe Commonmeta::CLI do
|
|
11
11
|
describe "convert from id", vcr: true do
|
12
12
|
SCHEMA_ORG_REGEX = /"@context": "http:\/\/schema.org"/
|
13
13
|
CROSSREF_XML_REGEX = /<doi_batch/
|
14
|
+
DEPOSITOR_REGEX = /<depositor_name>test<\/depositor_name>/
|
14
15
|
DATACITE_REGEX = /"types": {/
|
15
16
|
BIBTEX_REGEX = /@article{https:\/\/doi.org\/10.7554\/elife.01567/
|
16
17
|
BIBTEX_DATA_REGEX = /@misc{https:\/\/doi.org\/10.5061\/dryad.8515/
|
@@ -141,6 +142,12 @@ describe Commonmeta::CLI do
|
|
141
142
|
expect { subject.convert id }.to output(DATACITE_REGEX).to_stdout
|
142
143
|
end
|
143
144
|
|
145
|
+
it 'to crossref_xml' do
|
146
|
+
subject.options = { to: "crossref_xml", depositor: "test", email: "info@example.org", registrant: "test" }
|
147
|
+
expect { subject.convert id }.to output(CROSSREF_XML_REGEX).to_stdout
|
148
|
+
expect { subject.convert id }.to output(DEPOSITOR_REGEX).to_stdout
|
149
|
+
end
|
150
|
+
|
144
151
|
# TODO
|
145
152
|
# it 'to bibtex' do
|
146
153
|
# subject.options = { to: "bibtex" }
|
@@ -166,6 +173,12 @@ describe Commonmeta::CLI do
|
|
166
173
|
subject.options = { to: "datacite" }
|
167
174
|
expect { subject.convert file }.to output(DATACITE_REGEX).to_stdout
|
168
175
|
end
|
176
|
+
|
177
|
+
it 'to crossref_xml' do
|
178
|
+
subject.options = { to: "crossref_xml", depositor: "test", email: "info@example.org", registrant: "test" }
|
179
|
+
expect { subject.convert file }.to output(CROSSREF_XML_REGEX).to_stdout
|
180
|
+
expect { subject.convert file }.to output(DEPOSITOR_REGEX).to_stdout
|
181
|
+
end
|
169
182
|
end
|
170
183
|
|
171
184
|
context "crossref_xml", vcr: true do
|
@@ -209,8 +222,9 @@ describe Commonmeta::CLI do
|
|
209
222
|
end
|
210
223
|
|
211
224
|
it 'to crossref_xml' do
|
212
|
-
subject.options = { to: "crossref_xml" }
|
225
|
+
subject.options = { to: "crossref_xml", depositor: "test", email: "info@example.org", registrant: "test" }
|
213
226
|
expect { subject.convert file }.to output(CROSSREF_XML_REGEX).to_stdout
|
227
|
+
expect { subject.convert file }.to output(DEPOSITOR_REGEX).to_stdout
|
214
228
|
end
|
215
229
|
|
216
230
|
it 'to datacite' do
|
@@ -246,6 +260,12 @@ describe Commonmeta::CLI do
|
|
246
260
|
expect { subject.convert file }.to output(/@article{https:\/\/doi.org\/10.5438\/4k3m-nyvg/).to_stdout
|
247
261
|
end
|
248
262
|
|
263
|
+
it 'to crossref_xml' do
|
264
|
+
subject.options = { to: "crossref_xml", depositor: "test", email: "info@example.org", registrant: "test" }
|
265
|
+
expect { subject.convert file }.to output(CROSSREF_XML_REGEX).to_stdout
|
266
|
+
expect { subject.convert file }.to output(DEPOSITOR_REGEX).to_stdout
|
267
|
+
end
|
268
|
+
|
249
269
|
it 'to datacite invalid' do
|
250
270
|
file = fixture_path + "datacite_missing_creator.xml"
|
251
271
|
subject.options = { to: "datacite", show_errors: "true" }
|
@@ -107,4 +107,111 @@ http_interactions:
|
|
107
107
|
}
|
108
108
|
]
|
109
109
|
recorded_at: Sun, 19 Mar 2023 17:35:44 GMT
|
110
|
+
- request:
|
111
|
+
method: get
|
112
|
+
uri: https://api.crossref.org/members/4374
|
113
|
+
body:
|
114
|
+
encoding: UTF-8
|
115
|
+
string: ''
|
116
|
+
headers:
|
117
|
+
Connection:
|
118
|
+
- close
|
119
|
+
Host:
|
120
|
+
- api.crossref.org
|
121
|
+
User-Agent:
|
122
|
+
- http.rb/5.1.1
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Date:
|
129
|
+
- Fri, 14 Apr 2023 14:56:25 GMT
|
130
|
+
Content-Type:
|
131
|
+
- application/json
|
132
|
+
Transfer-Encoding:
|
133
|
+
- chunked
|
134
|
+
Access-Control-Expose-Headers:
|
135
|
+
- Link
|
136
|
+
Access-Control-Allow-Headers:
|
137
|
+
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
138
|
+
Accept-Ranges, Cache-Control
|
139
|
+
Access-Control-Allow-Origin:
|
140
|
+
- "*"
|
141
|
+
Server:
|
142
|
+
- Jetty(9.4.40.v20210413)
|
143
|
+
X-Ratelimit-Limit:
|
144
|
+
- '50'
|
145
|
+
X-Ratelimit-Interval:
|
146
|
+
- 1s
|
147
|
+
X-Api-Pool:
|
148
|
+
- public
|
149
|
+
X-Rate-Limit-Limit:
|
150
|
+
- '50'
|
151
|
+
X-Rate-Limit-Interval:
|
152
|
+
- 1s
|
153
|
+
Permissions-Policy:
|
154
|
+
- interest-cohort=()
|
155
|
+
Connection:
|
156
|
+
- close
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":1681445056270,"primary-name":"eLife
|
160
|
+
Sciences Publications, Ltd","counts":{"current-dois":15033,"backfile-dois":28280,"total-dois":43313},"breakdowns":{"dois-by-issued-year":[[2021,7229],[2022,6717],[2020,6182],[2019,4848],[2017,4118],[2018,4058],[2016,3510],[2015,2808],[2014,1786],[2023,1087],[2013,811],[2012,159]]},"prefixes":["10.7554"],"coverage":{"affiliations-current":0.9813077895297013,"similarity-checking-current":0.0,"descriptions-current":0.0,"ror-ids-current":0.5641588505288366,"funders-backfile":0.3052687411598303,"licenses-backfile":0.999964639321075,"funders-current":0.2880995144016497,"affiliations-backfile":0.9898161244695898,"resource-links-backfile":0.3481966053748232,"orcids-backfile":0.8474540311173975,"update-policies-current":0.3135102773897426,"ror-ids-backfile":0.002192362093352192,"orcids-current":0.9405973524911861,"similarity-checking-backfile":0.0,"references-backfile":0.3392857142857143,"descriptions-backfile":0.0,"award-numbers-backfile":0.2866690240452617,"update-policies-backfile":0.0708981612446959,"licenses-current":1.0,"award-numbers-current":0.2787201490055212,"abstracts-backfile":0.3405586987270156,"resource-links-current":0.3135102773897426,"abstracts-current":0.3157054480143684,"references-current":0.3028005055544469},"prefix":[{"name":"eLife
|
161
|
+
Sciences Publications, Ltd.","value":"10.7554"}],"id":4374,"tokens":["elife","sciences","publications","ltd"],"counts-type":{"all":{"peer-review":28652,"journal-article":14562,"journal":1,"component":143802,"posted-content":99},"backfile":{"peer-review":18431,"journal-article":9849},"current":{"peer-review":10221,"journal-article":4713,"posted-content":99}},"coverage-type":{"all":{"peer-review":{"last-status-check-time":1681445056270,"affiliations":0.9906812787938015,"abstracts":0.0,"orcids":0.8816138489459724,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.2177509423425939,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1681445056270,"affiliations":0.9792610905095454,"abstracts":0.9804971844526851,"orcids":0.8760472462573822,"licenses":0.99993132811427,"references":0.9715011674220574,"funders":0.8902623266034885,"similarity-checking":0.0,"award-numbers":0.8444581788215904,"ror-ids":0.1582200247218789,"update-policies":0.4613377283340201,"resource-links":0.99986265622854,"descriptions":0.0},"journal":{"last-status-check-time":1681445056270,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"component":{"last-status-check-time":1681445056270,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":4.867804342081473E-4,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1681445056270,"affiliations":1.0,"abstracts":1.0,"orcids":0.898989898989899,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"backfile":{"peer-review":{"last-status-check-time":1681445056270,"affiliations":0.9971244099614779,"abstracts":0.0,"orcids":0.86376213987304,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.003363897780912593,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1681445056270,"affiliations":0.9761397096151894,"abstracts":0.9778657731749416,"orcids":0.8169357295156869,"licenses":0.9998984668494263,"references":0.9742105797542898,"funders":0.8765356889024266,"similarity-checking":0.0,"award-numbers":0.8231292517006803,"ror-ids":0.0,"update-policies":0.2035739669001929,"resource-links":0.9997969336988527,"descriptions":0.0}},"current":{"peer-review":{"last-status-check-time":1681445056270,"affiliations":0.9790627140201545,"abstracts":0.0,"orcids":0.9138049114568046,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.6043439976518932,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1681445056270,"affiliations":0.9857840016974326,"abstracts":0.9859961807765754,"orcids":0.9995756418417144,"licenses":1.0,"references":0.9658391682580098,"funders":0.9189475917674517,"similarity-checking":0.0,"award-numbers":0.8890303416083174,"ror-ids":0.4888605983450032,"update-policies":1.0,"resource-links":1.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1681445056270,"affiliations":1.0,"abstracts":1.0,"orcids":0.898989898989899,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}}},"flags":{"deposits-abstracts-current":true,"deposits-orcids-current":true,"deposits":true,"deposits-affiliations-backfile":true,"deposits-update-policies-backfile":true,"deposits-similarity-checking-backfile":false,"deposits-award-numbers-current":true,"deposits-resource-links-current":true,"deposits-ror-ids-current":true,"deposits-articles":true,"deposits-affiliations-current":true,"deposits-funders-current":true,"deposits-references-backfile":true,"deposits-ror-ids-backfile":true,"deposits-abstracts-backfile":true,"deposits-licenses-backfile":true,"deposits-award-numbers-backfile":true,"deposits-descriptions-current":false,"deposits-references-current":true,"deposits-resource-links-backfile":true,"deposits-descriptions-backfile":false,"deposits-orcids-backfile":true,"deposits-funders-backfile":true,"deposits-update-policies-current":true,"deposits-similarity-checking-current":false,"deposits-licenses-current":true},"location":"Cambridge,
|
162
|
+
United Kingdom","names":["eLife Sciences Publications, Ltd","eLife Sciences
|
163
|
+
Publications, Ltd."]}}'
|
164
|
+
recorded_at: Fri, 14 Apr 2023 14:56:25 GMT
|
165
|
+
- request:
|
166
|
+
method: get
|
167
|
+
uri: https://doi.org/ra/10.7554
|
168
|
+
body:
|
169
|
+
encoding: UTF-8
|
170
|
+
string: ''
|
171
|
+
headers:
|
172
|
+
Connection:
|
173
|
+
- close
|
174
|
+
Host:
|
175
|
+
- doi.org
|
176
|
+
User-Agent:
|
177
|
+
- http.rb/5.1.1
|
178
|
+
response:
|
179
|
+
status:
|
180
|
+
code: 200
|
181
|
+
message: OK
|
182
|
+
headers:
|
183
|
+
Date:
|
184
|
+
- Fri, 14 Apr 2023 14:56:25 GMT
|
185
|
+
Content-Type:
|
186
|
+
- application/json;charset=UTF-8
|
187
|
+
Transfer-Encoding:
|
188
|
+
- chunked
|
189
|
+
Connection:
|
190
|
+
- close
|
191
|
+
Permissions-Policy:
|
192
|
+
- interest-cohort=(),browsing-topics=()
|
193
|
+
Cf-Cache-Status:
|
194
|
+
- DYNAMIC
|
195
|
+
Report-To:
|
196
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=sEMA5Qwgps61wkVVbFF7kyRxCF8A1G%2BpuuBK0fmnk%2BC3bt91lIuifBIFty37rOQo%2FBj%2FmLlCoI2szZTwurXZS4RnDGSsRHRx25nyh7%2Bjlz%2BmdhcV0qlHK0hzmiyAz4LMDOSKOx4%3D"}],"group":"cf-nel","max_age":604800}'
|
197
|
+
Nel:
|
198
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
199
|
+
Strict-Transport-Security:
|
200
|
+
- max-age=31536000; includeSubDomains; preload
|
201
|
+
Server:
|
202
|
+
- cloudflare
|
203
|
+
Cf-Ray:
|
204
|
+
- 7b7ccb9f9e9eb890-AMS
|
205
|
+
Alt-Svc:
|
206
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
207
|
+
body:
|
208
|
+
encoding: UTF-8
|
209
|
+
string: |-
|
210
|
+
[
|
211
|
+
{
|
212
|
+
"DOI": "10.7554",
|
213
|
+
"RA": "Crossref"
|
214
|
+
}
|
215
|
+
]
|
216
|
+
recorded_at: Fri, 14 Apr 2023 14:56:25 GMT
|
110
217
|
recorded_with: VCR 6.1.0
|
data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml.yml
CHANGED
@@ -52,4 +52,56 @@ http_interactions:
|
|
52
52
|
}
|
53
53
|
]
|
54
54
|
recorded_at: Sun, 19 Mar 2023 20:04:52 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://doi.org/ra/10.7554
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Connection:
|
63
|
+
- close
|
64
|
+
Host:
|
65
|
+
- doi.org
|
66
|
+
User-Agent:
|
67
|
+
- http.rb/5.1.1
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Date:
|
74
|
+
- Fri, 14 Apr 2023 14:58:01 GMT
|
75
|
+
Content-Type:
|
76
|
+
- application/json;charset=UTF-8
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Connection:
|
80
|
+
- close
|
81
|
+
Permissions-Policy:
|
82
|
+
- interest-cohort=(),browsing-topics=()
|
83
|
+
Cf-Cache-Status:
|
84
|
+
- DYNAMIC
|
85
|
+
Report-To:
|
86
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=DY93SvDIpxTkBL%2BZAbaq98D4jK06wGEfXAiTBM3KXwnnmGwrdMgtXzK0kKmFaKsByV4QZ%2BkqYO849DrwnvZRV4ctCLx4DvrVe%2B0CMhFK6A00sV1RR459Vw6yLVZa8ApUuvGMWqc%3D"}],"group":"cf-nel","max_age":604800}'
|
87
|
+
Nel:
|
88
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
89
|
+
Strict-Transport-Security:
|
90
|
+
- max-age=31536000; includeSubDomains; preload
|
91
|
+
Server:
|
92
|
+
- cloudflare
|
93
|
+
Cf-Ray:
|
94
|
+
- 7b7ccdf9ddd7d0b5-AMS
|
95
|
+
Alt-Svc:
|
96
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: |-
|
100
|
+
[
|
101
|
+
{
|
102
|
+
"DOI": "10.7554",
|
103
|
+
"RA": "Crossref"
|
104
|
+
}
|
105
|
+
]
|
106
|
+
recorded_at: Fri, 14 Apr 2023 14:58:01 GMT
|
55
107
|
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://doi.org/ra/10.7554
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Connection:
|
11
|
+
- close
|
12
|
+
Host:
|
13
|
+
- doi.org
|
14
|
+
User-Agent:
|
15
|
+
- http.rb/5.1.1
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 14 Apr 2023 15:01:05 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
Permissions-Policy:
|
30
|
+
- interest-cohort=(),browsing-topics=()
|
31
|
+
Cf-Cache-Status:
|
32
|
+
- DYNAMIC
|
33
|
+
Report-To:
|
34
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=FbYmEwnk6%2FvCn1ICgcABvrgkgOur%2BDwXjbYMG%2FeY6v75G%2FUgiDXEUeiF4B5CfTrcpdAvnWfMkR%2FSNyoImowByRI7Kh3TTs%2FdPpzEz69xOTXUj8OC3eKuJV4fT0KAn7kRPeV6A10%3D"}],"group":"cf-nel","max_age":604800}'
|
35
|
+
Nel:
|
36
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=31536000; includeSubDomains; preload
|
39
|
+
Server:
|
40
|
+
- cloudflare
|
41
|
+
Cf-Ray:
|
42
|
+
- 7b7cd273a87eb79a-AMS
|
43
|
+
Alt-Svc:
|
44
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: |-
|
48
|
+
[
|
49
|
+
{
|
50
|
+
"DOI": "10.7554",
|
51
|
+
"RA": "Crossref"
|
52
|
+
}
|
53
|
+
]
|
54
|
+
recorded_at: Fri, 14 Apr 2023 15:01:05 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://doi.org/ra/10.7554
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Connection:
|
63
|
+
- close
|
64
|
+
Host:
|
65
|
+
- doi.org
|
66
|
+
User-Agent:
|
67
|
+
- http.rb/5.1.1
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Date:
|
74
|
+
- Fri, 14 Apr 2023 15:01:05 GMT
|
75
|
+
Content-Type:
|
76
|
+
- application/json;charset=UTF-8
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Connection:
|
80
|
+
- close
|
81
|
+
Permissions-Policy:
|
82
|
+
- interest-cohort=(),browsing-topics=()
|
83
|
+
Cf-Cache-Status:
|
84
|
+
- DYNAMIC
|
85
|
+
Report-To:
|
86
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=L8kCqbNd7V4AI3QLk2YnXnFQDYk3KLq9eHI1FgwvGQ%2FzZvThvCBJV8x5OD6LGZSwuceCDBIoUxlqEb5RCEXSN%2BIk%2FvEA%2BADk7Q2K6DlJXPHuJV3E0yQaOuxqMwT1wnwBYUhnR1Y%3D"}],"group":"cf-nel","max_age":604800}'
|
87
|
+
Nel:
|
88
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
89
|
+
Strict-Transport-Security:
|
90
|
+
- max-age=31536000; includeSubDomains; preload
|
91
|
+
Server:
|
92
|
+
- cloudflare
|
93
|
+
Cf-Ray:
|
94
|
+
- 7b7cd275cf6b0e3a-AMS
|
95
|
+
Alt-Svc:
|
96
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: |-
|
100
|
+
[
|
101
|
+
{
|
102
|
+
"DOI": "10.7554",
|
103
|
+
"RA": "Crossref"
|
104
|
+
}
|
105
|
+
]
|
106
|
+
recorded_at: Fri, 14 Apr 2023 15:01:05 GMT
|
107
|
+
recorded_with: VCR 6.1.0
|