bolognese 2.5.1 → 2.5.2

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: 8cdcd2d525280e9a18bb55b388a986cf98eda7b8375050e5400f524542e0f354
4
- data.tar.gz: b98bb03505a15402caa8c8b2cd38313fcbc457e5c1c3c6ccb68c35e9285e4d44
3
+ metadata.gz: c4aa1c25659326a9e9506d416dd42087751371c8461837d978afc1a71c4df295
4
+ data.tar.gz: 3a1f6b2f863e069b22ec5b467b8d3fc3360ad260442c03e10f9344ca786e273f
5
5
  SHA512:
6
- metadata.gz: 83a8976a7449c4108e367de5cf0b3fd0b98afdd84b88902e2abbb1d7f658c996fb16381fc1dadf9c3d475f1b72af0104b05586b236e4cdeb547c5d94432e17cf
7
- data.tar.gz: 7fdca868f2a063fbad6bcbc019b718fc7a7f3b7eeb07e63d8a9b05b6a5aa35c9cfdf5d632befa199faa39b50873b4322b5a2244f43a5fa44d4da1577960ef330
6
+ metadata.gz: c546663039c2d26d94a15be4734cb294f4470d502b4b21934e99a92e7d25256c2a7e997f2537e7b650e7a3b779f540d13f8227fe71744977bd23428a1059b967
7
+ data.tar.gz: 64c9b3870ce6a610b6a3eb1e6fcf8f4ff43826926bc4eaa96d42fcd38f9e7bae993a0dd4031bba8cef1c72f9adfb4811172b748e10f71f4589991c7f56ece180
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (2.5.1)
4
+ bolognese (2.5.2)
5
5
  activesupport (= 7.2.3)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "2.5.1"
2
+ VERSION = "2.5.2"
3
3
  end
@@ -4,18 +4,16 @@ module Bolognese
4
4
  require "csv"
5
5
 
6
6
  def csv
7
- return nil unless valid?
8
-
9
7
  bib = {
10
8
  doi: doi,
11
9
  url: url,
12
10
  registered: get_iso8601_date(date_registered),
13
11
  state: state,
14
- resource_type_general: types["resourceTypeGeneral"],
15
- resource_type: types["resourceType"],
12
+ resource_type_general: types.respond_to?(:to_h) ? types.to_h["resourceTypeGeneral"] : nil,
13
+ resource_type: types.respond_to?(:to_h) ? types.to_h["resourceType"] : nil,
16
14
  title: parse_attributes(titles, content: "title", first: true),
17
15
  author: authors_as_string(creators),
18
- publisher: publisher["name"],
16
+ publisher: publisher.respond_to?(:to_h) ? publisher.to_h["name"] : nil,
19
17
  publication_year: publication_year
20
18
  }.values
21
19
 
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: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-03 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma