catarse_pagarme 2.10.5 → 2.10.6

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: 727c29ca82562aea7996c7ff7d66d50c660f91e1
4
- data.tar.gz: bc2992e38224690196181c66fbb49db21d7a5d81
3
+ metadata.gz: 48ba445850d1c02b29c64df8d6f7173c1414dcb4
4
+ data.tar.gz: 6613c4cef2ca884c12449a4bcca460772d5ca947
5
5
  SHA512:
6
- metadata.gz: b758b0d85062d652698d9b56a4d70bc0eae9db4561140e6322877b233ea5bc3bb025ab5602682d8fc7cce47e476046be6e86a8e1ea427f5d68d0bd757550e401
7
- data.tar.gz: 451dad83213ee5da5ed045d86a4d7262a30daffecc1a5c8dc2164893ae21113e5ccb3fc4fea26d4ae0823cb603ab9cb8d20cd87990bcdb35c83bb94dd1ec7364
6
+ metadata.gz: c3b5d7aaca949261724e2c824c2997bfd1f7440276bd23f7ecef8a087b6d9c0584bc656f4aaf6e409d83390c4b4aff410b08f2afce85137f72b2427e6f475c16
7
+ data.tar.gz: 1a346082e8d3f90e8121404e4477af8dd7c2272d35433e70aff10cd87946acce18420c7fec6069c7690a64c2066064ab184e1220fdcdccd540b525a6dbba4080
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.10.5)
4
+ catarse_pagarme (2.10.6)
5
5
  pagarme (= 2.1.4)
6
6
  rails (~> 4.0)
7
7
  sentry-raven
@@ -29,15 +29,15 @@ module CatarsePagarme::BankAccountConcern
29
29
 
30
30
  def attributes_parsed_to_pagarme
31
31
  pagarme_params = {
32
- bank_code: self.bank.try(:code),
33
- agencia: self.agency,
34
- conta: self.account,
35
- conta_dv: self.account_digit,
36
- legal_name: self.user.name[0..29],
37
- document_number: self.user.cpf,
38
- type: self.account_type
32
+ bank_code: bank.try(:code),
33
+ agencia: agency,
34
+ conta: account,
35
+ conta_dv: account_digit,
36
+ legal_name: user.name.try(:[], 0..29),
37
+ document_number: user.cpf,
38
+ type: account_type
39
39
  }
40
- pagarme_params[:agencia_dv] = self.agency_digit unless self.agency_digit.blank?
40
+ pagarme_params[:agencia_dv] = agency_digit unless agency_digit.blank?
41
41
  pagarme_params
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.10.5"
2
+ VERSION = "2.10.6"
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.10.5
4
+ version: 2.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva