Skip to content

Latest commit

 

History

History
370 lines (189 loc) · 9.24 KB

history.textile

File metadata and controls

370 lines (189 loc) · 9.24 KB

Version 2.2.13

  • hanke: Fix for Reunion and Mayotte numbers (Thanks, see #163).

Version 2.2.12

  • hanke: Fix for Kiwi numbers (Thanks, see #162).

Version 2.2.11

  • hanke: Fix for Indonesian numbers (Thanks, see #161).

Version 2.2.10

  • hanke: Fix for Indonesian numbers (Thanks, see #160).

Version 2.2.9

  • hanke: Fix for Jakarta numbers (Thanks, see #159).

Version 2.2.8

  • hanke: Fix for Spanish numbers (Thanks, see #158).

Version 2.2.7

  • hanke: Fix for German numbers (Thanks, see #156).

Version 2.2.6

  • hanke: Fix for German numbers (Thanks, see #154).

Version 2.2.5

  • hanke: Best effort in case of invalid Italy number (Thanks, see #152).

Version 2.2.4

  • hanke: Fixed trunk code replacement (Thanks, see #151).

Version 2.2.3

  • hanke: Improvements for Aruba (Thanks @weppos, see #141).

Version 2.2.2

  • hanke: Improvements for Austria.

Version 2.2.1

  • hanke: Fix for Austria’s 663 numbers (Thanks @weppos, see #139).

Version 2.2.0

  • hanke: Countries cannot normalize full numbers anymore. So `Phony[“81”].normalize(“+81 80 1234 5634”).should == ‘818012345634’` will not work anymore. Instead `Phony[“81”].normalize(“80 1234 5678”)` will result in `‘80 1234 5634’`, so can only be used to normalize that country’s national numbers.
  • hanke: Fixes for Italy (Thanks @weppos, see #138).

Version 2.1.4

  • hanke: Fixes for the Netherlands (Thanks @aeden, see #135).

Version 2.1.3

  • hanke: Updates for Brazil and Serbia (see #129 and #132).

Version 2.1.2

  • hanke: Fix Belgian numbers (closes #130).

Version 2.1.1

  • hanke: Fix for case where number already had a country code: jp = Phony["81"]; p jp.normalize "+81 80 1234 5634" # => "818012345634"

Version 2.1.0

  • hanke: Experimental syntax suggested in #104 added. E.g. jp = Phony["81"]; p jp.normalize "08012345678" # => "818012345678"

Version 2.0.3

  • hanke: Improve Italian numbers.

Version 2.0.2

  • hanke: Improve German numbers.

Version 2.0.1

  • hanke: Moved trunk codes to where they belong. Handle “(0)” in numbers.

Version 2.0.0

  • hanke: Many improvements and API changes.

Version 1.9.0

  • hanke: Fixes an issue with eg. Phony#normalize(“+972”) returning not just “972”, but Phony internals (thanks @taf2)!

Version 1.8.7

  • hanke: Indonesia (thanks @rjhaveri)!

Version 1.8.6

  • hanke: Zambia and mobile numbers for Kenya (thanks @rjhaveri)!

Version 1.8.5

  • hanke: Fixes Brazil (thanks @knorrium)!
  • hanke: Fixes Estonia (thanks @kritik)!

Version 1.8.4

  • hanke: Rwanda (thanks @rjhaveri)!

Version 1.8.3

  • hanke: Cambodia (thanks @dwilkie)!

Version 1.8.2

  • jcfischer: Gibraltar, Malta, Cyprus, Estonia, Monaco

Version 1.8.1

  • hanke: Morocco & Sudan (thanks @jcfischer)!

Version 1.8.0

  • hanke: Countries are now plausibility checked less harshly.

Version 1.7.12

  • hanke: Luxembourg & Nigeria (thanks @jcfischer)!

Version 1.7.11

  • hanke: Many improvements to UK numbers (thanks @g1smd)!

Version 1.7.10

  • hanke: More improvements to UK numbers.

Version 1.7.9

  • hanke: Many improvements to UK numbers (thanks @g1smd)!

Version 1.7.8

  • hanke: Closes floere#53. Countries who don’t have NDCs are now also plausible.

Version 1.7.7

  • hanke: Russia, added catchall in last rule and group in regexp.

Version 1.7.6

  • hanke: Russia, Kazakhstan, Abhasia and South Osetia (thanks glebm)!

Version 1.7.5

  • hanke: Fix for issue #47. If a number contains a rest (CC + NDC + rest) size that is in the range of 1..2, it is not considered plausible (ie. plausible? will return false).

Version 1.7.4

  • hanke: Fix for issue #45. Irish phone numbers with unrecognized NDCs are now formatted better when using :national formatting (thanks theirishpenguin!).

Version 1.7.3

  • hanke: Fix for issue #44. Phony.plausible?('353') now returns false (on any number, if the NDC is missing, thanks theirishpenguin!).

Version 1.7.2

  • hanke: Fix for issue #42. CountryCodes#clean is not destructive anymore, while CountryCodes#clean! is.

Version 1.7.1

  • hanke: Polish number support much improved (thanks filiptepper!).

Version 1.7.0

  • hanke: Specifiable whether a zero is added in front of the NDC when formatting with format :national. Example: The US adds none, while Vietnam or Switzerland have one.
  • hanke: Internal #split method is now more consistent. If there is no NDC, it will return nil. Also, it will return a "0" in front of the NDC if a country needs that prefix, and nil if not.

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

  • hanke: Closes floere#32, normalizing numbers with a double zero at the beginning. Aka the “James Bond” release.

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.