Skip to content
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

Merged
merged 8 commits into from
Jul 15, 2014
Merged

Rename gem to twingly-url #15

merged 8 commits into from
Jul 15, 2014

Conversation

jage
Copy link
Contributor

@jage jage commented Jul 15, 2014

This is the start of a rewrite. It will become a more general gem, where normalization is just one of many libraries.

  • Rename twingly-url-normalizer to twingl/url/normalizer
  • Split up the parsing intwingly/url/normalizer to twingly/url
  • Add new methods to validate URLs (to be used in Ganges and Norrstrom)
  • Add hashing functions for documentdb, blogstreamdb
  • Rename repository and gemspec

jage added 4 commits July 15, 2014 13:58
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.
@dentarg dentarg mentioned this pull request Jul 15, 2014
5 tasks
jage added 3 commits July 15, 2014 14:55
Enables usage like:

* puts Twingly::URL.parse(string).domain
* puts Twingly::URL.parse(string).url.path
@jage
Copy link
Contributor Author

jage commented Jul 15, 2014

Ok, think I'm done for now. Would like to update the projects using twingly-url-normalizer, ok to merge?

@walro
Copy link
Contributor

walro commented Jul 15, 2014

Skimmed through, go ahead!

jage added a commit that referenced this pull request Jul 15, 2014
@jage jage merged commit dad225e into master Jul 15, 2014
@jage jage deleted the twingly-url branch July 15, 2014 13:30
assert Twingly::URL.validate("http://blog.twingly.com/"), "Should be valid"
end

should "return false for a valid url" do
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in cce2611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants