News for hackers. Stuff that matters.
Re:Google's library for dealing with phone numbers (Java/Jav... by davidradcliffe on Wednesday January 05, 2011 @09:16AM (#2070991)
How much work would it take to make a complete ruby port?
Re:Google's library for dealing with phone numbers (Java/Jav... by kondro on Wednesday January 05, 2011 @09:25AM (#2071021)
Well... habermann24 (https://github.com/habermann24/libphonenumber-ruby) looks like he's started on a ruby port and he also has his phoney library which doesn't appear to use the same dataset and doesn't work properly for Australia.

I am planning on just using the Java version with JRuby - it will probably be faster than a pure ruby version anyway.

Re:Google's library for dealing with phone numbers (Java/Jav... by simon_kun on Wednesday January 05, 2011 @09:24AM (#2071015)
Not the answer you were looking for, but you could run the Java lib with JRuby, or use the JS lib with Ruby/V8 and "The Ruby Racer" (https://github.com/cowboyd/therubyracer)
Re:Google's library for dealing with phone numbers (Java/Jav... by bigfudge on Wednesday January 05, 2011 @09:32AM (#2071040)
Or python... I'm hacking together regexes for dealing with specific country formats in django right now... Is there a comparable python lib available?