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: ec3f8dfd4d750d78ce90d2df2b9c2af8d14c622812b7db61dab0c43fc333462e
4
- data.tar.gz: 256160687602fed6e849a3e8ca5cd612fba287ca4a17354c422f44c0378d4dba
3
+ metadata.gz: 3fee4e8586b27556107241251a935bdc43ed0a5a6071511a0307b3c2542d891f
4
+ data.tar.gz: 8adc6b9e898e8b41016f380854c0450f31b21e033134e921f97e8d63d7f47886
5
5
  SHA512:
6
- metadata.gz: afdf43d4a69d9e31a2bc50b5d8e90015e812be6e7a21f8f81dde56391ce2612b2e61c17badc82c02813ac4c534e83d83fb392f81c8f6bd6e7cde71c5272d3c0a
7
- data.tar.gz: 392b52af17aaa208f47f5a0c034836a9f45af7209b85b5e246c2b093c9cb0afd9f5907eecd24316be849f1a54118c1272b4eac471350f67e0eb88e9096ad16a7
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
- els
22
- errors << [:brand, 'is invalid'] unless self.class.card_companies.include?(brand)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NexioActivemerchant
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant