catarse_pagarme 2.7.4 → 2.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/catarse_pagarme/payment_slip.js +7 -16
- data/app/views/catarse_pagarme/pagarme/review.html.slim +0 -5
- data/lib/catarse_pagarme/version.rb +1 -1
- data/spec/controllers/catarse_pagarme/credit_cards_controller_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6718ed84954953775a70a8f15d1dea5f9602c8a2
|
4
|
+
data.tar.gz: 0785da5c0b96d09f67f3e39520821fbc0cae3161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 591d72d0f85ce7a0ea7722c9cc7a42c3ffa90aceb6919b4c1dd5ac91c00273c49474ba220ce5b00201155f8444fc2818791a5d061e4877403ab8b8c985f1be77
|
7
|
+
data.tar.gz: 6f5637f671ad7739714da3c2314fc3d6a810672475901f59696dcfaaf41cf0c6730d96afbdb9af33f0dfd798023be6a7836ac4590e68d8d6b8ccb3cab84c5f7a
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,6 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
|
|
3
3
|
|
4
4
|
events: {
|
5
5
|
'click input#build_boleto' : 'onBuildBoletoClick',
|
6
|
-
'click .link_content a' : 'onContentClick',
|
7
6
|
'blur input' : 'checkInput'
|
8
7
|
},
|
9
8
|
|
@@ -18,16 +17,6 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
|
|
18
17
|
this.$('#user_bank_account_attributes_name').brbanks();
|
19
18
|
},
|
20
19
|
|
21
|
-
onContentClick: function() {
|
22
|
-
var thank_you = $('#project_review').data('thank-you-path');
|
23
|
-
|
24
|
-
if(thank_you){
|
25
|
-
location.href = thank_you;
|
26
|
-
} else {
|
27
|
-
location.href = '/';
|
28
|
-
}
|
29
|
-
},
|
30
|
-
|
31
20
|
onBuildBoletoClick: function(e){
|
32
21
|
var that = this;
|
33
22
|
|
@@ -50,11 +39,13 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
|
|
50
39
|
|
51
40
|
$(e.currentTarget).show();
|
52
41
|
} else if(response.boleto_url) {
|
53
|
-
var
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
42
|
+
var thank_you = $('#project_review').data('thank-you-path');
|
43
|
+
|
44
|
+
if(thank_you){
|
45
|
+
location.href = thank_you;
|
46
|
+
} else {
|
47
|
+
location.href = '/';
|
48
|
+
}
|
58
49
|
}
|
59
50
|
});
|
60
51
|
}
|
@@ -98,11 +98,6 @@
|
|
98
98
|
.payment-error-message.card.card-error.u-radius.zindex-10.u-marginbottom-30.w-hidden
|
99
99
|
.fontsize-smaller.fontweight-bold.u-marginbottom-10= t('projects.contributions.edit.review_errors_title')
|
100
100
|
.message-text.fontsize-smaller = t('.review_errors')
|
101
|
-
.w-row.after-success
|
102
|
-
.w-col.w-col-12
|
103
|
-
#payment-slip-link.card.card-message.fontsize-small.u-radius.u-marginbottom-30.zindex-10.w-hidden
|
104
|
-
.link_content.fontsize-small
|
105
|
-
.fontsize-small= t('projects.contributions.edit.review_slip_email')
|
106
101
|
.w-row
|
107
102
|
.w-col.w-col-12
|
108
103
|
.u-margintop-30.u-marginbottom-60.u-radius.card-big.card
|
@@ -56,6 +56,10 @@ describe CatarsePagarme::CreditCardsController do
|
|
56
56
|
it "should have created a payment" do
|
57
57
|
expect(contribution.payments.size).to eq(2)
|
58
58
|
end
|
59
|
+
|
60
|
+
it "should update the payment key on the local database" do
|
61
|
+
expect(contribution.payments.last.key).to_not be_nil
|
62
|
+
end
|
59
63
|
end
|
60
64
|
end
|
61
65
|
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.7.
|
4
|
+
version: 2.7.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-08-
|
12
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|