catarse_pagarme 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 8eefd863b2b6d2302f3925cd7b04f5363b64d681
4
- data.tar.gz: dc85367d062a5f30fb2eb4c2b710b209900b1fd5
3
+ metadata.gz: 48f66f6f9bfa9f45d26efacf227457c81910d7af
4
+ data.tar.gz: cc2cd6fc2fb50b2c933c51b426fb56d13ca9b31b
5
5
  SHA512:
6
- metadata.gz: b41ba15579bce2ac67921611123e912327e5b761f03136e609b928787db5f16909c8c37b254c59f9db08bb746e040ccdd1e8bc7776e1d3f6c6aca912f2e8119c
7
- data.tar.gz: 9596b52bf901061ceb373c84c0ac290331270b0d73902369df233c7d4a48e7424edcb7154073b649bc3c158fd70bdbcd4ba1e1818faef8c98531ec8ab4bbfb13
6
+ metadata.gz: b5b94a9a12c9bbba69be8ea2a9b07e5eac0818ad1c01c1e02c5aac2d003fd080c4b410f60598910a41f780f94ddb0b2eb97d4984de3a1224751558c26400ea66
7
+ data.tar.gz: d5b1977e553a5778e5df430f767999b7a5e484aaa775ad72ee9ba6a79ecf53cc387cc064761c2f6164302c6c1eed38193b1a69b513fa1b3575ca17e36a45d3a3
@@ -1,5 +1,5 @@
1
1
  module CatarsePagarme
2
- class CreditCardBaseController < ApplicationController
2
+ class CreditCardBaseController < CatarsePagarme::ApplicationController
3
3
 
4
4
  protected
5
5
 
@@ -63,9 +63,9 @@ module CatarsePagarme
63
63
 
64
64
  def get_fee(payment_method)
65
65
  if payment_method == PaymentType::SLIP
66
- CatarsePagarme.configuration.slip_tax
66
+ CatarsePagarme.configuration.slip_tax.to_f
67
67
  else
68
- (self.contribution.value * CatarsePagarme.configuration.credit_card_tax.to_f) + CatarsePagarme.configuration.credit_card_cents_fee
68
+ (self.contribution.value * CatarsePagarme.configuration.credit_card_tax.to_f) + CatarsePagarme.configuration.credit_card_cents_fee.to_f
69
69
  end
70
70
  end
71
71
 
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-29 00:00:00.000000000 Z
12
+ date: 2014-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails