Detect credit card information.
Add this line to your application's Gemfile:
gem 'credit_card_reader'
And then execute:
$ bundle
Or install it yourself as:
$ gem install credit_card_reader
require "credit_card_reader"
detector = CreditCardReader::Detector.new
detector.detect("0123456789012345")
bundle exec rspec