catarse_pagarme 2.9.4 → 2.9.5

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: 1a0839ab83aebe94779c6e7bb9c2f253246ed255
4
- data.tar.gz: 3e71df65be12edeee2863eb6d2033b4b6e4569bc
3
+ metadata.gz: e72f0b4cc55c672bf850cc16cf19de9c4832b63c
4
+ data.tar.gz: 26b1102b44a4d4730cdc0bbdbaa176c2a766c975
5
5
  SHA512:
6
- metadata.gz: d5c5f15cdef1aad872906c283e451093e504a39bc19a0e4f40e48471191d119e0295af01ef83c48136d1aefd09af4456b8b7ec02386622c96681a8e40b73647b
7
- data.tar.gz: e15d69cf411abd80e6c5149284c752f5f12210c3ebc1a0e8e23234bdfc51ddf30c94052e243b2858c25aa74a310c98210d569fa275eb50947d65609e12a6778c
6
+ metadata.gz: 90bbf83877040e6c3b0134982f60216c7d2609d90330335df6a35f7f565ca4fb16cd41bdeac19408d026455d875c843ad4d02ab7755bfb4e39c0727f99c6a277
7
+ data.tar.gz: 6536b98846b8fbb1db90447c4c936cc53b743674a90bb286598549265e27f3012c30a04de2e815b12ec5ca308156f4b9a1b90e89e97f39e9fb503412e50616f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.9.4)
4
+ catarse_pagarme (2.9.5)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -71,7 +71,9 @@ GEM
71
71
  mail (2.6.4)
72
72
  mime-types (>= 1.16, < 4)
73
73
  method_source (0.8.2)
74
- mime-types (2.99.2)
74
+ mime-types (3.0)
75
+ mime-types-data (~> 3.2015)
76
+ mime-types-data (3.2016.0221)
75
77
  mini_portile (0.6.2)
76
78
  minitest (5.8.1)
77
79
  multi_json (1.12.1)
@@ -115,10 +117,10 @@ GEM
115
117
  thor (>= 0.18.1, < 2.0)
116
118
  rake (10.4.2)
117
119
  redis (3.2.2)
118
- rest-client (1.8.0)
120
+ rest-client (2.0.0)
119
121
  http-cookie (>= 1.0.2, < 2.0)
120
- mime-types (>= 1.16, < 3.0)
121
- netrc (~> 0.7)
122
+ mime-types (>= 1.16, < 4.0)
123
+ netrc (~> 0.8)
122
124
  rspec-core (3.3.2)
123
125
  rspec-support (~> 3.3.0)
124
126
  rspec-expectations (3.3.1)
@@ -31,7 +31,7 @@ module CatarsePagarme
31
31
  def bank_account_attributes
32
32
  account = balance_transfer.project.account
33
33
 
34
- {
34
+ bank_account_attrs = {
35
35
  bank_account: {
36
36
  bank_code: (account.bank.code || account.bank.name),
37
37
  agencia: account.agency,
@@ -42,6 +42,9 @@ module CatarsePagarme
42
42
  document_number: account.owner_document
43
43
  }
44
44
  }
45
+
46
+ bank_account_attrs[:bank_account].delete(:agencia_dv) if account.agency_digit.blank?
47
+ return bank_account_attrs
45
48
  end
46
49
 
47
50
  def configure_pagarme
@@ -32,7 +32,7 @@ module CatarsePagarme
32
32
  def bank_account_attributes
33
33
  account = balance_transfer_ping.balance_transfer.project.account
34
34
 
35
- {
35
+ bank_account_attrs = {
36
36
  bank_account: {
37
37
  bank_code: (account.bank.code || account.bank.name),
38
38
  agencia: account.agency,
@@ -43,6 +43,9 @@ module CatarsePagarme
43
43
  document_number: account.owner_document
44
44
  }
45
45
  }
46
+
47
+ bank_account_attrs[:bank_account].delete(:agencia_dv) if account.agency_digit.blank?
48
+ return bank_account_attrs
46
49
  end
47
50
 
48
51
  def configure_pagarme
@@ -122,7 +122,7 @@ module CatarsePagarme
122
122
  def bank_account_attributes
123
123
  bank = payment.user.bank_account
124
124
 
125
- {
125
+ bank_account_attrs = {
126
126
  bank_account: {
127
127
  bank_code: (bank.bank_code || bank.name),
128
128
  agencia: bank.agency,
@@ -133,6 +133,9 @@ module CatarsePagarme
133
133
  document_number: bank.owner_document
134
134
  }
135
135
  }
136
+
137
+ bank_account_attrs[:bank_account].delete(:agencia_dv) if bank.agency_digit.blank?
138
+ return bank_account_attrs
136
139
  end
137
140
 
138
141
  def configure_pagarme
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.9.4"
2
+ VERSION = "2.9.5"
3
3
  end
@@ -0,0 +1,2 @@
1
+ class BalanceTransferPing < ActiveRecord::Base
2
+ 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.9.4
4
+ version: 2.9.5
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-07-26 00:00:00.000000000 Z
12
+ date: 2016-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -191,6 +191,7 @@ files:
191
191
  - spec/dummy/app/mailers/.keep
192
192
  - spec/dummy/app/models/.keep
193
193
  - spec/dummy/app/models/balance_transfer.rb
194
+ - spec/dummy/app/models/balance_transfer_ping.rb
194
195
  - spec/dummy/app/models/bank.rb
195
196
  - spec/dummy/app/models/bank_account.rb
196
197
  - spec/dummy/app/models/category.rb
@@ -289,6 +290,7 @@ test_files:
289
290
  - spec/dummy/app/mailers/.keep
290
291
  - spec/dummy/app/models/.keep
291
292
  - spec/dummy/app/models/balance_transfer.rb
293
+ - spec/dummy/app/models/balance_transfer_ping.rb
292
294
  - spec/dummy/app/models/bank.rb
293
295
  - spec/dummy/app/models/bank_account.rb
294
296
  - spec/dummy/app/models/category.rb