README.md in github_url-0.1.0 vs README.md in github_url-0.2.0

- old
+ new

@@ -1,9 +1,11 @@ # GithubUrl A small ruby gem for parsing Github URLs +[![CircleCI](https://circleci.com/gh/GalvanizeOpenSource/github_url.svg?style=svg)](https://circleci.com/gh/GalvanizeOpenSource/github_url) + ## Installation Add this line to your application's Gemfile: ```ruby @@ -21,16 +23,22 @@ ## Usage Initializing a GithubUrl ```ruby -url = GithubUrl.new('https://github.com/GalvanizeOpenSource/github_url/blob/master/lib/github_url.rb') +url = GithubUrl.new(url: 'https://github.com/GalvanizeOpenSource/github_url/blob/master/lib/github_url.rb') ``` -Initializing a GithubUrl using a specific branch +Initializing a GithubUrl using a specific default branch ```ruby -url_with_branch = GithubUrl.new('https://github.com/GalvanizeOpenSource/github_url/blob/master/lib/github_url.rb', 'branch-besides-master') +url_with_branch = GithubUrl.new(url: 'https://github.com/GalvanizeOpenSource/github_url/blob/master/lib/github_url.rb', default_branch: 'branch-besides-master') +``` + +Initializing a GithubUrl using an override host + +```ruby +url_with_host = GithubUrl.new(url: "https://git.sum.enterprise.org/peterparker/web", host: "git.sum.enterprise.org") ``` Getting the organization ```ruby