catarse_pagarme 2.7.2 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce5b0b5d15bfad80eb60d2fb0c515ce9893ebead
|
|
4
|
+
data.tar.gz: c22522700e197e43af26a801c23f7648223e273b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f1566c56a106264ab2e073e0b353a0c3ac6da6958595b3f530d27190dd8e9db8de86cf2526509d91868940023bcec369cff41b01fcd49301393b6435f9b951e
|
|
7
|
+
data.tar.gz: 68bca20a81f500253f682cca6eb2614cbcf9f4190fdf20f51ccc2ef94ac2328dc23d4213fbdebc7485ca95f54f0bbc8f6b5cf591bccfdffe4c297f86719b8eb4
|
data/Gemfile.lock
CHANGED
|
@@ -13,7 +13,12 @@ module CatarsePagarme
|
|
|
13
13
|
|
|
14
14
|
def update
|
|
15
15
|
transaction = SlipTransaction.new(slip_attributes, payment).charge!
|
|
16
|
-
|
|
16
|
+
respond_to do |format|
|
|
17
|
+
format.html { redirect_to transaction.boleto_url }
|
|
18
|
+
format.json do
|
|
19
|
+
{ boleto_url: transaction.boleto_url }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
17
22
|
end
|
|
18
23
|
|
|
19
24
|
protected
|
data/config/routes.rb
CHANGED
|
@@ -11,13 +11,13 @@ describe CatarsePagarme::SlipController do
|
|
|
11
11
|
let(:payment) { contribution.payments.first }
|
|
12
12
|
let(:credit_card) { create(:credit_card, subscription_id: '1542')}
|
|
13
13
|
|
|
14
|
-
describe '
|
|
14
|
+
describe 'GET update' do
|
|
15
15
|
context 'without an user' do
|
|
16
16
|
let(:user) { nil }
|
|
17
17
|
|
|
18
18
|
it 'should raise a error' do
|
|
19
19
|
expect {
|
|
20
|
-
|
|
20
|
+
get :update, locale: :pt, id: contribution.id, use_route: 'catarse_pagarme'
|
|
21
21
|
}.to raise_error('invalid user')
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -26,7 +26,7 @@ describe CatarsePagarme::SlipController do
|
|
|
26
26
|
let(:user) { payment.user }
|
|
27
27
|
|
|
28
28
|
before do
|
|
29
|
-
|
|
29
|
+
get :update, locale: :pt, id: contribution.id, use_route: 'catarse_pagarme'
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
it 'boleto_url should be filled' 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.7.
|
|
4
|
+
version: 2.7.3
|
|
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
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
226
226
|
version: '0'
|
|
227
227
|
requirements: []
|
|
228
228
|
rubyforge_project:
|
|
229
|
-
rubygems_version: 2.
|
|
229
|
+
rubygems_version: 2.2.3
|
|
230
230
|
signing_key:
|
|
231
231
|
specification_version: 4
|
|
232
232
|
summary: Integration with Pagar.me
|