catarse_pagarme 2.9.11 → 2.9.12

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: ca734d1aa6a44eb78e90034f9292a79ddd936b51
4
- data.tar.gz: 7a3d50f274e092e1eacc22043f943aa8d7b519e7
3
+ metadata.gz: cb6a0583529d793c19b9392492109e2a35f292ab
4
+ data.tar.gz: f8cac670bc78503fcef0717569c18946e82c5774
5
5
  SHA512:
6
- metadata.gz: 7fb28deaf09964a64b8708e18f28b8ba56acb0e13706f7c8ef550ea5f52fdf3842e434fbc5409524ae986476890ac4a470f8ed235e0b8c7e3a100106b50c6b8e
7
- data.tar.gz: 6d9a7d4a8c04496a2c5301a88a1a97efb9524bf200a32658cb5101071cc5881fdbcfd383bcfe8428e4b77240bb9ad5517686052eeb5657c07c879c55f7b745c8
6
+ metadata.gz: 3577cc4de1541b46888368a8d6724de31c8c995ccc3a76b36313a05765c622c582214f0c037dde4c18bff5be9d7d647fe20d750c34660e68f2718fff873381f2
7
+ data.tar.gz: 9bb121d372a49b7a1c3e9e65d6d0673d964bd58546a5847e6a0798d4f96feb34f90da9314f95e0384e778a14dad35189931f56b2e4da1daeb57642cc07fe91fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.9.11)
4
+ catarse_pagarme (2.9.12)
5
5
  pagarme (= 2.1.3)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -41,7 +41,7 @@ module CatarsePagarme
41
41
  street: contribution.address_street,
42
42
  neighborhood: neighborhood,
43
43
  zipcode: zip_code,
44
- street_number: contribution.address_number,
44
+ street_number: address_number,
45
45
  complementary: contribution.address_complement,
46
46
  city: contribution.address_city,
47
47
  state: contribution.address_state,
@@ -66,6 +66,10 @@ module CatarsePagarme
66
66
  hash
67
67
  end
68
68
 
69
+ def address_number
70
+ international? ? 100 : contribution.address_number
71
+ end
72
+
69
73
  def document_number
70
74
  international? ? '00000000000' : contribution.payer_document.gsub(/[-.\/_\s]/,'')
71
75
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.9.11"
2
+ VERSION = "2.9.12"
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.9.11
4
+ version: 2.9.12
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-10-26 00:00:00.000000000 Z
12
+ date: 2016-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails