catarse_pagarme 2.8.9 → 2.8.10

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: c2443b9ba729f2a1407ef3a274edba6082c76614
4
- data.tar.gz: 833a7473cef82549a012993fbbac76a9e1ec666a
3
+ metadata.gz: e4ff6a2abae43d47e7bd246f189fe821adc29787
4
+ data.tar.gz: fd977d63317b5425cc9ec52158f3a658c0528719
5
5
  SHA512:
6
- metadata.gz: eb7398738c1f43e71e9204a1cb581d44ee5824d6d78ea271512d96f93e1f1005aab5eb20efcc5b0e060880abde98375c5f016c93d9b2821f76f043aee90b5226
7
- data.tar.gz: 734e501e94fc9a0917fa8f841aedcdfa043208b04f16e3e7f993c8b14d68cd18c7e9de45c8f573ae0ef3142b36a3f1240fceac1009c33a7853f51fb2dc159f17
6
+ metadata.gz: cae899cc5bb0432df60a9483c4a54cf31e609e76ed57a8b7ff3fd2a9367c34a734aa08996c8bba613ecc93d49dc4ab91f3dc657a2a2d791906841bb12e9b1744
7
+ data.tar.gz: 2fdb34f6cf1a1071cd30d42e5624a47934bbae9f8333391dcaf56c1676e2872add144739190006684ce8ad3aa0916a1795a9bd561126982b582421ca269dd07b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.8.9)
4
+ catarse_pagarme (2.8.10)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -31,15 +31,13 @@ module CatarsePagarme
31
31
  end
32
32
 
33
33
  def fill_acquirer_data
34
- if payment.gateway_data.nil? || payment.gateway_data["acquirer_name"].nil? || payment.gateway_data["acquirer_tid"].nil?
35
- data = payment.gateway_data || {}
36
- payment.gateway_data = data.merge({
37
- acquirer_name: transaction.acquirer_name,
38
- acquirer_tid: transaction.tid,
39
- card_brand: transaction.try(:card_brand)
40
- })
41
- payment.save
42
- end
34
+ data = payment.gateway_data || {}
35
+ payment.gateway_data = data.merge({
36
+ acquirer_name: transaction.acquirer_name,
37
+ acquirer_tid: transaction.tid,
38
+ card_brand: transaction.try(:card_brand)
39
+ })
40
+ payment.save
43
41
  end
44
42
 
45
43
  def refund
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.8.9"
2
+ VERSION = "2.8.10"
3
3
  end
@@ -11,7 +11,7 @@ describe CatarsePagarme::ApplicationHelper, type: :helper do
11
11
 
12
12
  context "#installments_for_select" do
13
13
  subject { installments_for_select(payment) }
14
- it { expect(subject.size).to eq(6) }
14
+ it { expect(subject.size).to eq(3) }
15
15
  it { expect(subject[0][0]).to eq('1x $100.00 ') }
16
16
  it { expect(subject[0][1]).to eq(1) }
17
17
  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.8.9
4
+ version: 2.8.10
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: 2016-04-07 00:00:00.000000000 Z
12
+ date: 2016-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails