ryo 0.3.0 → 0.3.1

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: 4023db8a1481146ed0517b06ca7192b6785c31db7512f04613c7d6ef0e9f183f
4
- data.tar.gz: 8d0309f005ab9642926ffffe00b6d7b953de252988107aae5fd2d4a55dca8c7b
3
+ metadata.gz: 6277c58e3603f06d5840859fcfd59fbf2b677d3ec775c0e44e230a4f9027f482
4
+ data.tar.gz: abd79dccbc55bc0da3b67840575442242cf78f197b78b4686513717ae97b9e70
5
5
  SHA512:
6
- metadata.gz: 5902dc32f735913b4b982c3837fff1d65b1a4005e47a339060e7c4fa12888d29a9a4743faa79d0a3c9450b5ac36fe3567c11f360bc09889f3c75c426264175dd
7
- data.tar.gz: bf3fec78c637bed9c6a06e05f830c7b9936435a4b8ce3e0ca4446c03e0159779f60da20a2f69717f6f0d87588c6381ffe6fe497a2e21e8040371e13d1374c2a3
6
+ metadata.gz: c7631d60dea737c8f1095f691ef544e8cc5a845c7ab13bac63ca813114d61b874ea90358a7132050006ab93aaf8418422043da1b341b089a64df21d830ed1295
7
+ data.tar.gz: 2fadb68eedd1ec03f787baf0efb1d0ce1c45a5a1f29d5d91f0b43d91c502d36abcfd98d105ae578de1ad7bc38e64a6fde24963a0848b5da44d0db0da4fb923cf
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ryo
4
- class NotFoundError < StandardError; end
5
- class InvalidURLError < StandardError; end
6
4
  class InvalidOptionsError < StandardError; end
5
+ class InvalidURLError < StandardError; end
6
+ class NotFoundError < StandardError; end
7
7
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "thread"
4
3
  require "thread/pool"
5
4
 
6
5
  module Ryo
@@ -16,11 +16,11 @@ module Ryo
16
16
  end
17
17
 
18
18
  def self.discover(ip)
19
- begin
20
- new.discover(ip)
21
- rescue ArgumentError => e
22
- { error: e.to_s }
23
- end
19
+ new.discover(ip)
20
+ rescue ArgumentError => e
21
+ { error: e.to_s }
22
+ rescue StandardError => e
23
+ { error: e.to_s }
24
24
  end
25
25
  end
26
26
  end
@@ -11,6 +11,7 @@ module Ryo
11
11
  def parse
12
12
  table = doc.at_css("table#table-view")
13
13
  return [] if table.nil?
14
+
14
15
  table.css("tr")[1..-1].map do |row|
15
16
  cols = row.css("td")
16
17
  domain = cols.first.at_css("a")&.text&.strip
@@ -12,6 +12,8 @@ module Ryo
12
12
  plugins.each do |name, plugin|
13
13
  result = plugin.execute(target)
14
14
  results[name] = result unless result.empty?
15
+ rescue StandardError => _
16
+ next
15
17
  end
16
18
  results
17
19
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ryo
2
4
  module Plugin
3
5
  class Whois
@@ -61,4 +63,4 @@ module Ryo
61
63
  end
62
64
  end
63
65
  end
64
- end
66
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ryo
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
@@ -28,15 +28,15 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "coveralls", "~> 0.8"
29
29
  spec.add_development_dependency "dotenv", "~> 2.5"
30
30
  spec.add_development_dependency "glint", "~> 0.1"
31
- spec.add_development_dependency "rake", "~> 10.0"
32
- spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "rake", "~> 12.3"
32
+ spec.add_development_dependency "rspec", "~> 3.8"
33
33
  spec.add_development_dependency "vcr", "~> 4.0"
34
34
  spec.add_development_dependency "webmock", "~> 3.4"
35
35
 
36
36
  spec.add_dependency "http", "~> 3.3"
37
37
  spec.add_dependency "oga", "~> 2.15"
38
38
  spec.add_dependency "shodanz", "~> 1.0"
39
- spec.add_dependency "simple_whatweb", "~> 0.2"
39
+ spec.add_dependency "simple_whatweb", "~> 0.4"
40
40
  spec.add_dependency "thor", "~> 0.19"
41
41
  spec.add_dependency "thread", "~> 0.2.2"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ryo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-08 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '12.3'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '12.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.0'
89
+ version: '3.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.0'
96
+ version: '3.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: vcr
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0.2'
173
+ version: '0.4'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0.2'
180
+ version: '0.4'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: thor
183
183
  requirement: !ruby/object:Gem::Requirement