carr/phone — pull request #35 by dramalho (2013-02-05 15:57:26+00:00)
Title: Added area code information for Ireland and changed the split_to_parts method a bit - also upgraded the code to match what's inside the actual gem (1.0 < 1.1)

So, a couple of things here :
* Added Irish Area Code regexp (from http://en.wikipedia.org/wiki/List_of_dialling_codes_in_the_Republic_of_Ireland)
* Changed the way split_to_parts worked . Detect format, when both the short and really_short format match will always choose the really_short format (the one with potentially less information) . The problem is some numbers are really small (i.e. http://en.wikipedia.org/wiki/Telephone_numbers_in_the_Republic_of_Ireland : Area codes have varied in length, *between one and four digits*, and subscribers' numbers between *four and seven* digits but a migration to a standard format, (0xx) xxx xxxx, is in progress.) and they would trigger the really_small format even though they have area_code information. So, what I did was to change the split_to_parts to try the :short format IF no extra area_code information has been given, since trying the :really_short one without having that optional information in would fail anyway.

Thanks :)