rogue_one 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 2be63346579c5afc83b8c8a8c04ffaa1a14c1469c2f5d8200c633dfd5b7512bc
4
- data.tar.gz: f2bf7c83bfe4d19136b74a6994929b65a5cb3ef14296b516c3e52d1cc6d5c10f
3
+ metadata.gz: 50bc52be2dec2e0e5c7daf51af82117041d99a1925dc6709ee45c9bfe14feac1
4
+ data.tar.gz: 0f08a6005109c20fe4e48b8fbff97375813d4eff7f75259648e8b74614ce1b99
5
5
  SHA512:
6
- metadata.gz: 23e2e93ef262b70634870673fc12eef1cd65cb7e908aff42d18201d46258026478800ad6e72c6c0e29b876054a2a0b9ede7eebd542cbed59b43b0f807c0a0c6f
7
- data.tar.gz: bf4b3647dae1a1b198c321d71766774bdca758fb0d39c87a4ea6043159b29c68e9588cd142ae5e7c548b4b796657058f38340b3aae8a8df7e7600c665484cffc
6
+ metadata.gz: 40cda8348091166aa7dd06518596f9f2da42673a28563a91515505f76a851ecda89addb9bf3463f7a4b3732bffcbff991913ee0108e304712fcc06351ea57c46
7
+ data.tar.gz: 9c0f43f946d9f5559e5711d557466fea2b41adc706dfa8897e693a01b5327e04e3b5470e123e56a69b266a8bdf396dc8eb680429017a139f23775d7ad184db6d
@@ -15,11 +15,9 @@ module RogueOne
15
15
  end
16
16
 
17
17
  def report
18
- @report ||= [].tap do |out|
19
- inspect
18
+ inspect
20
19
 
21
- out << { verdict: verdict, landing_pages: landing_pages }
22
- end.first
20
+ { verdict: verdict, landing_pages: landing_pages }
23
21
  end
24
22
 
25
23
  private
@@ -35,10 +33,12 @@ module RogueOne
35
33
  def landing_pages
36
34
  @memo.map do |ip, count|
37
35
  count > 10 ? ip : nil
38
- end.compact
36
+ end.compact.sort
39
37
  end
40
38
 
41
39
  def inspect
40
+ return unless @memo.empty?
41
+
42
42
  results = Parallel.map(top_100_domains) do |domain|
43
43
  normal_result = normal_resolver.dig(domain, "A")
44
44
  target_result = target_resolver.dig(domain, "A")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RogueOne
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogue_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler