nicinfo 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nicinfo/constants.rb +1 -1
- data/lib/nicinfo/nicinfo_main.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7142844fdfbe7ded73fa9c5e0f9dfe35593a8397
|
|
4
|
+
data.tar.gz: 7d3fa18e2f119dca33f398795aa71b51af677bd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f31cbb2a7e2735c84471b90469bd32a39d224e3155ebc7f1b22c9874dc494952d727bb88f639d5cad0a817ae0a269cbb549e168409a21a0c7bf7d1c320a51cd
|
|
7
|
+
data.tar.gz: 0c393f07d54cc79b292ecf97a8604242afe013e8e68bd7718ad3e4c894768e031328f2b3383ec7a6e21fa66c50abf9730a6ec35052e7f5e3a2eaea7586d3b559
|
data/lib/nicinfo/constants.rb
CHANGED
data/lib/nicinfo/nicinfo_main.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
108
|
+
rubygems_version: 2.6.14
|
|
109
109
|
signing_key:
|
|
110
110
|
specification_version: 4
|
|
111
111
|
summary: RDAP Client
|