catarse_pagarme 2.6.2 → 2.6.3

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: 30809e9c36413ab244dffb52b0e37a4455b16236
4
- data.tar.gz: af0b66b4a3e788a616aa2c9098aa7d99effd7bf4
3
+ metadata.gz: bad8934cac5e7f3de2c0113e0690d572a233e220
4
+ data.tar.gz: 3d10604d9b64f6142e165660794982c1e2084aed
5
5
  SHA512:
6
- metadata.gz: 2a14521286514fdf2377f74913332ffdf3ada7050122cd418cb4eaa1523d82c9045522a97421b0104419fbe0f216ae778b922e1226141b1862a5840ea124fad0
7
- data.tar.gz: be3d00024a69a975f505c0ea91831973ae6639e0bf9230484103f19b5a3f8e40f893b015ffba4930d7a546cdbda0ec2f3629ff93b8d3e0fb33c07bd4f55664a4
6
+ metadata.gz: ba82861b55f44ff0e38d916a5272d86bbd9aa6e8f4e96bc14ebbf5b7eefb08a66090a4182b71758fe514695884f127f317512376ddaa75a826f7f0a3093a80ee
7
+ data.tar.gz: 8cfc966ffafe0a878a1f056c52e04d75a81a56b6829a24580241fb4a6cc3dc0646b11791f92005c73d3dae2045bde3b53e5cc2c849b384571f8c29e31933d567
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.6.2)
4
+ catarse_pagarme (2.6.3)
5
5
  pagarme (~> 1.9.8)
6
6
  rails (~> 4.0)
7
7
 
@@ -66,6 +66,11 @@ module CatarsePagarme
66
66
 
67
67
  def transaction
68
68
  @transaction ||= ::PagarMe::Transaction.find_by_id(self.payment.gateway_id)
69
+ if @transaction.kind_of?(Array)
70
+ @transaction.last
71
+ else
72
+ @transaction
73
+ end
69
74
  end
70
75
 
71
76
  def get_installment(installment_number)
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
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: 2.6.2
4
+ version: 2.6.3
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-04-14 00:00:00.000000000 Z
12
+ date: 2015-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails