bolognese 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b10b2f30664bc415fa1bcc606b4c2db35132391c72294cc4d20ec10652906c3c
4
- data.tar.gz: ad15c83b54c9d02b3af165d44c83bb20029e30f33e902c5ba8c61f5356b66171
3
+ metadata.gz: e71e465906aafa6a745b0d2f9f32b4f959ddb89c86a7380e10ce22ef6f3055a7
4
+ data.tar.gz: 4bc7ec8aae993f87ae061298409a8881fc9bf444bc2ca85e7c5ef6c686ca33a7
5
5
  SHA512:
6
- metadata.gz: 62fb8fa37d0b75f493410e74335b76d3a1cd7c8d31331478c4da873355059bc50831e4a71f05f8f0021fe7c72628c687107155c79e05b0d9cb97ba17fddcdd71
7
- data.tar.gz: ab4a88be3953d2303ab47b17efe90e59e4aee8624b62f91566652a3bf37856d370237cf11cb438d0266af8d46181b59b0271ff90019b53cc34f6b114b39453eb
6
+ metadata.gz: 55282478a8ef172ee0af940dc7b1647beaa5bc5bb46ea4b294c234bd60876f89bfb09667e2f95bad6bd2178a230fb803d910a9c1a8d5a82c63582208e45bfb7d
7
+ data.tar.gz: b35a4744f48f8a2c6e409fca2fc8a4f972625548640da8006ec6d5db8cd67215cbf94c3d093bdb08158fd96aaedc1b97c7b4755517e441adad937e59060abad7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.0.8)
4
+ bolognese (1.0.9)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -187,7 +187,7 @@ module Bolognese
187
187
 
188
188
  { "funderIdentifier" => funder_identifier,
189
189
  "funderIdentifierType" => funder_identifier_type,
190
- "funderName" => f.fetch("__content__", "").strip,
190
+ "funderName" => f.fetch("__content__", nil).to_s.strip.presence,
191
191
  "awardTitle" => award_title,
192
192
  "awardNumber" => f.dig("awardNumber", "__content__"),
193
193
  "awardUri" => f.dig("awardNumber", "awardURI") }.compact
@@ -177,7 +177,7 @@ module Bolognese
177
177
  "creator" => get_authors(Array.wrap(meta.dig("creators", "creator"))),
178
178
  "contributor" => get_authors(Array.wrap(meta.dig("contributors", "contributor"))),
179
179
  "periodical" => periodical,
180
- "publisher" => meta.fetch("publisher", "").strip.presence,
180
+ "publisher" => meta.fetch("publisher", nil).to_s.strip.presence,
181
181
  "source" => "DataCite",
182
182
  "funding_references" => funding_references,
183
183
  "dates" => dates,
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  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: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner