nexio_activemerchant 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fee4e8586b27556107241251a935bdc43ed0a5a6071511a0307b3c2542d891f
|
4
|
+
data.tar.gz: 8adc6b9e898e8b41016f380854c0450f31b21e033134e921f97e8d63d7f47886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dcf35fb8da06141ed952109bccd03fdbb885325237210b2d17fa22291708e17b3ce3e0bcb330b8d8d5a447d11b7a87dd35c26851572f0115515c2c1e60b76d4
|
7
|
+
data.tar.gz: 4b1421517e5a04defdd269948cd6a72de85a8c90589a00fd3ca39ba02b892abd753aa119f7fffb7f9aeb48c8553111fb98b36e89414326c5ba79702a0493fbcc
|
@@ -18,8 +18,8 @@ module ActiveMerchant
|
|
18
18
|
|
19
19
|
if empty?(brand)
|
20
20
|
errors << [:brand, 'is required'] if own_form
|
21
|
-
|
22
|
-
errors << [:brand, 'is invalid']
|
21
|
+
elsif !self.class.card_companies.include?(brand)
|
22
|
+
errors << [:brand, 'is invalid']
|
23
23
|
end
|
24
24
|
|
25
25
|
errors << [:encrypted_number, 'is required'] if empty?(encrypted_number)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexio_activemerchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Whitespectre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|