README.md in url_regexp-0.1.1 vs README.md in url_regexp-0.1.2

- old
+ new

@@ -22,18 +22,32 @@ ```ruby root = UrlRegexp::Root.new root.append('http://www.example.com/foo/bar') root.to_regexp -# => /^http:\/\/www\.example\.com\/foo\/bar(\?.*)?(#|$)/ +# => /^http:\/\/www\.example\.com\/foo\/bar([?#]|$)/ root.append('http://www.example.com/foo/bar/wow') root.to_regexp -# => /^http:\/\/www\.example\.com\/foo\/bar(\/wow)?(\?.*)?(#|$)/ +# => /^http:\/\/www\.example\.com\/foo\/bar(\/wow)?([?#]|$)/ +root.append('http://www.example.com/boo/bar') +root.to_regexp +# => /^http:\/\/www\.example\.com\/(foo\/bar(\/wow)?|boo\/bar)([?#]|$)/ +root.append('http://www.example.com/boo/bar/wow') +root.to_regexp +# => /^http:\/\/www\.example\.com\/(foo|boo)\/bar(\/wow)?([?#]|$)/ ``` You can set the options globally and locally. Locally set option overwrites the one globally set. Just add any settings necessary for your mailers from the list below. +## Test + +```bash +bundle exec rake +``` + +It will execute `rspec` and `rubocop`. + ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) @@ -46,14 +60,14 @@ [gem-image]: https://badge.fury.io/rb/url_regexp.svg [gem-link]: http://badge.fury.io/rb/url_regexp -[build-image]: https://secure.travis-ci.org/dtaniwaki/url_regexp.png?branch=master +[build-image]: https://secure.travis-ci.org/dtaniwaki/url_regexp.svg?branch=master [build-link]: http://travis-ci.org/dtaniwaki/url_regexp?branch=master [deps-image]: https://gemnasium.com/dtaniwaki/url_regexp.svg?branch=master [deps-link]: https://gemnasium.com/dtaniwaki/url_regexp?branch=master -[cov-image]: https://coveralls.io/repos/dtaniwaki/url_regexp/badge.png?branch=master -[cov-link]: https://coveralls.io/r/dtaniwaki/url_regexp?branch=master -[gpa-image]: https://codeclimate.com/github/dtaniwaki/url_regexp.png?branch=master +[cov-image]: https://coveralls.io/repos/github/dtaniwaki/url_regexp/badge.svg?branch=master +[cov-link]: https://coveralls.io/github/dtaniwaki/url_regexp?branch=master +[gpa-image]: https://codeclimate.com/github/dtaniwaki/url_regexp.svg?branch=master [gpa-link]: https://codeclimate.com/github/dtaniwaki/url_regexp?branch=master