lib/ronin/url.rb in ronin-1.1.0.rc2 vs lib/ronin/url.rb in ronin-1.1.0.rc3

- old
+ new

@@ -85,11 +85,11 @@ # @since 1.0.0 # # @api public # def self.http - all(:scheme => {:name => 'http'}) + all('scheme.name' => 'http') end # # Searches for all URLs using HTTPS. # @@ -99,11 +99,11 @@ # @since 1.0.0 # # @api public # def self.https - all(:scheme => {:name => 'https'}) + all('scheme.name' => 'https') end # # Searches for URLs with specific host name(s). # @@ -116,11 +116,11 @@ # @since 1.0.0 # # @api public # def self.hosts(names) - all(:host => {:address => names}) + all('host.address' => names) end # # Searches for URLs with the specific port number(s). # @@ -133,11 +133,11 @@ # @since 1.0.0 # # @api public # def self.ports(numbers) - all(:port => {:number => numbers}) + all('port.number' => numbers) end # # Searches for all URLs sharing a common sub-directory. # @@ -184,11 +184,11 @@ # @since 1.0.0 # # @api public # def self.query_param(name) - all(:query_params => {:name => name}) + all('query_params.name' => name) end # # Search for all URLs with a given query param value. # @@ -201,10 +201,10 @@ # @since 1.0.0 # # @api public # def self.query_value(value) - all(:query_params => {:value => value}) + all('query_params.value' => value) end # # Searches for a URL. #