relaton-jis 1.14.2 → 1.14.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: a6a4ecb8042069c8babc406d37ee36702fa28bb6efe4d4bdbc60c48ed7fc6599
4
- data.tar.gz: 45ee95535b80261e3ad03f76a8025b86b9a4854509f2aab94056b6e438e38b6e
3
+ metadata.gz: c952dd17ef7bf9a424b52b9f6ff9bb5ef3aebae20a4538510b66c90b6c8c3a76
4
+ data.tar.gz: ae56e2d1d9a2950a3666e5862270b5430d24e72d53a515bc5515f3943962dd9d
5
5
  SHA512:
6
- metadata.gz: c60b2041b0c812cafb40f3f96ab6d253a21f4e7381422551a702cba2ab9b84a2f2f03f1f05aaad6bcd187eaa95d097bf947fc142dcee142d6c2c73f4011fabe4
7
- data.tar.gz: 52bfca55bb5bf3e49cb2f26d83d6a8068efb2a112676bfd9450248cbd7aa6e9834f1b96ff5da976c84013adbd846189d89b90bcb5f85ec543776497c60bf6a4d
6
+ metadata.gz: 37f5f42cd651872298e65e23a68f8ab738e7b0f84abb7d534ae417b633f44e947addc9ac2f9beb3fdf990cba8d7c52fbb38225f1d577e0b3405053f815829afc
7
+ data.tar.gz: ca363e1862d44270e08a00c088cc3e6b7eed54179dda6deedfd683a65037c5323e1d0a2fe94c00a0e324d20acd7806eb8892cc76ad3e844cce356beae84964ba
@@ -112,9 +112,10 @@ module RelatonJis
112
112
  end
113
113
 
114
114
  def fetch_ics
115
- @doc.xpath("./table/tr[th[.='ICS']]/td").map do |node|
116
- RelatonIsoBib::Ics.new node.text.strip
117
- end
115
+ td = @doc.at("./table/tr[th[.='ICS']]/td")
116
+ return [] unless td
117
+
118
+ td.text.strip.split.map { |code| RelatonIsoBib::Ics.new code }
118
119
  end
119
120
 
120
121
  def fetch_contributor
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonJis
4
- VERSION = "1.14.2"
4
+ VERSION = "1.14.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.2
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize