relaton-jis 1.14.2 → 1.14.4

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: 7c4c2984fb3fcab2b642ec7b046aa6912d6f48bcc472b8eab85ca641d53e624d
4
+ data.tar.gz: c65250ff70392cb0542df01b85007784e6ced5c92059d36912143e14c73cbe60
5
5
  SHA512:
6
- metadata.gz: c60b2041b0c812cafb40f3f96ab6d253a21f4e7381422551a702cba2ab9b84a2f2f03f1f05aaad6bcd187eaa95d097bf947fc142dcee142d6c2c73f4011fabe4
7
- data.tar.gz: 52bfca55bb5bf3e49cb2f26d83d6a8068efb2a112676bfd9450248cbd7aa6e9834f1b96ff5da976c84013adbd846189d89b90bcb5f85ec543776497c60bf6a4d
6
+ metadata.gz: 26ce98826e2078f8e6567a93bc9cdb8a4c6936b91eb38a93d00e46b41bfe45a13e6b4bbd204a11baa9d3e21e1790a5276a473738aa86ec98d88c0cbd965e3f59
7
+ data.tar.gz: ddbdf26d69c115fc63e2cd28486cb0737b217d193e4be36925dbe2476215aed8b3abad4e08e0952064436ee6ef7408907355c0d76abc831543dbd7c6d4fb50bf
@@ -1,5 +1,6 @@
1
1
  module RelatonJis
2
2
  class BibliographicItem < RelatonIsoBib::IsoBibliographicItem
3
+ DOCTYPES = %w[japanese-industrial-standard japanese-industrial-standard technical-specification amendment].freeze
3
4
  #
4
5
  # Fetch the flavor shcema version
5
6
  #
@@ -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.4"
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.4
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-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize