catarse_moip 3.0.2 → 3.0.3

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: d66de227d20d3cc589a4a6007a3381841fc98b25
4
- data.tar.gz: f9f36f50ac08b1f6293070ca4077eb51e7b53681
3
+ metadata.gz: 0b3bb83d8d72ee1b60f35f8fb2b6c659b57d236d
4
+ data.tar.gz: 82b3db962f62cf1e77f9c89685cb82eb42128145
5
5
  SHA512:
6
- metadata.gz: 44cdeb96b2c95d8aeefbdc6ac25e4388cdb6fdcbcf916b30cb330d35d42d93598bb47e8cd3ecc7a4d6a888f77877b2fa25c77f2cf9aa5a28eda3aaad309876ae
7
- data.tar.gz: 39000e0d7f79b1713db708b38fe927aa9ef26178dede7fc109f781324b8e708433f0e17a66523cfd5a4fb949b7e178f006caa0f6dd13612fb77c95433d43f029
6
+ metadata.gz: 664061334bc3d73f5af2351aa502da87f8bdcb5311e298e59a0d89e16b3b1a0daa15f413dd4b9e3caad6c61727cd37d21d08b2ba3db9228a7e8d9587260c8cc6
7
+ data.tar.gz: 4576bcde70cba877d300c1eae365dc8c4c5514f60620188dac258c13a199a1d3789e9b9ca520e4d4b2e370327585c2d968d456d5ad827f7547ca5b19b709945d
@@ -1,16 +1,16 @@
1
1
  GIT
2
2
  remote: git://github.com/catarse/moip-ruby.git
3
- revision: 39f9dab38fc33fe9bf614deb8e90ca166ab2d6bf
3
+ revision: 4d645e232385321a429bef7012e16fdebf9c360e
4
4
  specs:
5
5
  moip (1.0.2)
6
6
  activesupport (>= 2.3.2)
7
- httparty (~> 0.6.1)
8
- nokogiri (~> 1.5.0)
7
+ httparty (~> 0.12.0)
8
+ nokogiri (>= 1.5.0)
9
9
 
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- catarse_moip (3.0.2)
13
+ catarse_moip (3.0.3)
14
14
  enumerate_it
15
15
  libxml-ruby (~> 2.6.0)
16
16
  rails (~> 4.0)
@@ -18,81 +18,87 @@ PATH
18
18
  GEM
19
19
  remote: http://rubygems.org/
20
20
  specs:
21
- actionmailer (4.0.0)
22
- actionpack (= 4.0.0)
23
- mail (~> 2.5.3)
24
- actionpack (4.0.0)
25
- activesupport (= 4.0.0)
26
- builder (~> 3.1.0)
27
- erubis (~> 2.7.0)
21
+ actionmailer (4.1.6)
22
+ actionpack (= 4.1.6)
23
+ actionview (= 4.1.6)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ actionpack (4.1.6)
26
+ actionview (= 4.1.6)
27
+ activesupport (= 4.1.6)
28
28
  rack (~> 1.5.2)
29
29
  rack-test (~> 0.6.2)
30
- activemodel (4.0.0)
31
- activesupport (= 4.0.0)
32
- builder (~> 3.1.0)
33
- activerecord (4.0.0)
34
- activemodel (= 4.0.0)
35
- activerecord-deprecated_finders (~> 1.0.2)
36
- activesupport (= 4.0.0)
37
- arel (~> 4.0.0)
38
- activerecord-deprecated_finders (1.0.3)
39
- activesupport (4.0.0)
40
- i18n (~> 0.6, >= 0.6.4)
41
- minitest (~> 4.2)
42
- multi_json (~> 1.3)
30
+ actionview (4.1.6)
31
+ activesupport (= 4.1.6)
32
+ builder (~> 3.1)
33
+ erubis (~> 2.7.0)
34
+ activemodel (4.1.6)
35
+ activesupport (= 4.1.6)
36
+ builder (~> 3.1)
37
+ activerecord (4.1.6)
38
+ activemodel (= 4.1.6)
39
+ activesupport (= 4.1.6)
40
+ arel (~> 5.0.0)
41
+ activesupport (4.1.6)
42
+ i18n (~> 0.6, >= 0.6.9)
43
+ json (~> 1.7, >= 1.7.7)
44
+ minitest (~> 5.1)
43
45
  thread_safe (~> 0.1)
44
- tzinfo (~> 0.3.37)
45
- arel (4.0.2)
46
- atomic (1.1.14)
47
- builder (3.1.4)
48
- crack (0.1.8)
49
- database_cleaner (1.1.1)
50
- diff-lcs (1.2.4)
46
+ tzinfo (~> 1.1)
47
+ arel (5.0.1.20140414130214)
48
+ builder (3.2.2)
49
+ database_cleaner (1.3.0)
50
+ diff-lcs (1.2.5)
51
51
  enumerate_it (1.2.3)
52
52
  activesupport (>= 3.0.0)
53
53
  erubis (2.7.0)
54
- factory_girl (4.2.0)
54
+ factory_girl (4.5.0)
55
55
  activesupport (>= 3.0.0)
56
- factory_girl_rails (4.2.1)
57
- factory_girl (~> 4.2.0)
56
+ factory_girl_rails (4.5.0)
57
+ factory_girl (~> 4.5.0)
58
58
  railties (>= 3.0.0)
59
59
  hike (1.2.3)
60
- httparty (0.6.1)
61
- crack (= 0.1.8)
62
- i18n (0.6.5)
60
+ httparty (0.12.0)
61
+ json (~> 1.8)
62
+ multi_xml (>= 0.5.2)
63
+ i18n (0.6.11)
64
+ json (1.8.1)
63
65
  libxml-ruby (2.6.0)
64
- mail (2.5.4)
65
- mime-types (~> 1.16)
66
- treetop (~> 1.4.8)
67
- mime-types (1.25.1)
68
- minitest (4.7.5)
69
- multi_json (1.8.0)
70
- nokogiri (1.5.10)
71
- pg (0.17.0)
72
- polyglot (0.3.5)
66
+ mail (2.6.1)
67
+ mime-types (>= 1.16, < 3)
68
+ mime-types (2.4.3)
69
+ mini_portile (0.6.0)
70
+ minitest (5.4.2)
71
+ multi_json (1.10.1)
72
+ multi_xml (0.5.5)
73
+ nokogiri (1.6.3.1)
74
+ mini_portile (= 0.6.0)
75
+ pg (0.17.1)
73
76
  rack (1.5.2)
74
77
  rack-test (0.6.2)
75
78
  rack (>= 1.0)
76
- rails (4.0.0)
77
- actionmailer (= 4.0.0)
78
- actionpack (= 4.0.0)
79
- activerecord (= 4.0.0)
80
- activesupport (= 4.0.0)
79
+ rails (4.1.6)
80
+ actionmailer (= 4.1.6)
81
+ actionpack (= 4.1.6)
82
+ actionview (= 4.1.6)
83
+ activemodel (= 4.1.6)
84
+ activerecord (= 4.1.6)
85
+ activesupport (= 4.1.6)
81
86
  bundler (>= 1.3.0, < 2.0)
82
- railties (= 4.0.0)
83
- sprockets-rails (~> 2.0.0)
84
- railties (4.0.0)
85
- actionpack (= 4.0.0)
86
- activesupport (= 4.0.0)
87
+ railties (= 4.1.6)
88
+ sprockets-rails (~> 2.0)
89
+ railties (4.1.6)
90
+ actionpack (= 4.1.6)
91
+ activesupport (= 4.1.6)
87
92
  rake (>= 0.8.7)
88
93
  thor (>= 0.18.1, < 2.0)
89
- rake (10.1.0)
90
- rspec-core (2.14.5)
91
- rspec-expectations (2.14.2)
94
+ rake (10.3.2)
95
+ rspec-core (2.14.8)
96
+ rspec-expectations (2.14.5)
92
97
  diff-lcs (>= 1.1.3, < 2.0)
93
- rspec-mocks (2.14.3)
94
- rspec-rails (2.14.0)
98
+ rspec-mocks (2.14.6)
99
+ rspec-rails (2.14.2)
95
100
  actionpack (>= 3.0)
101
+ activemodel (>= 3.0)
96
102
  activesupport (>= 3.0)
97
103
  railties (>= 3.0)
98
104
  rspec-core (~> 2.14.0)
@@ -103,18 +109,15 @@ GEM
103
109
  multi_json (~> 1.0)
104
110
  rack (~> 1.0)
105
111
  tilt (~> 1.1, != 1.3.0)
106
- sprockets-rails (2.0.1)
112
+ sprockets-rails (2.2.0)
107
113
  actionpack (>= 3.0)
108
114
  activesupport (>= 3.0)
109
- sprockets (~> 2.8)
110
- thor (0.18.1)
111
- thread_safe (0.1.3)
112
- atomic
115
+ sprockets (>= 2.8, < 4.0)
116
+ thor (0.19.1)
117
+ thread_safe (0.3.4)
113
118
  tilt (1.4.1)
114
- treetop (1.4.15)
115
- polyglot
116
- polyglot (>= 0.3.1)
117
- tzinfo (0.3.37)
119
+ tzinfo (1.2.2)
120
+ thread_safe (~> 0.1)
118
121
 
119
122
  PLATFORMS
120
123
  ruby
@@ -14,7 +14,7 @@ App.views.MoipForm.addChild('PaymentCard', _.extend({
14
14
  },
15
15
 
16
16
  onKeyupPaymentCardNumber: function(e){
17
- this.$('input#payment_card_flag').val(this.getCardFlag($(e.currentTarget).val()))
17
+ this.$('#payment_card_flag').html(this.getCardFlag($(e.currentTarget).val()))
18
18
  },
19
19
 
20
20
  onSubmit: function(e) {
@@ -54,16 +54,16 @@ App.views.MoipForm.addChild('PaymentCard', _.extend({
54
54
  var cc = (number + '').replace(/\s/g, ''); //remove space
55
55
 
56
56
  if ((/^(34|37)/).test(cc) && cc.length == 15) {
57
- return 'AmericanExpress'; //AMEX begins with 34 or 37, and length is 15.
57
+ return 'AMEX'; //AMEX begins with 34 or 37, and length is 15.
58
58
  } else if ((/^(51|52|53|54|55)/).test(cc) && cc.length == 16) {
59
- return 'Mastercard'; //MasterCard beigins with 51-55, and length is 16.
59
+ return 'MASTER'; //MasterCard beigins with 51-55, and length is 16.
60
60
  } else if ((/^(4)/).test(cc) && (cc.length == 13 || cc.length == 16)) {
61
- return 'Visa'; //VISA begins with 4, and length is 13 or 16.
61
+ return 'VISA'; //VISA begins with 4, and length is 13 or 16.
62
62
  } else if ((/^(300|301|302|303|304|305|36|38)/).test(cc) && cc.length == 14) {
63
- return 'Diners'; //Diners Club begins with 300-305 or 36 or 38, and length is 14.
63
+ return 'DINERS'; //Diners Club begins with 300-305 or 36 or 38, and length is 14.
64
64
  } else if ((/^(38)/).test(cc) && cc.length == 19) {
65
- return 'Hipercard';
65
+ return 'HIPER';
66
66
  }
67
- return 'Desconhecido';
67
+ return '';
68
68
  }
69
69
  }, App.views.MoipForm.UserDocument));
@@ -15,6 +15,7 @@ App.views.MoipForm.addChild('PaymentSlip', _.extend({
15
15
  var that = this;
16
16
  e.preventDefault();
17
17
  $(e.currentTarget).hide();
18
+ this.$('#payment-slip-instructions').slideUp('slow');
18
19
  that.moipForm.loader.show();
19
20
 
20
21
  // Get token and send payment
@@ -27,12 +27,12 @@
27
27
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_cpf"]
28
28
  | Verifique o CPF do titular do cartão
29
29
  .w-row
30
- .w-col.w-col-6.w-sub-col.phone
30
+ .w-col.w-col-6.w-col-small-6.w-col-tiny-6.w-sub-col-middle.phone
31
31
  = label_tag :payment_card_phone, "Telefone", class: 'field-label fontweight-semibold'
32
32
  = text_field_tag :payment_card_phone, nil, class: 'w-input text-field', data: {mask: '(99) 9999-9999?9'}, required: true
33
33
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_phone"]
34
34
  | Por favor digite o telefone de contato do titular
35
- .w-col.w-col-6.birth
35
+ .w-col.w-col-6.w-col-small-6.w-col-tiny-6.birth
36
36
  = label_tag :payment_card_birth, "Data de Nascimento", class: 'field-label fontweight-semibold'
37
37
  = text_field_tag :payment_card_birth, nil, class: 'w-input text-field', data: {mask: '99/99/9999'}, required: true
38
38
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_birth"]
@@ -40,21 +40,23 @@
40
40
  .w-row
41
41
  .w-col.w-col-6.w-sub-col.number
42
42
  = label_tag :payment_card_number, 'Número do cartão' , class: 'field-label fontweight-semibold'
43
- .card-brand.prefix.text-field
44
- .fontsize-smallest.fontcolor-secondary.u-text-center
45
- .card-number
46
- = text_field_tag :payment_card_number, nil, class: 'w-input text-field postfix', required: true
43
+ .w-row
44
+ .w-col.w-col-9.w-col-small-9.w-col-tiny-9
45
+ = text_field_tag :payment_card_number, nil, class: 'w-input text-field prefix', required: true
46
+ .w-col.w-col-3.w-col-small-3.w-col-tiny-3.text-field.postfix.no-hover
47
+ #payment_card_flag.fontsize-smallest.fontcolor-secondary.u-text-center
47
48
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_number"]
48
49
  | Por favor verifique o número do cartão de crédito
49
50
  .w-col.w-col-6
50
51
  .w-row
51
52
  .w-col.w-col-6.w-col-small-6.w-col-tiny-6.w-sub-col-middle.source
52
- = label_tag :payment_card_source, 'Cód. Segurança', class: 'field-label fontweight-semibold'
53
+ = label_tag :payment_card_source, 'Cód. Segurança', class: 'field-label fontweight-semibold w-hidden-medium'
54
+ = label_tag :payment_card_source, 'CVC', class: 'field-label fontweight-semibold w-hidden-main w-hidden-small w-hidden-tiny'
53
55
  = text_field_tag :payment_card_source, nil, class: 'w-input text-field', required: true
54
56
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_source"]
55
57
  | Veja o código de segurança do cartão abaixo da tarja magnética
56
58
  .w-col.w-col-6.w-col-small-6.w-col-tiny-6.date
57
- = label_tag :payment_card_date, 'Data de Expiração', class: 'field-label fontweight-semibold'
59
+ = label_tag :payment_card_date, 'Expiração', class: 'field-label fontweight-semibold'
58
60
  = text_field_tag :payment_card_date, nil, class: 'w-input text-field', data: {mask: '99/99'}, required: true
59
61
  .fontsize-smaller.text-error.u-marginbottom-20.fa.fa-exclamation-triangle.w-hidden[data-error-for="payment_card_date"]
60
62
  | Qual a data de expiração no cartão?
@@ -78,7 +80,7 @@
78
80
  | Verifique o CPF ou CNPJ
79
81
  .w-row
80
82
  .w-col.w-col-12
81
- .card.card-message.u-radius.fontsize-small.zindex-10.u-marginbottom-30
83
+ #payment-slip-instructions.card.card-message.u-radius.fontsize-small.zindex-10.u-marginbottom-30
82
84
  | Após clicar no botão abaixo, você receberá um link com o boleto para completar o pagamento.
83
85
  .w-row
84
86
  .w-col.w-col-12
@@ -1,3 +1,3 @@
1
1
  module CatarseMoip
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_moip
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-15 00:00:00.000000000 Z
13
+ date: 2014-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails