relaton-bib 1.5.0 → 1.5.1
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/lib/relaton_bib/biblio_note.rb +1 -1
- data/lib/relaton_bib/document_relation_collection.rb +1 -1
- data/lib/relaton_bib/hit_collection.rb +2 -1
- data/lib/relaton_bib/structured_identifier.rb +2 -1
- data/lib/relaton_bib/typed_title_string.rb +7 -1
- data/lib/relaton_bib/version.rb +1 -1
- 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: de6c6f8d155863ad2ac349a7f700057304a853d49bef05cccef7d0b18f077efa
|
4
|
+
data.tar.gz: 3507f0906a299bfa8cd08a052077bc3293f1814414d29f3a1ffe53979bdd1532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a36b8aaca8049117da0b969df10e60ea09d3788b5e1e337073bb9b2a38add00319343a813db4e4b403f7a88a391b2c404c50bdd360aee7d5da9334c8d3a8b0ba
|
7
|
+
data.tar.gz: 5192b67352e20fbdbcc9ab491cd9161a2bde3c526ad99ccd8829f1c967e2d4eda12ff92be2022e218269d5a0fe9aaa2925519bd8c49cb9c8faebbf124e87a610
|
@@ -6,7 +6,7 @@ module RelatonBib
|
|
6
6
|
extend Forwardable
|
7
7
|
|
8
8
|
def_delegators :@array, :<<, :[], :first, :last, :empty?, :any?, :size,
|
9
|
-
:each, :detect, :map, :length
|
9
|
+
:each, :detect, :map, :reduce, :length
|
10
10
|
|
11
11
|
# @param relation [Array<RelatonBib::DocumentRelation, Hash>]
|
12
12
|
# @option relation [String] :type
|
@@ -4,7 +4,8 @@ module RelatonBib
|
|
4
4
|
class HitCollection
|
5
5
|
extend Forwardable
|
6
6
|
|
7
|
-
def_delegators :@array, :<<, :[], :first, :empty?, :any?, :size, :each,
|
7
|
+
def_delegators :@array, :<<, :[], :first, :empty?, :any?, :size, :each,
|
8
|
+
:each_slice, :reduce
|
8
9
|
|
9
10
|
# @return [TrueClass, FalseClass]
|
10
11
|
attr_reader :fetched
|
@@ -3,7 +3,8 @@ module RelatonBib
|
|
3
3
|
include RelatonBib
|
4
4
|
extend Forwardable
|
5
5
|
|
6
|
-
def_delegators :@collection, :any?, :size, :[], :detect
|
6
|
+
def_delegators :@collection, :any?, :size, :[], :detect, :map, :each,
|
7
|
+
:reduce
|
7
8
|
|
8
9
|
# @param collection [Array<RelatonBib::StructuredIdentifier>]
|
9
10
|
def initialize(collection)
|
@@ -3,7 +3,7 @@ module RelatonBib
|
|
3
3
|
extend Forwardable
|
4
4
|
|
5
5
|
def_delegators :@array, :[], :first, :last, :empty?, :any?, :size,
|
6
|
-
:each, :detect, :map, :length
|
6
|
+
:each, :detect, :map, :reduce, :length
|
7
7
|
|
8
8
|
# @param title [Array<RelatonBib::TypedTitleString, Hash>]
|
9
9
|
def initialize(title = [])
|
@@ -30,6 +30,12 @@ module RelatonBib
|
|
30
30
|
TypedTitleStringCollection.new(titles.select { |t| yield t })
|
31
31
|
end
|
32
32
|
|
33
|
+
# @param init [Array, Hash]
|
34
|
+
# @return [RelatonBib::TypedTitleStringCollection]
|
35
|
+
# def reduce(init)
|
36
|
+
# self.class.new @array.reduce(init) { |m, t| yield m, t }
|
37
|
+
# end
|
38
|
+
|
33
39
|
# @param title [RelatonBib::TypedTitleString]
|
34
40
|
# @return [self]
|
35
41
|
def <<(title)
|
data/lib/relaton_bib/version.rb
CHANGED
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.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|