bolognese 0.9.87 → 0.9.88

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: f20ecd6f9a84ab76a03a3d5212ef7ac0bffb521d145d1d8ffa9479c10e4854a3
4
- data.tar.gz: 82b57cee93effb06e3407ca0b420d674f885967e6338e5b34a04c7d2227a8fce
3
+ metadata.gz: 7e74e3f9f166b02c9587e2c665b0db28263c348e9029a4f40c6be1cddfc6f7c0
4
+ data.tar.gz: 7ce0a967fdc05d92aeba5d7b583c0f13a1d72d4978d0720957577745fe73da85
5
5
  SHA512:
6
- metadata.gz: dd5375d60a2bdf32783db1c6799f4c40fba651429e19f4525e9dc55f5d02bebf662a26a11f68efdc516c6e6aa57706fdef761a24707a519517b08e45f5d4fe65
7
- data.tar.gz: e4752b5b7dab18663d67e23108fd34ef0894fea9b4846b9c5f8651faa12b2b24869dd3c6aecf2dab9459e8bbe0f798c2bc64ff31acc4bc94c72c526b7d3eb9cb
6
+ metadata.gz: a7c157e267e030cc5a836c8a59f345ba1dee0360cd3482c97d99388b01568c6a553e753eb9f06ad6d51816d32b75cd3ef03f85dab463dda873edb237c5cedd28
7
+ data.tar.gz: f67704d4887a0465763ff5366be2f6174229eb7377043039e7fa2f158bec2a4f1dff285d54176146481475bdc38511f5213f8b52f925085c1be5fa48549d9b63
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.9.87)
4
+ bolognese (0.9.88)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -76,7 +76,7 @@ module Bolognese
76
76
  :is_derived_from, :is_source_of, :format, :funding, :type, :bibtex_type,
77
77
  :citeproc_type, :ris_type, :style, :locale, :state
78
78
 
79
- attr_reader :id, :from, :raw, :metadata, :doc, :provider,
79
+ attr_reader :id, :from, :raw, :metadata, :doc, :service_provider,
80
80
  :page_start, :page_end, :should_passthru, :errors,
81
81
  :related_identifier, :reverse, :name_detector
82
82
 
@@ -229,8 +229,8 @@ module Bolognese
229
229
  @publisher ||= metadata.fetch("publisher", nil)
230
230
  end
231
231
 
232
- def provider
233
- @provider ||= metadata.fetch("provider", nil)
232
+ def service_provider
233
+ @service_provider ||= metadata.fetch("service_provider", nil)
234
234
  end
235
235
 
236
236
  def date_created
@@ -151,7 +151,7 @@ module Bolognese
151
151
  "editor" => crossref_people(bibliographic_metadata, "editor"),
152
152
  "funding" => crossref_funding_reference(program_metadata),
153
153
  "publisher" => publisher,
154
- "provider" => "Crossref",
154
+ "service_provider" => "Crossref",
155
155
  "is_part_of" => crossref_is_part_of(journal_metadata),
156
156
  "references" => crossref_references(bibliographic_metadata),
157
157
  "date_published" => crossref_date_published(bibliographic_metadata),
@@ -25,7 +25,7 @@ module Bolognese
25
25
  "author" => meta.fetch("creator", nil),
26
26
  "editor" => meta.fetch("contributor", nil),
27
27
  "publisher" => meta.fetch("publisher", nil),
28
- "provider" => "DataCite",
28
+ "service_provider" => "DataCite",
29
29
  "is_part_of" => meta.fetch("is_part_of", nil),
30
30
  "has_part" => meta.fetch("has_part", nil),
31
31
  "references" => meta.fetch("references", nil),
@@ -107,7 +107,7 @@ module Bolognese
107
107
  "author" => get_authors(meta.dig("creators", "creator")),
108
108
  "editor" => get_authors(Array.wrap(meta.dig("contributors", "contributor")).select { |r| r["contributorType"] == "Editor" }),
109
109
  "publisher" => meta.fetch("publisher", nil),
110
- "provider" => "DataCite",
110
+ "service_provider" => "DataCite",
111
111
  "funding" => funding,
112
112
  "is_identical_to" => datacite_is_identical_to(meta),
113
113
  "is_part_of" => datacite_is_part_of(meta),
@@ -56,7 +56,7 @@ module Bolognese
56
56
  "alternate_name" => meta.fetch("alternateName", nil),
57
57
  "author" => author,
58
58
  "publisher" => meta.dig("publisher", "name"),
59
- "provider" => meta.fetch("provider", nil),
59
+ "service_provider" => meta.fetch("provider", nil),
60
60
  "is_identical_to" => schema_org_is_identical_to(meta),
61
61
  "is_part_of" => schema_org_is_part_of(meta),
62
62
  "has_part" => schema_org_has_part(meta),
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.9.87"
2
+ VERSION = "0.9.88"
3
3
  end
@@ -46,7 +46,7 @@ module Bolognese
46
46
  "schema_version" => schema_version,
47
47
  "provider_id" => provider_id,
48
48
  "client_id" => client_id,
49
- "provider" => provider,
49
+ "provider" => service_provider,
50
50
  "state" => state
51
51
  }.compact
52
52
  JSON.pretty_generate hsh.presence
@@ -3,7 +3,7 @@ module Bolognese
3
3
  module DataciteJsonWriter
4
4
  def datacite_json
5
5
  hsh = {
6
- "id" => id,
6
+ "id" => identifier,
7
7
  "doi" => doi,
8
8
  "url" => url,
9
9
  "creator" => author,
@@ -40,7 +40,7 @@ module Bolognese
40
40
  "schemaVersion" => schema_version,
41
41
  "provider_id" => provider_id,
42
42
  "client_id" => client_id,
43
- "provider" => provider
43
+ "provider" => service_provider
44
44
  }.compact
45
45
  JSON.pretty_generate hsh.presence
46
46
  end
@@ -34,7 +34,7 @@ module Bolognese
34
34
  "schemaVersion" => schema_version,
35
35
  "publisher" => publisher.present? ? { "@type" => "Organization", "name" => publisher } : nil,
36
36
  "funding" => to_schema_org(funding),
37
- "provider" => provider.present? ? { "@type" => "Organization", "name" => provider } : nil
37
+ "provider" => service_provider.present? ? { "@type" => "Organization", "name" => service_provider } : nil
38
38
  }.compact.presence
39
39
  end
40
40
 
@@ -42,7 +42,7 @@ describe Bolognese::Metadata, vcr: true do
42
42
  {"type"=>"Organization",
43
43
  "id"=>"https://doi.org/10.13039/501100006390",
44
44
  "name"=>"University of Lausanne"}])
45
- expect(subject.provider).to eq("Crossref")
45
+ expect(subject.service_provider).to eq("Crossref")
46
46
  end
47
47
 
48
48
  it "journal article" do
@@ -65,7 +65,7 @@ describe Bolognese::Metadata, vcr: true do
65
65
  expect(subject.first_page).to eq("e30")
66
66
  expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"PLoS ONE", "issn"=>"1932-6203")
67
67
  expect(subject.container_title).to eq("PLoS ONE")
68
- expect(subject.provider).to eq("Crossref")
68
+ expect(subject.service_provider).to eq("Crossref")
69
69
  end
70
70
 
71
71
  it "posted_content" do
@@ -86,7 +86,7 @@ describe Bolognese::Metadata, vcr: true do
86
86
  expect(subject.date_modified).to eq("2017-10-10T05:10:49Z")
87
87
  expect(subject.is_part_of).to be_nil
88
88
  expect(subject.publisher).to eq("bioRxiv")
89
- expect(subject.provider).to eq("Crossref")
89
+ expect(subject.service_provider).to eq("Crossref")
90
90
  end
91
91
 
92
92
  it "DOI with SICI DOI" do
@@ -107,7 +107,7 @@ describe Bolognese::Metadata, vcr: true do
107
107
  expect(subject.last_page).to eq("2841")
108
108
  expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"Ecology", "issn"=>"0012-9658")
109
109
  expect(subject.container_title).to eq("Ecology")
110
- expect(subject.provider).to eq("Crossref")
110
+ expect(subject.service_provider).to eq("Crossref")
111
111
  end
112
112
 
113
113
  it "DOI with ORCID ID" do
@@ -129,7 +129,7 @@ describe Bolognese::Metadata, vcr: true do
129
129
  expect(subject.last_page).to eq("7")
130
130
  expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"Pulmonary Medicine", "issn"=>"2090-1836")
131
131
  expect(subject.container_title).to eq("Pulmonary Medicine")
132
- expect(subject.provider).to eq("Crossref")
132
+ expect(subject.service_provider).to eq("Crossref")
133
133
  end
134
134
 
135
135
  it "date in future" do
@@ -148,7 +148,7 @@ describe Bolognese::Metadata, vcr: true do
148
148
  expect(subject.date_modified).to eq("2017-06-23T08:44:48Z")
149
149
  expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"European Journal of Pharmacology", "issn"=>"00142999")
150
150
  expect(subject.container_title).to eq("European Journal of Pharmacology")
151
- expect(subject.provider).to eq("Crossref")
151
+ expect(subject.service_provider).to eq("Crossref")
152
152
  end
153
153
 
154
154
  it "dataset" do
@@ -168,7 +168,7 @@ describe Bolognese::Metadata, vcr: true do
168
168
  expect(subject.publication_year).to eq(1984)
169
169
  expect(subject.date_modified).to eq("2014-05-27T16:45:59Z")
170
170
  expect(subject.publisher).to eq("(:unav)")
171
- expect(subject.provider).to eq("Crossref")
171
+ expect(subject.service_provider).to eq("Crossref")
172
172
  end
173
173
 
174
174
  it "book chapter" do
@@ -186,7 +186,7 @@ describe Bolognese::Metadata, vcr: true do
186
186
  expect(subject.date_published).to eq("2015")
187
187
  expect(subject.date_modified).to eq("2015-04-14T02:31:13Z")
188
188
  expect(subject.publisher).to eq("Springer Berlin Heidelberg")
189
- expect(subject.provider).to eq("Crossref")
189
+ expect(subject.service_provider).to eq("Crossref")
190
190
  end
191
191
 
192
192
  it "journal article with" do
@@ -206,7 +206,7 @@ describe Bolognese::Metadata, vcr: true do
206
206
  expect(subject.date_modified).to eq("2017-06-05T10:56:59Z")
207
207
  expect(subject.is_part_of).to eq("type"=>"Periodical", "title"=>"New Phytologist", "issn"=>"0028646X")
208
208
  expect(subject.container_title).to eq("New Phytologist")
209
- expect(subject.provider).to eq("Crossref")
209
+ expect(subject.service_provider).to eq("Crossref")
210
210
  end
211
211
 
212
212
  it "not found error" do
@@ -215,7 +215,7 @@ describe Bolognese::Metadata, vcr: true do
215
215
  expect(subject.valid?).to be false
216
216
  expect(subject.id).to eq("https://doi.org/10.7554/elife.01567x")
217
217
  expect(subject.doi).to eq("10.7554/elife.01567x")
218
- expect(subject.provider).to eq("Crossref")
218
+ expect(subject.service_provider).to eq("Crossref")
219
219
  expect(subject.state).to eq("not_found")
220
220
  end
221
221
  end
@@ -24,7 +24,7 @@ describe Bolognese::Metadata, vcr: true do
24
24
  expect(subject.date_published).to eq("2016-12-20")
25
25
  expect(subject.is_part_of).to eq("id"=>"https://doi.org/10.5438/0000-00ss")
26
26
  expect(subject.references).to eq([{"id"=>"https://doi.org/10.5438/0012"}, {"id"=>"https://doi.org/10.5438/55e5-t5c0"}])
27
- expect(subject.provider).to eq("DataCite")
27
+ expect(subject.service_provider).to eq("DataCite")
28
28
  end
29
29
 
30
30
  it "SoftwareSourceCode missing_comma" do
@@ -30,7 +30,7 @@ describe Bolognese::Metadata, vcr: true do
30
30
  expect(subject.has_part).to eq([{"type"=>"CreativeWork", "id"=>"https://doi.org/10.5061/dryad.8515/1"}, {"type"=>"CreativeWork", "id"=>"https://doi.org/10.5061/dryad.8515/2"}])
31
31
  expect(subject.is_referenced_by).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.1371/journal.ppat.1000446")
32
32
  expect(subject.publisher).to eq("Dryad Digital Repository")
33
- expect(subject.provider).to eq("DataCite")
33
+ expect(subject.service_provider).to eq("DataCite")
34
34
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
35
35
  end
36
36
 
@@ -51,7 +51,7 @@ describe Bolognese::Metadata, vcr: true do
51
51
  expect(subject.is_part_of).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/0000-00ss")
52
52
  expect(subject.references).to eq([{"type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/0012"}, {"type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/55e5-t5c0"}])
53
53
  expect(subject.publisher).to eq("DataCite")
54
- expect(subject.provider).to eq("DataCite")
54
+ expect(subject.service_provider).to eq("DataCite")
55
55
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
56
56
  end
57
57
 
@@ -68,7 +68,7 @@ describe Bolognese::Metadata, vcr: true do
68
68
  expect(subject.description["text"]).to start_with("We investigate the problem of constructing unextendible product bases in the qubit case")
69
69
  expect(subject.date_published).to eq("2013")
70
70
  expect(subject.publisher).to eq("Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH, Wadern/Saarbruecken, Germany")
71
- expect(subject.provider).to eq("DataCite")
71
+ expect(subject.service_provider).to eq("DataCite")
72
72
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.1")
73
73
  end
74
74
 
@@ -86,7 +86,7 @@ describe Bolognese::Metadata, vcr: true do
86
86
  expect(subject.date_published).to eq("2016-03-27")
87
87
  expect(subject.is_supplement_to).to eq("type"=>"CreativeWork", "id"=>"https://github.com/kjgarza/frame_experiment_analysis/tree/v1.0")
88
88
  expect(subject.publisher).to eq("Zenodo")
89
- expect(subject.provider).to eq("DataCite")
89
+ expect(subject.service_provider).to eq("DataCite")
90
90
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
91
91
  end
92
92
 
@@ -106,7 +106,7 @@ describe Bolognese::Metadata, vcr: true do
106
106
  expect(subject.date_published).to eq("2016")
107
107
  expect(subject.is_identical_to).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.6084/m9.figshare.4234751")
108
108
  expect(subject.publisher).to eq("Figshare")
109
- expect(subject.provider).to eq("DataCite")
109
+ expect(subject.service_provider).to eq("DataCite")
110
110
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
111
111
  end
112
112
 
@@ -124,7 +124,7 @@ describe Bolognese::Metadata, vcr: true do
124
124
  expect(subject.date_published).to eq("2013-04-03")
125
125
  expect(subject.publisher).to eq("OpenAIRE Orphan Record Repository")
126
126
  expect(subject.funding).to eq("type"=>"Award", "identifier"=>"246686", "funder"=>{"type"=>"Organization", "id"=>"https://doi.org/10.13039/501100000780", "name"=>"European Commission"})
127
- expect(subject.provider).to eq("DataCite")
127
+ expect(subject.service_provider).to eq("DataCite")
128
128
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
129
129
  end
130
130
 
@@ -191,7 +191,7 @@ describe Bolognese::Metadata, vcr: true do
191
191
  expect(subject.publisher).to eq("University of Bath")
192
192
  expect(subject.funding.length).to eq(5)
193
193
  expect(subject.funding.first).to eq("type"=>"Award", "name"=>"SUPERGEN Hub Funding", "identifier"=>"EP/J016454/1", "funder" => {"type"=>"Organization", "id"=>"https://doi.org/10.13039/501100000266", "name"=>"Engineering and Physical Sciences Research Council (EPSRC)"})
194
- expect(subject.provider).to eq("DataCite")
194
+ expect(subject.service_provider).to eq("DataCite")
195
195
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
196
196
  end
197
197
 
@@ -214,7 +214,7 @@ describe Bolognese::Metadata, vcr: true do
214
214
  "identifier" => "654039",
215
215
  "name" => "THOR – Technical and Human Infrastructure for Open Research",
216
216
  "url" => "http://cordis.europa.eu/project/rcn/194927_en.html")
217
- expect(subject.provider).to eq("DataCite")
217
+ expect(subject.service_provider).to eq("DataCite")
218
218
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
219
219
  end
220
220
 
@@ -233,7 +233,7 @@ describe Bolognese::Metadata, vcr: true do
233
233
  expect(subject.publication_year).to eq(2016)
234
234
  expect(subject.is_part_of).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/0000-00ss")
235
235
  expect(subject.references).to eq([{"type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/0012"}, {"type"=>"CreativeWork", "id"=>"https://doi.org/10.5438/55e5-t5c0"}])
236
- expect(subject.provider).to eq("DataCite")
236
+ expect(subject.service_provider).to eq("DataCite")
237
237
  end
238
238
 
239
239
  it "Schema 4.1 from string" do
@@ -252,7 +252,7 @@ describe Bolognese::Metadata, vcr: true do
252
252
  expect(subject.is_part_of).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.5272/oldertestpub")
253
253
  expect(subject.license).to eq("id"=>"http://creativecommons.org/licenses/by-nd/2.0", "name"=>"Creative Commons Attribution-NoDerivs 2.0 Generic")
254
254
  expect(subject.publisher).to eq("Springer")
255
- expect(subject.provider).to eq("DataCite")
255
+ expect(subject.service_provider).to eq("DataCite")
256
256
  end
257
257
 
258
258
  it "Schema 4.1 from string with doi in options" do
@@ -271,7 +271,7 @@ describe Bolognese::Metadata, vcr: true do
271
271
  expect(subject.is_part_of).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.5272/oldertestpub")
272
272
  expect(subject.license).to eq("id"=>"http://creativecommons.org/licenses/by-nd/2.0", "name"=>"Creative Commons Attribution-NoDerivs 2.0 Generic")
273
273
  expect(subject.publisher).to eq("Springer")
274
- expect(subject.provider).to eq("DataCite")
274
+ expect(subject.service_provider).to eq("DataCite")
275
275
  end
276
276
 
277
277
  it "empty subject" do
@@ -286,7 +286,7 @@ describe Bolognese::Metadata, vcr: true do
286
286
  expect(subject.title).to eq( "Messung der Bildunschaerfe in H.264-codierten Bildern und Videosequenzen")
287
287
  expect(subject.date_published).to eq("2017")
288
288
  expect(subject.publisher).to eq("Siemens AG")
289
- expect(subject.provider).to eq("DataCite")
289
+ expect(subject.service_provider).to eq("DataCite")
290
290
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
291
291
  end
292
292
 
@@ -316,7 +316,7 @@ describe Bolognese::Metadata, vcr: true do
316
316
  expect(subject.version).to eq("2")
317
317
  expect(subject.date_published).to eq("2015")
318
318
  expect(subject.publisher).to eq("Royal Netherlands Meteorological Institute (KNMI)")
319
- expect(subject.provider).to eq("DataCite")
319
+ expect(subject.service_provider).to eq("DataCite")
320
320
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
321
321
  end
322
322
 
@@ -326,7 +326,7 @@ describe Bolognese::Metadata, vcr: true do
326
326
  expect(subject.valid?).to be false
327
327
  expect(subject.id).to eq("https://doi.org/10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
328
328
  expect(subject.doi).to eq("10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
329
- expect(subject.provider).to eq("DataCite")
329
+ expect(subject.service_provider).to eq("DataCite")
330
330
  expect(subject.state).to eq("not_found")
331
331
  end
332
332
 
@@ -342,7 +342,7 @@ describe Bolognese::Metadata, vcr: true do
342
342
  expect(subject.date_published).to eq("2018-01-12")
343
343
  expect(subject.publication_year).to eq(2018)
344
344
  expect(subject.publisher).to eq("CaltechDATA")
345
- expect(subject.provider).to eq("DataCite")
345
+ expect(subject.service_provider).to eq("DataCite")
346
346
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
347
347
  expect(subject.state).to eq("findable")
348
348
  end
@@ -359,7 +359,7 @@ describe Bolognese::Metadata, vcr: true do
359
359
  expect(subject.title).to eq("Referee report. For: Gates - add article keywords to the metatags [version 2; referees: 1 approved]")
360
360
  expect(subject.date_published).to eq("2018")
361
361
  expect(subject.publisher).to eq("Gates Open Research")
362
- expect(subject.provider).to eq("DataCite")
362
+ expect(subject.service_provider).to eq("DataCite")
363
363
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
364
364
  end
365
365
 
@@ -108,7 +108,7 @@ describe Bolognese::Metadata, vcr: true do
108
108
  expect(subject.license).to eq("id"=>"https://creativecommons.org/publicdomain/zero/1.0", "name"=>"CC-0")
109
109
  expect(subject.date_published).to eq("2017")
110
110
  expect(subject.publisher).to eq("Figshare")
111
- expect(subject.provider).to eq("DataCite")
111
+ expect(subject.service_provider).to eq("DataCite")
112
112
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
113
113
  expect(subject.datacite).to end_with("</resource>")
114
114
  end
@@ -127,7 +127,7 @@ describe Bolognese::Metadata, vcr: true do
127
127
  expect(subject.license).to eq("id"=>"https://creativecommons.org/publicdomain/zero/1.0", "name"=>"CC-0")
128
128
  expect(subject.date_published).to eq("2017")
129
129
  expect(subject.publisher).to eq("Figshare")
130
- expect(subject.provider).to eq("DataCite")
130
+ expect(subject.service_provider).to eq("DataCite")
131
131
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-3")
132
132
  expect(subject.datacite).to end_with("</resource>")
133
133
  end
@@ -150,7 +150,7 @@ describe Bolognese::Metadata, vcr: true do
150
150
  {"type"=>"CreativeWork", "id"=>"https://doi.org/10.5061/dryad.8515/2"}])
151
151
  expect(subject.is_referenced_by).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.1371/journal.ppat.1000446")
152
152
  expect(subject.publisher).to eq("Dryad Digital Repository")
153
- expect(subject.provider).to eq("DataCite")
153
+ expect(subject.service_provider).to eq("DataCite")
154
154
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-4")
155
155
 
156
156
  datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
@@ -173,7 +173,7 @@ describe Bolognese::Metadata, vcr: true do
173
173
  expect(subject.valid?).to be false
174
174
  expect(subject.id).to eq("https://doi.org/10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
175
175
  expect(subject.doi).to eq("10.4124/05f6c379-dd68-4cdb-880d-33d3e9576d52/1")
176
- expect(subject.provider).to eq("DataCite")
176
+ expect(subject.service_provider).to eq("DataCite")
177
177
  expect(subject.state).to eq("not_found")
178
178
  expect(subject.datacite).to be_nil
179
179
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.87
4
+ version: 0.9.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner