Skip to content

Latest commit

 

History

History
476 lines (243 loc) · 10.8 KB

history.textile

File metadata and controls

476 lines (243 loc) · 10.8 KB

Version 2.8.9

  • Improvements for Saudi Arabian numbers (thanks, see #212).

Version 2.8.8

  • Improvements for Portuguese numbers (thanks, see #210).

Version 2.8.7

  • Various improvements (thanks, see #207).

Version 2.8.6

  • Improvements for Mexican numbers (thanks, see #206).

Version 2.8.5

  • Improvements for German 0800 numbers (thanks, see #205).

Version 2.8.4

  • Improvements for Slovenia, Austria, Italia, and Estonia (thanks, see #201, #202, #203, #204).

Version 2.8.3

  • Further improvements for the UK (thanks, see #198).
  • Improvements for the Netherlands (thanks, see #199).
  • What’s with these “The” country name countries…

Version 2.8.2

  • Improvements for the UK (thanks, see #196).

Version 2.8.1

  • Improvements for Guinea (thanks, see #195 and #197).

Version 2.8.0

  • Trunk code can have a delimiter added (e.g. US: ‘1%s’), which will be replaced by a delimiter character.

Version 2.7.1

  • Improvements for Brazil (thanks, see #192).

Version 2.7.0

  • Normalize (remove) the trunk code by default.

Version 2.6.0

  • Add possibility to add limited whitespace formatting to trunk code.

Version 2.5.4

  • Improvements for German mobile/service numbers (thanks, see #189).

Version 2.5.3

  • Improve trunk handling for Cambodian numbers (thanks, see #187).

Version 2.5.2

  • Trunk handling for Cambodian numbers (thanks, see #186).

Version 2.5.1

  • Trunk handling for German numbers (thanks, see #185).

Version 2.5.0

  • Adds a lot of trunk code prefixes for about 30 countries. This will impact on national formatting and normalizing. Please provide feedback on this change – best with pull requests/issues with spec examples.

Version 2.4.3

  • Fix for Dutch numbers (thanks, see #184).

Version 2.4.2

  • Fix for Malaysia (thanks, see #183).

Version 2.4.1

  • Fix for Serbia (thanks, see #181).

Version 2.4.0

  • Rewrites the trunk code handling.

Version 2.3.0

  • Introduces the reserved DSL. If reserved, any operation on a number fails.

Version 2.2.16

  • Fixes for Spain and Austria (Thanks, see #176, #177).

Version 2.2.15

  • Fix for The Netherlands (Thanks, see #175).

Version 2.2.14

  • Fix for Croatia (Thanks, see #167).

Version 2.2.13

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

Version 2.2.12

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

Version 2.2.11

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

Version 2.2.10

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

Version 2.2.9

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

Version 2.2.8

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

Version 2.2.7

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

Version 2.2.6

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

Version 2.2.5

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

Version 2.2.4

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

Version 2.2.3

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

Version 2.2.2

  • Improvements for Austria.

Version 2.2.1

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

Version 2.2.0

  • 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.
  • Fixes for Italy (Thanks @weppos, see #138).

Version 2.1.4

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

Version 2.1.3

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

Version 2.1.2

  • Fix Belgian numbers (closes #130).

Version 2.1.1

  • 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

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

Version 2.0.3

  • Improve Italian numbers.

Version 2.0.2

  • Improve German numbers.

Version 2.0.1

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

Version 2.0.0

  • Many improvements and API changes.

Version 1.9.0

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

Version 1.8.7

  • Indonesia (thanks @rjhaveri)!

Version 1.8.6

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

Version 1.8.5

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

Version 1.8.4

  • Rwanda (thanks @rjhaveri)!

Version 1.8.3

  • Cambodia (thanks @dwilkie)!

Version 1.8.2

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

Version 1.8.1

  • Morocco & Sudan (thanks @jcfischer)!

Version 1.8.0

  • Countries are now plausibility checked less harshly.

Version 1.7.12

  • Luxembourg & Nigeria (thanks @jcfischer)!

Version 1.7.11

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

Version 1.7.10

  • More improvements to UK numbers.

Version 1.7.9

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

Version 1.7.8

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

Version 1.7.7

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

Version 1.7.6

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

Version 1.7.5

  • 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

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

Version 1.7.3

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

Version 1.7.2

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

Version 1.7.1

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

Version 1.7.0

  • 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.
  • 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

  • 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

  • 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

  • Ghana (thanks jschwertfeger!).

Version 1.6.4

  • Fix for Ireland’s VoIP numbers.

Version 1.6.3

Version 1.6.1/1.6.2

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

Version 1.6.0

  • 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.
  • The above change also allows for call-through numbers into offices etc.

Version 1.5.2

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

Version 1.5.1

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

Version 1.5.0

  • 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

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

Version 1.4.4

  • Singapore, Thailand.

Version 1.4.3

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

Version 1.4.2

  • 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

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

Version 1.4.0

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

Version 1.3.5

  • Lithuania. Croatia.

Version 1.3.4

  • Slovakia.

Version 1.3.3

  • Australia.

Version 1.3.2

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

Version 1.3.1

  • Finland.

Version 1.3.0

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

Version 1.2.11

  • Denmark, Norway. Skøl!

Version 1.2.10

Version 1.2.9

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

Version 1.2.8

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

Version 1.2.7

  • 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

  • Italy.

Version 1.2.5

  • Portugal. Polish landline (not mobile).

Version 1.2.4

  • Malaysia.

Version 1.2.3

  • South Korea.

Version 1.2.2

  • China.

Version 1.2.1

  • Turkey.

Version 1.2.0

  • Removed dependency on active support.

Version 1.1.9

  • Made the gem substantially smaller.

Version 1.1.8

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

Version 1.1.7

  • Afghanistan. Venezuela.

Version 1.1.6

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

Version 1.1.5

  • Peru. Brasil. Chile.

Version 1.1.3

  • Romania.

Version 1.1.2

  • Sweden. Russia.

Version 1.1.1

  • The Netherlands (Thanks alloy and manfred!).

Version 1.1.0

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

Version 1.0.1

  • Descriptions and dependencies changed.

Version 1.0.0

  • First release! Lots of countries.