catarse_pagarme 2.4.8 → 2.4.9

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
  SHA1:
3
- metadata.gz: ec4bf46c08fd53a8f3ad81da416096e0e563afa2
4
- data.tar.gz: d9261190185e65ca22869256d2fb2acbe942bfd6
3
+ metadata.gz: 102545aaa90e556cf8be86f2a9029f85568d7a3e
4
+ data.tar.gz: 8f8c037dc1e3d78e79cce1e4e2caadfd590abb4b
5
5
  SHA512:
6
- metadata.gz: f7851fb114360c92a62791d1dba99df0fa520f7c6ffce0db2a61f8ae43fd514d5387345f851282568de9c054554763f09b918bc03dddc9f09b864b4157f40020
7
- data.tar.gz: e46c9c5d8c1ae7d387d80728f60e7d4821f3cee9a4e4ab3b871a077d34a4fae6ddba5192931f883ffbf8e9ae0961d21ed5584ac16a9355191e8e375f72a21e54
6
+ metadata.gz: ef493484bbd2dc0372895c6e2c5f06586c3ebf621bce44bdc638d8bf1ee94e3f3b4f184ed4e823234594eacbde5e8b5accf3190008c204843b4a881c0b1ccc9b
7
+ data.tar.gz: 711bdd179df176ef971a82e052695cc0935c7835ab508f34f93d18d074bfe2e58055352f7d653626d67fe53695aa6010bc3d12d00aafac105c99e5ed160da0a0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.4.8)
4
+ catarse_pagarme (2.4.9)
5
5
  pagarme (~> 1.9.8)
6
6
  rails (~> 4.0)
7
7
 
@@ -12,6 +12,7 @@ module CatarsePagarme::FeeCalculatorConcern
12
12
  if self.contribution.acquirer_name == 'stone'
13
13
  self.contribution.installments > 1 ? tax_calc_for_installment(stone_tax) : tax_calc(stone_tax)
14
14
  else
15
+ return nil if self.contribution.card_brand.blank? # Here we depend on the card_brand
15
16
  if self.contribution.card_brand == 'amex'
16
17
  self.contribution.installments > 1 ? tax_calc_for_installment(cielo_installment_amex_tax) : tax_calc(cielo_installment_not_amex_tax)
17
18
  else
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.4.8"
2
+ VERSION = "2.4.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.8
4
+ version: 2.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva