StreetAddressExt
StreetAddresExt
is a thin wrapper around the street-address gem
In fact, parse
returns a modified StreetAddress::US::Address
- state and postal codes removed
- street and city capitalized
- suffix in correct position (see this issue)
- removes periods from prefix
Installation
Add this line to your application's Gemfile
:
gem 'street_address_ext'
And then execute:
bundle
Or install it yourself as:
gem install street_address_ext
Usage
require 'street_address_ext'
address_string = "84 Beacon St., Boston MA"
StreetAddressExt.parse(address_string).to_s #=> "84 Beacon St, Boston"
Dependencies
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request