Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

fix the database generator and Number#valid? #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rubemz
Copy link

@rubemz rubemz commented Jun 11, 2013

closes #1

  • fix database_generator to include all possible valid formats
  • fix database_generator to exclude some invalid formats from the test examples
  • fix Number#valid? to check if the number matched both national and possible pattern. Also, if it matched one of the phone type patterns
  • add a spec to check all test examples are valid

patterns

fix the Number#valid? method to always check for all possible valid
number patterns
@rubemz
Copy link
Author

rubemz commented Jun 20, 2013

@sstephenson any thoughts on this PR?

@locochris
Copy link
Contributor

👍

@ryancheung
Copy link

@sstephenson Handle the pending PRs please! These guys had done great job.

@rubemz
Copy link
Author

rubemz commented Oct 3, 2013

@sstephenson @josh ping

@jmazzi
Copy link

jmazzi commented Feb 4, 2014

Hi @josh and @sstephenson! This project has been tremendously helpful for a few problems we needed to solve. Thanks very much for sharing it.

Are there any needed changes you would like to see in this pull request? It would be awesome if someone could give us some feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

global_phone_dbgen --test doesn't always generate valid phone numbers
4 participants