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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e71e465906aafa6a745b0d2f9f32b4f959ddb89c86a7380e10ce22ef6f3055a7
4
- data.tar.gz: 4bc7ec8aae993f87ae061298409a8881fc9bf444bc2ca85e7c5ef6c686ca33a7
3
+ metadata.gz: d59801925b0f8eee2d0525dfe32b70e9379b1e8d893b82e6c07c2d1522b2ce9c
4
+ data.tar.gz: 569d77b38696a59030169aa6c449802360fd222b4946eb392a2743889b767e8b
5
5
  SHA512:
6
- metadata.gz: 55282478a8ef172ee0af940dc7b1647beaa5bc5bb46ea4b294c234bd60876f89bfb09667e2f95bad6bd2178a230fb803d910a9c1a8d5a82c63582208e45bfb7d
7
- data.tar.gz: b35a4744f48f8a2c6e409fca2fc8a4f972625548640da8006ec6d5db8cd67215cbf94c3d093bdb08158fd96aaedc1b97c7b4755517e441adad937e59060abad7
6
+ metadata.gz: 646f7043e58eb1d3a522167e4415e8ad7a0b1abd71a3304efb640ba020b39d7662d8795791e729cc70e5122cc080df5a5d0330e4f9634890883eb36cc6f86ab3
7
+ data.tar.gz: 6551b044510a0ed104967f9fef13fec50cf5e99db7a9e9d43084ac8225c898d8431ee79766c13c7b81cf531314fdb4bc6ebec2c8e7cc498d17f618f012b4ed00
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.0.9)
4
+ bolognese (1.0.10)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -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.9
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-15 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma