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: bd65ce67efd969bad7d5b87a78fb21aae19d1871
4
- data.tar.gz: 30a1bce368b2f75c13368ab18772ae925682ae0a
3
+ metadata.gz: f6e159b0f01e35b07f2fddc9b20192d02874b284
4
+ data.tar.gz: d9c90a880e491617127cd160c2c0d361a85220d7
5
5
  SHA512:
6
- metadata.gz: a8b13dd183d2e2a4b0c3223adf0cb0941a60a68b551949acf6adc038a2aa5569524d1a8ff9b71ed7ca693d9cd9b8d777376fff0abaf03564d602d73171ea9458
7
- data.tar.gz: ddbdeca569f7335e684f2390c6f83546747e0eb798146422d4ca9d67920a0a79241f68ec528872dfba5cfc88888cb563a11f053b2a5edc91a136be49bb885a5a
6
+ metadata.gz: b80b088674a4138e21154837815048247f5ac244945cdaffa42d1a90061cf12b75d460c83a49d423914449b9ada19956fdd530356530c7e9c221e9d8bf1b11b9
7
+ data.tar.gz: 486a80b3ed63872f4d84da07da3820d3f9643cd0d430fb051ddffa15a5df44a5201d0b494a5b70f7634f58816471626dc739587d68efab0e34690a0b4f602846
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.7.9)
4
+ catarse_pagarme (2.7.10)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -70,7 +70,7 @@ module CatarsePagarme
70
70
 
71
71
  def transaction
72
72
  gateway_id = self.payment.gateway_id
73
- raise "no gateway_id present" unless gateway_id.present?
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
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.7.9"
2
+ VERSION = "2.7.10"
3
3
  end
@@ -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 "expect to raises an error" do
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.9
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-14 00:00:00.000000000 Z
12
+ date: 2015-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails