relaton-iso-bib 1.18.2 → 1.18.3

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: 3772db04334749e7660ad48d85986192d3fa3f12fa0a13ace255750c49bf46ff
4
- data.tar.gz: e5960422e57fff1057e0caf7dfcb53ad7d03efa4a3c9cf865b117dd5d9e45afc
3
+ metadata.gz: bfe688753cc33e16b6e0ee15d5b241239d5f754d4aa8e247eba4c4eb86094293
4
+ data.tar.gz: 120e89a7d0eebbb154872c334522301c7c447264f590fa4107863a97164acfa1
5
5
  SHA512:
6
- metadata.gz: d90be3009cb539fd5f8e4859e648a9a419510b594295ca6d0a7ed538428456eb39571ec516da73c5a9844d36b6e9521185ca70606a08016f5572a9bdf94f6fed
7
- data.tar.gz: 2aa5a4573faf9422cd9ffe67259d346e835b1d7440b219239610e159521b22624d844b461f4c7c8eb95dea8b210873f8527dfff2b8d3b38cbb39aacd5bde6b48
6
+ metadata.gz: cb6f4d7b4a6459fa7d0b641c479867bb2f88e02227512f096de8f263f478d392c8e660002af02c476bfc030b0fa3be57144067bb05ad701f62eb48bc79b4b919
7
+ data.tar.gz: f9f439dd4e53452544e70efc494f09bbeb18904330b9578b05ac9b086153b4e9065942a9a245255cc8645814cd1ce85e0fdbc441cbdf9e278ae04a1242cd9f56
data/README.adoc CHANGED
@@ -188,19 +188,19 @@ item.date
188
188
  #<RelatonBib::BibliographicDate:0x00007ff76f161f70 @from=nil, @on="2014-04", @to=nil, @type="published">,
189
189
  #<RelatonBib::BibliographicDate:0x00007ff76f1605f8 @from=nil, @on="2015-05-20", @to=nil, @type="accessed">]
190
190
 
191
- item.date.filter(type: "published").first.on
191
+ item.date(type: "published").first.on
192
192
  => "2014-04"
193
193
 
194
- item.date.filter(type: "published").first.on :year
194
+ item.date(type: "published").first.on :year
195
195
  => 2014
196
196
 
197
- item.date.filter(type: "published").first.on :month
197
+ item.date(type: "published").first.on :month
198
198
  => 4
199
199
 
200
- item.date.filter(type: "published").first.on :day
200
+ item.date(type: "published").first.on :day
201
201
  => nil
202
202
 
203
- item.date.filter(type: "published").first.on :date
203
+ item.date(type: "published").first.on :date
204
204
  => #<Date: 2014-04-01 ((2456749j,0s,0n),+0s,2299161j)>
205
205
  ----
206
206
 
@@ -6,15 +6,6 @@ require "relaton_iso_bib/structured_identifier"
6
6
  require "relaton_iso_bib/ics"
7
7
  require "relaton_iso_bib/hash_converter"
8
8
 
9
- # Add filter method to Array.
10
- class Array
11
- # @param type [String]
12
- # @return [Array]
13
- def filter(type:)
14
- select { |e| e.type == type }
15
- end
16
- end
17
-
18
9
  module RelatonIsoBib
19
10
  # Bibliographic item.
20
11
  class IsoBibliographicItem < RelatonBib::BibliographicItem
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "1.18.2".freeze
2
+ VERSION = "1.18.3".freeze
3
3
  end
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
28
28
 
29
29
  spec.add_dependency "isoics", "~> 0.1.6"
30
- spec.add_dependency "relaton-bib", "~> 1.18.2"
30
+ spec.add_dependency "relaton-bib", "~> 1.18.4"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.2
4
+ version: 1.18.3
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-02-22 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: isoics
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.18.2
33
+ version: 1.18.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.18.2
40
+ version: 1.18.4
41
41
  description: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'
42
42
  email:
43
43
  - open.source@ribose.com
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.3.26
97
+ rubygems_version: 3.3.27
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'