Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Mar 27, 2012
  1. Added Gitignore

    authored
  2. Added German mobile numbers

    authored
  3. Ruby 1.9 encoding headers

    authored
Commits on Sep 13, 2011
  1. Tightened restrictions on Spanish mobile numbers

    authored
    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

    authored
    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…

    authored
    …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

    authored
  2. Support 3519{0-9} prefix for portugal, not just the old 3519[136] prefix

    authored
    The old prefix was valid 10 years ago, now there are more mobile numbers and operators
Commits on Feb 22, 2011
Commits on Feb 21, 2011
  1. Updated readme

    authored
  2. Replaced NumberRecognizer::KNOWN_FORMATS with NumberRecognizer.add_fo…

    authored
    …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

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

    authored
    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

    authored
    It is kinda silly to bounce the number on a missing zero...
Commits on Oct 1, 2010
  1. @smeevil

    added Portugal mobile support

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

    authored
Commits on May 4, 2010
  1. Allow a country bias for number correction

    authored
    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

    authored
  2. Added fresnel config

    authored
Commits on Jan 8, 2010
  1. valid_or_correct? changed to valid_or_correct_mobile?

    authored
    I'm only interested in Dutch and Belgian mobile numbers, so just be specific here.
  2. Added readme + license

    authored
  3. Added valid_or_correct?

    authored
Something went wrong with that request. Please try again.