I'm in the process of upgrading from version 0.7.7 and ran into this in a spec. Version 0.7.7 does not exhibit this behavior. In comparing the two branches I haven't been able to figure out where the :valid key is being removed in version 0.9.4. Is this a bug or am I using the library improperly?
On version 0.9.4, when I run the following code:
an exception is raised with the following relevant backtrace:
Looking at the
@data
instance variable it appears that some of the values in that hash are missing the:valid
key causing https://github.com/daddyz/phonelib/blob/master/lib/phonelib/phone.rb#L120C47-L120C64 to raise.I'm in the process of upgrading from version 0.7.7 and ran into this in a spec. Version 0.7.7 does not exhibit this behavior. In comparing the two branches I haven't been able to figure out where the
:valid
key is being removed in version 0.9.4. Is this a bug or am I using the library improperly?