Skip to content

Latest commit

 

History

History
989 lines (516 loc) · 19 KB

history.textile

File metadata and controls

989 lines (516 loc) · 19 KB

Version 2.18.12

  • Remove an issue with the DSL code in Ruby 2.7 (#452 and #454).

Version 2.18.11

  • Japan (#453)

Version 2.18.10

  • Nigeria (#451)

Version 2.18.9

  • San Marino (#449)

Version 2.18.8

  • Austria (#448)

Version 2.18.7

  • Germany (#447)

Version 2.18.6

  • Argentina (#444)

Version 2.18.5

  • Argentina (#443)

Version 2.18.4

  • Egypt (#442)

Version 2.18.3

  • Germany (E-Plus has NDC 1577)

Version 2.18.2

  • Philippines (#438)

Version 2.18.1

  • Freeze Strings where useful.

Version 2.18.0

  • Add Phony::Config.load as an option to only load part of the CCs of the library. See the README for details.

Version 2.17.3

  • Israel (#437)

Version 2.17.2

  • Ireland (#433 and #434)

Version 2.17.1

  • Hong Kong (#432)

Version 2.17.0

  • Fix issue reported in #428 where a missing local part caused an error.

Version 2.16.11

  • Malaysia (#427)

Version 2.16.10

  • Russia & Ukraine (#420)
  • Vietnam (#423)
  • Japan (#424)
  • Germany (#425)

Version 2.16.9

  • Vietnam (#421)

Version 2.16.8

  • PNG (#419)

Version 2.16.7

  • UAE (#418)

Version 2.16.6

  • Bulgaria (#17)
  • Malaysia (#414)
  • UAE (#416)

Version 2.16.5

  • Bulgaria (#407)
  • Kosovo (#410)
  • Peru (#411)

Version 2.16.4

  • Madagascar (#399)
  • New Zealand (#401)
  • South Korea (#402)
  • Remove dependency on #blank? (#403)
  • Satellite phone support (#404, #405)

Version 2.16.3

  • Improvements for Austria (#397)

Version 2.16.2

  • Improvements for Sweden (#396)

Version 2.16.1

  • Improvements for Indonesia (#393, #394)

Version 2.16.0

  • The Phony class methods normalize/normalize/format/format! all raise variants of ArgumentErrors now (#385)

Version 2.15.49

  • Improvements for New Zealand (#391)
  • Improvements for Cambodia (#389)

Version 2.15.48

  • Improvements for Singapore (#388)

Version 2.15.47

  • Improvements for Somalia (#383)

Version 2.15.46

  • Improvements for Slovakia (#381)

Version 2.15.45

  • Improvements for Macao (#378)
  • Improvements for Zambia (#375)
  • Improvements for Croatia (#375).
  • Improvements for Cambodia (#370).

Version 2.15.44

  • Improvements for Cambodia (#372).
  • Improvements for Somalia (#371).

Version 2.15.43

  • Improvements for Somalia (#369).
  • Improvements for Congo (#368).
  • Improvements for Poland (#367)

Version 2.15.42

  • Improvements for Saudi Arabia (#366).
  • Improvements for Belgium (#365)

Version 2.15.41

  • Improvements for error messages (#362).
  • Improvements for Russia (#363)

Version 2.15.40

  • Improvements for Hungary (#359).
  • Improvements for Italy (#360)

Version 2.15.39

  • Improvements for Belgium (#353).
  • Improvements for Travis (#355, #356)
  • Improvements for UAE (#357).

Version 2.15.38

  • Improvements for Austria (#352).

Version 2.15.37

  • Improvements for Austria (#351).

Version 2.15.36

  • Improvements for Switzerland (#348).

Version 2.15.35

  • Improvements for Russia (#347).

Version 2.15.34

  • Improvements for Brazil (#345).

Version 2.15.33

  • Improvements for Bosnia and Herzegowina (#343).

Version 2.15.32

  • Improvements for Vietnam (#341).

Version 2.15.31

  • Improvements for Australia (Discussion in #339).

Version 2.15.30

  • Improvements for Equador (#337).
  • Improvements for Indonesia (#338).
  • Improvements for Albania (#340).

Version 2.15.29

  • Improvements for Finland (#335).

Version 2.15.28

  • Improvements for Sweden (#331).
  • Improvements for UAE (#332).

Version 2.15.27

  • Improvements for Brazil (#327).
  • Improvements for Austria (#328).

Version 2.15.26

  • Improvements for Austria (#325).

Version 2.15.24/25

  • Improvements for Brazil (#323).

Version 2.15.23

  • Improvements for Ukraine (#322).

Version 2.15.22

  • Improvements for Mauritius, Cameroon, Guinea-Bissau and Dem. Rep. Congo (#321).

Version 2.15.21

  • Improvements for Sweden (#318).

Version 2.15.20

  • Improvements for Serbia (#317).

Version 2.15.19

  • Improvements for Indonesia (#316).

Version 2.15.18

  • Improvements for Sweden (#313).
  • Improvements for Austria (#314).

Version 2.15.17

  • Improvements for Luxembourg (#311).
  • Improvements for The Netherlands (#312).

Version 2.15.16

  • Improvements for Macao (#308).

Version 2.15.15

  • Improvements for Belgium (#302).

Version 2.15.14

  • Improvements for Saudi Arabia (#301).

Version 2.15.13

  • Improvements for Serbia (#300).

Version 2.15.12

  • Improvements for Romania (#299).

Version 2.15.11

  • Improvements for Australia (#298).

Version 2.15.10

  • Improvements for Belgium (#296).

Version 2.15.9

  • Improvements for Austria (#295).

Version 2.15.8

  • Improvements for Macedonia (#293).

Version 2.15.7

  • Improvements for Sweden (#292).

Version 2.15.6

  • Improvements for Australia (#291).

Version 2.15.5

  • Improvements for Brazil (#289).

Version 2.15.4

  • Improvements for Thailand (#286).

Version 2.15.3

  • Improvements for Austria (#283).

Version 2.15.2

  • Improvements for Finland (#282).

Version 2.15.1

  • Improvements for Belgium (#279).

Version 2.15.0

  • Trunk code will only return digits on #format (#277).

Version 2.14.15

  • Improvements for Myanmar (#275).

Version 2.14.14

  • Improvements for Cambodia (#271).

Version 2.14.13

  • Improvements for China (#269).

Version 2.14.12

  • Improvements for Cambodia (#268).

Version 2.14.11

  • Improvements for Zimbabwe (#267).

Version 2.14.10

  • Improvements for the French territories (#265).

Version 2.14.9

  • Improvements for El Salvador (#264).

Version 2.14.8

  • Improvements for Ireland (#263).

Version 2.14.7

  • Improvements for Sweden (#262).

Version 2.14.6

  • Improvements for Big Sochi and Primorsky Krai (#234).

Version 2.14.5

  • Improvements for Finland (#260).

Version 2.14.4

  • Maintenance release (#259).

Version 2.14.3

  • Improvements for Cambodia (#254).

Version 2.14.2

  • Improvements for Brazil (#256).

Version 2.14.1

  • Improvements for Japan (#253).

Version 2.14.0

  • Major change to formatting NANP numbers (including the US): NDC is now by default wrapped in parentheses, and the local part of the number is separated by dashes.

Version 2.13.0

  • Add trunk interpolation to Phony#format option format.

Version 2.12.14

  • Improvements for Belgium (#251).

Version 2.12.13

  • Improvements for Zambia (#248).

Version 2.12.12

  • Improvements for Austria (#246).

Version 2.12.11

  • Improvements for Côte d’Ivoire (#244).

Version 2.12.10

  • Improvements for Nigeria (#243).

Version 2.12.9

  • Fixes #242 (and improves) by removing only (0 instead of (0).

Version 2.12.8

  • Improvements for Italy (#241).

Version 2.12.7

  • Improvements for Japan (#239).

Version 2.12.6

  • Improvements for Japan (#239).

Version 2.12.5

  • Improvements for Romania (#238).

Version 2.12.4

  • Improvements for Italy (#237).

Version 2.12.3

  • Improvements for Italy, Egypt (#235, #236).

Version 2.12.2

  • Fix for NANP (see #232).

Version 2.12.1

  • Improvements for NANP (thanks, see #231).

Version 2.12.0

  • Add experimental trunk option to format.
    Phony.format('14152223333', :format => :national, :trunk => false).should eql '415 222 3333'

Version 2.11.1

  • Fix for Thailand (thanks, see #225, #228).

Version 2.11.0

  • Fix for national number formatting (thanks, see #227).

Version 2.10.5

  • Improvements for Nigeria (thanks, see #226).

Version 2.10.4

  • Improvements for Belgium (thanks, see #224).

Version 2.10.3

  • Improvements for French Polynesia (thanks, see #223).

Version 2.10.2

  • Improvements for Cambodian and Italian numbers (thanks, see #222).

Version 2.10.1

  • Improvements for Swedish numbers (thanks, see #217).

Version 2.10.0

  • Add default format, space, and local space options to country. See e.g. Russia for a default local_space.

Version 2.9.1

  • Improvements for Russian numbers (thanks, see #215).

Version 2.9.0

  • Add String to Phony.format. Usage:
    Phony.format('71234567890', :format => '+%{cc} (%{ndc}) %{local}').should eql '+7 (123) 45 67890'
  • Add :local_spaces option to Phony.format. Usage:
    Phony.format(‘41441231212’, :local_spaces => ‘-’).should eql ‘+41 44 123-12-12’

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 floere#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 floere#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.