catarse_pagarme 2.6.0 → 2.6.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: 7dc8ae441730dda9e80feffa57915394a1b7d00f
4
- data.tar.gz: 889da7140baeb1bbdc7b43d712c77186eab8a5e7
3
+ metadata.gz: a5356050880ba2640c7d64ea497b07aca1b6d042
4
+ data.tar.gz: f98985c8e6b3a799c51a38494d2d7810ac485d30
5
5
  SHA512:
6
- metadata.gz: 2adc8c464fdcc70ad0b5d480a86130c23d78f96a73b53ac9fb641c6f6825ebbb027b0e894545b8db278c4c3a5fd31fa0753c62811168256ff2f3a8a5cd61e163
7
- data.tar.gz: 49a57fee3431a84a4fe913327232f47213b8bd9e8f96e2e1bd88dfa19cac78831c49783404c56b5a697498a182141e0ca524ebdecb3eaa8e06f0c2732014e6e7
6
+ metadata.gz: 46d2f2a9cc3039c2baedb28c7a5d8bf454f7169caf8c014362fbc16969414103ad542bffe97de6441bbf5deb1202be8719e1c19ddbdde15587c6803ee308fbd4
7
+ data.tar.gz: 78573868ae9af5576ab6de5824fade2b3bf71378efdb5e66d29a13e987dbfd4432f45d0f2e354c2d0a583203ac834e61595000cb802e9a3acdcedd2b78c96d4c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.6.0)
4
+ catarse_pagarme (2.6.1)
5
5
  pagarme (~> 1.9.8)
6
6
  rails (~> 4.0)
7
7
 
@@ -5,6 +5,7 @@ module CatarsePagarme
5
5
 
6
6
  before_filter :authenticate_user!
7
7
  before_filter :configure_pagarme
8
+ helper_method :payment
8
9
  layout :false
9
10
 
10
11
  protected
@@ -11,7 +11,7 @@ module CatarsePagarme
11
11
 
12
12
  optional_text = nil
13
13
  if installment_number != 1
14
- optional_text = I18n.t('projects.payments.edit.installment_with_tax')
14
+ optional_text = I18n.t('projects.contributions.edit.installment_with_tax')
15
15
  end
16
16
 
17
17
  ["#{format_instalment_text(installment_number, amount)} #{optional_text}", installment_number]
@@ -32,7 +32,7 @@
32
32
  = "XXXX.XXXX.XXXX.#{credit_card.last_digits}"
33
33
  .w-col.w-col-4
34
34
  - if @contribution.value.to_f >= CatarsePagarme.configuration.minimum_value_for_installment.to_f
35
- = select_tag :payment_card_installments, options_for_select(installments_for_select(@contribution)), class: 'w-select text-field text-field-creditcard'
35
+ = select_tag :payment_card_installments, options_for_select(installments_for_select(payment)), class: 'w-select text-field text-field-creditcard'
36
36
  = label_tag :payment_subscription_card_0 do
37
37
  .w-row.creditcard-records
38
38
  .w-col.w-col-1
@@ -77,7 +77,7 @@
77
77
  .w-row
78
78
  .w-col.w-col-6.w-sub-col
79
79
  = label_tag :payment_card_installments, t('projects.contributions.edit.form_labels.payment_card_installments'), class: 'field-label fontweight-semibold'
80
- = select_tag :payment_card_installments, options_for_select(installments_for_select(@contribution)), class: 'w-select text-field'
80
+ = select_tag :payment_card_installments, options_for_select(installments_for_select(payment)), class: 'w-select text-field'
81
81
  .w-checkbox.w-clearfix
82
82
  = check_box_tag :payment_save_card, 1, false, class: 'w-checkbox-input'
83
83
  = label_tag :payment_save_card, t('projects.contributions.edit.payment_save_card'), class: 'w-form-label'
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.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.6.0
4
+ version: 2.6.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: 2015-04-01 00:00:00.000000000 Z
12
+ date: 2015-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails