moeffju-luhn 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -3
- data/lib/luhn/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -6,13 +6,17 @@ Adds methods to Fixnum and String to generate and validate Luhn checksums.
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem 'luhn', :
|
9
|
+
gem 'moeffju-luhn', :require => 'luhn'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install moeffju-luhn
|
18
|
+
|
19
|
+
The gem's name is 'luhn', so you need to `require luhn`.
|
16
20
|
|
17
21
|
## Usage
|
18
22
|
|
@@ -33,7 +37,7 @@ And for `String`s:
|
|
33
37
|
```
|
34
38
|
'4 10041064 8'.luhn? #=> true
|
35
39
|
'4 10041064'.luhn #=> "8"
|
36
|
-
'4 10041064'.luhn! #=> "
|
40
|
+
'4 10041064'.luhn! #=> "4100410648"
|
37
41
|
```
|
38
42
|
|
39
43
|
## Contributing
|
data/lib/luhn/version.rb
CHANGED