Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
189 lines (97 sloc) 4.7 KB

Upcoming Version.

Version 1.6.8

Version 1.6.7

  • hanke: Improvements to the experimental plausible?(number, hints = {}) feature. It is now possible to give the hints cc and ndc a regexp, as in Phony.plausible?("1-434-123-1234", cc: /1|7/, ndc: /4(34|35)/).

Version 1.6.6

  • hanke: Experimental plausible? feature. Checks if the given number is a plausible number. Returns false if 100% not plausible, true if probably true.

Version 1.6.5

  • hanke: Ghana (thanks jschwertfeger!).

Version 1.6.4

  • hanke: Fix for Ireland’s VoIP numbers.

Version 1.6.3

Version 1.6.1/1.6.2

Version 1.6.0

  • 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 if split(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.

Version 1.5.2

  • hanke: Fix for argentine republic’s numbers (with input by vilcsak, thanks!).

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.