lib/ronin/url.rb in ronin-1.3.0 vs lib/ronin/url.rb in ronin-1.4.0.rc1

- old
+ new

@@ -21,11 +21,10 @@ require 'ronin/model/importable' require 'ronin/url_scheme' require 'ronin/url_query_param' require 'ronin/host_name' require 'ronin/tcp_port' -require 'ronin/web_credential' require 'dm-timestamps' require 'uri/generic' require 'uri/http' require 'uri/https' @@ -221,15 +220,15 @@ # The query param name to search for. # # @return [Array<URL>] # The URLs with the given query param. # - # @since 1.0.0 + # @since 1.4.0 # # @api public # - def self.query_param(name) + def self.with_query_param(name) all('query_params.name.name' => name) end # # Search for all URLs with a given query param value. @@ -238,15 +237,35 @@ # The query param value to search for. # # @return [Array<URL>] # The URLs with the given query param value. # - # @since 1.0.0 + # @since 1.4.0 # # @api public # - def self.query_value(value) + def self.with_query_value(value) all('query_params.value' => value) + end + + # + # @deprecated + # Deprecated as of 1.4.0 and will be removed in 2.0.0. + # + # @see with_query_param + # + def self.query_param(name) + with_query_param(name) + end + + # + # @deprecated + # Deprecated as of 1.4.0 and will be removed in 2.0.0. + # + # @see with_query_value + # + def self.query_value(value) + with_query_value(name) end # # Searches for a URL. #