relaton-bsi 1.8.1 → 1.8.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: 971cb6a5d15a0cdec9cb41f1963c9830fc2ea2d7dd99f64ee8e7fec62b5e6592
4
- data.tar.gz: a224a6e1ce6f60af4cb76ef3babcf87af286b1ee5ff3172d4cdf06fdb18c1202
3
+ metadata.gz: 13efd56cc3a6385fd5c2ce36e2d75ff8cd95b1710deaee698a7b2054579611c2
4
+ data.tar.gz: e18d0accb3b0fb2cdde654641a518b1fb11f89048511f679410bc3c0eef79238
5
5
  SHA512:
6
- metadata.gz: ac8ebd455367c3703ba5d1841bebb71baa20fcc7a7346102068591461d00a6b771f95f471237d2b82f3738c6da6510799b5bf9a5051d906a6b6df7a3f6d0cbe5
7
- data.tar.gz: e1cc1a888951f4377d3075fb2f84d9703014c5f0c954a8405b55a057b3378721ef806b369feca704c0fac836c44fa44c9a3786198f4855b4b7f54ee51b5188f5
6
+ metadata.gz: 3d7c353a369903ef533bdd73e096aa9a977927cd41e5e604824c9cbd2fe92d343a8e5e5963eedc06b989eb8464bea3715ef6df2d95d29a15b6bd0aff19b42aad
7
+ data.tar.gz: c2ffe98c30cf1f6962310c959b72f19a071ee0ed81f6dfce530a56f42bf77c635322f2a617cf78b5d873fcb32da5e1909c4c8d51ec9a64a033539e49494dd7a5
@@ -36,8 +36,9 @@ module RelatonBsi
36
36
  # @param doc [Mechanize::Page]
37
37
  # @return [Array<RelatonIsobib::Ics>]
38
38
  def fetch_ics(doc)
39
- ics = doc.at("//tr[th='ICS']/td").text
40
- [RelatonIsoBib::Ics.new(ics)]
39
+ doc.xpath("//tr[th='ICS']/td/node()").map(&:text).reject { |a| a.empty? }.map do |ics|
40
+ RelatonIsoBib::Ics.new(ics)
41
+ end
41
42
  end
42
43
 
43
44
  # Fetch abstracts.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.8.1"
4
+ VERSION = "1.8.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.8.1
4
+ version: 1.8.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: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2021-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml