Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

152 lines (78 sloc) 3.409 kb

Upcoming Version.

Version 1.5.1

  • hanke: Fix for korean service codes incorrectly formatting korean mobile numbers (by vilcsak, thanks!).

Version 1.5.0

  • hanke: Raises when nil is handed into #normalize, #split, or #format – to fail fast and hard. Please handle e.g. using number && Phony.normalize(number), or number && Phony.format(number).

Version 1.4.5

  • hanke: Fix for digits being cut off at the end of a greek mobile number (by vilcsak, thanks!).

Version 1.4.4

  • hanke: Singapore, Thailand.

Version 1.4.3

  • hanke: Fix for digits being cut off at the end of a number (by mrchucho, thanks!).

Version 1.4.2

  • 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!)

Version 1.4.1

  • hanke: Moved lib/countries.rblib/phony/countries.rb (Thanks trans!).

Version 1.4.0

  • hanke: Changed Phony.formatted to Phony.format. The old method can still be used. (Thanks trans!)

Version 1.3.5

  • hanke: Lithuania. Croatia.

Version 1.3.4

  • hanke: Slovakia.

Version 1.3.3

  • hanke: Australia.

Version 1.3.2

  • hanke: Fix. In certain cases, the Phony DSL clashed with existing DSLs.

Version 1.3.1

  • hanke: Finland.

Version 1.3.0

  • hanke: Easy DSL for defining countries (easier for you to improve phony :) ).
  • hanke: Mexico.
  • hanke: Cuba.
  • hanke: Tunisia.

Version 1.2.11

  • hanke: Denmark, Norway. Skøl!

Version 1.2.10

Version 1.2.9

  • hanke: Clashing mobile numbers with Liège in Belgium fixed.

Version 1.2.8

  • hanke: Fix by glebm, thanks! Italian number handling did produce errors in Ruby 1.8. Closes issue 13.

Version 1.2.7

  • hanke: Italian numbers are correctly normalized: Phony.normalize(‘+390909709511’).should == ‘390909709511’ (Zero in front of area code is not removed, closes issue 12)

Version 1.2.6

  • hanke: Italy.

Version 1.2.5

  • hanke: Portugal. Polish landline (not mobile).

Version 1.2.4

  • hanke: Malaysia.

Version 1.2.3

  • hanke: South Korea.

Version 1.2.2

  • hanke: China.

Version 1.2.1

  • hanke: Turkey.

Version 1.2.0

  • hanke: Removed dependency on active support.

Version 1.1.9

  • hanke: Made the gem substantially smaller.

Version 1.1.8

  • hanke: Adds german 5-digits code formatting (Thanks ledermann!).

Version 1.1.7

  • hanke: Afghanistan. Venezuela.

Version 1.1.6

  • hanke: German 180, 181 numbers (Thanks kbingman and jcfischer!).

Version 1.1.5

  • hanke: Peru. Brasil. Chile.

Version 1.1.3

  • hanke: Romania.

Version 1.1.2

  • hanke: Sweden. Russia.

Version 1.1.1

  • hanke: The Netherlands (Thanks alloy and manfred!).

Version 1.1.0

  • hanke: German IVPNs. Poland. Greece. Egypt. Italy. Vanity number handling. Austria. Lots of code structure.

Version 1.0.1

  • hanke: Descriptions and dependencies changed.

Version 1.0.0

  • hanke: First release! Lots of countries.
Jump to Line
Something went wrong with that request. Please try again.