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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79bc18302007dac3a0b41311d87a1449cb05af51b4b15e17bcc8aac8a8d3c6d4
4
- data.tar.gz: 479ce659cb6301c9069a7bf777e6f7ff5a260c8c8779611cdc9d8d8c9dcc9994
3
+ metadata.gz: a455d39d99bff5ba8111956c2a78e23942f2ddcea1564906893e48476c9df05a
4
+ data.tar.gz: 7683d9c821719219691ffc94a1efbf5e78dbaee90c5f1b80b5c599550ee866ea
5
5
  SHA512:
6
- metadata.gz: 9bfd6ab367994e59c4546ce167aa45c43c97a92a514fc8e041408002238ffece31a7941384523755181e368e56df16b786272dcffedd44fe02936329ff7c90a0
7
- data.tar.gz: 0122bcb6f9a3d7383853529bc7d217100fad9be0577c82960db31df70bfeff660c898b307fbfff76ad436072af35070cb4643a2ef927f2d831df6fded0df3db9
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.map do |h|
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],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.10.1"
4
+ VERSION = "1.10.2"
5
5
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml