magnet lets you parse track data from magnetic stripe cards. Currently supports tracks 1 & 2 from bank cards.
Samuel Kadolph
gem "magnet", "~> 1.0.0"