catarse_pagarme 2.4.3 → 2.4.4
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 +10 -0
- data/app/controllers/catarse_pagarme/credit_card_base_controller.rb +3 -0
- data/app/controllers/catarse_pagarme/slip_controller.rb +3 -0
- data/lib/catarse_pagarme/version.rb +1 -1
- 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: 16227f000e964d4088d3ad3972e7fb52483a21ce
|
4
|
+
data.tar.gz: a4275b78444afeda8e175f9ae7bdf97e121e0b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10d46acd8457df2741520b621e8241a5d1a2e9a3acf470c603edbde590a6c9d2ab1f9f2d1b53fdc1d3a19d3b9c5b74c7e58cac16ecf006d3f168f52961209bd9
|
7
|
+
data.tar.gz: 6e1ee75cece8458aebc1271541f44eeeffa2f2be385343ccb289aff294fddb56d6efca40df5257e7150295569bd9315ab59409a2a615b564534e8b1444b6eff3
|
data/Gemfile.lock
CHANGED
@@ -10,11 +10,21 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
|
|
10
10
|
activate: function(options){
|
11
11
|
this.$('#user_bank_account_attributes_owner_document').data('custom-validation', app.reviewForm.onUserDocumentChange);
|
12
12
|
this.$('#user_bank_account_attributes_owner_document').on('focus', app.reviewForm.onUserDocumentFocus)
|
13
|
+
this.$('#user_bank_account_attributes_owner_name').data('custom-validation', this.validateName);
|
13
14
|
this.setupForm();
|
14
15
|
this.message = this.$('.payment-error-message');
|
15
16
|
this.$('#user_bank_account_attributes_name').brbanks();
|
16
17
|
},
|
17
18
|
|
19
|
+
validateName: function(field) {
|
20
|
+
if(field.val().length < 5 || field.val().length > 30){
|
21
|
+
$(field).trigger('invalid');
|
22
|
+
return false;
|
23
|
+
}
|
24
|
+
|
25
|
+
return true;
|
26
|
+
},
|
27
|
+
|
18
28
|
onContentClick: function() {
|
19
29
|
var thank_you = $('#project_review').data('thank-you-path');
|
20
30
|
|
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.4.
|
4
|
+
version: 2.4.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: 2015-02-
|
12
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|