pwhois 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +14 -0
- data/README.md +22 -15
- data/Rakefile +3 -1
- data/lib/pwhois/version.rb +1 -1
- data/lib/pwhois.rb +1 -1
- data/pwhois.gemspec +1 -0
- metadata +23 -9
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWZhZjIyZTEzODE5OTFjYTA0MzIwNjI0MWI0MDRjYjVmYTk0NzM3NQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmM2ZDdhZDQzYjMzNjcwM2U4Y2QwMDMyMjk4NDJlMTE1YTk3NTlkMQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDhiYTM3MGQ0NzM0OTdlZGNhOWQ2MWI1NWM5OGZiYzBhNzlmNjUwZWQwY2Jm
|
10
|
+
MjlhYTI5ZGQ2M2MwOTZmMjJiODQ4NzBkY2JkZWE3NjU2ZWE1NGJhMmVmODNm
|
11
|
+
M2RmZjAyMGVjODc2Zjg2MjY4ZmE5MjhiNmIwZmNjNzRiNDMzY2Q=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTNiZjlkM2JkOGNhYWU5MzY3NjExNzgwNDRlMWMyY2YwZGJlOTc4NzIyYzQy
|
14
|
+
YmNjZWI0NjVmMGNkMjA4OWM2ZWU0NDY2Mzg0NGNlNjI4NWRhZTcwNzY2MTVh
|
15
|
+
MGUyNGMzNjVmODdlMDFlYmVmMDlhNGYwZmM4Y2JjOTM4NDU0ZTc=
|
data/.travis.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.2.5
|
4
|
+
- 2.3.1
|
5
|
+
sudo: false
|
6
|
+
cache: bundler
|
7
|
+
deploy:
|
8
|
+
provider: rubygems
|
9
|
+
api_key:
|
10
|
+
secure: aQOpnw/M8HBRkSpWZbYwve9MRfWg72gPLoAGV1GGHzYJEOY/mWTXMm8O/UPo6a7aRHCezOrMWtJYY6hWhP56rMyuKQPOJnS0CA3pl1b0o0OwYoRzfnYupEp/hoCHmk4e4bUa2rGiDr6NCEQubf4PYzI9VPukOmRRBjgxzcoeq91n1J2iAlQ2rqfYm0x+dL/HSmiDDEIh2qnRHfL0JaeYCVdkvT9XAVaSksV/Tcm+x8Sl/eSuU4AqObEbKk6c6pdRCuZnzhssGn5Qy5uJ5C/c2R9X/UIRvI6iGLCNxP0hEOqa3760yNqXoB9uz3ZwHomCWGgV6J01drJ2SIXUO4OqIZ29fxMZ/LDX9ZP3xZ8e3KYiEP7wViv5gt4M7FQW2mNUTenaLj3P22EDc9NcNdCxb6p7W+xCblUJKBbIeQr+r+sziwo7/F7Gy/P1E3B5SJmS1ji69LLWpVfMW6psTX2gNM/xMv+MaOyYKD0Qab841M2wRW6bYxM3PbfSkdmWwfikpZg1LruhxjQQguQQuhm9b9IHqFRWv5q2xrjyhTIS/OcaWPKtAbiipivU/ZK0kxq9iBgtlejMn/nxfDuozLnLRCb0OxZO8roq8cLIN62o/Yb9ggydczC5bSiXVezyaM7vLyUU10/yqF82Ey6XRzBSp+3Zj7YQfeKAGLRyiE/+W68=
|
11
|
+
gem: pwhois
|
12
|
+
on:
|
13
|
+
tags: true
|
14
|
+
repo: Crosse/pwhois
|
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
pwhois
|
2
2
|
======
|
3
3
|
|
4
|
+
[![Gem Version][1]][2]
|
5
|
+
[![Code Climate][3]][4]
|
6
|
+
|
7
|
+
[1]:https://badge.fury.io/rb/pwhois.svg
|
8
|
+
[2]:https://badge.fury.io/rb/pwhois
|
9
|
+
[3]:https://codeclimate.com/github/Crosse/pwhois/badges/gpa.svg
|
10
|
+
[4]:https://codeclimate.com/github/Crosse/pwhois
|
11
|
+
|
4
12
|
`pwhois` is a small command-line utility that takes advantage of the
|
5
13
|
[Ruby Whois][whois] module to parse Whois results and display them in a
|
6
14
|
coherent style. From their [Parsers][parsers] page:
|
@@ -15,12 +23,12 @@ This utility will not give you the full, parsed output of a whois query
|
|
15
23
|
subset of possible returned properties. See the gem's
|
16
24
|
[Properties][properties] page for the list of supported properties.
|
17
25
|
|
18
|
-
|
19
|
-
|
20
|
-
|
26
|
+
# Installation
|
27
|
+
|
28
|
+
$ gem install pwhois
|
21
29
|
|
22
30
|
# Usage
|
23
|
-
$
|
31
|
+
$ pwhois -h
|
24
32
|
Usage: pwhois [options]
|
25
33
|
|
26
34
|
Specific options:
|
@@ -32,19 +40,19 @@ do, let me know where I could do things better. Thanks!)*
|
|
32
40
|
# Output Styles
|
33
41
|
|
34
42
|
## CSV (Comma-Separated Values)
|
35
|
-
$
|
43
|
+
$ pwhois -o csv github.com
|
36
44
|
Domain,Created On,Updated On,Registrar Name
|
37
45
|
github.com,2013-06-14 19:07:02 -0400,2013-11-27 07:00:15 -0500,"MarkMonitor, Inc."
|
38
46
|
|
39
47
|
|
40
48
|
## TSV (Tab-Separated Values)
|
41
|
-
$
|
49
|
+
$ pwhois -o tsv github.com
|
42
50
|
Domain Created On Updated On Registrar Name
|
43
51
|
github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc.
|
44
52
|
|
45
53
|
|
46
54
|
## List (Default Style)
|
47
|
-
$
|
55
|
+
$ pwhois -o list github.com
|
48
56
|
Domain : github.com
|
49
57
|
Created On : 2013-06-14 19:07:02 -0400
|
50
58
|
Updated On : 2013-11-27 07:00:15 -0500
|
@@ -52,7 +60,7 @@ do, let me know where I could do things better. Thanks!)*
|
|
52
60
|
|
53
61
|
|
54
62
|
## Table
|
55
|
-
$
|
63
|
+
$ pwhois -o table github.com
|
56
64
|
Domain Created On Updated On Registrar Name
|
57
65
|
---------- ------------------------- ------------------------- -----------------
|
58
66
|
github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc.
|
@@ -67,7 +75,7 @@ a format useful to the style.
|
|
67
75
|
|
68
76
|
The header line is printed only once:
|
69
77
|
|
70
|
-
$
|
78
|
+
$ pwhois -o csv $(<domains.txt)
|
71
79
|
Domain,Created On,Updated On,Registrar Name
|
72
80
|
github.com,2013-06-14 19:07:02 -0400,2013-11-27 07:00:15 -0500,"MarkMonitor, Inc."
|
73
81
|
google.com,2002-10-02 03:00:00 -0400,2014-05-19 07:00:17 -0400,"MarkMonitor, Inc."
|
@@ -80,7 +88,7 @@ The header line is printed only once:
|
|
80
88
|
|
81
89
|
Individual records are separated by a blank line:
|
82
90
|
|
83
|
-
$
|
91
|
+
$ pwhois -o list $(<domains.txt)
|
84
92
|
Domain : github.com
|
85
93
|
Created On : 2013-06-14 19:07:02 -0400
|
86
94
|
Updated On : 2013-11-27 07:00:15 -0500
|
@@ -114,7 +122,7 @@ multiple queries will not output results until the last query is finished,
|
|
114
122
|
in order to figure out proper column widths. If you want to know what's
|
115
123
|
going on, use the `-v|--verbose` option.)
|
116
124
|
|
117
|
-
$
|
125
|
+
$ pwhois -o table $(<domains.txt)
|
118
126
|
Domain Created On Updated On Registrar Name
|
119
127
|
-------------- ------------------------- ------------------------- ---------------------------
|
120
128
|
github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc.
|
@@ -138,7 +146,7 @@ The default set of attributes printed by the utility are `domain`,
|
|
138
146
|
another set of attributes you're interested in, you can do so with the
|
139
147
|
`-a|--attributes` option:
|
140
148
|
|
141
|
-
$
|
149
|
+
$ pwhois -a domain,created_on,status github.com
|
142
150
|
Domain : github.com
|
143
151
|
Created On: 2013-06-14 19:07:02 -0400
|
144
152
|
Status : registered
|
@@ -147,7 +155,7 @@ Note that attributes under Registrar can be specified by prepending
|
|
147
155
|
"registrar\_" to the attribute name. For instance, to print the registrar
|
148
156
|
name and ID:
|
149
157
|
|
150
|
-
$
|
158
|
+
$ pwhois -a domain,registrar_name,registrar_id crosse.org
|
151
159
|
Domain : crosse.org
|
152
160
|
Registrar Name: eNom, Inc. (R39-LROR)
|
153
161
|
Registrar Id : 48
|
@@ -161,7 +169,7 @@ so yet.)
|
|
161
169
|
Useful for table-style output with multiple queries, or if you just want to
|
162
170
|
see what sort of weird verbose logging I do, you can enable verbose mode:
|
163
171
|
|
164
|
-
$
|
172
|
+
$ pwhois -v -o table $(<domains.txt)
|
165
173
|
[ collating data, please wait... ]
|
166
174
|
[ Querying whois for github.com... ]
|
167
175
|
[ Querying whois for google.com... ]
|
@@ -186,7 +194,6 @@ Verbose output is printed to `stderr`.
|
|
186
194
|
- Handle `registrant_contacts`, `admin_contacts`, `technical_contacts`, and
|
187
195
|
`nameservers`. Note that these are potentially arrays of things.
|
188
196
|
- Handle timeouts and ECONNRESETs in a happier fashion than dying horribly.
|
189
|
-
- Learn Ruby.
|
190
197
|
|
191
198
|
[whois]: http://ruby-whois.org
|
192
199
|
[properties]: http://ruby-whois.org/manual/parser/properties/
|
data/Rakefile
CHANGED
data/lib/pwhois/version.rb
CHANGED
data/lib/pwhois.rb
CHANGED
data/pwhois.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwhois
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: whois
|
@@ -24,10 +24,23 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.6'
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: ! " pwhois is a small command-line utility that takes advantage of
|
42
|
+
the\n whois module to parse WHOIS results and display them in a\n consistent,
|
43
|
+
coherent style.\n"
|
31
44
|
email:
|
32
45
|
- seth@crosse.org
|
33
46
|
executables:
|
@@ -38,6 +51,7 @@ files:
|
|
38
51
|
- .codeclimate.yml
|
39
52
|
- .gitignore
|
40
53
|
- .rubocop.yml
|
54
|
+
- .travis.yml
|
41
55
|
- Gemfile
|
42
56
|
- LICENSE
|
43
57
|
- README.md
|
@@ -56,17 +70,17 @@ require_paths:
|
|
56
70
|
- lib
|
57
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - '>='
|
73
|
+
- - ! '>='
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0'
|
62
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
77
|
requirements:
|
64
|
-
- - '>='
|
78
|
+
- - ! '>='
|
65
79
|
- !ruby/object:Gem::Version
|
66
80
|
version: '0'
|
67
81
|
requirements: []
|
68
82
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.4.5
|
70
84
|
signing_key:
|
71
85
|
specification_version: 4
|
72
86
|
summary: A WHOIS client that provides consistent and coherent results.
|