catarse_pagarme 2.1.0 → 2.1.1

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: 15918d28c417265f79c1ba2fae6cf2ca9b46b922
4
- data.tar.gz: f48f6042076b45924c55a9ac598e478e86da759a
3
+ metadata.gz: e53eda5d6ccdddcea690828e229ba3394e8e77a9
4
+ data.tar.gz: e373c06e1db98242f323025d7f1c34cdaf6fa037
5
5
  SHA512:
6
- metadata.gz: 5873c6649050e6000b6a32b68dbc361f8eb86f566a500e339d28af7f4d1cbaaca09a7a1f7c28d0ab6d6b9c12314c72398c17a81f628f0ec4b5e47ee30d015c61
7
- data.tar.gz: 9a1c244b67a441f3722ce3ea6acf42c51c4315eae002fb61db29b56b115059e9179084710e327537a60130cb617cb5072c25147fdade186f8b79049ed745ad27
6
+ metadata.gz: c83520ae92126d2e7417782200d19bfb8fdfa5f7215ba0c1fb49ca987d1027364352b8fbf6b58647552a501e65874c0ea84acac976a4747f1251847a5c112460
7
+ data.tar.gz: a57c93e0422ae48a8bf58fa284c71045cc9d609db29d1f31cb4abe6b2abbdc5f6d8cd5e690223804d6908ac88dae6cc7d926d1005fd31bd06466c863cb5f1c45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.0.3)
4
+ catarse_pagarme (2.1.1)
5
5
  pagarme (~> 1.9.5)
6
6
  rails (~> 4.0)
7
7
 
@@ -52,7 +52,7 @@ GEM
52
52
  mime-types (1.25.1)
53
53
  minitest (5.4.0)
54
54
  multi_json (1.10.1)
55
- netrc (0.7.7)
55
+ netrc (0.8.0)
56
56
  pagarme (1.9.6)
57
57
  multi_json
58
58
  rest-client
@@ -97,10 +97,10 @@ GEM
97
97
  multi_json (~> 1.0)
98
98
  rack (~> 1.0)
99
99
  tilt (~> 1.1, != 1.3.0)
100
- sprockets-rails (2.1.4)
100
+ sprockets-rails (2.2.0)
101
101
  actionpack (>= 3.0)
102
102
  activesupport (>= 3.0)
103
- sprockets (~> 2.8)
103
+ sprockets (>= 2.8, < 4.0)
104
104
  thor (0.19.1)
105
105
  thread_safe (0.3.4)
106
106
  tilt (1.4.1)
@@ -125,16 +125,16 @@ App.views.PagarmeForm.addChild('PaymentCard', {
125
125
  var cc = (number + '').replace(/\s/g, ''); //remove space
126
126
 
127
127
  if ((/^(34|37)/).test(cc) && cc.length == 15) {
128
- return 'AmericanExpress'; //AMEX begins with 34 or 37, and length is 15.
128
+ return 'AMEX'; //AMEX begins with 34 or 37, and length is 15.
129
129
  } else if ((/^(51|52|53|54|55)/).test(cc) && cc.length == 16) {
130
- return 'Mastercard'; //MasterCard beigins with 51-55, and length is 16.
130
+ return 'MASTER'; //MasterCard beigins with 51-55, and length is 16.
131
131
  } else if ((/^(4)/).test(cc) && (cc.length == 13 || cc.length == 16)) {
132
- return 'Visa'; //VISA begins with 4, and length is 13 or 16.
132
+ return 'VISA'; //VISA begins with 4, and length is 13 or 16.
133
133
  } else if ((/^(300|301|302|303|304|305|36|38)/).test(cc) && cc.length == 14) {
134
- return 'Diners'; //Diners Club begins with 300-305 or 36 or 38, and length is 14.
134
+ return 'DINERS'; //Diners Club begins with 300-305 or 36 or 38, and length is 14.
135
135
  } else if ((/^(38)/).test(cc) && cc.length == 19) {
136
- return 'Hipercard';
136
+ return 'HIPER';
137
137
  }
138
- return 'Desconhecido';
138
+ return '';
139
139
  }
140
140
  });
@@ -28,6 +28,7 @@ App.views.PagarmeForm.addChild('PaymentSlip', {
28
28
 
29
29
  e.preventDefault();
30
30
  $(e.currentTarget).hide();
31
+ this.$('#payment-slip-instructions').slideUp('slow');
31
32
  that.PagarmeForm.loader.show();
32
33
 
33
34
  var bankAccountAttributes = {
@@ -47,15 +47,17 @@
47
47
  .w-row
48
48
  .w-col.w-col-6.w-sub-col
49
49
  = label_tag :payment_card_number, t('projects.contributions.edit.form_labels.payment_card_number'), class: 'fontweight-semibold field-label'
50
- .card-brand.prefix.text-field
51
- #payment_card_flag.fontsize-smallest.fontcolor-secondary.u-text-center
52
- |&nbsp;
53
- .card-number
54
- = text_field_tag :payment_card_number, nil, class: 'w-input text-field postfix'
50
+ .w-row
51
+ .w-col.w-col-9.w-col-small-9.w-col-tiny-9
52
+ = text_field_tag :payment_card_number, nil, class: 'w-input text-field prefix'
53
+ .w-col.w-col-3.w-col-small-3.w-col-tiny-3.text-field.postfix.no-hover
54
+ #payment_card_flag.fontsize-smallest.fontcolor-secondary.u-text-center
55
+ |&nbsp;
55
56
  .w-col.w-col-6
56
57
  .w-row
57
58
  .w-col.w-col-6.w-col-small-6.w-col-tiny-6.w-sub-col-middle
58
- = label_tag :payment_card_source, t('projects.contributions.edit.form_labels.payment_card_source'), class: 'field-label fontweight-semibold'
59
+ = label_tag :payment_card_source, t('projects.contributions.edit.form_labels.payment_card_source'), class: 'field-label fontweight-semibold w-hidden-medium'
60
+ = label_tag :payment_card_source, t('projects.contributions.edit.form_labels.payment_card_source_short'), class: 'field-label fontweight-semibold w-hidden-main w-hidden-small w-hidden-tiny'
59
61
  = text_field_tag :payment_card_source, nil, class: 'w-input text-field'
60
62
  .w-col.w-col-6.w-col-small-6.w-col-tiny-6
61
63
  = label_tag :payment_card_date, t('projects.contributions.edit.form_labels.payment_card_date'), class: 'field-label fontweight-semibold'
@@ -80,22 +82,24 @@
80
82
  = render partial: 'terms'
81
83
 
82
84
  #payment_type_slip_section.payment_section.w-hidden
85
+ .card.card-message.u-radius.zindex-10.fontsize-small.u-marginbottom-30
86
+ = t('projects.contributions.edit.payment_slip_disclaimer')
83
87
  = simple_form_for current_user, url: 'javascript:void(0)' do |f|
84
88
  .bank_accounts
85
89
  = f.simple_fields_for :bank_account do |bank_form|
86
90
  .w-row
87
91
  = bank_form.input :bank_id, as: :select, collection: Bank.order(:code, :name).to_collection, wrapper_html: {class: 'w-col w-col-12'}
88
92
  .w-row
89
- = bank_form.input :agency, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-col-4 w-col-small-8'}
90
- = bank_form.input :agency_digit, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-sub-col w-col-2 w-col-small-4'}
91
- = bank_form.input :account, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-col-4 w-col-small-8'}
92
- = bank_form.input :account_digit, as: :string, wrapper_html: {class: 'w-col w-col-2 w-col-small-4'}
93
+ = bank_form.input :agency, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-col-4 w-col-small-8 w-col-tiny-8'}
94
+ = bank_form.input :agency_digit, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-sub-col w-col-2 w-col-small-4 w-col-tiny-4'}
95
+ = bank_form.input :account, as: :string, wrapper_html: {class: 'w-col w-sub-col-middle w-col-4 w-col-small-8 w-col-tiny-8'}
96
+ = bank_form.input :account_digit, as: :string, wrapper_html: {class: 'w-col w-col-2 w-col-small-4 w-col-tiny-4'}
93
97
  .w-row
94
98
  = bank_form.input :owner_name, as: :string, input_html: { value: bank_form.object.owner_name || current_user.full_name }, wrapper_html: {class: 'w-col w-sub-col w-col-6'}
95
99
  = bank_form.input :owner_document, as: :string, input_html: { value: bank_form.object.owner_document || current_user.cpf }, wrapper_html: {class: 'w-col w-col-6'}
96
100
  .w-row
97
101
  .w-col.w-col-12
98
- .card.card-message.u-radius.fontsize-small.zindex-10.u-marginbottom-30
102
+ #payment-slip-instructions.card.card-message.u-radius.fontsize-small.zindex-10.u-marginbottom-30
99
103
  | Após clicar no botão abaixo, você receberá um link com o boleto para completar o pagamento.
100
104
  .w-row
101
105
  .w-col.w-col-12
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
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.1.0
4
+ version: 2.1.1
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: 2014-10-20 00:00:00.000000000 Z
12
+ date: 2014-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails