check_digit 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +6 -3
- data/lib/check_digit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmYxMDFkYTk2NDZmN2RkMzMzNzg0YzA3YTc5ZmI5ZDBmZjdmOGNmMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzlmYmYzY2M5Y2FhZTg1OWIxZGUzMGJjOTE3MzhmMmQzZWFmMTFmNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTliN2ZkYzNjMGNiNzBhN2IyYjhmNTViZWQ0M2YxYjdhNzUxNTgzMmZkNzE1
|
10
|
+
MWY2OTIxNGU0NThmOTc0YTI0ODVjYjExODg3YWZiOWMxMjU4N2M0NDk3MDk5
|
11
|
+
YmYxYmRmMGE4ZGZjYjIwNDEzODU5YWM1MWQ2YzA1ZWViNWYyMzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MThmNTJhZDZmOTY0Mjc0NjA2NjlmMTYzNzgwZDhmNGYyYWI1ZjIzMjlmODli
|
14
|
+
ZjY2MjQwN2NhMGU0ZDVhZmNmN2RjMmQzZmU3ZWMyZjhkMjhiZDY0Njc1ZGY5
|
15
|
+
MDQwYmEyNTU2MGIwZDY4ZjcwZTcxYjBkMGM3ZGRkMzc0YTQ3MDY=
|
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
# CheckDigit
|
1
|
+
# CheckDigit
|
2
2
|
|
3
3
|
Ruby implementation of the Luhn, Damm and Verhoeff check digit algorithms
|
4
4
|
|
5
|
+
* [](http://badge.fury.io/rb/check_digit) is the latest released version
|
6
|
+
* For the version under development (master), check [version.rb](https://github.com/elitwin/check_digit/blob/master/lib/check_digit/version.rb)
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
Add this line to your application's Gemfile:
|
@@ -45,14 +48,14 @@ Source: http://www.augustana.ab.ca/~mohrj/algorithms/checkdigit.html
|
|
45
48
|
|
46
49
|
\* Not entirely sure if Luhn catches all phonetic errors, e.g. 13 instead of 30
|
47
50
|
|
48
|
-
|
51
|
+
*Legend*
|
49
52
|
1. Prevents all errors
|
50
53
|
2. Prevents most errors
|
51
54
|
3. Prevents some errors
|
52
55
|
4. Does not prevent any errors
|
53
56
|
|
54
57
|
## Algorithm Comparison - Performance
|
55
|
-
|
58
|
+
*50,000 iterations (time in seconds - lower is better)*
|
56
59
|
|
57
60
|
| Algorithm | Generate | Validate |
|
58
61
|
|:--------- | --------:| --------:|
|
data/lib/check_digit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_digit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Litwin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|