ryo 0.3.1 → 0.3.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: 6277c58e3603f06d5840859fcfd59fbf2b677d3ec775c0e44e230a4f9027f482
4
- data.tar.gz: abd79dccbc55bc0da3b67840575442242cf78f197b78b4686513717ae97b9e70
3
+ metadata.gz: 1861103b28b9cec19f8d6d92e211162895cb27b6253c36180fd04d34d3ebb6ba
4
+ data.tar.gz: d75a9b6a736320636e4aa894871840dc90b44150d4c59b31163a4164185d5568
5
5
  SHA512:
6
- metadata.gz: c7631d60dea737c8f1095f691ef544e8cc5a845c7ab13bac63ca813114d61b874ea90358a7132050006ab93aaf8418422043da1b341b089a64df21d830ed1295
7
- data.tar.gz: 2fadb68eedd1ec03f787baf0efb1d0ce1c45a5a1f29d5d91f0b43d91c502d36abcfd98d105ae578de1ad7bc38e64a6fde24963a0848b5da44d0db0da4fb923cf
6
+ metadata.gz: '0956e2cd597ffda73d57b5b60d72591a24e0ccbdb07787793cb04affa443089e4b6b7e98c4b6627ed5952519aac76b6f2c9b2b68a409c6fd8ad34ad5d9a310b3'
7
+ data.tar.gz: 81ab3cb253cd9c221ff8daaef3669dee1702f8716f2b0e86db0a52c060ece50667ef960ebf2a987ebf7f374d75410b60b37a851352b24207287139a9af34a8b7
@@ -20,11 +20,12 @@ module Ryo
20
20
  def parse
21
21
  tables = doc.css("table.table")
22
22
  return [] if tables.empty?
23
+
23
24
  table = tables.last
24
25
  table.css("tr").map do |row|
25
26
  cols = row.css("td")
26
27
  domain = cols.first.text.lines.first.chomp
27
- ip = cols[1].text.lines.first.chomp
28
+ ip = cols[1].inner_text.chomp
28
29
  { domain: domain, ip: ip }
29
30
  end
30
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ryo
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ryo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki