bolognese 0.9.81 → 0.9.82

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: def35d534c0a90bed9b62e5e65fcec5381723f990f193bbd54becfccaf5af41b
4
- data.tar.gz: f570a4e4ccefe656b54c1b2d9121fcd8174c32b67d463ebcc07bc78d30ad0fd0
3
+ metadata.gz: cfab5330f0ed1e74c60ee18061665e3136abc0fafd9f5fca3eaba979830010ca
4
+ data.tar.gz: 67110135d26ff28e76c89f9c46e50f97a0e7e14f31b982fe45a1373dd4466990
5
5
  SHA512:
6
- metadata.gz: 85a9b7ff299ea48f17de02b0a8354b520b05045e6de7254caab84e1d5b41ad5745b22545bbcbc6b533d0ceaf5d2911cc88ec502e9059b71849e5ea25922c50fd
7
- data.tar.gz: 7a701fa7626f4c6efd18d582c1d5210d82fba6febd43c0fa772d0c442ec8bf1ca28c7e9348d989bb900038bd41433d654403a1aaa4090f9133e3e1ae6e7c21cf
6
+ metadata.gz: 32e0d7b164f75198bcf5f8ed9b2b96fef5aafc5fd759b34c348437d36c41eefe1aac15752c3bc4b7c556b95b0d3e22c1d7a7fd4bbc0a6a0809dbaf7e1d5f650e
7
+ data.tar.gz: 0528fc884d41d5454985bd52b157533e30d3c60d4173dbae4952cae825a65cbac3798fdfebe2c6c5c31ff8fdb5446f432955b769248a0e56a112fc6534189375
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.9.81)
4
+ bolognese (0.9.82)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -90,7 +90,7 @@ module Bolognese
90
90
  xml.publicationYear(publication_year)
91
91
  end
92
92
 
93
- def resource_type
93
+ def res_type
94
94
  { "resource_type_general" => Metadata::SO_TO_DC_TRANSLATIONS[type] || "Other",
95
95
  "__content__" => additional_type || type }
96
96
  end
@@ -98,8 +98,8 @@ module Bolognese
98
98
  def insert_resource_type(xml)
99
99
  return xml unless type.present?
100
100
 
101
- xml.resourceType(resource_type["__content__"],
102
- 'resourceTypeGeneral' => resource_type["resource_type_general"])
101
+ xml.resourceType(res_type["__content__"],
102
+ 'resourceTypeGeneral' => res_type["resource_type_general"])
103
103
  end
104
104
 
105
105
  def insert_alternate_identifiers(xml)
@@ -311,7 +311,7 @@ module Bolognese
311
311
  end
312
312
 
313
313
  def schema_version
314
- @schema_version ||= metadata.fetch("schema_version", nil) || "http://datacite.org/schema/kernel-4"
314
+ @schema_version ||= metadata.fetch("schema_version", nil)
315
315
  end
316
316
 
317
317
  def funding
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.9.81"
2
+ VERSION = "0.9.82"
3
3
  end
@@ -12,7 +12,6 @@ describe Bolognese::Metadata, vcr: true do
12
12
  expect(crosscite.fetch("references").length).to eq(26)
13
13
  expect(crosscite.fetch("references").first).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.1038/nature02100", "title"=>"APL regulates vascular tissue identity in Arabidopsis")
14
14
  expect(crosscite.fetch("license")).to eq("id"=>"http://creativecommons.org/licenses/by/3.0")
15
- expect(crosscite.fetch("schema_version")).to eq("http://datacite.org/schema/kernel-4")
16
15
  end
17
16
 
18
17
  it "with ORCID ID" do
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.81
4
+ version: 0.9.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner