- hanke: Closes floere#32, normalizing numbers with a double zero at the beginning. Aka the “James Bond” release.
- hanke: Phony’s API is now much more lenient by always rendering 10 more numbers. If
split(3, 4)
is defined in the DSL, it actually behaves as ifsplit(3, 4 + 10)
was defined, allowing for irregularities in a country’s scheme that Phony did not cover yet. - hanke: The above change also allows for call-through numbers into offices etc.
- hanke: Fix for argentine republic’s numbers (with input by vilcsak, thanks!).
- hanke: Fix for korean service codes incorrectly formatting korean mobile numbers (by vilcsak, thanks!).
- hanke: Raises when nil is handed into
#normalize
,#split
, or#format
– to fail fast and hard. Please handle e.g. usingnumber && Phony.normalize(number)
, ornumber && Phony.format(number)
.
- hanke: Fix for digits being cut off at the end of a greek mobile number (by vilcsak, thanks!).
- hanke: Singapore, Thailand.
- hanke: Fix for digits being cut off at the end of a number (by mrchucho, thanks!).
- hanke: Exposing
Phony::CountryCodes.instance.international_absolute_format
,Phony::CountryCodes.instance.international_relative_format
,Phony::CountryCodes.instance.national_format
(writer & reader) so people can set their special ndc formats. Especially if they use Phony for just one country. (Thanks sarwagya for the inspiration!)
- hanke: Moved
lib/countries.rb
→lib/phony/countries.rb
(Thanks trans!).
- hanke: Changed
Phony.formatted
toPhony.format
. The old method can still be used. (Thanks trans!)
- hanke: Lithuania. Croatia.
- hanke: Slovakia.
- hanke: Australia.
- hanke: Fix. In certain cases, the Phony DSL clashed with existing DSLs.
- hanke: Finland.
- hanke: Easy DSL for defining countries (easier for you to improve phony :) ).
- hanke: Mexico.
- hanke: Cuba.
- hanke: Tunisia.
- hanke: Denmark, Norway. Skøl!
- hanke: The UK. Thanks yet again to kbingman! (Closes pull request 16)
- hanke: Clashing mobile numbers with Liège in Belgium fixed.
- hanke: Fix by glebm, thanks! Italian number handling did produce errors in Ruby 1.8. Closes issue 13.
- hanke: Italian numbers are correctly normalized: Phony.normalize(‘+390909709511’).should == ‘390909709511’ (Zero in front of area code is not removed, closes issue 12)
- hanke: Italy.
- hanke: Portugal. Polish landline (not mobile).
- hanke: Malaysia.
- hanke: South Korea.
- hanke: China.
- hanke: Turkey.
- hanke: Removed dependency on active support.
- hanke: Made the gem substantially smaller.
- hanke: Adds german 5-digits code formatting (Thanks ledermann!).
- hanke: Afghanistan. Venezuela.
- hanke: German 180, 181 numbers (Thanks kbingman and jcfischer!).
- hanke: Peru. Brasil. Chile.
- hanke: Romania.
- hanke: Sweden. Russia.
- hanke: The Netherlands (Thanks alloy and manfred!).
- hanke: German IVPNs. Poland. Greece. Egypt. Italy. Vanity number handling. Austria. Lots of code structure.
- hanke: Descriptions and dependencies changed.
- hanke: First release! Lots of countries.