phony
phony copied to clipboard
E164 international phone number normalizing, splitting, formatting.
Should Phony also handle the + (country calling code indicator) when passed to e.g. `split`?
👋 - Upgrade to latest Rubies on Travis. - Remove `Gemfile.lock` to relax dependancies between different Ruby versions. **_note:_** _Gemfile.lock is bundled with a specific version of bundler, not sure...
For example, no more `normalize` with `cc` option shenanigans, but instead `Phony['64'].normalize('national number')`. The goal must be to allow 3 different types o numbers: int'l, national, local. Then, be consistent...
There is a number of phone numbers in Tajikistan (all of them belong to Megafon company) that look like `+992 88 ...`, i. e. +992 88 123 4567. While normalizing,...
Important fact: *Phony only works with international phone numbers.* It needs the country code to be able to identify the number's country and rules. What I did ---------- For any...
I upgraded Rubocop, and run it. There's several offenses that could be auto-corrected. And more that instead will need manual correction. It's based on top of https://github.com/floere/phony/pull/557, will rebase once...
For example `+35967012345` should be a valid phone number for Lovech province (067), town of Troyan (0), 5-digit fixed subscriber number (1-23-45). Ref. Communications Regulation Commission's Numbering plan: https://crc.bg/en/rubrics/481/numbering