catarse_moip 3.0.2 → 3.0.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: 0b3bb83d8d72ee1b60f35f8fb2b6c659b57d236d
|
|
4
|
+
data.tar.gz: 82b3db962f62cf1e77f9c89685cb82eb42128145
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 664061334bc3d73f5af2351aa502da87f8bdcb5311e298e59a0d89e16b3b1a0daa15f413dd4b9e3caad6c61727cd37d21d08b2ba3db9228a7e8d9587260c8cc6
|
|
7
|
+
data.tar.gz: 4576bcde70cba877d300c1eae365dc8c4c5514f60620188dac258c13a199a1d3789e9b9ca520e4d4b2e370327585c2d968d456d5ad827f7547ca5b19b709945d
|
data/Gemfile.lock
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
GIT
|
|
2
2
|
remote: git://github.com/catarse/moip-ruby.git
|
|
3
|
-
revision:
|
|
3
|
+
revision: 4d645e232385321a429bef7012e16fdebf9c360e
|
|
4
4
|
specs:
|
|
5
5
|
moip (1.0.2)
|
|
6
6
|
activesupport (>= 2.3.2)
|
|
7
|
-
httparty (~> 0.
|
|
8
|
-
nokogiri (
|
|
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.
|
|
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.
|
|
22
|
-
actionpack (= 4.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
31
|
-
activesupport (= 4.
|
|
32
|
-
builder (~> 3.1
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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 (~>
|
|
45
|
-
arel (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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.
|
|
54
|
+
factory_girl (4.5.0)
|
|
55
55
|
activesupport (>= 3.0.0)
|
|
56
|
-
factory_girl_rails (4.
|
|
57
|
-
factory_girl (~> 4.
|
|
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.
|
|
61
|
-
|
|
62
|
-
|
|
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.
|
|
65
|
-
mime-types (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
minitest (4.
|
|
69
|
-
multi_json (1.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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.
|
|
77
|
-
actionmailer (= 4.
|
|
78
|
-
actionpack (= 4.
|
|
79
|
-
|
|
80
|
-
|
|
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.
|
|
83
|
-
sprockets-rails (~> 2.0
|
|
84
|
-
railties (4.
|
|
85
|
-
actionpack (= 4.
|
|
86
|
-
activesupport (= 4.
|
|
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.
|
|
90
|
-
rspec-core (2.14.
|
|
91
|
-
rspec-expectations (2.14.
|
|
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.
|
|
94
|
-
rspec-rails (2.14.
|
|
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
|
|
112
|
+
sprockets-rails (2.2.0)
|
|
107
113
|
actionpack (>= 3.0)
|
|
108
114
|
activesupport (>= 3.0)
|
|
109
|
-
sprockets (
|
|
110
|
-
thor (0.
|
|
111
|
-
thread_safe (0.
|
|
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
|
-
|
|
115
|
-
|
|
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.$('
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
65
|
+
return 'HIPER';
|
|
66
66
|
}
|
|
67
|
-
return '
|
|
67
|
+
return '';
|
|
68
68
|
}
|
|
69
69
|
}, App.views.MoipForm.UserDocument));
|
|
@@ -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
|
-
.
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
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, '
|
|
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
|
data/lib/catarse_moip/version.rb
CHANGED
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.
|
|
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-
|
|
13
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|