bolognese 0.10.17 → 0.10.18

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: b2f4f0f8c8a3fc4189cc07241d4dfefcb8803987ac59d59a49eda59358e0cde1
4
- data.tar.gz: 0c220505e3c13cd36774c0e22e5765c9f7f70083e67f51a8c6df0c6e96ed67b8
3
+ metadata.gz: 3b8301165399fb5f7a224a8e0416ffcec28a412afa1ff2059981e87dbd7c1468
4
+ data.tar.gz: d6fccffe2e86c26bb57eb226a07e12a419b741ae40d1f5ba338599c1ebe0137e
5
5
  SHA512:
6
- metadata.gz: c6e6966db0f2a463e73dceccbd3a462ccfd0fe980613d25a62346015052d244151db5c617345bdeeddc19c6c2d7b34f625911c77274c0cc533ebd7f02124dac8
7
- data.tar.gz: 66d00c3255bbfc68382d002b147d20c4f17bf96cfde5f178bf82ae61ef0151f03d26c8e635193d0c8ae2b473871f857636ffaad644e09063d6cc67dd79cac654
6
+ metadata.gz: ce2724c1ffaa82ca5eb05bf535d725e77cfebb44e1bfb782d829e324d9062ee5851f2b3638ef89f86a4b4a286a769042ce12215519a62b40d712a5c69511461b
7
+ data.tar.gz: e35a1a8706a00526dc9e9d5918219d455ac14efe35a7c21bb7ba2a5f3c880d64a11d9d29f0fe28242e01fad711c698d5acada42d108accfbd22cd9051c15cdf3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.10.17)
4
+ bolognese (0.10.18)
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
  alternate_name = Array.wrap(meta.dig("alternateIdentifiers", "alternateIdentifier")).map do |r|
77
77
  { "type" => r["alternateIdentifierType"], "name" => r["__content__"] }.compact
78
78
  end.unwrap
79
- description = Array.wrap(meta.dig("descriptions", "description")).map do |r|
79
+ description = Array.wrap(meta.dig("descriptions", "description")).select { |r| r["descriptionType"] != "SeriesInformation" }.map do |r|
80
80
  { "type" => r["descriptionType"], "text" => sanitize(r["__content__"]) }.compact
81
81
  end.unwrap
82
82
  license = Array.wrap(meta.dig("rightsList", "rights")).map do |r|
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.10.17"
2
+ VERSION = "0.10.18"
3
3
  end
@@ -330,6 +330,7 @@ describe Bolognese::Metadata, vcr: true do
330
330
  expect(subject.title).to eq("Rural Electrification With Hybrid Power Systems Based on Renewables - Technical System Configurations From the Point of View of the European Industry")
331
331
  expect(subject.date_published).to eq("2008")
332
332
  expect(subject.container_title).to eq("23rd European Photovoltaic Solar Energy Conference and Exhibition, 1-5 September 2008, Valencia, Spain; 3353-3356")
333
+ expect(subject.description["text"]).to start_with("Aim of this paper is the presentation")
333
334
  expect(subject.publisher).to eq("WIP-Munich")
334
335
  expect(subject.service_provider).to eq("DataCite")
335
336
  expect(subject.schema_version).to eq("http://datacite.org/schema/kernel-2.2")
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.10.17
4
+ version: 0.10.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner