lib/spidr/spidr.rb in spidr-0.7.0 vs lib/spidr/spidr.rb in spidr-0.7.1
- old
+ new
@@ -1,10 +1,12 @@
-require 'spidr/settings/proxy'
-require 'spidr/settings/timeouts'
-require 'spidr/settings/user_agent'
-require 'spidr/agent'
+# frozen_string_literal: true
+require_relative 'settings/proxy'
+require_relative 'settings/timeouts'
+require_relative 'settings/user_agent'
+require_relative 'agent'
+
module Spidr
extend Settings::Proxy
extend Settings::Timeouts
extend Settings::UserAgent
@@ -50,21 +52,21 @@
#
# @see Agent.domain
#
# @since 0.7.0
#
- def self.domain(name,options={},&block)
- Agent.domain(name,options,&block)
+ def self.domain(name,**kwargs,&block)
+ Agent.domain(name,**kwargs,&block)
end
#
# @see Agent.site
#
def self.site(url,**kwargs,&block)
Agent.site(url,**kwargs,&block)
end
- #
+ #
# @abstract
#
def self.robots
end
end