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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5d26441ed25b3db6a1f457ab1350d0db0838b17d02b6245c5d539bb5297fb52f
|
4
|
+
data.tar.gz: bb334b9fbfe1a17836a02213818f317d166b1cbb46c7e0a8228af85dde3617fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57082946da1fe828948cd383322403a2416cb73998ba2bf4236970faeaeb7c353a9a2aac2eb71324c94062b0f154cd2f55cc982ae444e442966c5e82b891f939
|
7
|
+
data.tar.gz: af601c76160e1d0b5600e4d40ffeb1437cf6d147ad46c0ebc46753d55f6969abe80fb6865b68bb5e1001bee70bd8a2c7baf6d36c4f6ba91b83c52d0fb0f8f875
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
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.
|
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.
|
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 (
|
159
|
-
faraday (>=
|
160
|
-
sidekiq (5.2.
|
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 (
|
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.
|
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
|
-
|
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
|
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.
|
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-
|
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
|
-
|
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
|