nicinfo 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: 9795d629df0b8254d5212d7e9a7f061a3fd10e67
4
- data.tar.gz: f0b0c40fbab2073c77359e3455e275fb0e17ef67
3
+ metadata.gz: 7142844fdfbe7ded73fa9c5e0f9dfe35593a8397
4
+ data.tar.gz: 7d3fa18e2f119dca33f398795aa71b51af677bd2
5
5
  SHA512:
6
- metadata.gz: bd00e71e41d422e1f500cf429f643a58c9baf65e5d345918059a9a103f2f698af2ba6717437023cc702c56f56fdf759aebaa546b5bf269cbf7e9b1574e2a1b9b
7
- data.tar.gz: 755ecf67a76d635483a4583aa7605aeb88fa5a6f036afe6d92a5fa63240d8b7dc625a12562ba5a1f8ef9d2713e2e5d669d4a4e74dbfb285d4e632e13c38ac519
6
+ metadata.gz: 1f31cbb2a7e2735c84471b90469bd32a39d224e3155ebc7f1b22c9874dc494952d727bb88f639d5cad0a817ae0a269cbb549e168409a21a0c7bf7d1c320a51cd
7
+ data.tar.gz: 0c393f07d54cc79b292ecf97a8604242afe013e8e68bd7718ad3e4c894768e031328f2b3383ec7a6e21fa66c50abf9730a6ec35052e7f5e3a2eaea7586d3b559
@@ -18,7 +18,7 @@
18
18
 
19
19
  module NicInfo
20
20
 
21
- VERSION = "1.2.1"
21
+ VERSION = "1.2.2"
22
22
  VERSION_LABEL = "NicInfo v." + VERSION
23
23
  COPYRIGHT = "Copyright (c) 2011-2017 American Registry for Internet Numbers (ARIN)"
24
24
  CONFIG_VERSION = 3
@@ -500,13 +500,14 @@ module NicInfo
500
500
  end
501
501
  else
502
502
  json_data = do_rdap_query
503
- display_rdap_query( json_data, true )
503
+ display_rdap_query( json_data, true ) if json_data
504
504
  end
505
505
 
506
506
 
507
507
  end
508
508
 
509
509
  def do_rdap_query
510
+ retval = nil
510
511
  if @config.config[ NicInfo::BOOTSTRAP ][ NicInfo::BOOTSTRAP_URL ] == nil && !@config.options.url
511
512
  bootstrap = Bootstrap.new( @config )
512
513
  qtype = @config.options.query_type
@@ -564,7 +565,7 @@ module NicInfo
564
565
  end
565
566
  inspect_rdap_compliance json_data
566
567
  cache_self_references json_data
567
- json_data
568
+ retval = json_data
568
569
  rescue JSON::ParserError => a
569
570
  @config.logger.mesg( "Server returned invalid JSON!" )
570
571
  rescue SocketError => a
@@ -603,6 +604,7 @@ module NicInfo
603
604
  end
604
605
  @config.logger.trace("Server response code was " + e.response.code)
605
606
  end
607
+ return retval
606
608
  end
607
609
 
608
610
  def display_rdap_query json_data, show_help = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newton
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.6.11
108
+ rubygems_version: 2.6.14
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: RDAP Client