-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Values::URL#===
method
#164
Add a Values::URL#===
method
#164
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on what other values should be comparable to a URL
? Should Host
, Domain
, Wildcard
, etc, be comparable to a URL
, or should URL
s only be comparable to other URL
s? To me URL
s represent a specific web page address within a Website
/Host
/Domain
.
lib/ronin/recon/values/url.rb
Outdated
require 'ronin/recon/values/domain' | ||
require 'ronin/recon/values/website' | ||
require 'ronin/recon/values/wildcard' | ||
require 'ronin/recon/values/host' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be using require_relative
now. The main
branch has require_relative
, and I will probably rebase the 0.2.0
branch today.
Hmm, also looks like we have a circular require issue with |
032be97
to
9e8f021
Compare
9258ea4
to
fa39a1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor things.
lib/ronin/recon/values/url.rb
Outdated
def ===(other) | ||
case other | ||
when URL | ||
uri == other.uri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use @uri
to avoid an extra method call.
fa39a1e
to
5d7ba4f
Compare
Closing #128