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

Exception in to_s(:line1) on some addresses #27

Closed
garyfoster opened this issue Aug 6, 2015 · 2 comments
Closed

Exception in to_s(:line1) on some addresses #27

garyfoster opened this issue Aug 6, 2015 · 2 comments

Comments

@garyfoster
Copy link

2.2.0 :017 > address = StreetAddress::US.parse("460 MALLARD AND PYE RD, ODUM, GA, 31555")
 => #<StreetAddress::US::Address:0x007f991a1228b0 @street="460 MALLARD", @street_type=nil, @suffix=nil, @prefix=nil, @city="ODUM", @state="GA", @postal_code="31555", @street2="PYE", @street_type2="Rd", @suffix2=nil, @prefix2=nil>
2.2.0 :018 > address.to_s(:line1)
TypeError: no implicit conversion of nil into String
    from /Users/garyfoster/.rvm/gems/ruby-2.2.0@smartpharmacy/gems/StreetAddress-1.0.6/lib/street_address.rb:886:in `+'
    from /Users/garyfoster/.rvm/gems/ruby-2.2.0@smartpharmacy/gems/StreetAddress-1.0.6/lib/street_address.rb:886:in `to_s'
@derrek
Copy link
Collaborator

derrek commented Aug 11, 2015

You can try using github master branch. I believe this is fixed. I haven't released a gem yet of it as there's quite a bit of updates and I got busy with a new job :-(

@garyfoster
Copy link
Author

confirmed, works in master, thanks

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

No branches or pull requests

2 participants