catarse_pagarme 2.7.9 → 2.7.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: f6e159b0f01e35b07f2fddc9b20192d02874b284
|
4
|
+
data.tar.gz: d9c90a880e491617127cd160c2c0d361a85220d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b80b088674a4138e21154837815048247f5ac244945cdaffa42d1a90061cf12b75d460c83a49d423914449b9ada19956fdd530356530c7e9c221e9d8bf1b11b9
|
7
|
+
data.tar.gz: 486a80b3ed63872f4d84da07da3820d3f9643cd0d430fb051ddffa15a5df44a5201d0b494a5b70f7634f58816471626dc739587d68efab0e34690a0b4f602846
|
data/Gemfile.lock
CHANGED
@@ -70,7 +70,7 @@ module CatarsePagarme
|
|
70
70
|
|
71
71
|
def transaction
|
72
72
|
gateway_id = self.payment.gateway_id
|
73
|
-
|
73
|
+
return nil unless gateway_id.present?
|
74
74
|
|
75
75
|
@transaction ||= ::PagarMe::Transaction.find_by_id(gateway_id)
|
76
76
|
_transaction = @transaction.kind_of?(Array) ? @transaction.last : @transaction
|
@@ -111,10 +111,8 @@ describe CatarsePagarme::PaymentDelegator do
|
|
111
111
|
allow(payment).to receive(:gateway_id).and_return(nil)
|
112
112
|
end
|
113
113
|
|
114
|
-
it "
|
115
|
-
expect
|
116
|
-
delegator.transaction
|
117
|
-
}.to raise_error("no gateway_id present")
|
114
|
+
it "should be nil" do
|
115
|
+
expect(delegator.transaction).to eq(nil)
|
118
116
|
end
|
119
117
|
end
|
120
118
|
|
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.7.
|
4
|
+
version: 2.7.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: 2015-08-
|
12
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|