lobby 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/app/controllers/lobby/sessions_controller.rb +5 -5
  2. data/app/models/lobby/auth_user.rb +18 -0
  3. data/app/models/lobby/auth_user.rb~ +19 -1
  4. data/config/locales/de.yml +84 -464
  5. data/config/locales/de.yml~ +78 -467
  6. data/config/locales/en.yml +67 -76
  7. data/config/locales/en.yml~ +88 -97
  8. data/config/routes.rb +0 -2
  9. data/config/routes.rb~ +21 -0
  10. data/lib/generators/lobby/install_generator.rb +86 -0
  11. data/lib/generators/lobby/install_generator.rb~ +86 -0
  12. data/lib/generators/lobby/lobby_generator.rb~ +97 -0
  13. data/lib/generators/templates/config/config.yml +31 -0
  14. data/lib/generators/templates/config/initializers/action_mailer.rb +75 -0
  15. data/lib/generators/templates/config/initializers/constants.rb +1 -0
  16. data/lib/generators/templates/config/locales/de.yml +149 -0
  17. data/lib/generators/templates/config/locales/en.yml +148 -0
  18. data/{db/migrate/20131205180849_create_users.rb → lib/generators/templates/db/migrate/create_users.rb} +2 -2
  19. data/lib/generators/templates/views/common/_form_errors.html.haml +6 -0
  20. data/lib/generators/templates/views/confirmation/new_email_token.html.haml +10 -0
  21. data/lib/generators/templates/views/confirmation/registration.html.haml +11 -0
  22. data/lib/generators/templates/views/confirmation/registration.html.haml~ +15 -0
  23. data/lib/generators/templates/views/confirmation/resend_signup_token.html.haml +13 -0
  24. data/lib/generators/templates/views/confirmation/resend_signup_token.html.haml~ +17 -0
  25. data/lib/generators/templates/views/confirmation_mailer/new_email_request.text.haml +1 -0
  26. data/lib/generators/templates/views/confirmation_mailer/registration.text.haml +1 -0
  27. data/lib/generators/templates/views/confirmation_mailer/resend_signup_token.text.haml +1 -0
  28. data/lib/generators/templates/views/confirmation_mailer/send_password_reset.text.haml +1 -0
  29. data/lib/generators/templates/views/password_forgotten/new.html.haml +17 -0
  30. data/lib/generators/templates/views/password_forgotten/new.html.haml~ +21 -0
  31. data/lib/generators/templates/views/password_forgotten/order_new_password.html.haml +9 -0
  32. data/lib/generators/templates/views/password_forgotten/order_new_password.html.haml~ +13 -0
  33. data/lib/generators/templates/views/password_forgotten/recover_password_auth.html.haml +9 -0
  34. data/lib/generators/templates/views/sessions/new.html.haml +12 -0
  35. data/lib/generators/templates/views/sessions/new.html.haml~ +12 -0
  36. data/lib/generators/templates/views/users/new.html.haml +20 -0
  37. data/lib/generators/templates/views/users/new.html.haml~ +20 -0
  38. data/lib/lobby/engine.rb +8 -0
  39. data/lib/lobby/engine.rb~ +12 -3
  40. data/lib/lobby/version.rb +1 -1
  41. data/lib/lobby/version.rb~ +1 -1
  42. metadata +31 -3
@@ -0,0 +1 @@
1
+ = t('.body', url: @confirmation_url)
@@ -0,0 +1 @@
1
+ = t('.body', url: @confirmation_url)
@@ -0,0 +1 @@
1
+ = t('.body', url: @confirmation_url)
@@ -0,0 +1,17 @@
1
+ %h1
2
+ = t '.title'
3
+
4
+ = form_for @password_forgotten_form, url: recover_password_path, method: :post do |f|
5
+ = hidden_field_tag :token, @token
6
+
7
+ = render :partial => "/lobby/common/form_errors", :locals => {:object => @password_forgotten_form}
8
+
9
+
10
+ .form-group
11
+ = f.label :new_password, t( '.label_new_password')
12
+ = f.password_field :new_password, :class => 'form-control'
13
+ .form-group
14
+ = f.label :new_password_confirmation, t( '.label_new_password_confirmation')
15
+ = f.password_field :new_password_confirmation, :class => 'form-control'
16
+ .form-actions
17
+ = f.submit t( 'common.button.send' ), :id => 'password_forgotten_form_button', :class => 'btn btn-primary'
@@ -0,0 +1,21 @@
1
+ %main
2
+ %page-header
3
+ %h1
4
+ = t '.title'
5
+ .page-main
6
+
7
+ = form_for @password_forgotten_form, url: recover_password_path, method: :post do |f|
8
+ = hidden_field_tag :token, @token
9
+
10
+ = render :partial => "/lobby/common/form_errors", :locals => {:object => @password_forgotten_form}
11
+
12
+ .row
13
+ .col-lg-6
14
+ .form-group
15
+ = f.label :new_password, t( '.label_new_password')
16
+ = f.password_field :new_password, :class => 'form-control'
17
+ .form-group
18
+ = f.label :new_password_confirmation, t( '.label_new_password_confirmation')
19
+ = f.password_field :new_password_confirmation, :class => 'form-control'
20
+ .form-actions
21
+ = f.submit t( 'common.button.send' ), :id => 'password_forgotten_form_button', :class => 'btn btn-primary'
@@ -0,0 +1,9 @@
1
+ %h1
2
+ = t '.title'
3
+
4
+ = form_tag order_new_password_url do
5
+
6
+ .form-group
7
+ = text_field_tag :email, nil, placeholder: t( ".label_email" ), :class => 'form-control'
8
+ .form-actions
9
+ = submit_tag t( 'common.button.send' ), :id => 'send_new_password_button', :class => 'btn btn-primary'
@@ -0,0 +1,13 @@
1
+ %main
2
+ %page-header
3
+ %h1
4
+ = t '.title'
5
+ .page-main
6
+
7
+ = form_tag order_new_password_url do
8
+ .row
9
+ .col-lg-6
10
+ .form-group
11
+ = text_field_tag :email, nil, placeholder: t( ".label_email" ), :class => 'form-control'
12
+ .form-actions
13
+ = submit_tag t( 'common.button.send' ), :id => 'send_new_password_button', :class => 'btn btn-primary'
@@ -0,0 +1,9 @@
1
+ %h1
2
+ = t '.title'
3
+
4
+ = form_tag recover_password_path, :method => :get do
5
+ .form-group
6
+ = label_tag :token, t('.label_token')
7
+ = text_field_tag :token
8
+ .form-actions
9
+ = submit_tag t( "common.button.send" ), :id => "password_token_button", :class => 'btn btn-primary'
@@ -0,0 +1,12 @@
1
+ %h1
2
+ = t '.title'
3
+ = form_tag log_in_url, :id => "loginform" do
4
+ .form-group
5
+ = text_field_tag :email, params[:email], :class => "form-control", :placeholder => t( '.label_email' ), :id => 'email'
6
+ .form-group
7
+ = password_field_tag :password, nil, :class => "form-control", :placeholder => t( '.label_password' ), :id => 'inputPassword'
8
+ .form-group
9
+ = link_to t( '.link_password_forgotten' ), order_new_password_path, :id => 'password_forgotten_link'
10
+
11
+ .form-actions
12
+ = submit_tag(t( 'common.button.send' ), :id => 'log_in_button', :class => 'btn btn-primary')
@@ -0,0 +1,12 @@
1
+ %h1
2
+ = t '.title'
3
+ = form_tag log_in_url, :id => "loginform" do
4
+ .form-group
5
+ = text_field_tag :email, params[:email], :class => "form-control", :placeholder => t( '.label_email' ), :id => 'email'
6
+ .form-group
7
+ = password_field_tag :password, nil, :class => "form-control", :placeholder => t( '.label_password' ), :id => 'inputPassword'
8
+ .form-group
9
+ = link_to t( '.password_forgotten_link' ), order_new_password_path, :id => 'password_forgotten_link'
10
+
11
+ .form-actions
12
+ = submit_tag(t( 'common.button.send' ), :id => 'log_in_button', :class => 'btn btn-primary')
@@ -0,0 +1,20 @@
1
+ %h1
2
+ = t '.title'
3
+
4
+ = form_for @user, :url => sign_up_url do |f|
5
+ = render :partial => "lobby/common/form_errors", :locals => {:object => @user}
6
+
7
+ .form-group
8
+ = f.label :username, t( '.label_username')
9
+ = f.text_field :username, :class => 'form-control'
10
+ .form-group
11
+ = f.label :email, t( '.label_email')
12
+ = f.text_field :email, :class => 'form-control'
13
+ .form-group
14
+ = f.label :password, t( '.label_password' )
15
+ = f.password_field :password, :class => 'form-control'
16
+ .form-group
17
+ = f.label :password_confirmation, t( '.label_password_confirmation' )
18
+ = f.password_field :password_confirmation, :class => 'form-control'
19
+ .form-actions
20
+ = submit_tag t( 'common.button.send' ), :id => 'sign_up_button', :class => 'btn btn-primary'
@@ -0,0 +1,20 @@
1
+ %h1
2
+ = t '.title'
3
+
4
+ = form_for @user, :url => sign_up_url do |f|
5
+ = render :partial => "common/form_errors", :locals => {:object => @user}
6
+
7
+ .form-group
8
+ = f.label :username, t( '.label_username')
9
+ = f.text_field :username, :class => 'form-control'
10
+ .form-group
11
+ = f.label :email, t( '.label_email')
12
+ = f.text_field :email, :class => 'form-control'
13
+ .form-group
14
+ = f.label :password, t( '.label_password' )
15
+ = f.password_field :password, :class => 'form-control'
16
+ .form-group
17
+ = f.label :password_confirmation, t( '.label_password_confirmation' )
18
+ = f.password_field :password_confirmation, :class => 'form-control'
19
+ .form-actions
20
+ = submit_tag t( 'common.button.send' ), :id => 'sign_up_button', :class => 'btn btn-primary'
data/lib/lobby/engine.rb CHANGED
@@ -2,6 +2,14 @@ module Lobby
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Lobby
4
4
 
5
+ # initializer :append_migrations do |app|
6
+ # unless app.root.to_s.match root.to_s
7
+ # config.paths["db/migrate"].expanded.each do |expanded_path|
8
+ # app.config.paths["db/migrate"] << expanded_path
9
+ # end
10
+ # end
11
+ # end
12
+
5
13
  config.generators do |g|
6
14
  g.test_framework :rspec, :view_specs => false
7
15
  g.integration_tool :rspec
data/lib/lobby/engine.rb~ CHANGED
@@ -2,11 +2,20 @@ module Lobby
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Lobby
4
4
 
5
- config.generators do |g|
6
- g.test_framework :rspec
7
- g.fixture_replacement :factory_girl, :dir => 'spec/factories'
5
+ initializer :append_migrations do |app|
6
+ unless app.root.to_s.match root.to_s
7
+ config.paths["db/migrate"].expanded.each do |expanded_path|
8
+ app.config.paths["db/migrate"] << expanded_path
9
+ end
10
+ end
8
11
  end
9
12
 
13
+ config.generators do |g|
14
+ g.test_framework :rspec, :view_specs => false
15
+ g.integration_tool :rspec
16
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
17
+ end
18
+
10
19
  config.autoload_paths += Dir["#{config.root}/lib/**/"]
11
20
  end
12
21
  end
data/lib/lobby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lobby
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Lobby
2
- VERSION = "0.0.1a"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lobby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-07 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -256,12 +256,40 @@ files:
256
256
  - config/locales/en.yml
257
257
  - config/locales/en.bootstrap.yml
258
258
  - config/locales/de.yml~
259
+ - config/routes.rb~
259
260
  - config/routes.rb
260
- - db/migrate/20131205180849_create_users.rb
261
261
  - lib/lobby/engine.rb~
262
262
  - lib/lobby/engine.rb
263
263
  - lib/lobby/version.rb
264
264
  - lib/lobby/version.rb~
265
+ - lib/generators/lobby/install_generator.rb
266
+ - lib/generators/lobby/lobby_generator.rb~
267
+ - lib/generators/lobby/install_generator.rb~
268
+ - lib/generators/templates/db/migrate/create_users.rb
269
+ - lib/generators/templates/config/initializers/constants.rb
270
+ - lib/generators/templates/config/initializers/action_mailer.rb
271
+ - lib/generators/templates/config/locales/de.yml
272
+ - lib/generators/templates/config/locales/en.yml
273
+ - lib/generators/templates/config/config.yml
274
+ - lib/generators/templates/views/password_forgotten/new.html.haml
275
+ - lib/generators/templates/views/password_forgotten/order_new_password.html.haml~
276
+ - lib/generators/templates/views/password_forgotten/order_new_password.html.haml
277
+ - lib/generators/templates/views/password_forgotten/recover_password_auth.html.haml
278
+ - lib/generators/templates/views/password_forgotten/new.html.haml~
279
+ - lib/generators/templates/views/confirmation_mailer/resend_signup_token.text.haml
280
+ - lib/generators/templates/views/confirmation_mailer/send_password_reset.text.haml
281
+ - lib/generators/templates/views/confirmation_mailer/registration.text.haml
282
+ - lib/generators/templates/views/confirmation_mailer/new_email_request.text.haml
283
+ - lib/generators/templates/views/sessions/new.html.haml
284
+ - lib/generators/templates/views/sessions/new.html.haml~
285
+ - lib/generators/templates/views/confirmation/registration.html.haml
286
+ - lib/generators/templates/views/confirmation/resend_signup_token.html.haml~
287
+ - lib/generators/templates/views/confirmation/resend_signup_token.html.haml
288
+ - lib/generators/templates/views/confirmation/new_email_token.html.haml
289
+ - lib/generators/templates/views/confirmation/registration.html.haml~
290
+ - lib/generators/templates/views/common/_form_errors.html.haml
291
+ - lib/generators/templates/views/users/new.html.haml
292
+ - lib/generators/templates/views/users/new.html.haml~
265
293
  - lib/lobby.rb
266
294
  - lib/lobby.rb~
267
295
  - lib/tasks/lobby_tasks.rake