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
- Fork it ( https://github.com/[my-github-username]/dropmire/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request