relaton-bib 1.18.3 → 1.18.4

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: a6754f3303ed77d0f829849411b41e7fa6f200595e597e6686287cae314b62b4
4
- data.tar.gz: 4991f4e65ba47c23d77418a5be22271a5a634e40494e429805e5a94479ae07c5
3
+ metadata.gz: 8679abcdf3cc3df08c557a56be973ef54472d530eaa64369cad097d35a1a4066
4
+ data.tar.gz: b75301c9af89e12b094d15353553ca25c6c4c455e83ee49b07f60f53852d1711
5
5
  SHA512:
6
- metadata.gz: 35cb573988cf55d4cf68814fa8f899f0e33e5f1485830da6956157e2404eca40ccb099eb16cf733418eaaa24f626fd4a6c0fbc366138e93379b0adac6fc001b1
7
- data.tar.gz: 0ff10c5d42d7ad9bb97376893b2a75599c83cb46d21628fe72519eb552439f55e4f43b575ed8469fd7d6a62a5445784e6d3ec27028acbd8ef7bce51d7d1cd707
6
+ metadata.gz: e9e3974f8afa4b5532fb792a9792e13679c9fa3bf45320f3339ad990c0a17325ca3f52696b24e27b0e06172af6bbe63cf53171d80572173c71f78899e39cde67
7
+ data.tar.gz: 0befd12bbb263ead171ca64f1a0b698175801eb19a7ef29cd308a454d52fc06a4601e4b5255c933d0c1823c218ac4cefdd474a9ccad83807658f119f64c67754
@@ -64,7 +64,7 @@ module RelatonBib
64
64
  attr_reader :docidentifier
65
65
 
66
66
  # @return [Array<RelatonBib::BibliographicDate>]
67
- attr_accessor :date
67
+ attr_writer :date
68
68
 
69
69
  # @return [Array<RelatonBib::ContributionInfo>]
70
70
  attr_reader :contributor
@@ -314,6 +314,15 @@ module RelatonBib
314
314
  new(**item_hash)
315
315
  end
316
316
 
317
+ #
318
+ # @param [String, nil] type if nil return all dates else return dates with type
319
+ #
320
+ # @return [Array<RelatonBib::BibliographicDate>]
321
+ #
322
+ def date(type: nil)
323
+ type ? @date.select { |d| d.type == type } : @date
324
+ end
325
+
317
326
  # @param lang [String] language code Iso639
318
327
  # @return [RelatonBib::FormattedString, Array<RelatonBib::FormattedString>]
319
328
  def abstract(lang: nil)
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.18.3".freeze
2
+ VERSION = "1.18.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.3
4
+ version: 1.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
- rubygems_version: 3.3.26
180
+ rubygems_version: 3.3.27
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: 'RelatonBib: Ruby XMLDOC impementation.'