GitXplorerGitXplorer
a

luhn.cr

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a2742d1c57448d5b23cb094593e7bab245a81fa5

svg travis icon

aakzhan committed 8 years ago
Unverified
a3c26ff272b557817329ca4c112f50fe1da0d69c

MIT License badge in README.md

aakzhan committed 8 years ago
Unverified
d5384f8b498935813842f77b7b8d3b54c3a490b6

Travis badge

aakzhan committed 8 years ago
Unverified
9e781256936745b17bd2ffe6c4ca7da7d17014cc

Add spec for invalid numbers by @sfritz

aakzhan committed 8 years ago
Unverified
6fc0822e1d88267fef2d9ed14f518b5818371b99

This code is forked from https://github.com/rolfb/luhn-ruby.

aakzhan committed 8 years ago

README

The README file for this repository.

luhn.cr Build Status License: MIT

Very simple library to calculate and validate Luhn numbers.

Installation

Add this to your application's shard.yml:

dependencies:
  luhn:
    github: akzhan/luhn.cr

Usage

require "luhn"

number = "4111111111111111"

Luhn.valid? number
# => true

Credits

This shard is fork of luhn-ruby gem.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contributors