bgp-tools 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bgp_tools/as.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b685587cbe10c9b42a1203781c4c30b210d34575
4
- data.tar.gz: 355c123803baa623fe4ab6c72ec7944b55dfbc6f
3
+ metadata.gz: e28aa9480b9e3bff5cae971d68d98a6bffab472d
4
+ data.tar.gz: 8c37f4a0c01c3e774f6623a993c506f48b5698f0
5
5
  SHA512:
6
- metadata.gz: ad545ae8ce33e22c8fdbf6568b4126bca8cb096dc7e906b2659dc26f99e5665a0eef0becd43e50777ba5859f89c3ead45e24a418fdeed6430bf7a36f65b437ea
7
- data.tar.gz: 98a80872aa9bed3d88934f139421ddb6e6e271bbcf19ac14488b82386a24504da2bf5f93cec42ab6aaa4577a54378a733b8772600ff11c2abde503b3fc56fe45
6
+ metadata.gz: 91a351c1e3c523c3ce7da974d327e3c93a685a3bfe6a18959e79f94d4b814e407892ff59694f66a62810caa0c87f0df4f1798872e0ebf783bd7aab81533c6720
7
+ data.tar.gz: 5839cbc2e5a7d70f2cac7605cb5c6827d90b4b3dae4729eb3f221554f73966a7dc9b3aaf15bf3e5e0ec37b621a5d5bccb1aa3a847e3283952eb556d778afff1b
@@ -37,7 +37,8 @@ module BgpTools
37
37
 
38
38
 
39
39
  def set_country_of_origin
40
- self.country_of_origin = doc.xpath("//*[@id=\"asinfo\"]/div[2]/div[2]").map(&:text)[0].strip
40
+ country = doc.xpath("//*[@id=\"asinfo\"]/div[2]/div[2]").map(&:text)[0]
41
+ self.country_of_origin = country.strip unless country.nil?
41
42
  end
42
43
 
43
44
  def set_ips_originated
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bgp-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Rendek