mj-suspenders 0.0.2 → 0.0.3

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: 435e07e0fee88741e0f7bddba7c10d58f5d92aed
4
- data.tar.gz: 2a266d5d3335f403fbd5301859effc345fbe1a95
3
+ metadata.gz: c671dd4ca40fedc1b15551b60f41e0ba7cf092e5
4
+ data.tar.gz: 37c64af7313a12cb1cb6b6b81c4ca77b42e72a22
5
5
  SHA512:
6
- metadata.gz: 9275341b69dc57f606538a37f90d2b3f52b07207a389bede765890b4edadbb06bd8294125ff247093feb5347c70a863b6bb7169c6f045de7a020051570710732
7
- data.tar.gz: 0d0c13ebe176c1e0f86728e8d349a8b547d58d9daece38cf961178c631c10b61825f70268b57de95983be08d08bd0c1bd35c3fbbbec027ee2888fdb4c5f2ab63
6
+ metadata.gz: e3d05ce17999952145afced9901b02b6801a9191bb263b624ff1e9b2cdd825809c3e93246604f19b9c6ed42d13249f8ec1d41856df6daf822c3480f0e246a8b8
7
+ data.tar.gz: 298fc884daeb31cbc1d85991dbb47e77cef070856230fd664b24460aa93f5e4a98a8e30afe02310a7ec3eeeb61d7dd80aac959523c2e915b4d49e3e9d1103d0b
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- # - 1.9.3
3
+ - 1.9.3
4
4
  - 2.0.0
5
- # - 2.1.0
6
- # - 2.1.1
5
+ - 2.1.0
6
+ - 2.1.1
7
7
  notifications:
8
8
  email:
9
9
  on_failure: change
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mj-suspenders (0.0.2)
4
+ mj-suspenders (0.0.3)
5
5
  bundler (~> 1.6)
6
6
  rails (= 4.0.4)
7
7
 
@@ -48,6 +48,10 @@ module Suspenders
48
48
  generate 'machinist:install'
49
49
  end
50
50
 
51
+ def generate_foundation
52
+ generate 'foundation:install -f'
53
+ end
54
+
51
55
  def setup_smtp
52
56
  copy_file 'smtp.yml.erb', 'config/smtp.yml'
53
57
  copy_file 'smtp_initializer.rb', 'config/initializers/smtp_setup.rb'
@@ -171,6 +175,18 @@ end
171
175
  inject_into_class 'config/application.rb', 'Application', config
172
176
  end
173
177
 
178
+ def set_i18n
179
+ copy_file 'devise.en.yml', 'config/locales/devise.en.yml'
180
+ copy_file 'devise.pt-BR.yml', 'config/locales/devise.pt-BR.yml'
181
+
182
+ config = <<-RUBY
183
+ config.i18n.default_locale = 'pt-BR'
184
+
185
+ RUBY
186
+
187
+ inject_into_class 'config/application.rb', 'Application', config
188
+ end
189
+
174
190
  def generate_rspec
175
191
  generate 'rspec:install'
176
192
  end
@@ -84,6 +84,7 @@ module Suspenders
84
84
  build :create_shared_flashes
85
85
  build :create_shared_javascripts
86
86
  build :create_application_layout
87
+ build :generate_foundation
87
88
  end
88
89
 
89
90
  def setup_coffeescript
@@ -98,6 +99,7 @@ module Suspenders
98
99
  build :configure_time_zone
99
100
  build :configure_time_formats
100
101
  build :disable_xml_params
102
+ build :set_i18n
101
103
  build :fix_i18n_deprecation_warning
102
104
  build :setup_default_rake_task
103
105
  build :configure_unicorn
@@ -1,3 +1,3 @@
1
1
  module Suspenders
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -18,6 +18,8 @@ gem 'unicorn'
18
18
  gem 'kaminari'
19
19
  gem 'vattributes'
20
20
  gem 'draper', '~> 1.3'
21
+ gem 'foundation-rails'
22
+ gem 'foundation-icons-sass-rails'
21
23
 
22
24
  group :development do
23
25
  gem 'spring'
@@ -1,5 +1,14 @@
1
- <div id="flash">
2
- <% flash.each do |key, value| -%>
3
- <div id="flash_<%= key %>"><%= value %></div>
4
- <% end -%>
5
- </div>
1
+ <% if notice %>
2
+ <div class="alert-box success">
3
+ <div class="row">
4
+ <%= notice %>
5
+ </div>
6
+ </div>
7
+ <% end %>
8
+ <% if alert %>
9
+ <div class="alert-box alert">
10
+ <div class="row">
11
+ <%= alert %>
12
+ </div>
13
+ </div>
14
+ <% end %>
@@ -1,4 +1,7 @@
1
1
  /**
2
2
  *= require_self
3
3
  *= require_tree .
4
+ *= require foundation_and_overrides
4
5
  */
6
+
7
+ @import 'foundation-icons';
@@ -0,0 +1,59 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your account was successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid email or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account will be locked."
15
+ not_found_in_database: "Invalid email or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your account before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock Instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
+ send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
32
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
+ updated: "Your password was changed successfully. You are now signed in."
34
+ updated_not_active: "Your password was changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
41
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
42
+ updated: "You updated your account successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ unlocks:
47
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
50
+ errors:
51
+ messages:
52
+ already_confirmed: "was already confirmed, please try signing in"
53
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
54
+ expired: "has expired, please request a new one"
55
+ not_found: "not found"
56
+ not_locked: "was not locked"
57
+ not_saved:
58
+ one: "1 error prohibited this %{resource} from being saved:"
59
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -0,0 +1,60 @@
1
+ # encoding: UTF-8
2
+ # pt-BR translations for Devise
3
+ pt-BR:
4
+ devise:
5
+ confirmations:
6
+ confirmed: 'Sua conta foi confirmada com sucesso. Você está logado.'
7
+ send_instructions: 'Dentro de minutos, você receberá um e-mail com instruções para a confirmação da sua conta.'
8
+ send_paranoid_instructions: 'Se o seu endereço de e-mail estiver cadastrado, você receberá uma mensagem com instruções para confirmação da sua conta.'
9
+ failure:
10
+ already_authenticated: 'Você já está logado.'
11
+ inactive: 'Sua conta ainda não foi ativada.'
12
+ invalid: 'E-mail ou senha inválidos.'
13
+ invalid_token: 'O token de autenticação não é válido.'
14
+ locked: 'Sua conta está bloqueada.'
15
+ not_found_in_database: 'E-mail ou senha inválidos.'
16
+ timeout: 'Sua sessão expirou, por favor, efetue login novamente para continuar.'
17
+ unauthenticated: 'Para continuar, efetue login ou registre-se.'
18
+ unconfirmed: 'Antes de continuar, confirme a sua conta.'
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: 'Instruções de confirmação'
22
+ reset_password_instructions:
23
+ subject: 'Instruções de troca de senha'
24
+ unlock_instructions:
25
+ subject: 'Instruções de desbloqueio'
26
+ omniauth_callbacks:
27
+ failure: 'Não foi possível autenticá-lo como %{kind} porque "%{reason}".'
28
+ success: 'Autenticado com sucesso com uma conta de %{kind}.'
29
+ passwords:
30
+ no_token: "Você só pode acessar essa página através de um e-mail de troca de senha. Se já estiver acessando por um e-mail, verifique se a URL fornecida está completa."
31
+ send_instructions: 'Dentro de minutos, você receberá um e-mail com instruções para a troca da sua senha.'
32
+ send_paranoid_instructions: 'Se o seu endereço de e-mail estiver cadastrado, você receberá um link de recuperação da senha via e-mail.'
33
+ updated: 'Sua senha foi alterada com sucesso. Você está logado.'
34
+ updated_not_active: 'Sua senha foi alterada com sucesso.'
35
+ registrations:
36
+ destroyed: 'Tchau! Sua conta foi cancelada com sucesso. Esperamos vê-lo novamente em breve.'
37
+ signed_up: 'Login efetuado com sucesso. Se não foi autorizado, a confirmação será enviada por e-mail.'
38
+ signed_up_but_inactive: 'Você foi cadastrado com sucesso. No entanto, não foi possível efetuar login, pois sua conta não foi ativada.'
39
+ signed_up_but_locked: 'Você foi cadastrado com sucesso. No entanto, não foi possível efetuar login, pois sua conta está bloqueada.'
40
+ signed_up_but_unconfirmed: 'Uma mensagem com um link de confirmação foi enviada para o seu endereço de e-mail. Por favor, abra o link para confirmar a sua conta.'
41
+ update_needs_confirmation: 'Você atualizou a sua conta com sucesso, mas o seu novo endereço de e-mail precisa ser confirmado. Por favor, acesse-o e clique no link de confirmação que enviamos.'
42
+ updated: 'Sua conta foi atualizada com sucesso.'
43
+ sessions:
44
+ signed_in: 'Login efetuado com sucesso!'
45
+ signed_out: 'Saiu com sucesso.'
46
+ unlocks:
47
+ send_instructions: 'Dentro de minutos, você receberá um email com instruções para o desbloqueio da sua conta.'
48
+ send_paranoid_instructions: 'Se sua conta existir, você receberá um e-mail com instruções para desbloqueá-la em alguns minutos.'
49
+ unlocked: 'Sua conta foi desbloqueada com sucesso. Efetue login para continuar.'
50
+
51
+ errors:
52
+ messages:
53
+ already_confirmed: "já foi confirmado"
54
+ confirmation_period_expired: "precisa ser confirmada em até %{period}, por favor, solicite uma nova"
55
+ expired: "expirou, por favor, solicite uma nova"
56
+ not_found: "não encontrado"
57
+ not_locked: "não foi bloqueado"
58
+ not_saved:
59
+ one: "Não foi possível salvar %{resource}: 1 erro"
60
+ other: "Não foi possível salvar %{resource}: %{count} erros."
@@ -0,0 +1,243 @@
1
+ pt-BR:
2
+ date:
3
+ abbr_day_names:
4
+ - Dom
5
+ - Seg
6
+ - Ter
7
+ - Qua
8
+ - Qui
9
+ - Sex
10
+ - Sáb
11
+ abbr_month_names:
12
+ -
13
+ - Jan
14
+ - Fev
15
+ - Mar
16
+ - Abr
17
+ - Mai
18
+ - Jun
19
+ - Jul
20
+ - Ago
21
+ - Set
22
+ - Out
23
+ - Nov
24
+ - Dez
25
+ day_names:
26
+ - Domingo
27
+ - Segunda
28
+ - Terça
29
+ - Quarta
30
+ - Quinta
31
+ - Sexta
32
+ - Sábado
33
+ formats:
34
+ default: ! '%d/%m/%Y'
35
+ long: ! '%d de %B de %Y'
36
+ short: ! '%d de %B'
37
+ month_names:
38
+ -
39
+ - Janeiro
40
+ - Fevereiro
41
+ - Março
42
+ - Abril
43
+ - Maio
44
+ - Junho
45
+ - Julho
46
+ - Agosto
47
+ - Setembro
48
+ - Outubro
49
+ - Novembro
50
+ - Dezembro
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: aproximadamente 1 hora
59
+ other: aproximadamente %{count} horas
60
+ about_x_months:
61
+ one: aproximadamente 1 mês
62
+ other: aproximadamente %{count} meses
63
+ about_x_years:
64
+ one: aproximadamente 1 ano
65
+ other: aproximadamente %{count} anos
66
+ almost_x_years:
67
+ one: quase 1 ano
68
+ other: quase %{count} anos
69
+ half_a_minute: meio minuto
70
+ less_than_x_minutes:
71
+ one: menos de um minuto
72
+ other: menos de %{count} minutos
73
+ less_than_x_seconds:
74
+ one: menos de 1 segundo
75
+ other: menos de %{count} segundos
76
+ over_x_years:
77
+ one: mais de 1 ano
78
+ other: mais de %{count} anos
79
+ x_days:
80
+ one: 1 dia
81
+ other: ! '%{count} dias'
82
+ x_minutes:
83
+ one: 1 minuto
84
+ other: ! '%{count} minutos'
85
+ x_months:
86
+ one: 1 mês
87
+ other: ! '%{count} meses'
88
+ x_seconds:
89
+ one: 1 segundo
90
+ other: ! '%{count} segundos'
91
+ prompts:
92
+ day: Dia
93
+ hour: Hora
94
+ minute: Minuto
95
+ month: Mês
96
+ second: Segundo
97
+ year: Ano
98
+ errors: &errors
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: deve ser aceito
102
+ blank: não pode ficar em branco
103
+ present: deve ficar em branco
104
+ confirmation: não está de acordo com a confirmação
105
+ empty: não pode ficar vazio
106
+ equal_to: deve ser igual a %{count}
107
+ even: deve ser par
108
+ exclusion: não está disponível
109
+ greater_than: deve ser maior que %{count}
110
+ greater_than_or_equal_to: deve ser maior ou igual a %{count}
111
+ inclusion: não está incluído na lista
112
+ invalid: não é válido
113
+ less_than: deve ser menor que %{count}
114
+ less_than_or_equal_to: deve ser menor ou igual a %{count}
115
+ not_a_number: não é um número
116
+ not_an_integer: não é um número inteiro
117
+ odd: deve ser ímpar
118
+ record_invalid: ! 'A validação falhou: %{errors}'
119
+ restrict_dependent_destroy:
120
+ one: "Não é possível excluir o registro pois existe um %{record} dependente"
121
+ many: "Não é possível excluir o registro pois existem %{record} dependentes"
122
+ taken: já está em uso
123
+ too_long: ! 'é muito longo (máximo: %{count} caracteres)'
124
+ too_short: ! 'é muito curto (mínimo: %{count} caracteres)'
125
+ wrong_length: não possui o tamanho esperado (%{count} caracteres)
126
+ template:
127
+ body: ! 'Por favor, verifique o(s) seguinte(s) campo(s):'
128
+ header:
129
+ one: ! 'Não foi possível gravar %{model}: 1 erro'
130
+ other: ! 'Não foi possível gravar %{model}: %{count} erros.'
131
+ helpers:
132
+ select:
133
+ prompt: Por favor selecione
134
+ submit:
135
+ create: Criar %{model}
136
+ submit: Salvar %{model}
137
+ update: Atualizar %{model}
138
+ number:
139
+ currency:
140
+ format:
141
+ delimiter: .
142
+ format: ! '%u %n'
143
+ precision: 2
144
+ separator: ! ','
145
+ significant: false
146
+ strip_insignificant_zeros: false
147
+ unit: R$
148
+ format:
149
+ delimiter: .
150
+ precision: 3
151
+ separator: ! ','
152
+ significant: false
153
+ strip_insignificant_zeros: false
154
+ human:
155
+ decimal_units:
156
+ format: ! '%n %u'
157
+ units:
158
+ billion:
159
+ one: bilhão
160
+ other: bilhões
161
+ million:
162
+ one: milhão
163
+ other: milhões
164
+ quadrillion:
165
+ one: quatrilhão
166
+ other: quatrilhões
167
+ thousand: mil
168
+ trillion:
169
+ one: trilhão
170
+ other: trilhões
171
+ unit: ''
172
+ format:
173
+ delimiter: .
174
+ precision: 2
175
+ significant: true
176
+ strip_insignificant_zeros: true
177
+ storage_units:
178
+ format: ! '%n %u'
179
+ units:
180
+ byte:
181
+ one: Byte
182
+ other: Bytes
183
+ gb: GB
184
+ kb: KB
185
+ mb: MB
186
+ tb: TB
187
+ percentage:
188
+ format:
189
+ delimiter: .
190
+ precision:
191
+ format:
192
+ delimiter: .
193
+ support:
194
+ array:
195
+ last_word_connector: ! ' e '
196
+ two_words_connector: ! ' e '
197
+ words_connector: ! ', '
198
+ time:
199
+ am: ''
200
+ formats:
201
+ default: ! '%a, %d de %B de %Y, %H:%M:%S %z'
202
+ long: ! '%d de %B de %Y, %H:%M'
203
+ short: ! '%d de %B, %H:%M'
204
+ pm: ''
205
+ # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
206
+ activemodel:
207
+ errors:
208
+ <<: *errors
209
+ activerecord:
210
+ errors:
211
+ <<: *errors
212
+ models:
213
+ store:
214
+ attributes:
215
+ user:
216
+ username: Nome
217
+ order:
218
+ email: Email
219
+ phone: Telefone
220
+ address_street: Rua
221
+ address_number: Número
222
+ address_complement: Complemento
223
+ address_district: Bairro
224
+ address_city: Cidade
225
+ address_state: Estado
226
+ address: Endereço
227
+ status: Situação
228
+ store:
229
+ name: Nome
230
+ slug: Url
231
+ city: Cidade
232
+ type: Tipo
233
+ address: Endereço
234
+ phone: Telefone
235
+ email: Email
236
+ state_id: Estado
237
+ category: Categoria
238
+ category_id: Categoria
239
+ payment_gateway_configuration:
240
+ name: Nome
241
+ enabled: Ativo?
242
+ email: Email
243
+ token: Token
@@ -1,15 +1,21 @@
1
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="ROBOTS" content="NOODP" />
6
- <title><%%= title %></title>
7
- <%%= stylesheet_link_tag :application, :media => 'all' %>
8
- <%%= csrf_meta_tags %>
9
- </head>
10
- <body class="<%%= body_class %>">
11
- <%%= render 'flashes' -%>
12
- <%%= yield %>
13
- <%%= render 'javascript' %>
14
- </body>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+
7
+ <meta name="ROBOTS" content="NOODP" />
8
+ <title><%%= title %></title>
9
+ <%%= stylesheet_link_tag :application, :media => 'all' %>
10
+ <%%= javascript_include_tag "vendor/modernizr" %>
11
+ <%%= csrf_meta_tags %>
12
+ </head>
13
+
14
+ <body>
15
+ <%%= render 'flashes' -%>
16
+ <div class="row">
17
+ <%%= yield %>
18
+ </div>
19
+ <%%= render 'javascript' %>
20
+ </body>
15
21
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mj-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
@@ -146,9 +146,12 @@ files:
146
146
  - templates/application.css.scss
147
147
  - templates/config_locales_en.yml
148
148
  - templates/database_cleaner_rspec.rb
149
+ - templates/devise.en.yml
150
+ - templates/devise.pt-BR.yml
149
151
  - templates/disable_xml_params.rb
150
152
  - templates/errors.rb
151
153
  - templates/i18n.rb
154
+ - templates/pt-BR.yml
152
155
  - templates/ruby-version.erb
153
156
  - templates/secret_token.rb
154
157
  - templates/smtp.yml.erb