dronebl.rb 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dronebl-query +2 -2
  3. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f37b2955dc619fdf8bd836a76147e8b32a52de9
4
- data.tar.gz: 5c467fa4f41e38f587261fdeb2f89811cfe052d0
3
+ metadata.gz: 740153e79ee760f9734009545805638ee0f46cc6
4
+ data.tar.gz: f8bfb5601b39c870d9bab826e5571a648c6b846f
5
5
  SHA512:
6
- metadata.gz: 9657a44c6692e019e5c2a34e7f2cbb3475a0ea2c6e723f08cfbbe364dd2142e97e6e708660664cf73e8a540b2bf81d94cb2df055c81550fc63e6f3ad6d05d182
7
- data.tar.gz: 7bf45c7052d0051524e198532b951f33563fa5fb76bf740fd0e3c8ae3848d8347a989718a77ac6078cfb0362e24919b66f5c5a9fb6b33c5259bd7061c9dd631f
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.2
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: 'NOTE: You should create a ~/.droneblkey file with your key inside of
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: Interface to the DroneBL RPC2 service
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: