pwhois 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 +5 -13
- data/README.md +3 -0
- data/lib/pwhois.rb +2 -10
- data/lib/pwhois/version.rb +1 -1
- data/pwhois.gemspec +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Y2M0Y2U1MzdkMzhkMzJjMTg0NWQ2N2JiODU5ZTFlNmU0Y2FjYzU2Yw==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 69f15de706ff125c8ad8d2bc5680e536493e9de09fd1a4de7b01e1038ac8539c
|
4
|
+
data.tar.gz: 45bf4f64f4b3403823051f7188b5eb96d52611f83f7d85aab89107cfe8ec7a3f
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Yjk5NmRhYjIzMzhjOTVmNDYwMDk4ZGU1MTJlYWZlZWU1ODEzNjY4OTA4YTZk
|
11
|
-
ZDRmOTYxNjFhN2FkZjRkMDFjNTljNmFhZDExYzBjZTk2YjI0MDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjYzZTlkNTcyZDBkOTFkNDU0MzRlNDMyMDFjOTFlMDBmNzc0YTNhMWQzZDY0
|
14
|
-
NzNmYTJiZWE1NjE1NDUzZTkzOTE2OGVkNzk1NDdjMzYzNGQ4ZDM3MTdkZTQ5
|
15
|
-
MWMwNmZiNGNiMjM0MDFjMjlkYmZlMjlmM2YyMDZmMzBmYjNjZDM=
|
6
|
+
metadata.gz: d382a6e91c0b85240e984328da677db34dd7e39742a71841e5dc59e827ed39aa539e573cc9d457bb62f5cff986700786fa7d9bc32f7246802fc5a65fd72ed863
|
7
|
+
data.tar.gz: 4c105466ee5b21eb9d7c300f45be166c51df67e70623f2dfe441a8487415c8cf9eb563b8ffab5cb32329dd925cfeb460303fe0ee8beba12cb4cf988bbc0f25b6
|
data/README.md
CHANGED
@@ -3,11 +3,14 @@ pwhois
|
|
3
3
|
|
4
4
|
[![Gem Version][1]][2]
|
5
5
|
[![Code Climate][3]][4]
|
6
|
+
[![Build Status][5]][6]
|
6
7
|
|
7
8
|
[1]:https://badge.fury.io/rb/pwhois.svg
|
8
9
|
[2]:https://badge.fury.io/rb/pwhois
|
9
10
|
[3]:https://codeclimate.com/github/Crosse/pwhois/badges/gpa.svg
|
10
11
|
[4]:https://codeclimate.com/github/Crosse/pwhois
|
12
|
+
[5]: https://travis-ci.org/Crosse/pwhois.svg?branch=master
|
13
|
+
[6]: https://travis-ci.org/Crosse/pwhois
|
11
14
|
|
12
15
|
`pwhois` is a small command-line utility that takes advantage of the
|
13
16
|
[Ruby Whois][whois] module to parse Whois results and display them in a
|
data/lib/pwhois.rb
CHANGED
@@ -81,15 +81,12 @@ module Pwhois
|
|
81
81
|
end
|
82
82
|
rescue Whois::ConnectionError => e
|
83
83
|
$stderr.puts e.message
|
84
|
-
rescue
|
85
|
-
$stderr.puts e.message
|
86
|
-
$stderr.puts e.backtrace
|
87
|
-
rescue Timeout::Error => e
|
84
|
+
rescue Timeout::Error
|
88
85
|
$stderr.puts "Timeout encountered retrieving data for #{q}"
|
89
86
|
rescue SystemExit,Interrupt
|
90
87
|
print_verbose("Ctrl-C pressed, exiting")
|
91
88
|
exit
|
92
|
-
rescue StandardError => e
|
89
|
+
rescue NoMethodError, StandardError => e
|
93
90
|
$stderr.puts e.message
|
94
91
|
$stderr.puts e.backtrace
|
95
92
|
exit
|
@@ -110,7 +107,6 @@ module Pwhois
|
|
110
107
|
end # verbose()
|
111
108
|
|
112
109
|
|
113
|
-
private
|
114
110
|
def quote_if_include(str, char)
|
115
111
|
if "#{str}".include?(char)
|
116
112
|
"\"#{str}\""
|
@@ -120,7 +116,6 @@ module Pwhois
|
|
120
116
|
end
|
121
117
|
|
122
118
|
|
123
|
-
private
|
124
119
|
def print_header()
|
125
120
|
case output_style
|
126
121
|
when :csv
|
@@ -133,7 +128,6 @@ module Pwhois
|
|
133
128
|
end # print_header()
|
134
129
|
|
135
130
|
|
136
|
-
private
|
137
131
|
def print_item(result)
|
138
132
|
case output_style
|
139
133
|
when :csv
|
@@ -146,7 +140,6 @@ module Pwhois
|
|
146
140
|
end # print_item()
|
147
141
|
|
148
142
|
|
149
|
-
private
|
150
143
|
def print_list_item(result)
|
151
144
|
l = attributes.map{ |a| a.length }.sort.last
|
152
145
|
attributes.each do |a|
|
@@ -156,7 +149,6 @@ module Pwhois
|
|
156
149
|
end # print_list_item()
|
157
150
|
|
158
151
|
|
159
|
-
private
|
160
152
|
def print_table(records)
|
161
153
|
attr_lengths = Hash.new
|
162
154
|
attributes.each do |a|
|
data/lib/pwhois/version.rb
CHANGED
data/pwhois.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
consistent, coherent style.
|
15
15
|
EOF
|
16
16
|
spec.homepage = "https://github.com/Crosse/pwhois"
|
17
|
-
spec.license = "
|
17
|
+
spec.license = "MIT"
|
18
18
|
|
19
19
|
spec.files = `git ls-files`.split($\)
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,46 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwhois
|
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
|
- Seth Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: whois
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '11.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '11.3'
|
41
|
-
description:
|
42
|
-
|
43
|
-
|
41
|
+
description: |2
|
42
|
+
pwhois is a small command-line utility that takes advantage of the
|
43
|
+
whois module to parse WHOIS results and display them in a
|
44
|
+
consistent, coherent style.
|
44
45
|
email:
|
45
46
|
- seth@crosse.org
|
46
47
|
executables:
|
@@ -48,10 +49,10 @@ executables:
|
|
48
49
|
extensions: []
|
49
50
|
extra_rdoc_files: []
|
50
51
|
files:
|
51
|
-
- .codeclimate.yml
|
52
|
-
- .gitignore
|
53
|
-
- .rubocop.yml
|
54
|
-
- .travis.yml
|
52
|
+
- ".codeclimate.yml"
|
53
|
+
- ".gitignore"
|
54
|
+
- ".rubocop.yml"
|
55
|
+
- ".travis.yml"
|
55
56
|
- Gemfile
|
56
57
|
- LICENSE
|
57
58
|
- README.md
|
@@ -62,7 +63,7 @@ files:
|
|
62
63
|
- pwhois.gemspec
|
63
64
|
homepage: https://github.com/Crosse/pwhois
|
64
65
|
licenses:
|
65
|
-
-
|
66
|
+
- MIT
|
66
67
|
metadata: {}
|
67
68
|
post_install_message:
|
68
69
|
rdoc_options: []
|
@@ -70,17 +71,17 @@ require_paths:
|
|
70
71
|
- lib
|
71
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
|
-
- -
|
74
|
+
- - ">="
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: 2.2.3
|
76
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
78
|
requirements:
|
78
|
-
- -
|
79
|
+
- - ">="
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: '0'
|
81
82
|
requirements: []
|
82
83
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.3
|
84
85
|
signing_key:
|
85
86
|
specification_version: 4
|
86
87
|
summary: A WHOIS client that provides consistent and coherent results.
|