devise-i18n-bootstrap 0.3.0.beta → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -1
  3. data/app/views/devise/_links.erb +3 -3
  4. data/app/views/devise/confirmations/new.html.erb +10 -7
  5. data/app/views/devise/mailer/confirmation_instructions.html.erb +6 -4
  6. data/app/views/devise/mailer/reset_password_instructions.html.erb +5 -5
  7. data/app/views/devise/mailer/unlock_instructions.html.erb +4 -4
  8. data/app/views/devise/passwords/edit.html.erb +11 -10
  9. data/app/views/devise/passwords/new.html.erb +10 -7
  10. data/app/views/devise/registrations/edit.html.erb +24 -16
  11. data/app/views/devise/registrations/new.html.erb +12 -13
  12. data/app/views/devise/sessions/_navbar_new.html.erb +18 -0
  13. data/app/views/devise/sessions/new.html.erb +13 -15
  14. data/app/views/devise/shared/_links.erb +6 -6
  15. data/app/views/devise/unlocks/new.html.erb +11 -7
  16. data/config/locales/de.yml +3 -3
  17. data/config/locales/en.yml +10 -1
  18. data/config/locales/hu.yml +70 -10
  19. data/lib/devise-i18n-bootstrap.rb +4 -21
  20. data/lib/devise_i18n_bootstrap/engine.rb +20 -0
  21. data/lib/devise_i18n_bootstrap/version.rb +3 -0
  22. data/lib/generators/devise/views/i18n_templates/i18n_templates_generator.rb +1 -1
  23. data/spec/controllers/home_controller_spec.rb +12 -0
  24. data/spec/devise_i18n_bootstrap_spec.rb +12 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  26. data/spec/dummy/app/controllers/home_controller.rb +6 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/helpers/home_helper.rb +2 -0
  29. data/spec/dummy/app/models/user.rb +7 -0
  30. data/spec/dummy/config/application.rb +23 -0
  31. data/spec/dummy/config/boot.rb +5 -0
  32. data/spec/dummy/config/environment.rb +5 -0
  33. data/spec/dummy/config/environments/development.rb +38 -0
  34. data/spec/dummy/config/environments/production.rb +82 -0
  35. data/spec/dummy/config/environments/test.rb +40 -0
  36. data/spec/dummy/config/initializers/assets.rb +8 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  39. data/spec/dummy/config/initializers/devise.rb +256 -0
  40. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/spec/dummy/config/initializers/inflections.rb +16 -0
  42. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  43. data/spec/dummy/config/initializers/session_store.rb +3 -0
  44. data/spec/dummy/config/initializers/simple_form.rb +165 -0
  45. data/spec/dummy/config/initializers/simple_form_bootstrap.rb +128 -0
  46. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/spec/dummy/config/routes.rb +60 -0
  48. data/spec/dummy/db/migrate/20140729100536_devise_create_users.rb +41 -0
  49. data/spec/dummy/db/schema.rb +43 -0
  50. data/spec/features/sessions_spec.rb +1 -0
  51. data/spec/spec_helper.rb +28 -0
  52. metadata +204 -21
  53. data/.document +0 -5
  54. data/.project +0 -12
  55. data/.rspec +0 -1
  56. data/Gemfile +0 -9
  57. data/Rakefile +0 -30
  58. data/VERSION +0 -1
  59. data/devise-i18n-bootstrap.gemspec +0 -95
  60. data/spec/devise-i18n-bootstrap_spec.rb +0 -8
@@ -0,0 +1,43 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140729100536) do
15
+
16
+ create_table "users", force: true do |t|
17
+ t.string "email", default: "", null: false
18
+ t.string "encrypted_password", default: "", null: false
19
+ t.string "reset_password_token"
20
+ t.datetime "reset_password_sent_at"
21
+ t.datetime "remember_created_at"
22
+ t.integer "sign_in_count", default: 0, null: false
23
+ t.datetime "current_sign_in_at"
24
+ t.datetime "last_sign_in_at"
25
+ t.string "current_sign_in_ip"
26
+ t.string "last_sign_in_ip"
27
+ t.string "confirmation_token"
28
+ t.datetime "confirmed_at"
29
+ t.datetime "confirmation_sent_at"
30
+ t.string "unconfirmed_email"
31
+ t.integer "failed_attempts", default: 0, null: false
32
+ t.string "unlock_token"
33
+ t.datetime "locked_at"
34
+ t.datetime "created_at"
35
+ t.datetime "updated_at"
36
+ end
37
+
38
+ add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
39
+ add_index "users", ["email"], name: "index_users_on_email", unique: true
40
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
41
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
42
+
43
+ end
@@ -0,0 +1 @@
1
+ require 'spec_helper'
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,31 @@
1
1
  require 'rspec'
2
2
  require 'yaml' unless defined?(YAML)
3
3
  require 'i18n-spec'
4
+
5
+ # Configure Rails Envinronment
6
+ ENV["RAILS_ENV"] = 'test'
7
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
8
+
9
+ require 'rspec/rails'
10
+ require 'database_cleaner'
11
+
12
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc,
15
+ # in spec/support/ and its subdirectories.
16
+ Dir[File.join(ENGINE_RAILS_ROOT, 'spec/support/**/*.rb')].each { |f| require f }
17
+
18
+ RSpec.configure do |config|
19
+ config.include Devise::TestHelpers, type: :controller
20
+ config.use_transactional_fixtures = false
21
+ config.before(:suite) do
22
+ DatabaseCleaner.strategy = :transaction
23
+ DatabaseCleaner.clean_with(:truncation)
24
+ end
25
+ config.before(:each) do
26
+ DatabaseCleaner.start
27
+ end
28
+ config.after(:each) do
29
+ DatabaseCleaner.clean
30
+ end
31
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-i18n-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mcasimir
@@ -9,22 +9,98 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-21 00:00:00.000000000 Z
12
+ date: 2014-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "<"
19
+ - !ruby/object:Gem::Version
20
+ version: '5.0'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: '3.2'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - "<"
29
+ - !ruby/object:Gem::Version
30
+ version: '5.0'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ - !ruby/object:Gem::Dependency
35
+ name: devise
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: devise-i18n
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: simple_form
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
14
76
  - !ruby/object:Gem::Dependency
15
77
  name: rspec
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.0
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.0
90
+ - !ruby/object:Gem::Dependency
91
+ name: rspec-rails
16
92
  requirement: !ruby/object:Gem::Requirement
17
93
  requirements:
18
94
  - - ">="
19
95
  - !ruby/object:Gem::Version
20
- version: 2.4.0
96
+ version: '0'
21
97
  type: :development
22
98
  prerelease: false
23
99
  version_requirements: !ruby/object:Gem::Requirement
24
100
  requirements:
25
101
  - - ">="
26
102
  - !ruby/object:Gem::Version
27
- version: 2.4.0
103
+ version: '0'
28
104
  - !ruby/object:Gem::Dependency
29
105
  name: bundler
30
106
  requirement: !ruby/object:Gem::Requirement
@@ -43,18 +119,18 @@ dependencies:
43
119
  name: jeweler
44
120
  requirement: !ruby/object:Gem::Requirement
45
121
  requirements:
46
- - - "~>"
122
+ - - ">="
47
123
  - !ruby/object:Gem::Version
48
- version: 1.8.3
124
+ version: '0'
49
125
  type: :development
50
126
  prerelease: false
51
127
  version_requirements: !ruby/object:Gem::Requirement
52
128
  requirements:
53
- - - "~>"
129
+ - - ">="
54
130
  - !ruby/object:Gem::Version
55
- version: 1.8.3
131
+ version: '0'
56
132
  - !ruby/object:Gem::Dependency
57
- name: i18n-spec
133
+ name: omniauth
58
134
  requirement: !ruby/object:Gem::Requirement
59
135
  requirements:
60
136
  - - ">="
@@ -68,7 +144,7 @@ dependencies:
68
144
  - !ruby/object:Gem::Version
69
145
  version: '0'
70
146
  - !ruby/object:Gem::Dependency
71
- name: localeapp
147
+ name: twitter-bootstrap-rails
72
148
  requirement: !ruby/object:Gem::Requirement
73
149
  requirements:
74
150
  - - ">="
@@ -81,6 +157,90 @@ dependencies:
81
157
  - - ">="
82
158
  - !ruby/object:Gem::Version
83
159
  version: '0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: better_errors
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: binding_of_caller
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ type: :development
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ - !ruby/object:Gem::Dependency
189
+ name: sqlite3
190
+ requirement: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ type: :development
196
+ prerelease: false
197
+ version_requirements: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ - !ruby/object:Gem::Dependency
203
+ name: capybara
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ - !ruby/object:Gem::Dependency
217
+ name: database_cleaner
218
+ requirement: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ - !ruby/object:Gem::Dependency
231
+ name: i18n-spec
232
+ requirement: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 0.5.1
237
+ type: :development
238
+ prerelease: false
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: 0.5.1
84
244
  description: I18n support for devise views based on Twitter Bootstrap 3
85
245
  email: nyitrai@maximalink.com
86
246
  executables: []
@@ -89,14 +249,8 @@ extra_rdoc_files:
89
249
  - LICENSE.txt
90
250
  - README.md
91
251
  files:
92
- - ".document"
93
- - ".project"
94
- - ".rspec"
95
- - Gemfile
96
252
  - LICENSE.txt
97
253
  - README.md
98
- - Rakefile
99
- - VERSION
100
254
  - app/views/devise/_links.erb
101
255
  - app/views/devise/confirmations/new.html.erb
102
256
  - app/views/devise/mailer/confirmation_instructions.html.erb
@@ -106,6 +260,7 @@ files:
106
260
  - app/views/devise/passwords/new.html.erb
107
261
  - app/views/devise/registrations/edit.html.erb
108
262
  - app/views/devise/registrations/new.html.erb
263
+ - app/views/devise/sessions/_navbar_new.html.erb
109
264
  - app/views/devise/sessions/new.html.erb
110
265
  - app/views/devise/shared/_links.erb
111
266
  - app/views/devise/unlocks/new.html.erb
@@ -126,11 +281,39 @@ files:
126
281
  - config/locales/tr.yml
127
282
  - config/locales/zh-CN.yml
128
283
  - config/locales/zh-TW.yml
129
- - devise-i18n-bootstrap.gemspec
130
284
  - lib/devise-i18n-bootstrap.rb
285
+ - lib/devise_i18n_bootstrap/engine.rb
286
+ - lib/devise_i18n_bootstrap/version.rb
131
287
  - lib/generators/devise/views/i18n_templates/i18n_templates_generator.rb
132
288
  - lib/generators/devise/views/locale/locale_generator.rb
133
- - spec/devise-i18n-bootstrap_spec.rb
289
+ - spec/controllers/home_controller_spec.rb
290
+ - spec/devise_i18n_bootstrap_spec.rb
291
+ - spec/dummy/app/controllers/application_controller.rb
292
+ - spec/dummy/app/controllers/home_controller.rb
293
+ - spec/dummy/app/helpers/application_helper.rb
294
+ - spec/dummy/app/helpers/home_helper.rb
295
+ - spec/dummy/app/models/user.rb
296
+ - spec/dummy/config/application.rb
297
+ - spec/dummy/config/boot.rb
298
+ - spec/dummy/config/environment.rb
299
+ - spec/dummy/config/environments/development.rb
300
+ - spec/dummy/config/environments/production.rb
301
+ - spec/dummy/config/environments/test.rb
302
+ - spec/dummy/config/initializers/assets.rb
303
+ - spec/dummy/config/initializers/backtrace_silencers.rb
304
+ - spec/dummy/config/initializers/cookies_serializer.rb
305
+ - spec/dummy/config/initializers/devise.rb
306
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
307
+ - spec/dummy/config/initializers/inflections.rb
308
+ - spec/dummy/config/initializers/mime_types.rb
309
+ - spec/dummy/config/initializers/session_store.rb
310
+ - spec/dummy/config/initializers/simple_form.rb
311
+ - spec/dummy/config/initializers/simple_form_bootstrap.rb
312
+ - spec/dummy/config/initializers/wrap_parameters.rb
313
+ - spec/dummy/config/routes.rb
314
+ - spec/dummy/db/migrate/20140729100536_devise_create_users.rb
315
+ - spec/dummy/db/schema.rb
316
+ - spec/features/sessions_spec.rb
134
317
  - spec/spec_helper.rb
135
318
  homepage: http://github.com/maximalink/devise-i18n-bootstrap
136
319
  licenses:
@@ -147,12 +330,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
330
  version: '0'
148
331
  required_rubygems_version: !ruby/object:Gem::Requirement
149
332
  requirements:
150
- - - ">"
333
+ - - ">="
151
334
  - !ruby/object:Gem::Version
152
- version: 1.3.1
335
+ version: '0'
153
336
  requirements: []
154
337
  rubyforge_project:
155
- rubygems_version: 2.2.2
338
+ rubygems_version: 2.4.1
156
339
  signing_key:
157
340
  specification_version: 4
158
341
  summary: I18n support for devise views based on Twitter Bootstrap 3
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/.project DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>devise-i18n-views</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- </buildSpec>
9
- <natures>
10
- <nature>com.aptana.ruby.core.rubynature</nature>
11
- </natures>
12
- </projectDescription>
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- group :development do
4
- gem "rspec", ">= 2.4.0"
5
- gem "bundler"
6
- gem "jeweler", "~> 1.8.3"
7
- gem 'i18n-spec'
8
- gem 'localeapp'
9
- end
data/Rakefile DELETED
@@ -1,30 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "devise-i18n-bootstrap"
18
- gem.homepage = "http://github.com/maximalink/devise-i18n-bootstrap"
19
- gem.license = "MIT"
20
- gem.summary = %Q{I18n support for devise views based on Twitter Bootstrap 3}
21
- gem.description = %Q{I18n support for devise views based on Twitter Bootstrap 3}
22
- gem.email = 'nyitrai@maximalink.com'
23
- gem.authors = ['mcasimir', 'Jozsef Nyitrai']
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- require 'rspec/core/rake_task'
29
-
30
- RSpec::Core::RakeTask.new