Skip to content

Commit

Permalink
Merge ee3056a into b37f98c
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Sep 10, 2018
2 parents b37f98c + ee3056a commit 135c5cf
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/ryo/error.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Ryo
class NotFoundError < StandardError; end
class InvalidURLError < StandardError; end
class InvalidOptionsError < StandardError; end
class InvalidURLError < StandardError; end
class NotFoundError < StandardError; end
end
1 change: 0 additions & 1 deletion lib/ryo/plugin/dir.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "thread"
require "thread/pool"

module Ryo
Expand Down
8 changes: 3 additions & 5 deletions lib/ryo/plugin/shodan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ def discover(ip)
end

def self.discover(ip)
begin
new.discover(ip)
rescue ArgumentError => e
{ error: e.to_s }
end
new.discover(ip)
rescue ArgumentError => e
{ error: e.to_s }
end
end
end
Expand Down
4 changes: 3 additions & 1 deletion lib/ryo/plugin/whois.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Ryo
module Plugin
class Whois
Expand Down Expand Up @@ -61,4 +63,4 @@ def self.discover(domain)
end
end
end
end
end
2 changes: 1 addition & 1 deletion spec/plugin/shodan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
end
end
end
end
end
1 change: 1 addition & 0 deletions spec/plugin/subdomain/dnsdumpster_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true

RSpec.describe Ryo::Plugin::Subdomain::DNSDumpster, :vcr do
subject { Ryo::Plugin::Subdomain::DNSDumpster }
Expand Down
2 changes: 2 additions & 0 deletions spec/plugin/subdomain/subdomain_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Ryo::Plugin::Subdomain, :vcr do
subject { Ryo::Plugin::Subdomain }
describe "#discover" do
Expand Down

0 comments on commit 135c5cf

Please sign in to comment.