relaton-cen 1.16.2 → 1.16.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: 2248f1f7fe9dd799b39377fdfd075fda4dc79ef9389a05e398a8f514c639619d
4
- data.tar.gz: 7b88f2fbcc7d1041659dfe82f0344159734a014cb982bfeb046bcb3b55be5d45
3
+ metadata.gz: 2536bccf8d4ddbd3215a965683a22eea51e8739ea65a45b3f41a5f46fb63a035
4
+ data.tar.gz: 148612cdbba0da00f7e81e34c3c79e038cb85cb6249ff9923b0dc7267acb9afb
5
5
  SHA512:
6
- metadata.gz: 9f3725d5b38db4229ec1c84a2a4033ef62a1c506cb07bec2f4059620ca74135fc1f58011017b4d7424ebae35c5a027cf3ef2ccb6ad1f276645aa35d434102985
7
- data.tar.gz: e4cd2809857e01da01a4f5ff703ea1aeb215e3d3a5396564883df0001c2f5e37c78606c4c837824a4aab13999f757bc831c2d063dfe81add6e957d9fcd1d45b6
6
+ metadata.gz: 9eb0ea3431e54f1b1aade2bb02153c24ac4b2a531cd29e246b7b7cd0caf0af999da18ec56a4ecac1d2a7c125ac8148731d0dc27ec65a58b876f8a719006af9ce
7
+ data.tar.gz: 56bf1b0df47893249c88a05547fe5c2048112079b32499a5c673979ff05cf2c7a54402cd533d58ad8c986302e26681c4c3f66fd2ea39c097993c977701c58e95
@@ -41,8 +41,11 @@ module RelatonCen
41
41
  # @param doc [Mechanize::Page]
42
42
  # @return [Array<RelatonIsobib::Ics>]
43
43
  def fetch_ics(doc)
44
- doc.xpath("//tr[th[.='ICS']]/td/text()").map do |ics|
45
- RelatonIsoBib::Ics.new ics.text.match(/[^\s]+/).to_s
44
+ doc.xpath("//tr[th[.='ICS']]/td/text()").filter_map do |ics|
45
+ ics_code = ics.text.match(/[^\s]+/).to_s.gsub("\u00A0", "")
46
+ next if ics_code.empty?
47
+
48
+ RelatonIsoBib::Ics.new ics_code
46
49
  end
47
50
  end
48
51
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonCen
4
- VERSION = "1.16.2"
4
+ VERSION = "1.16.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.