theworkinggroup-wristband 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/README.rdoc +130 -0
  2. data/Rakefile +39 -0
  3. data/generators/wristband/templates/app/controllers/sessions_controller.rb +50 -0
  4. data/generators/wristband/templates/app/controllers/users_controller.rb +47 -0
  5. data/generators/wristband/templates/app/models/user.rb +30 -0
  6. data/generators/wristband/templates/app/models/user_notifier.rb +54 -0
  7. data/generators/wristband/templates/app/views/sessions/new.html.haml +17 -0
  8. data/generators/wristband/templates/app/views/user_notifier/email_verification.text.html.rhtml +7 -0
  9. data/generators/wristband/templates/app/views/user_notifier/email_verification.text.plain.rhtml +9 -0
  10. data/generators/wristband/templates/app/views/user_notifier/forgot_password.text.html.rhtml +10 -0
  11. data/generators/wristband/templates/app/views/user_notifier/forgot_password.text.plain.rhtml +10 -0
  12. data/generators/wristband/templates/app/views/users/forgot_password.html.haml +10 -0
  13. data/generators/wristband/templates/app/views/users/index.html.haml +6 -0
  14. data/generators/wristband/templates/db/migrate/create_wristband_tables.rb +28 -0
  15. data/generators/wristband/wristband_generator.rb +69 -0
  16. data/init.rb +1 -0
  17. data/lib/wristband.rb +121 -0
  18. data/lib/wristband/application_extensions.rb +78 -0
  19. data/lib/wristband/authority_check.rb +160 -0
  20. data/lib/wristband/support.rb +28 -0
  21. data/lib/wristband/user_extensions.rb +89 -0
  22. data/test/database.yml +3 -0
  23. data/test/fixtures/crypted_password_users.yml +12 -0
  24. data/test/fixtures/plain_text_password_users.yml +4 -0
  25. data/test/fixtures/users.yml +23 -0
  26. data/test/schema.rb +34 -0
  27. data/test/test_helper.rb +40 -0
  28. data/test/unit/crypted_password_users_test.rb +81 -0
  29. data/test/unit/has_authorities_test.rb +49 -0
  30. data/test/unit/plain_text_password_user_test.rb +92 -0
  31. data/wristband.gemspec +32 -0
  32. metadata +97 -0
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: theworkinggroup-wristband
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jack Neto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-03-26 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Simplifies the process of authenticating and authorizing users.
17
+ email: jack@theworkinggroup.ca
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - lib/wristband/application_extensions.rb
24
+ - lib/wristband/authority_check.rb
25
+ - lib/wristband/support.rb
26
+ - lib/wristband/user_extensions.rb
27
+ - lib/wristband.rb
28
+ - README.rdoc
29
+ files:
30
+ - generators/wristband/templates/app/controllers/sessions_controller.rb
31
+ - generators/wristband/templates/app/controllers/users_controller.rb
32
+ - generators/wristband/templates/app/models/user.rb
33
+ - generators/wristband/templates/app/models/user_notifier.rb
34
+ - generators/wristband/templates/app/views/sessions/new.html.haml
35
+ - generators/wristband/templates/app/views/user_notifier/email_verification.text.html.rhtml
36
+ - generators/wristband/templates/app/views/user_notifier/email_verification.text.plain.rhtml
37
+ - generators/wristband/templates/app/views/user_notifier/forgot_password.text.html.rhtml
38
+ - generators/wristband/templates/app/views/user_notifier/forgot_password.text.plain.rhtml
39
+ - generators/wristband/templates/app/views/users/forgot_password.html.haml
40
+ - generators/wristband/templates/app/views/users/index.html.haml
41
+ - generators/wristband/templates/db/migrate/create_wristband_tables.rb
42
+ - generators/wristband/wristband_generator.rb
43
+ - init.rb
44
+ - lib/wristband/application_extensions.rb
45
+ - lib/wristband/authority_check.rb
46
+ - lib/wristband/support.rb
47
+ - lib/wristband/user_extensions.rb
48
+ - lib/wristband.rb
49
+ - Manifest
50
+ - Rakefile
51
+ - README.rdoc
52
+ - test/database.yml
53
+ - test/fixtures/crypted_password_users.yml
54
+ - test/fixtures/plain_text_password_users.yml
55
+ - test/fixtures/users.yml
56
+ - test/schema.rb
57
+ - test/test_helper.rb
58
+ - test/unit/crypted_password_users_test.rb
59
+ - test/unit/has_authorities_test.rb
60
+ - test/unit/plain_text_password_user_test.rb
61
+ - wristband.gemspec
62
+ has_rdoc: true
63
+ homepage: http://github.com/theworkinggroup/wristband
64
+ post_install_message:
65
+ rdoc_options:
66
+ - --line-numbers
67
+ - --inline-source
68
+ - --title
69
+ - Wristband
70
+ - --main
71
+ - README.rdoc
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ version:
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "1.2"
85
+ version:
86
+ requirements: []
87
+
88
+ rubyforge_project: wristband
89
+ rubygems_version: 1.2.0
90
+ signing_key:
91
+ specification_version: 2
92
+ summary: Simplifies the process of authenticating and authorizing users.
93
+ test_files:
94
+ - test/test_helper.rb
95
+ - test/unit/crypted_password_users_test.rb
96
+ - test/unit/has_authorities_test.rb
97
+ - test/unit/plain_text_password_user_test.rb