catarse_pagarme 2.9.9 → 2.9.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: 716842fae1e53a63a7b9ce00c580b3f3e313e276
4
- data.tar.gz: d62b246e987cedff38ce634a244ea7730e39aacb
3
+ metadata.gz: 8dfe1b6bd1013cef9044797dbe0d2293c6e54e6f
4
+ data.tar.gz: fa423979b21e15aef338c250d1b9e7633724482f
5
5
  SHA512:
6
- metadata.gz: 593b4892adca5e56921e6d8cba2a1b3c46a29836c86a6e324c21efb79ea8920d16437d7b38c23a454d718d83151c39864cb3314a1b2980911c1a7a15039ad14e
7
- data.tar.gz: a58b9621ed0a8ce3b4b2d4dbcbc4d60341b7647362b704569dd0e4dc45a1049880d15555e62807648cc9e75626992189d597368d564405992733a4fe7ee9e575
6
+ metadata.gz: d0f44168c295d7695d7ca7403be23c3b93ebe9f6c4192651075deb1a04efe29d8833361dcfe9db92fdd17f7c509235f467678d22f6488ab16e6b31ac5e62370e
7
+ data.tar.gz: 31f5ff23e3e63f197e67f653ac56d5886b2554903c74fa3fb827cc842e39b37ca972fb9cb9c527c1ebf46deb3bead11de4af575a0780d13540295f7b55e13699
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.9.9)
4
+ catarse_pagarme (2.9.10)
5
5
  pagarme (= 2.1.3)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -39,7 +39,7 @@ module CatarsePagarme
39
39
  document_number: document_number,
40
40
  address: {
41
41
  street: contribution.address_street,
42
- neighborhood: contribution.address_neighbourhood,
42
+ neighborhood: neighborhood,
43
43
  zipcode: zip_code,
44
44
  street_number: contribution.address_number,
45
45
  complementary: contribution.address_complement
@@ -75,6 +75,10 @@ module CatarsePagarme
75
75
  international? ? '00000000' : contribution.address_zip_code.gsub(/[-.]/, '')
76
76
  end
77
77
 
78
+ def neighborhood
79
+ international? ? 'international' : contribution.address_neighbourhood
80
+ end
81
+
78
82
  def international?
79
83
  contribution.international?
80
84
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.9.9"
2
+ VERSION = "2.9.10"
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.9
4
+ version: 2.9.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: 2016-10-05 00:00:00.000000000 Z
12
+ date: 2016-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails