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: 4bb44dcd1ff070cdd8fe7e8ee470a14cd60defa3
4
- data.tar.gz: f2839ec3d7a514f999cc09bbc15df01a68a05983
3
+ metadata.gz: 83a061f286afa0a36ae73425f478a7f4d0ccdb31
4
+ data.tar.gz: 9dfb1f2fd1f10ccbb982eb9ac345a04b29bdff03
5
5
  SHA512:
6
- metadata.gz: 94006c7a955913deb3f170a520aa4b409d826aa5481df83138f7e344e6426432c543e6854f050164edece08e833a8f5f7b250a680471cf2546b762a639f994f2
7
- data.tar.gz: 786669779d47a95aa68ee6ce6ffe50a6d7515b4564d1c900160ff0f4f90054a75c782f2828cbe4b669f82bb3349109b77f31443181b8c2394e55b39f3abc3bf8
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'
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.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.3.0
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-22 00:00:00.000000000 Z
12
+ date: 2014-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails