muck-users 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.gitignore +7 -1
  2. data/Rakefile +8 -13
  3. data/VERSION +1 -1
  4. data/app/controllers/admin/muck/users_controller.rb +1 -1
  5. data/app/models/user_mailer.rb +1 -1
  6. data/lib/active_record/acts/muck_user.rb +17 -20
  7. data/lib/active_record/secure_methods.rb +1 -1
  8. data/lib/muck_users/tasks.rb +2 -2
  9. data/locales/ar.yml +1 -1
  10. data/locales/bg.yml +2 -2
  11. data/locales/ca.yml +2 -2
  12. data/locales/cs.yml +1 -1
  13. data/locales/da.yml +1 -1
  14. data/locales/de.yml +2 -2
  15. data/locales/el.yml +4 -4
  16. data/locales/en.yml +5 -5
  17. data/locales/es.yml +1 -1
  18. data/locales/et.yml +126 -0
  19. data/locales/fa.yml +126 -0
  20. data/locales/fi.yml +126 -0
  21. data/locales/fr.yml +1 -1
  22. data/locales/gl.yml +126 -0
  23. data/locales/hi.yml +126 -0
  24. data/locales/hr.yml +126 -0
  25. data/locales/hu.yml +126 -0
  26. data/locales/id.yml +126 -0
  27. data/locales/it.yml +1 -1
  28. data/locales/iw.yml +1 -1
  29. data/locales/ja.yml +2 -2
  30. data/locales/ko.yml +1 -1
  31. data/locales/lt.yml +2 -2
  32. data/locales/lv.yml +2 -2
  33. data/locales/mt.yml +126 -0
  34. data/locales/nl.yml +2 -2
  35. data/locales/no.yml +2 -2
  36. data/locales/pl.yml +1 -1
  37. data/locales/pt-PT.yml +126 -0
  38. data/locales/ro.yml +1 -1
  39. data/locales/ru.yml +3 -3
  40. data/locales/sk.yml +1 -1
  41. data/locales/sl.yml +3 -3
  42. data/locales/sq.yml +126 -0
  43. data/locales/sr.yml +2 -2
  44. data/locales/sv.yml +1 -1
  45. data/locales/th.yml +126 -0
  46. data/locales/tl.yml +1 -1
  47. data/locales/tr.yml +126 -0
  48. data/locales/uk.yml +2 -2
  49. data/locales/vi.yml +1 -1
  50. data/locales/zh-CN.yml +1 -1
  51. data/locales/zh-TW.yml +1 -1
  52. data/locales/zh.yml +1 -1
  53. data/muck-users.gemspec +18 -32
  54. data/test/rails_root/config/global_config.yml +49 -2
  55. data/test/rails_root/test/functional/password_resets_controller_test.rb +13 -1
  56. data/test/rails_root/test/unit/role_test.rb +1 -1
  57. data/test/rails_root/test/unit/user_mailer_test.rb +6 -6
  58. data/test/rails_root/test/unit/user_test.rb +79 -1
  59. metadata +25 -32
  60. data/muck-users-0.1.4.gem +0 -0
  61. data/pkg/muck-users-0.1.11.gem +0 -0
  62. data/rdoc/classes/ActionController.html +0 -112
  63. data/rdoc/classes/ActionController/AuthenticApplication.html +0 -161
  64. data/rdoc/classes/ActionController/AuthenticApplication/InstanceMethods.html +0 -741
  65. data/rdoc/classes/ActionController/Routing.html +0 -107
  66. data/rdoc/classes/ActionController/Routing/RouteSet.html +0 -148
  67. data/rdoc/classes/ActiveRecord.html +0 -115
  68. data/rdoc/classes/ActiveRecord/Acts/MuckUser/ClassMethods.html +0 -167
  69. data/rdoc/classes/ActiveRecord/Acts/MuckUser/InstanceMethods.html +0 -537
  70. data/rdoc/classes/ActiveRecord/Acts/MuckUser/SingletonMethods.html +0 -296
  71. data/rdoc/classes/ActiveRecord/SecureMethods.html +0 -216
  72. data/rdoc/classes/MuckUsers.html +0 -116
  73. data/rdoc/classes/MuckUsers/Exceptions.html +0 -111
  74. data/rdoc/classes/MuckUsers/Exceptions/InvalidPasswordResetCode.html +0 -111
  75. data/rdoc/classes/MuckUsers/Tasks.html +0 -146
  76. data/rdoc/created.rid +0 -1
  77. data/rdoc/files/README_rdoc.html +0 -211
  78. data/rdoc/files/lib/action_controller/authentic_application_rb.html +0 -101
  79. data/rdoc/files/lib/active_record/acts/muck_user_rb.html +0 -101
  80. data/rdoc/files/lib/active_record/secure_methods_rb.html +0 -101
  81. data/rdoc/files/lib/muck_users/exceptions_rb.html +0 -101
  82. data/rdoc/files/lib/muck_users/initialize_routes_rb.html +0 -101
  83. data/rdoc/files/lib/muck_users/tasks_rb.html +0 -110
  84. data/rdoc/files/lib/muck_users_rb.html +0 -117
  85. data/rdoc/fr_class_index.html +0 -40
  86. data/rdoc/fr_file_index.html +0 -34
  87. data/rdoc/fr_method_index.html +0 -77
  88. data/rdoc/index.html +0 -24
  89. data/rdoc/rdoc-style.css +0 -208
@@ -1 +0,0 @@
1
- Fri, 26 Jun 2009 17:53:55 -0600
@@ -1,211 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: README.rdoc</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>README.rdoc</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>README.rdoc
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Fri Jun 26 13:56:45 -0600 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <h1>Muck Users</h1>
73
- <h2>Installation</h2>
74
- <p>
75
- The muck users engine is part of the muck framework and relies upon the
76
- muck_engine as well as authlogic. Both gems should be installed
77
- automatically when you install the muck_users engine.
78
- </p>
79
- <pre>
80
- sudo gem install muck-users
81
- </pre>
82
- <p>
83
- Use search logic for searching users. Add this to environment.rb:
84
- </p>
85
- <pre>
86
- config.gem &quot;binarylogic-searchlogic&quot;,
87
- :lib =&gt; 'searchlogic',
88
- :source =&gt; 'http://gems.github.com',
89
- :version =&gt; '~&gt; 2.0.0'
90
- </pre>
91
- <p>
92
- In addition, you will need to install the ssl_requirement plugin (<a
93
- href="http://github.com/rails/ssl_requirement/tree/master">github.com/rails/ssl_requirement/tree/master</a>)
94
- into your Rails project:
95
- </p>
96
- <pre>
97
- ruby script/plugin install ssl_requirement
98
- </pre>
99
- <p>
100
- If you used the muck template to create your rails application you will
101
- have a global_config.yml file. If not then you will need to create a
102
- global_config.yml file and then add the following to environment.rb right
103
- above Rails::Initializer.run do |config|
104
- </p>
105
- <pre>
106
- require 'ostruct'
107
- require 'yaml'
108
- ::GlobalConfig = OpenStruct.new(YAML.load_file(&quot;#{RAILS_ROOT}/config/global_config.yml&quot;)[RAILS_ENV])
109
- </pre>
110
- <p>
111
- Inside of global_config.yml add the following changing the emails to match
112
- your application:
113
- </p>
114
- <pre>
115
- default: &amp;DEFAULT
116
-
117
- # Sent in emails to users
118
- application_name: 'Name of my application'
119
- from_email: 'support@example.com'
120
- support_email: 'support@example.com'
121
- admin_email: 'admin@example.com'
122
- </pre>
123
- <h2>Usage</h2>
124
- <p>
125
- There are a couple of routes that muck-users will look for:
126
- </p>
127
- <p>
128
- Route to the site home page:
129
- </p>
130
- <pre>
131
- map.root '', :controller =&gt; 'default', :action =&gt; 'index'
132
- </pre>
133
- <p>
134
- Route to a public user page (this could also go to home etc. if needed)
135
- </p>
136
- <pre>
137
- map.public_user_path '/profiles/:id', :controller =&gt; 'profiles', :action =&gt; 'show'
138
- </pre>
139
- <p>
140
- This is the path that a user will be redirected to if they attempt to
141
- access another user&#8216;s dashboard page.
142
- </p>
143
- <p>
144
- muck-users sends out emails that need to be able to generate links. Be sure
145
- to set a value for application_url in global_config.yml
146
- </p>
147
- <h2>General information</h2>
148
- <p>
149
- This engine implements authlogic. Some of the code contained was taken from
150
- here: <a
151
- href="http://railsforum.com/viewtopic.php?id=14216">railsforum.com/viewtopic.php?id=14216</a>
152
- and here <a
153
- href="http://github.com/activefx/restful_authentication_tutorial/tree/master">github.com/activefx/restful_authentication_tutorial/tree/master</a>
154
- </p>
155
- <p>
156
- Inspiration also came from: <a
157
- href="http://github.com/tsechingho/authlogic_bundle/tree/master">github.com/tsechingho/authlogic_bundle/tree/master</a>
158
- </p>
159
- <p>
160
- Example
161
- </p>
162
- <h6>=</h6>
163
- <p>
164
- After installing the engine just create a user model thus:
165
- </p>
166
- <pre>
167
- class User &lt; ActiveRecord::Base
168
- acts_as_authentic
169
- acts_as_muck_user
170
- end
171
- </pre>
172
- <p>
173
- Then you will be able to go to: http//:localhost:3000/login
174
- http//:localhost:3000/signup
175
- </p>
176
- <p>
177
- Copyright (c) 2009 Justin Ball, released under the MIT license
178
- </p>
179
-
180
- </div>
181
-
182
-
183
- </div>
184
-
185
-
186
- </div>
187
-
188
-
189
- <!-- if includes -->
190
-
191
- <div id="section">
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
- <!-- if method_list -->
201
-
202
-
203
- </div>
204
-
205
-
206
- <div id="validator-badges">
207
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
208
- </div>
209
-
210
- </body>
211
- </html>
@@ -1,101 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: authentic_application.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>authentic_application.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/action_controller/authentic_application.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Jun 25 18:45:42 -0600 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
- <!-- if method_list -->
91
-
92
-
93
- </div>
94
-
95
-
96
- <div id="validator-badges">
97
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
- </div>
99
-
100
- </body>
101
- </html>
@@ -1,101 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: muck_user.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>muck_user.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/active_record/acts/muck_user.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Tue Jun 23 11:08:45 -0600 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
- <!-- if method_list -->
91
-
92
-
93
- </div>
94
-
95
-
96
- <div id="validator-badges">
97
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
- </div>
99
-
100
- </body>
101
- </html>
@@ -1,101 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: secure_methods.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>secure_methods.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/active_record/secure_methods.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Sat Jun 13 14:59:33 -0600 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
- <!-- if method_list -->
91
-
92
-
93
- </div>
94
-
95
-
96
- <div id="validator-badges">
97
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
- </div>
99
-
100
- </body>
101
- </html>