catarse_pagarme 1.4.0 → 1.4.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: 96fed780b53196881c86dce50f950ae201075245
|
4
|
+
data.tar.gz: f08ab9098cf16ce847651cbc4c4ea483e8d82174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e189bd5bc2d0aa46387a37160e37c62ef255bebd7b0ff241a7407157c88a9a744afd094c56c8c495c55fea251607a50b4e67147f4f24edc0d6d8c6824e10cd62
|
7
|
+
data.tar.gz: 9f648a2b422104fc02c1a0fbb9cdb34e80735eaf428673cdd6fd6744b45517b661e19e34f20cf1162d7f449d7586f7fdd34319e93b3380062f3d3a91b6b84a95
|
@@ -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
|
@@ -6,7 +6,7 @@ module CatarsePagarme
|
|
6
6
|
|
7
7
|
collection = installments.map do |installment|
|
8
8
|
installment_number = installment[0].to_i
|
9
|
-
if installment_number <= CatarsePagarme.configuration.max_installments
|
9
|
+
if installment_number <= CatarsePagarme.configuration.max_installments.to_i
|
10
10
|
amount = installment[1]['installment_amount'] / 100.0
|
11
11
|
|
12
12
|
optional_text = nil
|
@@ -31,7 +31,7 @@
|
|
31
31
|
.radio_button
|
32
32
|
= radio_button_tag :payment_subscription_card, credit_card.subscription_id, { checked: (i == 0) }
|
33
33
|
.select_installments
|
34
|
-
- if @contribution.value >= CatarsePagarme.configuration.minimum_value_for_installment
|
34
|
+
- if @contribution.value.to_f >= CatarsePagarme.configuration.minimum_value_for_installment.to_f
|
35
35
|
= select_tag :payment_card_installments, options_for_select(installments_for_select(@contribution))
|
36
36
|
.card_info
|
37
37
|
= "XXXX.XXXX.XXXX.#{credit_card.last_digits}"
|
@@ -51,7 +51,7 @@
|
|
51
51
|
li.name
|
52
52
|
= label_tag :payment_card_name, t('projects.contributions.edit.form_labels.payment_card_name')
|
53
53
|
= text_field_tag :payment_card_name, nil
|
54
|
-
- if @contribution.value >= CatarsePagarme.configuration.minimum_value_for_installment
|
54
|
+
- if @contribution.value.to_f >= CatarsePagarme.configuration.minimum_value_for_installment.to_f
|
55
55
|
li.cpf
|
56
56
|
= label_tag :payment_card_installments, t('projects.contributions.edit.form_labels.payment_card_installments')
|
57
57
|
= select_tag :payment_card_installments, options_for_select(installments_for_select(@contribution))
|
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: 1.4.
|
4
|
+
version: 1.4.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
|