catarse_pagarme 2.3.0 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a061f286afa0a36ae73425f478a7f4d0ccdb31
|
4
|
+
data.tar.gz: 9dfb1f2fd1f10ccbb982eb9ac345a04b29bdff03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f5d67550f8bdfc619a403c2974652c690af28b0da94dd631f694cdc77b33fa96681f0cca1d1e55d992f7d692005ce4e67311fd4433ad72e3413de6bf61e9914
|
7
|
+
data.tar.gz: 241870fde667387059968734e57f9b59394c4facf856af2a77c16796755bb28191bc95b4747879f6c5f04b6ac11d91ab9b1495128e0e71b6ed683c8b76cd5ef4
|
@@ -18,7 +18,7 @@ module CatarsePagarme
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def get_installment
|
21
|
-
if contribution.value < CatarsePagarme.configuration.minimum_value_for_installment
|
21
|
+
if contribution.value.to_f < CatarsePagarme.configuration.minimum_value_for_installment.to_f
|
22
22
|
1
|
23
23
|
elsif params[:payment_card_installments].to_i > 0
|
24
24
|
params[:payment_card_installments].to_i
|
@@ -30,7 +30,7 @@
|
|
30
30
|
.fontsize-small.fontweight-semibold.u-marginbottom-20
|
31
31
|
= "XXXX.XXXX.XXXX.#{credit_card.last_digits}"
|
32
32
|
.w-col.w-col-4
|
33
|
-
- if @contribution.value >= CatarsePagarme.configuration.minimum_value_for_installment
|
33
|
+
- if @contribution.value.to_f >= CatarsePagarme.configuration.minimum_value_for_installment.to_f
|
34
34
|
= select_tag :payment_card_installments, options_for_select(installments_for_select(@contribution)), class: 'w-select text-field text-field-creditcard'
|
35
35
|
.w-row.creditcard-records
|
36
36
|
.w-col.w-col-1
|
@@ -63,7 +63,7 @@
|
|
63
63
|
.w-col.w-col-6.w-col-small-6.w-col-tiny-6
|
64
64
|
= label_tag :payment_card_date, t('projects.contributions.edit.form_labels.payment_card_date'), class: 'field-label fontweight-semibold'
|
65
65
|
= text_field_tag :payment_card_date, nil, class: 'w-input text-field'
|
66
|
-
- if @contribution.value >= CatarsePagarme.configuration.minimum_value_for_installment
|
66
|
+
- if @contribution.value.to_f >= CatarsePagarme.configuration.minimum_value_for_installment.to_f
|
67
67
|
.w-row
|
68
68
|
.w-col.w-col-6.w-sub-col
|
69
69
|
= label_tag :payment_card_installments, t('projects.contributions.edit.form_labels.payment_card_installments'), class: 'field-label fontweight-semibold'
|
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.3.
|
4
|
+
version: 2.3.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-
|
12
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|