relaton-iso 1.14.0 → 1.14.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: f816fe256a883b565f7b3b1a41503cbb1718e19db7a4132b4bed7b6e11a67123
4
- data.tar.gz: 18f3d87e6637e20b1b54255df3d5f8576f661808d357e7161df7074777e3e035
3
+ metadata.gz: da014f660a3ba5c983c0ce2ea5366b30fa66aef8aac170b399eafebe6fb9b354
4
+ data.tar.gz: dabf9942fb20214707f4029dbf3f590c0a9d1c5043dda45d192bad2cfe274bc4
5
5
  SHA512:
6
- metadata.gz: 420603c2ec9fb866efb5da22e15706d2d7f54ec464723b7ddf76900461d6e59c717cf391312411cb12cb131997f28f1dfb561fc877381ea1df90bd034e4fcd4e
7
- data.tar.gz: bd25b7a40dbbd476ace3493515502229ba57375add1bc04c4b719eabf71983e3b2bef7b5f7c840d81ead394ac078f60c7bd7bbcf46077d7274937eb3561b0361
6
+ metadata.gz: e43d0fe9c10d450c499b71f34a4036276d6729e86043a490423e267c74e8969c9545da9b953691f86d3de202af719f52db4d6d45538a5cea79395c1328cdec72
7
+ data.tar.gz: d8429985f454f033d3c79f9c8c0bdf72d84036c4cbdc9c95be4053bf85ab3f66863690edef6dbcb7679b967712fd6d1ddf7a710898743befb8a452f169047145
@@ -237,16 +237,18 @@ module RelatonIso
237
237
  # Fetch workgroup.
238
238
  # @param doc [Nokogiri::HTML::Document]
239
239
  # @return [Hash]
240
- def fetch_workgroup(doc) # rubocop:disable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity
240
+ def fetch_workgroup(doc) # rubocop:disable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
241
241
  wg = doc.at("//div[@class='clearfix']")
242
242
  wg_link = wg.at "span/a"
243
+ return unless wg_link
244
+
243
245
  workgroup = wg_link.text.split "/"
244
246
  type = workgroup[1]&.match(/^[A-Z]+/)&.to_s || "TC"
245
- {
246
- name: "International Organization for Standardization",
247
- abbreviation: "ISO",
248
- url: "www.iso.org",
249
- }
247
+ # {
248
+ # name: "International Organization for Standardization",
249
+ # abbreviation: "ISO",
250
+ # url: "www.iso.org",
251
+ # }
250
252
  tc_numb = workgroup[1]&.match(/\d+/)&.to_s&.to_i
251
253
  tc_name = wg.at("span[@class='entry-title']").text
252
254
  tc = RelatonBib::WorkGroup.new(name: tc_name, identifier: wg_link.text,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "1.14.0"
4
+ VERSION = "1.14.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.