catarse_pagarme 2.14.3 → 2.14.4

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
- SHA1:
3
- metadata.gz: 520199477c1059f4e458f4881b6cd4d0a8f2d168
4
- data.tar.gz: 49fe125c2389cee318180307d16c65fc44aa21e8
2
+ SHA256:
3
+ metadata.gz: 5d26441ed25b3db6a1f457ab1350d0db0838b17d02b6245c5d539bb5297fb52f
4
+ data.tar.gz: bb334b9fbfe1a17836a02213818f317d166b1cbb46c7e0a8228af85dde3617fc
5
5
  SHA512:
6
- metadata.gz: af8960a447fb8f14d4949c045f5dfa71218d400fabf608ef560fb0eea3c728222a792f9c187919088619e6a5e559c8657428bbe1a83b422c9afead42e1df6966
7
- data.tar.gz: 533b29a47b7a6ee81f369c27c0d0251fba4897f092e920efd231a44b130d65312555ebd231eafb24d2e067ec2886dca66a639c64b93f2e7364cc6062dc992bda
6
+ metadata.gz: 57082946da1fe828948cd383322403a2416cb73998ba2bf4236970faeaeb7c353a9a2aac2eb71324c94062b0f154cd2f55cc982ae444e442966c5e82b891f939
7
+ data.tar.gz: af601c76160e1d0b5600e4d40ffeb1437cf6d147ad46c0ebc46753d55f6969abe80fb6865b68bb5e1001bee70bd8a2c7baf6d36c4f6ba91b83c52d0fb0f8f875
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.14.3)
4
+ catarse_pagarme (2.14.4)
5
5
  countries (= 3.0.0)
6
6
  konduto-ruby (= 2.1.0)
7
7
  pagarme (= 2.1.4)
@@ -67,7 +67,7 @@ GEM
67
67
  factory_girl_rails (4.9.0)
68
68
  factory_girl (~> 4.9.0)
69
69
  railties (>= 3.0.0)
70
- faraday (0.17.3)
70
+ faraday (1.0.1)
71
71
  multipart-post (>= 1.2, < 3)
72
72
  globalid (0.4.2)
73
73
  activesupport (>= 4.2.0)
@@ -155,11 +155,11 @@ GEM
155
155
  rspec-mocks (~> 3.8.0)
156
156
  rspec-support (~> 3.8.0)
157
157
  rspec-support (3.8.0)
158
- sentry-raven (2.13.0)
159
- faraday (>= 0.7.6, < 1.0)
160
- sidekiq (5.2.7)
158
+ sentry-raven (3.0.0)
159
+ faraday (>= 1.0)
160
+ sidekiq (5.2.8)
161
161
  connection_pool (~> 2.2, >= 2.2.2)
162
- rack (>= 1.5.0)
162
+ rack (< 2.1.0)
163
163
  rack-protection (>= 1.5.0)
164
164
  redis (>= 3.3.5, < 5)
165
165
  sixarm_ruby_unaccent (1.2.0)
@@ -176,7 +176,7 @@ GEM
176
176
  thread_safe (~> 0.1)
177
177
  unf (0.1.4)
178
178
  unf_ext
179
- unf_ext (0.0.7.6)
179
+ unf_ext (0.0.7.7)
180
180
  unicode_utils (1.4.0)
181
181
  weekdays (1.0.2)
182
182
 
@@ -99,8 +99,7 @@ module CatarsePagarme
99
99
  city: billing_data.dig(:address, :city),
100
100
  state: billing_data.dig(:address, :state),
101
101
  zip: billing_data.dig(:address, :zipcode),
102
- country: card_country_code
103
- }
102
+ }.merge(card_country_code)
104
103
  end
105
104
 
106
105
  def shipping_address_attributes
@@ -143,7 +142,7 @@ module CatarsePagarme
143
142
 
144
143
  def card_country_code
145
144
  country = ::ISO3166::Country.find_country_by_name(self.transaction.card.country)
146
- country.alpha2
145
+ country.present? { country: country.try(:alpha2) } || {}
147
146
  end
148
147
  end
149
148
  end
@@ -1,6 +1,6 @@
1
1
  module CatarsePagarme
2
2
  class PaymentType
3
- SLIP = 'BoletoBancario'
4
- CREDIT_CARD = 'CartaoDeCredito'
3
+ SLIP = 'boleto'
4
+ CREDIT_CARD = 'credit_card'
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.14.3"
2
+ VERSION = "2.14.4"
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.14.3
4
+ version: 2.14.4
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: 2020-03-24 00:00:00.000000000 Z
12
+ date: 2020-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: countries
@@ -305,8 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
307
  requirements: []
308
- rubyforge_project:
309
- rubygems_version: 2.5.1
308
+ rubygems_version: 3.0.4
310
309
  signing_key:
311
310
  specification_version: 4
312
311
  summary: Integration with Pagar.me