-
Notifications
You must be signed in to change notification settings - Fork 1
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
Rename gem to twingly-url #15
Conversation
This is the start of a rewrite. It will become a more general gem, where normalization is just one of many libraries.
Simplest possible, verifies that we can extract the url and domain from the string. Can never raise exceptions.
Enables usage like: * puts Twingly::URL.parse(string).domain * puts Twingly::URL.parse(string).url.path
Ok, think I'm done for now. Would like to update the projects using twingly-url-normalizer, ok to merge? |
Skimmed through, go ahead! |
assert Twingly::URL.validate("http://blog.twingly.com/"), "Should be valid" | ||
end | ||
|
||
should "return false for a valid url" do |
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 be "return false for a invalid url", right?
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 be "return false for a invalid url", right?
Yes.
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.
Fixed in cce2611
This is the start of a rewrite. It will become a more general gem, where normalization is just one of many libraries.
twingly-url-normalizer
totwingl/url/normalizer
twingly/url/normalizer
totwingly/url