Skip to content

connorjacobsen/dropmire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropmire

Dropmire is a gem for collecting data from scanning a government issued Driver's License, and building a useful Ruby object based on the correct state.

Note: Not yet ready for production applications.

Installation

Add this line to your application's Gemfile:

gem 'dropmire'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dropmire

Usage

Install the gem:

gem install dropmire

Or add to Gemfile:

gem 'dropmire', '~> 0.1.2'

Do cool stuff

person = Dropmire::Identity.new("""Your scanned input here!""")

# use your super cool new object
person.first_name
# => 'John'

person.middle_name
# => 'Pearce'

person.last_name
# => 'Doe'

person.date_of_birth
# => '1993-06-07'

person.drivers_license_number
# => 'D21242193207'

person.drivers_license_expiration_date
# => '2015-06-07'

person.street
# => '1234 Main St'

person.city
# => 'Tallahassee'

person.state
# => 'State'

person.zipcode
# => '12345'

Testing

To run the test suite:

rspec spec/

# or the individual files
rspec spec/parser_spec.rb
rspec spec/identity_spec.rb

Contributing

  1. Fork it ( https://github.com/[my-github-username]/dropmire/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Ruby gem for parsing data scanned from driver's licenses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages