dangerzone 0.0.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/README.md +21 -11
  2. data/lib/dangerzone/dangerzone_generator.rb +73 -59
  3. data/lib/dangerzone/templates/controllers/application_controller.rb +5 -6
  4. data/lib/dangerzone/templates/controllers/create_accounts_controller.rb +11 -15
  5. data/lib/dangerzone/templates/controllers/reset_passwords_controller.rb +12 -16
  6. data/lib/dangerzone/templates/controllers/sessions_controller.rb +19 -16
  7. data/lib/dangerzone/templates/migration.rb +2 -4
  8. data/lib/dangerzone/templates/models/user.rb +38 -12
  9. data/lib/dangerzone/templates/routes.rb +1 -1
  10. data/lib/dangerzone/templates/spec/controllers/create_accounts_controller_spec.rb +179 -0
  11. data/lib/dangerzone/templates/spec/controllers/reset_passwords_controller_spec.rb +131 -0
  12. data/lib/dangerzone/templates/spec/controllers/sessions_controller_spec.rb +135 -0
  13. data/lib/dangerzone/templates/spec/factories/users_factory.rb +15 -0
  14. data/lib/dangerzone/templates/spec/models/user_spec.rb +172 -0
  15. data/lib/dangerzone/templates/spec/spec_helper.rb +36 -0
  16. data/lib/dangerzone/templates/views/create_accounts/check_your_email.html.erb +1 -1
  17. data/lib/dangerzone/templates/views/create_accounts/new.html.erb +1 -1
  18. data/lib/dangerzone/templates/views/layouts/_dangerzone_nav.html.erb +10 -0
  19. data/lib/dangerzone/templates/views/layouts/application.html.erb +18 -0
  20. data/lib/dangerzone/templates/views/reset_passwords/new.html.erb +1 -1
  21. data/lib/dangerzone/templates/views/reset_passwords/reset_password_form.html.erb +2 -1
  22. data/lib/dangerzone/templates/views/sessions/new.html.erb +2 -2
  23. metadata +41 -22
  24. data/dangerzone.gemspec +0 -18
  25. data/lib/.DS_Store +0 -0
  26. data/lib/dangerzone/.DS_Store +0 -0
  27. data/lib/dangerzone/templates/.DS_Store +0 -0
  28. data/lib/dangerzone/templates/views/.DS_Store +0 -0
  29. data/lib/dangerzone/templates/views/nav.html.erb +0 -10
@@ -1,18 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = "dangerzone"
3
- s.version = '0.0.0'
4
- s.date = '2013-03-30'
5
- s.license = "MIT"
6
- s.summary = "Takes care of creating accounts, login, logout, forgot password, etc. in Rails"
7
- s.email = "michael.crismali@gmail.com"
8
- s.homepage = "https://github.com/michaelcrismali/dangerzone"
9
- s.authors = ['Michael Crismali']
10
- s.description = "Generates a sign-in, sign-out, create account, forgot password, account confirmation systems for Rails apps. It's Devise for beginners."
11
-
12
- s.files = `git ls-files`.split("\n")
13
- s.require_paths = ["lib"]
14
-
15
- s.add_dependency("bcrypt-ruby", "~> 3.0")
16
- s.add_dependency("rails", "~> 3.2")
17
- s.add_dependency("thor")
18
- end
Binary file
Binary file
@@ -1,10 +0,0 @@
1
- <% if @current_user.present? %>
2
- <nav>
3
- <%= link_to "Sign-out", sign_out_url, :method => 'delete' %>
4
- </nav>
5
- <% else %>
6
- <nav>
7
- <%= link_to "Sign up", sign_up_url %>
8
- <%= link_to "Sign in", sign_in_url %>
9
- </nav>
10
- <% end %>