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: 337e58451284a309d2ae95dbe9bb2fd2fc4ee70c
4
- data.tar.gz: c005562338ac2bf09c2af5f01a30d7e9603f5aae
3
+ metadata.gz: f159f3d2a054bdd5836655a9c763fb3c6e6ef8f9
4
+ data.tar.gz: 52a927a4fd2eb822c042e5cd1f057a7a589be0a2
5
5
  SHA512:
6
- metadata.gz: 538f39e31e10006d0d8e1b1814de5c11147125bbec9fea274e07f3f3f1024180e38f38f6e46728c13d045d4ab03cc809a047a54f31db326a703e9f0b6dae2180
7
- data.tar.gz: 6211911e451ebab036daecb076e6bf2e324eaf2e0f1fdae3016b038ddf351bec13e91d51f8468b926d318d541744b6883e0eb17e4a296b1e57747d4636edf7d1
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)
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.1)
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,
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.8.4"
2
+ VERSION = "2.8.5"
3
3
  end
@@ -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
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: 2015-12-16 00:00:00.000000000 Z
12
+ date: 2016-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails