bolognese 1.0.9 → 1.0.10
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bolognese/readers/datacite_reader.rb +2 -2
- data/lib/bolognese/version.rb +1 -1
- data/spec/readers/datacite_reader_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d59801925b0f8eee2d0525dfe32b70e9379b1e8d893b82e6c07c2d1522b2ce9c
|
|
4
|
+
data.tar.gz: 569d77b38696a59030169aa6c449802360fd222b4946eb392a2743889b767e8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 646f7043e58eb1d3a522167e4415e8ad7a0b1abd71a3304efb640ba020b39d7662d8795791e729cc70e5122cc080df5a5d0330e4f9634890883eb36cc6f86ab3
|
|
7
|
+
data.tar.gz: 6551b044510a0ed104967f9fef13fec50cf5e99db7a9e9d43084ac8225c898d8431ee79766c13c7b81cf531314fdb4bc6ebec2c8e7cc498d17f618f012b4ed00
|
data/Gemfile.lock
CHANGED
|
@@ -93,8 +93,8 @@ module Bolognese
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
alternate_identifiers = Array.wrap(meta.dig("alternateIdentifiers", "alternateIdentifier")).map do |r|
|
|
96
|
-
{ "alternateIdentifierType" => r["alternateIdentifierType"], "alternateIdentifier" => r["__content__"] }
|
|
97
|
-
end
|
|
96
|
+
{ "alternateIdentifierType" => r["alternateIdentifierType"], "alternateIdentifier" => r["__content__"].presence }.compact
|
|
97
|
+
end.compact
|
|
98
98
|
descriptions = Array.wrap(meta.dig("descriptions", "description")).select { |r| r["descriptionType"] != "SeriesInformation" }.map do |r|
|
|
99
99
|
{ "description" => sanitize(r["__content__"]), "descriptionType" => r["descriptionType"], "lang" => r["lang"] }.compact
|
|
100
100
|
end
|
data/lib/bolognese/version.rb
CHANGED
|
@@ -72,6 +72,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
|
72
72
|
expect(subject.types["resourceTypeGeneral"]).to eq("Text")
|
|
73
73
|
expect(subject.creator).to eq([{"type"=>"Person", "name"=>"Nathaniel Johnston", "givenName"=>"Nathaniel", "familyName"=>"Johnston"}])
|
|
74
74
|
expect(subject.titles).to eq([{"title"=>"The Minimum Size of Qubit Unextendible Product Bases"}])
|
|
75
|
+
expect(subject.alternate_identifiers).to eq([])
|
|
75
76
|
expect(subject.descriptions.first["description"]).to start_with("We investigate the problem of constructing unextendible product bases in the qubit case")
|
|
76
77
|
expect(subject.dates).to eq([{"date"=>"2013-11-05", "dateType"=>"Available"}, {"date"=>"2013", "dateType"=>"Issued"}])
|
|
77
78
|
expect(subject.publication_year).to eq("2013")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bolognese
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Fenner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: maremma
|