credit_card_validations 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODhlZDJiZjYyYTZlZTIzMWI1ZjU3MGYyNmMyOGQ1M2FhODllYWI1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzJhZGYyODUzYjE5MzY0NTZmMmFlYzM3ZGQ2OWFmODBkZDViZGY1MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjdjZWJmNzkxODQ3NzUyZDFkNmFjMTRmZjJiYTgzNjBkNGQwM2M2NzRjY2Yx
|
10
|
+
MzRkZTJjOWQ0NmUwZDM0Y2ZjMzgwNjRjZDM4MTM4N2FkNzAwODFjMzc1MDc0
|
11
|
+
MTc3ZGU1ZGJjYjBjZjc5M2E3Y2U4ZjA0NDUwMmU1N2U0YWExNWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmUwNzlmNTlhOTA0MDZkODdhNTFhM2RiOTlhNTI0Y2VkMDk4YjE5N2Q3MzM3
|
14
|
+
NjcwZmM4Mjg2MWM1YmY5ZWQ5NjIyOWUwMGZlMTRlYTk4NGZmMWJjODI3OTll
|
15
|
+
YWZmZDdkZWU4YWFmYWJmZDFmOWJlZWY5ZmY3MDE2ODBkZDIzMjg=
|
@@ -12,3 +12,15 @@ module CreditCardValidations
|
|
12
12
|
autoload :Detector , 'credit_card_validations/detector'
|
13
13
|
autoload :Mmi, 'credit_card_validations/mmi'
|
14
14
|
end
|
15
|
+
|
16
|
+
|
17
|
+
CreditCardValidations::CardRules.rules.each do |name, rules|
|
18
|
+
rules.each do |rule_value|
|
19
|
+
CreditCardValidations::Detector.add_rule(name,
|
20
|
+
rule_value[:length],
|
21
|
+
rule_value[:prefixes],
|
22
|
+
rule_value[:skip_validation])
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|