reverse 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba47647ae90e04200ff457a9c256dd7839d6848c
4
- data.tar.gz: 7282a024401763b58da8dad34c4aef4fd27051c7
3
+ metadata.gz: b59dba1c0459be8b0514cbaf42762053d0eb9130
4
+ data.tar.gz: 6bcf2a74eecddce4c74ef816dfe99d2aa7e8f26f
5
5
  SHA512:
6
- metadata.gz: b4bfd58b8733dac33f475bb36d7217be459aa4e66ef33b13a6fdd69f104fa2625f966463992ffbe1a40578b3e3956ed655280acd995c8bd27fa375b4371cfdea
7
- data.tar.gz: 16dd70563ffb04035307057347b41b482c39b3d025d3c495eef5e26c13abc14348b642fb6e66460d8b31c24cb39e4c287589c899fb5c3301118bc5558f88434a
6
+ metadata.gz: 17f51fb01a1bfd49bde03921aa6d6d0ee3ae5e30ac2db426f279f23427214c7e74916a1178b130be3fa95f6e03420104b1f598fd657ffe2ecfe4d46e23898eec
7
+ data.tar.gz: f9596718298bb7eedded296e76ead8ce874ae00fe0c1548cbcd4181ff97dbae17b75859e531ae859893da3a1b84635cd56172bd6987ec6852eab7a5b26f337db
@@ -16,6 +16,7 @@ class Reverse
16
16
 
17
17
  def exec(argv)
18
18
  opt = OptionParser.new
19
+ opt.on('--verbose', 'Verbose Mode (IP Address with reverse DNS)') {|v| @options[:verbose] = v }
19
20
  opt.on('--no-color', 'No Color Mode') {|v| @options[:color] = v }
20
21
  opt.parse!(argv)
21
22
 
@@ -42,10 +43,15 @@ class Reverse
42
43
  name = get_name(addr)
43
44
  @list[addr] = name
44
45
  end
46
+ if @options[:verbose]
47
+ str = "#{addr},#{name}"
48
+ else
49
+ str = name
50
+ end
45
51
  if @options[:color]
46
- color.green + name + color.clear
52
+ color.green + str + color.clear
47
53
  else
48
- name
54
+ str
49
55
  end
50
56
  end
51
57
  end
@@ -1,3 +1,3 @@
1
1
  class Reverse
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reverse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hitoshi Kurokawa