relaton-iso 1.15.3 → 1.15.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: e27efa3183e068be1eb194fb2370fb91323c43435a6bfa28a3984fc5ee8f087d
4
- data.tar.gz: a571f80e6fab8d18ead5b7f54666e16624a11b6c89637f3b7936a316ae25ee33
3
+ metadata.gz: 849d2ed5597da449397be8d44059b7c88d799bb118ff53cb13abcb67b90ec98c
4
+ data.tar.gz: 4084d1465fee0a3bc9062734d405eb97a1a28e18e866a473433026509a8907e1
5
5
  SHA512:
6
- metadata.gz: 9225503e6deb080fc61d003df621e46ec5ba2435dd9c201f2771345c468d269a45f89690cb77bda27c8a70e2211d695d53942d3ac192c3b48ae0e9ffabad86ec
7
- data.tar.gz: 6cc63106785022a14c4bb48f9e2263df8d6e25716af94905e1b91a79ebea9a3014cdcdf4f2ae1d3172ba3ab34b22c1583bc2f7e84bc95308041e81bbfa3a95c6
6
+ metadata.gz: 800e61c17385335e14b7fa56d9d29031db9a43ce6d908fd21dcd841db1422c2addec5a78e2a44aad4ceb170754167b79530c891d97ae54aff519900bfdcc0ebb
7
+ data.tar.gz: 00eb78136a9f91335f412d5af3d64fd83fce8d94b2fcce13e252dca09ac36eb2ec1e5fd3e025cda196be92f4d6fda49b17239f8bd4a6611ba7b177f0ecc302ab
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor/
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
@@ -215,7 +215,7 @@ module RelatonIso
215
215
  10.times do
216
216
  doc = Nokogiri::HTML(resp.body)
217
217
  # stop trying if page has a document id
218
- return doc if doc.at("//main/div/section/div/div/div/nav/h1")
218
+ return doc if item_ref doc
219
219
 
220
220
  resp = Net::HTTP.get_response(uri)
221
221
  end
@@ -249,7 +249,7 @@ module RelatonIso
249
249
  end
250
250
 
251
251
  def item_ref(doc)
252
- doc.at("//nav[contains(@class, 'heading-condensed')]/h1")&.text
252
+ doc.at("//main//section/div/div/div//h1")&.text
253
253
  end
254
254
 
255
255
  # Fetch status.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "1.15.3"
4
+ VERSION = "1.15.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.3
4
+ version: 1.15.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-05-13 00:00:00.000000000 Z
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml