dronebl.rb 0.0.2 → 0.0.4
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/bin/dronebl-query +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 740153e79ee760f9734009545805638ee0f46cc6
|
|
4
|
+
data.tar.gz: f8bfb5601b39c870d9bab826e5571a648c6b846f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32abfd597cf493fa7b20c36d91d9e13648d95b59ba0c88714dc3f6f7e8ea8994f5c534341ec0b96db4e0e4a238747abf6ef7ffb78cf577d04bf185c27c013f52
|
|
7
|
+
data.tar.gz: def726c544ff044430fd045d1dba64454d3185c23a54d9f7f22ee690b8c2a6a781439c77c4925cb45a1e22c52446fd14ecfdebc868f23a6113dc74bcb95e89c2
|
data/bin/dronebl-query
CHANGED
|
@@ -113,10 +113,10 @@ prevalid, ipv6 = opts.ips.partition { |ip| (ip.match(Resolv::IPv6::Regex).nil?)
|
|
|
113
113
|
valid, invalid = prevalid.partition { |ip| !(ip.match(Resolv::IPv4::Regex).nil?) }
|
|
114
114
|
invalid += ipv6
|
|
115
115
|
if @dry_run
|
|
116
|
-
puts DroneBL::gen_lookup_query valid
|
|
116
|
+
puts DroneBL::gen_lookup_query valid, opts.get_archived
|
|
117
117
|
puts "#{valid.count} IPs will be looked up."
|
|
118
118
|
else
|
|
119
|
-
response = DroneBL::lookup(valid)
|
|
119
|
+
response = DroneBL::lookup(valid, opts.get_archived)
|
|
120
120
|
print_table response, opts.long_types
|
|
121
121
|
puts "#{valid.count} IPs looked up. #{response.map { |r| r['ip'] }.uniq.length} unique IPs found in response."
|
|
122
122
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dronebl.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rylee Fowler
|
|
@@ -10,8 +10,7 @@ bindir: bin
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2014-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
it for the best experience with this.'
|
|
13
|
+
description: Interface to the DroneBL RPC2 service
|
|
15
14
|
email: rylee@rylee.me
|
|
16
15
|
executables:
|
|
17
16
|
- dronebl-query
|
|
@@ -45,6 +44,9 @@ rubyforge_project:
|
|
|
45
44
|
rubygems_version: 2.2.2
|
|
46
45
|
signing_key:
|
|
47
46
|
specification_version: 4
|
|
48
|
-
summary:
|
|
47
|
+
summary: 'This is an interface to the DroneBL.org RPC2 administrative interface. It
|
|
48
|
+
comes with tools to submit IPs to the service and to query the data set stored on
|
|
49
|
+
the server. NOTE: You should create a ~/.droneblkey file with your key inside of
|
|
50
|
+
it for the best experience with this.'
|
|
49
51
|
test_files: []
|
|
50
52
|
has_rdoc:
|