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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eabfdb658f6065f491e2ee36f066d0b358177141
4
- data.tar.gz: 0ae85bbec7fed49421ea5bf11448eb9d2c70292c
3
+ metadata.gz: 16227f000e964d4088d3ad3972e7fb52483a21ce
4
+ data.tar.gz: a4275b78444afeda8e175f9ae7bdf97e121e0b3f
5
5
  SHA512:
6
- metadata.gz: 7ef1d69d9a9358b8ea1282caa2b0685af11b00c2e5e4dbab6eb1812ef50c1be22dfefd64c7643f5ec42a311b2befc55016cb2a9063a25a0a868c1e290c1030f2
7
- data.tar.gz: 8509502bf0c000891a9cc8866087a38f4028db586f6cb70e4b37e28420217022f27e192ef6a34671b951ccb7f34a419126116b2211b0107593455c3cd0661643
6
+ metadata.gz: 10d46acd8457df2741520b621e8241a5d1a2e9a3acf470c603edbde590a6c9d2ab1f9f2d1b53fdc1d3a19d3b9c5b74c7e58cac16ecf006d3f168f52961209bd9
7
+ data.tar.gz: 6e1ee75cece8458aebc1271541f44eeeffa2f2be385343ccb289aff294fddb56d6efca40df5257e7150295569bd9315ab59409a2a615b564534e8b1444b6eff3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.4.3)
4
+ catarse_pagarme (2.4.4)
5
5
  pagarme (~> 1.9.8)
6
6
  rails (~> 4.0)
7
7
 
@@ -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
 
@@ -43,6 +43,9 @@ module CatarsePagarme
43
43
  customer: {
44
44
  email: contribution.user.email,
45
45
  name: contribution.user.name
46
+ },
47
+ metadata: {
48
+ key: contribution.key
46
49
  }
47
50
  }
48
51
  end
@@ -27,6 +27,9 @@ module CatarsePagarme
27
27
  customer: {
28
28
  email: contribution.user.email,
29
29
  name: contribution.user.name
30
+ },
31
+ metadata: {
32
+ key: contribution.key
30
33
  }
31
34
  }.update({ user: params[:user] })
32
35
  end
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.4.3"
2
+ VERSION = "2.4.4"
3
3
  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.4.3
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-06 00:00:00.000000000 Z
12
+ date: 2015-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails