I was using phony to format phone numbers (meaning, if I put in xxx-xxx-xxxx it would convert to a string, and also tell if there is a (1) before to remove it).
But it really doesn't work for us phone number, it's designed for international numbers.
Is there an equivalent?
Earlier this year, I reviewed a bunch of ruby gems that parse and format phone numbers. They fall into a number of groups (see below). TLDR: I used 'phone'. It might work for you because you can specify a default country code that it uses if your phone number doesn't include one.
2) depends on rails or active_record:
3) forks of 'phone' that have been merged back into the trunk:
4) relies on you to know the region ahead of time
5) Kind of almost works for me
6) does not contain the substring 'phone' in the gem name (edit: I see you tried this one)
These groupings may be somewhat unfair or out of date so feel free to comment. I must admit I was a little frustrated at the time at how many people had partially re-invented this particular wheel.