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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4ff6a2abae43d47e7bd246f189fe821adc29787
|
4
|
+
data.tar.gz: fd977d63317b5425cc9ec52158f3a658c0528719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cae899cc5bb0432df60a9483c4a54cf31e609e76ed57a8b7ff3fd2a9367c34a734aa08996c8bba613ecc93d49dc4ab91f3dc657a2a2d791906841bb12e9b1744
|
7
|
+
data.tar.gz: 2fdb34f6cf1a1071cd30d42e5624a47934bbae9f8333391dcaf56c1676e2872add144739190006684ce8ad3aa0916a1795a9bd561126982b582421ca269dd07b
|
data/Gemfile.lock
CHANGED
@@ -31,15 +31,13 @@ module CatarsePagarme
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def fill_acquirer_data
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
@@ -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(
|
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.
|
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-
|
12
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|