relaton-bsi 1.8.0 → 1.8.1

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: 37b7929e7a0e06eb5d4e918cbfc785c1dc9065722350fc23a3f6eb5ba75d05cc
4
- data.tar.gz: 1bf8128337da1719d5f5f1f0ee59a4c627a13d9dcba92e73b0a262de6f48b6bd
3
+ metadata.gz: 971cb6a5d15a0cdec9cb41f1963c9830fc2ea2d7dd99f64ee8e7fec62b5e6592
4
+ data.tar.gz: a224a6e1ce6f60af4cb76ef3babcf87af286b1ee5ff3172d4cdf06fdb18c1202
5
5
  SHA512:
6
- metadata.gz: c73b382bc0c27c31c67875407abe6a5f4d65adb5f5d6760401175752c590d5001b98813925a6a33bb428bfe92181f94e2adc94ca9514b197330b1bccf8155f1f
7
- data.tar.gz: 7910fc3a7a0a9dac02c662c1fdb6e66695dbdafa6c57e502538cd8588f78814ad94c947d2349042b7088671c0f17c59581b1fe0edf03bf4410f8a5b8d15be1d7
6
+ metadata.gz: ac8ebd455367c3703ba5d1841bebb71baa20fcc7a7346102068591461d00a6b771f95f471237d2b82f3738c6da6510799b5bf9a5051d906a6b6df7a3f6d0cbe5
7
+ data.tar.gz: e1cc1a888951f4377d3075fb2f84d9703014c5f0c954a8405b55a057b3378721ef806b369feca704c0fac836c44fa44c9a3786198f4855b4b7f54ee51b5188f5
data/README.adoc CHANGED
@@ -1,9 +1,7 @@
1
1
  = RelatonBsi retrieve BSI Standards for bibliographic use using the BibliographicItem model
2
2
 
3
3
  image:https://img.shields.io/gem/v/relaton-bsi.svg["Gem Version", link="https://rubygems.org/gems/relaton-bsi"]
4
- image:https://github.com/relaton/relaton-bsi/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/relaton/relaton-bsi/actions?workflow=macos"]
5
- image:https://github.com/relaton/relaton-bsi/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/relaton/relaton-bsi/actions?workflow=windows"]
6
- image:https://github.com/relaton/relaton-bsi/workflows/ubuntu/badge.svg["Build Status (Ubuntu)", link="https://github.com/relaton/relaton-bsi/actions?workflow=ubuntu"]
4
+ image:https://github.com/relaton/relaton-bsi/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-bsi/actions?workflow=rake"]
7
5
  image:https://codeclimate.com/github/relaton/relaton-bsi/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-bsi"]
8
6
  image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-bsi.svg["Pull Requests", link="https://github.com/relaton/relaton-bsi/pulls"]
9
7
  image:https://img.shields.io/github/commits-since/relaton/relaton-bsi/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-bsi/releases"]
@@ -69,6 +69,8 @@ module RelatonBsi
69
69
  def search_filter(code) # rubocop:disable Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/MethodLength,Metrics/PerceivedComplexity
70
70
  %r{^BSI\s(?<code1>[^:]+)} =~ code
71
71
  warn "[relaton-bsi] (\"#{code}\") fetching..."
72
+ return [] unless code1
73
+
72
74
  result = search(code)
73
75
  result.select do |i|
74
76
  next true unless i.hit[:code]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.8.0"
4
+ VERSION = "1.8.1"
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.8.0
4
+ version: 1.8.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: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml