relaton-bsi 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_bsi/hit_collection.rb +4 -2
- data/lib/relaton_bsi/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: a455d39d99bff5ba8111956c2a78e23942f2ddcea1564906893e48476c9df05a
|
4
|
+
data.tar.gz: 7683d9c821719219691ffc94a1efbf5e78dbaee90c5f1b80b5c599550ee866ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 300aa35dcfb971e668f3ae89f49b3d541d1df3e26a26d2b6f97baf85091119c1423823ab9b73148ed7a08a2f8338ed35a1be8bf13bc0e1c85121adbc53705193
|
7
|
+
data.tar.gz: 73ec2e9227b2ec625ff32bc25ae3beeafa43c6c363514a01e656232f9bfd0953a6e2e7afafe88de6da3730e181ce172289cab9df70e8daff8dce00c44942f889
|
@@ -27,10 +27,12 @@ module RelatonBsi
|
|
27
27
|
# @param hits [Array<Hash>]
|
28
28
|
# @return [Array<RelatonBsi::Hit>]
|
29
29
|
def hits(hits) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
30
|
-
hits.
|
30
|
+
hits.each_with_object([]) do |h, obj|
|
31
|
+
next unless h[:meta][:global][:publishedDate]
|
32
|
+
|
31
33
|
code = h[:meta][:global][:primaryDesignator]
|
32
34
|
.sub(/\s(?:LOOSELEAF|\(A5 LAMINATED\)|-\sTC$)/, "")
|
33
|
-
Hit.new(
|
35
|
+
obj << Hit.new(
|
34
36
|
{
|
35
37
|
code: code,
|
36
38
|
title: h[:title],
|
data/lib/relaton_bsi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bsi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|