Permalink
Switch branches/tags
Nothing to show
Commits on Mar 27, 2012
  1. Added Gitignore

    Narnach committed Mar 27, 2012
  2. Added German mobile numbers

    Narnach committed Mar 27, 2012
  3. Ruby 1.9 encoding headers

    Narnach committed Mar 27, 2012
Commits on Sep 13, 2011
  1. Tightened restrictions on Spanish mobile numbers

    Narnach committed Sep 13, 2011
    07yxxxxxxx can't have a 0 as the y.
    Updated auto-correction rules to take this into account as well.
Commits on Jul 12, 2011
  1. Normalized number uses prefix instead of country as prefix

    Narnach committed Jul 12, 2011
    This only affects you if you use the custom formats introduced in the commit of two hours ago.
  2. NumberRecognizer.add_format supports :country_code parameter, added p…

    Narnach committed Jul 12, 2011
    …refix
    
    When using the default NumerRecognizer, country and prefix are the same.
    When using custom formats, you can add a :country_code which overrides the country value returned by number recognizer.
    The use case I have for this is when we have fake msisdns generated in a 89x prefix range (officially not assigned to any country), we can still say that it belongs to a Dutch person with country code 31.
Commits on May 9, 2011
Commits on Apr 20, 2011
  1. Regexp style consistency

    Narnach committed Apr 20, 2011
  2. Support 3519{0-9} prefix for portugal, not just the old 3519[136] prefix

    Narnach committed Apr 20, 2011
    The old prefix was valid 10 years ago, now there are more mobile numbers and operators
Commits on Feb 22, 2011
  1. Added NumberRecognizer#type back as a composite of country name and m…

    Narnach committed Feb 22, 2011
    …obile/landline status
Commits on Feb 21, 2011
  1. Updated readme

    Narnach committed Feb 21, 2011
  2. Replaced NumberRecognizer::KNOWN_FORMATS with NumberRecognizer.add_fo…

    Narnach committed Feb 21, 2011
    …rmat
    
    * Added NumberRecognizer.add_format, to add number formats
      * It takes a hash with 3 parameters: :country, :mobile, :format
      * The old formats have been ported to the new format, renaming some for consistency
    * KNOWN_FORMATS has been removed. Formats are kept in NumberRecognizer.formats
    * Replaced NumberRecognizer#type with NumberRecognizer#country_name and NumberRecognizer#mobile?
    * Cleaned up specs to reduce duplicate checking of functionality
  3. Whitespace

    Narnach committed Feb 21, 2011
Commits on Jan 31, 2011
  1. Don't attempt to mangle a number into a Dutch one to 'correct' it

    Narnach committed Jan 31, 2011
    This feature starts to collide with other countries, so that's not good.
Commits on Jan 4, 2011
  1. Numer correction no longer requires a leading zero for local numbers

    Narnach committed Jan 4, 2011
    It is kinda silly to bounce the number on a missing zero...
Commits on Oct 1, 2010
  1. added Portugal mobile support

    smeevil committed Oct 1, 2010
Commits on Jun 22, 2010
  1. 00447 is England mobile

    Narnach committed Jun 22, 2010
Commits on May 4, 2010
  1. Allow a country bias for number correction

    Narnach committed May 4, 2010
    This is relevant to discern between Belgian and Australian numbers
Commits on Mar 30, 2010
Commits on Jan 12, 2010
  1. Added link to Lighthouse

    Narnach committed Jan 12, 2010
  2. Added fresnel config

    Narnach committed Jan 12, 2010
Commits on Jan 8, 2010
  1. valid_or_correct? changed to valid_or_correct_mobile?

    Narnach committed Jan 8, 2010
    I'm only interested in Dutch and Belgian mobile numbers, so just be specific here.
  2. Added readme + license

    Narnach committed Jan 8, 2010
  3. Added valid_or_correct?

    Narnach committed Jan 8, 2010