catarse_pagarme 2.8.4 → 2.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f159f3d2a054bdd5836655a9c763fb3c6e6ef8f9
|
4
|
+
data.tar.gz: 52a927a4fd2eb822c042e5cd1f057a7a589be0a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184991715e15d6d9109a35e888152699aa95c0c9dc208012c301ab65e734d7194608b027eb1c4edbcd0f13556185c3b9b5b8bd76febb9ef61b18cba8f67276e8
|
7
|
+
data.tar.gz: 19ce011fec619af4b6f169b9797a178934ff7166a8ef651dda53af4959bf5e7e8bf8247eb558147463c5fce75fa70b810c27183f95bc2fe679c7aa28909762ac
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
catarse_pagarme (2.8.
|
4
|
+
catarse_pagarme (2.8.5)
|
5
5
|
pagarme (= 1.10.0)
|
6
6
|
rails (~> 4.0)
|
7
7
|
sidekiq
|
@@ -136,10 +136,9 @@ GEM
|
|
136
136
|
rspec-mocks (~> 3.3.0)
|
137
137
|
rspec-support (~> 3.3.0)
|
138
138
|
rspec-support (3.3.0)
|
139
|
-
sidekiq (4.0.
|
139
|
+
sidekiq (4.0.2)
|
140
140
|
concurrent-ruby (~> 1.0)
|
141
141
|
connection_pool (~> 2.2, >= 2.2.0)
|
142
|
-
json (~> 1.0)
|
143
142
|
redis (~> 3.2, >= 3.2.1)
|
144
143
|
slop (3.6.0)
|
145
144
|
sprockets (3.4.0)
|
@@ -21,7 +21,7 @@ module CatarsePagarme
|
|
21
21
|
subdomain: CatarsePagarme.configuration.subdomain,
|
22
22
|
protocol: CatarsePagarme.configuration.protocol
|
23
23
|
),
|
24
|
-
soft_descriptor: payment.project.permalink[0, MAX_SOFT_DESCRIPTOR_LENGTH],
|
24
|
+
soft_descriptor: payment.project.permalink.gsub(/[\W\_]/, ' ')[0, MAX_SOFT_DESCRIPTOR_LENGTH],
|
25
25
|
installments: get_installment,
|
26
26
|
customer: {
|
27
27
|
email: payment.user.email,
|
@@ -31,7 +31,7 @@ describe CatarsePagarme::CreditCardsController, type: :controller do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'should receive soft descriptor with project name' do
|
34
|
-
expect(CatarsePagarme::CreditCardTransaction).to have_received(:new).with(hash_including(soft_descriptor: payment.project.permalink), anything)
|
34
|
+
expect(CatarsePagarme::CreditCardTransaction).to have_received(:new).with(hash_including(soft_descriptor: payment.project.permalink.gsub(/[\W\_]/,' ')), anything)
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'and payment_status is not failed' do
|
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.8.
|
4
|
+
version: 2.8.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:
|
12
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|