jan 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/jan/code_body.rb +1 -1
- data/lib/jan/version.rb +1 -1
- data/spec/jan/code_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f8becc9d54183c8d1cf62d1b6d9a7bdef63a84a3665aa2770745d58c3fb8f67
|
4
|
+
data.tar.gz: 5db39280c3810f914d61e6f3a656801e7aa38f1f028bdec7fa4417901b396dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9074880acb2b9b6a23e64534a77d0029df53f3c3c0f791d6b73ba18874ab1aff4c3395fe1897576b7e7f8bf20920097480a0f32f23c0925db49dfb81186c5f7e
|
7
|
+
data.tar.gz: 5cd5c301d286fc08375da7521f91f9ac6935c267cbe74a7b32efacfd82fb7a29604cb78e946b9a57cddcb89cee7943948f7252cb8e77cfc216c3d0383c4411a0
|
data/README.md
CHANGED
data/lib/jan/code_body.rb
CHANGED
data/lib/jan/version.rb
CHANGED
data/spec/jan/code_spec.rb
CHANGED
@@ -7,6 +7,8 @@ describe Jan::Code do
|
|
7
7
|
0000000000000
|
8
8
|
4901277241126
|
9
9
|
2000000000015
|
10
|
+
00000000
|
11
|
+
49123456
|
10
12
|
]
|
11
13
|
|
12
14
|
valid_codes.each do |valid_code|
|
@@ -18,8 +20,10 @@ describe Jan::Code do
|
|
18
20
|
invalid_codes = [
|
19
21
|
'11',
|
20
22
|
'123abc',
|
23
|
+
'4901277241127', #Invalid check digit
|
21
24
|
'4901277 241126',
|
22
25
|
'4901277 24112',
|
26
|
+
'49123457', # Invalid check digit
|
23
27
|
]
|
24
28
|
|
25
29
|
invalid_codes.each do |invalid_code|
|