No commit activity in last 3 years
No release in over 3 years
Rails imei validator based on Luhn algorithm.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
>= 0
~> 13.0

Runtime

>= 3.0.0
 Project Readme

Ruby

RailsImeiValidator

Imei (International Mobile Equipment Identity) is based on Luhn algorithm. This gem is a simple active model validator for imei.

Installation

Add this line to your application's Gemfile:

gem 'rails_imei_validator'

And then execute:

$ bundle

Usage

class MyModel
  validates :imei_code, imei: true
end

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

Run tests

$ rake test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gcimmino/rails_imei_validator.