iugusdk 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,15 +12,15 @@
12
12
  - if @subscription.suspended
13
13
  %div{ :style => "border: 2px solid #F00; padding: 20px;text-align:center;background:#FFCCCC" }
14
14
  %h1.no-bottom-margin
15
- Esta conta está suspensa
15
+ = I18n.t("iugu.this_account_is_suspended")
16
16
  %p.no-bottom-margin
17
- Você pode reativar esta conta clicando em ativar ou quitando seus débitos.
18
- - elsif @subscription.in_trial
17
+ = I18n.t("iugu.click_to_activate")
18
+ - elsif @subscription.in_trial and (@trial_days = (@subscription.expires_at.to_date.mjd - Date.today.mjd)) > 0
19
19
  %div{ :style => "border: 2px solid #185277; padding: 20px;text-align:center;background:#A6D0E8" }
20
20
  %h1.no-bottom-margin
21
- = "Período de testes."
21
+ = I18n.t("iugu.trial_period")
22
22
  %p.no-bottom-margin
23
- = "#{@subscription.trial_expires_at.to_date.mjd - Date.today.mjd} dia(s)"
23
+ = "#{@trial_days} dia(s)"
24
24
 
25
25
  %hr
26
26
 
@@ -104,7 +104,7 @@
104
104
 
105
105
  - if current_user.is?(:owner, @account)
106
106
  - if @has_subscription
107
- - if @subscription.suspended
107
+ - if @subscription.suspended or @subscription.in_trial
108
108
  = link_to I18n.t("iugu.activate"), account_activate_path(@account), :method => :post, class: "btn btn-success btn-block"
109
109
  - else
110
110
  = link_to I18n.t("iugu.suspend"), account_suspend_path(@account), :method => :post, class: "btn btn-warning btn-block"
@@ -135,6 +135,9 @@ en:
135
135
  user: "user"
136
136
  guest: "guest"
137
137
  become_user: "Become an User"
138
+ trial_period: "Trial Period"
139
+ this_account_is_suspended: "This account is suspended"
140
+ click_to_activate: "You can activate this account by clicking activate or paying your debits."
138
141
  errors:
139
142
  impossible_change_plan_features: "Impossible to change plan, verify features"
140
143
  notices:
@@ -138,6 +138,9 @@ pt-BR:
138
138
  user: "usuário"
139
139
  guest: "convidado"
140
140
  become_user: "Tornar-se um usuário"
141
+ trial_period: "Período de testes"
142
+ this_account_is_suspended: "Esta conta está suspensa"
143
+ click_to_activate: "Você pode reativar esta conta clicando em ativar ou quitando seus débitos."
141
144
  errors:
142
145
  impossible_change_plan_features: "Impossível alterar plano, verifique as funcionalidades"
143
146
  notices:
@@ -1,3 +1,3 @@
1
1
  module IuguSDK
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iugusdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-09-12 00:00:00.000000000 Z
14
+ date: 2013-10-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -940,7 +940,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
940
940
  version: '0'
941
941
  segments:
942
942
  - 0
943
- hash: -1582430321908615970
943
+ hash: -2198739510891912385
944
944
  required_rubygems_version: !ruby/object:Gem::Requirement
945
945
  none: false
946
946
  requirements:
@@ -949,7 +949,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
949
949
  version: '0'
950
950
  segments:
951
951
  - 0
952
- hash: -1582430321908615970
952
+ hash: -2198739510891912385
953
953
  requirements: []
954
954
  rubyforge_project:
955
955
  rubygems_version: 1.8.24