muck-users 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. data/README.rdoc +12 -3
  2. data/Rakefile +3 -2
  3. data/VERSION +1 -1
  4. data/muck-users.gemspec +257 -37
  5. data/pkg/muck-users-0.1.4.gem +0 -0
  6. data/rdoc/classes/ActiveRecord/SecureMethods.html +216 -0
  7. data/rdoc/classes/ActiveRecord.html +10 -0
  8. data/rdoc/classes/MuckUsers/Tasks.html +6 -6
  9. data/rdoc/created.rid +1 -1
  10. data/rdoc/files/lib/active_record/secure_methods_rb.html +101 -0
  11. data/rdoc/files/lib/muck_users_rb.html +2 -1
  12. data/rdoc/fr_class_index.html +1 -0
  13. data/rdoc/fr_file_index.html +1 -0
  14. data/rdoc/fr_method_index.html +7 -3
  15. data/test/rails_root/.gitignore +8 -0
  16. data/test/rails_root/.rake_tasks +103 -0
  17. data/test/rails_root/Capfile +3 -0
  18. data/test/rails_root/Rakefile +15 -0
  19. data/test/rails_root/app/controllers/application_controller.rb +6 -0
  20. data/test/rails_root/app/controllers/default_controller.rb +7 -0
  21. data/test/rails_root/app/helpers/application_helper.rb +3 -0
  22. data/test/rails_root/app/models/.keep +0 -0
  23. data/test/rails_root/app/models/user.rb +15 -0
  24. data/test/rails_root/app/models/user_session.rb +2 -0
  25. data/test/rails_root/app/views/default/index.html.erb +0 -0
  26. data/test/rails_root/app/views/layouts/default.html.erb +26 -0
  27. data/test/rails_root/config/amazon_s3.yml +14 -0
  28. data/test/rails_root/config/boot.rb +109 -0
  29. data/test/rails_root/config/database.yml +14 -0
  30. data/test/rails_root/config/environment.rb +22 -0
  31. data/test/rails_root/config/environments/development.rb +19 -0
  32. data/test/rails_root/config/environments/production.rb +1 -0
  33. data/test/rails_root/config/environments/test.rb +33 -0
  34. data/test/rails_root/config/global_config.yml +18 -0
  35. data/test/rails_root/config/initializers/inflections.rb +10 -0
  36. data/test/rails_root/config/initializers/mime_types.rb +5 -0
  37. data/test/rails_root/config/initializers/requires.rb +13 -0
  38. data/test/rails_root/config/initializers/session_store.rb +8 -0
  39. data/test/rails_root/config/routes.rb +9 -0
  40. data/test/rails_root/db/.keep +0 -0
  41. data/test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +16 -0
  42. data/test/rails_root/db/migrate/20090602041838_create_users.rb +39 -0
  43. data/test/rails_root/db/schema.rb +131 -0
  44. data/test/rails_root/features/step_definitions/webrat_steps.rb +99 -0
  45. data/test/rails_root/features/support/env.rb +14 -0
  46. data/test/rails_root/public/.htaccess +40 -0
  47. data/test/rails_root/public/404.html +30 -0
  48. data/test/rails_root/public/422.html +30 -0
  49. data/test/rails_root/public/500.html +30 -0
  50. data/test/rails_root/public/dispatch.rb +10 -0
  51. data/test/rails_root/public/favicon.ico +0 -0
  52. data/test/rails_root/public/images/arrow_left.gif +0 -0
  53. data/test/rails_root/public/images/arrow_right.gif +0 -0
  54. data/test/rails_root/public/images/blue/preview.gif +0 -0
  55. data/test/rails_root/public/images/icons/accept.png +0 -0
  56. data/test/rails_root/public/images/icons/add.png +0 -0
  57. data/test/rails_root/public/images/icons/delete.png +0 -0
  58. data/test/rails_root/public/images/icons/vote.png +0 -0
  59. data/test/rails_root/public/images/loading.gif +0 -0
  60. data/test/rails_root/public/images/profile_default.jpg +0 -0
  61. data/test/rails_root/public/images/rails.png +0 -0
  62. data/test/rails_root/public/images/red/preview.gif +0 -0
  63. data/test/rails_root/public/images/spinner.gif +0 -0
  64. data/test/rails_root/public/images/sprites.png +0 -0
  65. data/test/rails_root/public/javascripts/application.js +2 -0
  66. data/test/rails_root/public/javascripts/builder.js +136 -0
  67. data/test/rails_root/public/javascripts/controls.js +963 -0
  68. data/test/rails_root/public/javascripts/dragdrop.js +972 -0
  69. data/test/rails_root/public/javascripts/effects.js +1120 -0
  70. data/test/rails_root/public/javascripts/fancyzoom.min.js +1 -0
  71. data/test/rails_root/public/javascripts/jquery/jquery-ui.js +273 -0
  72. data/test/rails_root/public/javascripts/jquery/jquery.form.js +637 -0
  73. data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +2 -0
  74. data/test/rails_root/public/javascripts/jquery/jquery.js +19 -0
  75. data/test/rails_root/public/javascripts/jquery/jquery.tips.js +69 -0
  76. data/test/rails_root/public/javascripts/muck.js +76 -0
  77. data/test/rails_root/public/javascripts/muck_activities.js +100 -0
  78. data/test/rails_root/public/javascripts/prototype.js +4225 -0
  79. data/test/rails_root/public/javascripts/scriptaculous.js +58 -0
  80. data/test/rails_root/public/javascripts/slider.js +277 -0
  81. data/test/rails_root/public/javascripts/sound.js +60 -0
  82. data/test/rails_root/public/robots.txt +1 -0
  83. data/test/rails_root/public/stylesheets/.keep +0 -0
  84. data/test/rails_root/public/stylesheets/admin.css +12 -0
  85. data/test/rails_root/public/stylesheets/blueprint/ie.css +26 -0
  86. data/test/rails_root/public/stylesheets/blueprint/liquid_screen.css +203 -0
  87. data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png +0 -0
  88. data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png +0 -0
  89. data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png +0 -0
  90. data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt +32 -0
  91. data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css +97 -0
  92. data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +14 -0
  93. data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css +71 -0
  94. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png +0 -0
  95. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png +0 -0
  96. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png +0 -0
  97. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png +0 -0
  98. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png +0 -0
  99. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  100. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png +0 -0
  101. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png +0 -0
  102. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt +18 -0
  103. data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css +40 -0
  104. data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css +134 -0
  105. data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css +197 -0
  106. data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt +10 -0
  107. data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css +109 -0
  108. data/test/rails_root/public/stylesheets/blueprint/print.css +30 -0
  109. data/test/rails_root/public/stylesheets/blueprint/screen.css +251 -0
  110. data/test/rails_root/public/stylesheets/blueprint/sprite.css +1 -0
  111. data/test/rails_root/public/stylesheets/blueprint/src/forms.css +49 -0
  112. data/test/rails_root/public/stylesheets/blueprint/src/grid.css +213 -0
  113. data/test/rails_root/public/stylesheets/blueprint/src/grid.png +0 -0
  114. data/test/rails_root/public/stylesheets/blueprint/src/ie.css +59 -0
  115. data/test/rails_root/public/stylesheets/blueprint/src/print.css +85 -0
  116. data/test/rails_root/public/stylesheets/blueprint/src/reset.css +38 -0
  117. data/test/rails_root/public/stylesheets/blueprint/src/typography.css +105 -0
  118. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  119. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  120. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png +0 -0
  121. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png +0 -0
  122. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  123. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png +0 -0
  124. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  125. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  126. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png +0 -0
  127. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png +0 -0
  128. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
  129. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
  130. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
  131. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png +0 -0
  132. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png +0 -0
  133. data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
  134. data/test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css +404 -0
  135. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  136. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  137. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  138. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  139. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  140. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  141. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  142. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  143. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  144. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  145. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  146. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  147. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  148. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  149. data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  150. data/test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css +404 -0
  151. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  152. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  153. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  154. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  155. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  156. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  157. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  158. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  159. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png +0 -0
  160. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  161. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png +0 -0
  162. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png +0 -0
  163. data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  164. data/test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css +404 -0
  165. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  166. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  167. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  168. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  169. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  170. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  171. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  172. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  173. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  174. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  175. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  176. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  177. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  178. data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  179. data/test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css +404 -0
  180. data/test/rails_root/public/stylesheets/reset.css +0 -0
  181. data/test/rails_root/public/stylesheets/styles.css +79 -0
  182. data/test/rails_root/public/stylesheets/themes/blue/styles.css +1 -0
  183. data/test/rails_root/public/stylesheets/themes/red/styles.css +1 -0
  184. data/test/rails_root/script/about +3 -0
  185. data/test/rails_root/script/breakpointer +3 -0
  186. data/test/rails_root/script/console +3 -0
  187. data/test/rails_root/script/create_project.rb +52 -0
  188. data/test/rails_root/script/cucumber +7 -0
  189. data/test/rails_root/script/dbconsole +3 -0
  190. data/test/rails_root/script/destroy +3 -0
  191. data/test/rails_root/script/generate +3 -0
  192. data/test/rails_root/script/performance/benchmarker +3 -0
  193. data/test/rails_root/script/performance/profiler +3 -0
  194. data/test/rails_root/script/performance/request +3 -0
  195. data/test/rails_root/script/plugin +3 -0
  196. data/test/rails_root/script/process/inspector +3 -0
  197. data/test/rails_root/script/process/reaper +3 -0
  198. data/test/rails_root/script/process/spawner +3 -0
  199. data/test/rails_root/script/runner +3 -0
  200. data/test/rails_root/script/server +3 -0
  201. data/test/{factories.rb → rails_root/test/factories.rb} +0 -0
  202. data/test/rails_root/test/functional/.keep +0 -0
  203. data/test/{functional → rails_root/test/functional}/activations_controller_test.rb +0 -0
  204. data/test/{functional → rails_root/test/functional}/admin/roles_controller_test.rb +0 -0
  205. data/test/{functional → rails_root/test/functional}/admin/users_controller_test.rb +0 -0
  206. data/test/{functional → rails_root/test/functional}/password_resets_controller_test.rb +0 -0
  207. data/test/{functional → rails_root/test/functional}/user_sessions_controller_test.rb +0 -0
  208. data/test/{functional → rails_root/test/functional}/users_controller_test.rb +0 -0
  209. data/test/rails_root/test/integration/.keep +0 -0
  210. data/test/rails_root/test/mocks/development/.keep +0 -0
  211. data/test/rails_root/test/mocks/test/.keep +0 -0
  212. data/test/{shoulda_macros → rails_root/test/shoulda_macros}/controller.rb +0 -0
  213. data/test/{shoulda_macros → rails_root/test/shoulda_macros}/forms.rb +0 -0
  214. data/test/{shoulda_macros → rails_root/test/shoulda_macros}/models.rb +0 -0
  215. data/test/{shoulda_macros → rails_root/test/shoulda_macros}/pagination.rb +0 -0
  216. data/test/{shoulda_macros → rails_root/test/shoulda_macros}/plugins.rb +0 -0
  217. data/test/{test_helper.rb → rails_root/test/test_helper.rb} +4 -3
  218. data/test/rails_root/test/unit/.keep +0 -0
  219. data/test/{unit → rails_root/test/unit}/muck_user_mailer_test.rb +0 -0
  220. data/test/{unit → rails_root/test/unit}/permission_test.rb +0 -0
  221. data/test/{unit → rails_root/test/unit}/role_test.rb +0 -0
  222. data/test/rails_root/vendor/plugins/ssl_requirement/README +43 -0
  223. data/test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +62 -0
  224. data/test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb +132 -0
  225. metadata +264 -35
  226. data/pkg/muck-users-0.1.3.gem +0 -0
data/README.rdoc CHANGED
@@ -1,8 +1,17 @@
1
- RestfulAuthenticationEngine
2
- ====================
1
+ = Muck Users
3
2
 
4
- The muck users engine is part of the muck framework and relies upon the muck_engine.
3
+ == Installation
5
4
 
5
+ The muck users engine is part of the muck framework and relies upon the muck_engine as well as authlogic. Both gems should be installed automatically when you install the muck_users engine.
6
+
7
+ sudo gem install muck_users
8
+
9
+ In addition, you will need to install the ssl_requirement plugin (http://github.com/rails/ssl_requirement/tree/master) into your Rails project:
10
+
11
+ ruby script/plugin install ssl_requirement
12
+
13
+
14
+ == General information
6
15
  This engine implements authlogic. Some of the code contained was taken from here:
7
16
  http://railsforum.com/viewtopic.php?id=14216 and here
8
17
  http://github.com/activefx/restful_authentication_tutorial/tree/master
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ begin
13
13
  gem.authors = ["Justin Ball"]
14
14
  gem.rubyforge_project = "muck-users"
15
15
  gem.add_dependency "authlogic"
16
+ gem.add_dependency "bcrypt-ruby"
16
17
  gem.add_dependency "muck-engine"
17
18
  gem.files.include %w( tasks/*
18
19
  db/migrate/*.rb
@@ -57,8 +58,8 @@ end
57
58
  desc 'Test the muck_users gem.'
58
59
  Rake::TestTask.new(:test) do |t|
59
60
  t.libs << 'lib'
60
- t.libs << 'test'
61
- t.pattern = 'test/**/*_test.rb'
61
+ t.libs << 'test/rails_root/test'
62
+ t.pattern = 'test/rails_root/test/**/*_test.rb'
62
63
  t.verbose = true
63
64
  end
64
65
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/muck-users.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-users}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
9
- s.date = %q{2009-06-13}
9
+ s.date = %q{2009-06-16}
10
10
  s.description = %q{Easily add user signup, login and other features to your application}
11
11
  s.email = %q{justinball@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -189,7 +189,7 @@ Gem::Specification.new do |s|
189
189
  "locales/zh.yml",
190
190
  "locales/zh.yml",
191
191
  "muck-users.gemspec",
192
- "pkg/muck-users-0.1.3.gem",
192
+ "pkg/muck-users-0.1.4.gem",
193
193
  "public/images/profile_default.jpg",
194
194
  "rails/init.rb",
195
195
  "rails/init.rb",
@@ -202,6 +202,7 @@ Gem::Specification.new do |s|
202
202
  "rdoc/classes/ActiveRecord/Acts/MuckUser/ClassMethods.html",
203
203
  "rdoc/classes/ActiveRecord/Acts/MuckUser/InstanceMethods.html",
204
204
  "rdoc/classes/ActiveRecord/Acts/MuckUser/SingletonMethods.html",
205
+ "rdoc/classes/ActiveRecord/SecureMethods.html",
205
206
  "rdoc/classes/MuckUsers.html",
206
207
  "rdoc/classes/MuckUsers/Exceptions.html",
207
208
  "rdoc/classes/MuckUsers/Exceptions/InvalidPasswordResetCode.html",
@@ -210,6 +211,7 @@ Gem::Specification.new do |s|
210
211
  "rdoc/files/README_rdoc.html",
211
212
  "rdoc/files/lib/action_controller/authentic_application_rb.html",
212
213
  "rdoc/files/lib/active_record/acts/muck_user_rb.html",
214
+ "rdoc/files/lib/active_record/secure_methods_rb.html",
213
215
  "rdoc/files/lib/muck_users/exceptions_rb.html",
214
216
  "rdoc/files/lib/muck_users/initialize_routes_rb.html",
215
217
  "rdoc/files/lib/muck_users/tasks_rb.html",
@@ -221,24 +223,215 @@ Gem::Specification.new do |s|
221
223
  "rdoc/rdoc-style.css",
222
224
  "tasks/rails.rake",
223
225
  "tasks/rails.rake",
224
- "test/factories.rb",
225
- "test/factories.rb",
226
- "test/functional/activations_controller_test.rb",
227
- "test/functional/admin/roles_controller_test.rb",
228
- "test/functional/admin/users_controller_test.rb",
229
- "test/functional/password_resets_controller_test.rb",
230
- "test/functional/user_sessions_controller_test.rb",
231
- "test/functional/users_controller_test.rb",
232
- "test/shoulda_macros/controller.rb",
233
- "test/shoulda_macros/forms.rb",
234
- "test/shoulda_macros/models.rb",
235
- "test/shoulda_macros/pagination.rb",
236
- "test/shoulda_macros/plugins.rb",
237
- "test/test_helper.rb",
238
- "test/test_helper.rb",
239
- "test/unit/muck_user_mailer_test.rb",
240
- "test/unit/permission_test.rb",
241
- "test/unit/role_test.rb",
226
+ "test/rails_root/.gitignore",
227
+ "test/rails_root/.rake_tasks",
228
+ "test/rails_root/Capfile",
229
+ "test/rails_root/Rakefile",
230
+ "test/rails_root/app/controllers/application_controller.rb",
231
+ "test/rails_root/app/controllers/default_controller.rb",
232
+ "test/rails_root/app/helpers/application_helper.rb",
233
+ "test/rails_root/app/models/.keep",
234
+ "test/rails_root/app/models/user.rb",
235
+ "test/rails_root/app/models/user_session.rb",
236
+ "test/rails_root/app/views/default/index.html.erb",
237
+ "test/rails_root/app/views/layouts/default.html.erb",
238
+ "test/rails_root/config/amazon_s3.yml",
239
+ "test/rails_root/config/boot.rb",
240
+ "test/rails_root/config/database.yml",
241
+ "test/rails_root/config/environment.rb",
242
+ "test/rails_root/config/environments/development.rb",
243
+ "test/rails_root/config/environments/production.rb",
244
+ "test/rails_root/config/environments/test.rb",
245
+ "test/rails_root/config/global_config.yml",
246
+ "test/rails_root/config/initializers/inflections.rb",
247
+ "test/rails_root/config/initializers/mime_types.rb",
248
+ "test/rails_root/config/initializers/requires.rb",
249
+ "test/rails_root/config/initializers/session_store.rb",
250
+ "test/rails_root/config/routes.rb",
251
+ "test/rails_root/db/.keep",
252
+ "test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
253
+ "test/rails_root/db/migrate/20090602041838_create_users.rb",
254
+ "test/rails_root/features/step_definitions/webrat_steps.rb",
255
+ "test/rails_root/features/support/env.rb",
256
+ "test/rails_root/public/.htaccess",
257
+ "test/rails_root/public/404.html",
258
+ "test/rails_root/public/422.html",
259
+ "test/rails_root/public/500.html",
260
+ "test/rails_root/public/dispatch.rb",
261
+ "test/rails_root/public/favicon.ico",
262
+ "test/rails_root/public/images/arrow_left.gif",
263
+ "test/rails_root/public/images/arrow_right.gif",
264
+ "test/rails_root/public/images/blue/preview.gif",
265
+ "test/rails_root/public/images/icons/accept.png",
266
+ "test/rails_root/public/images/icons/add.png",
267
+ "test/rails_root/public/images/icons/delete.png",
268
+ "test/rails_root/public/images/icons/vote.png",
269
+ "test/rails_root/public/images/loading.gif",
270
+ "test/rails_root/public/images/profile_default.jpg",
271
+ "test/rails_root/public/images/rails.png",
272
+ "test/rails_root/public/images/red/preview.gif",
273
+ "test/rails_root/public/images/spinner.gif",
274
+ "test/rails_root/public/images/sprites.png",
275
+ "test/rails_root/public/javascripts/application.js",
276
+ "test/rails_root/public/javascripts/builder.js",
277
+ "test/rails_root/public/javascripts/controls.js",
278
+ "test/rails_root/public/javascripts/dragdrop.js",
279
+ "test/rails_root/public/javascripts/effects.js",
280
+ "test/rails_root/public/javascripts/fancyzoom.min.js",
281
+ "test/rails_root/public/javascripts/jquery/jquery-ui.js",
282
+ "test/rails_root/public/javascripts/jquery/jquery.form.js",
283
+ "test/rails_root/public/javascripts/jquery/jquery.jgrowl.js",
284
+ "test/rails_root/public/javascripts/jquery/jquery.js",
285
+ "test/rails_root/public/javascripts/jquery/jquery.tips.js",
286
+ "test/rails_root/public/javascripts/muck.js",
287
+ "test/rails_root/public/javascripts/muck_activities.js",
288
+ "test/rails_root/public/javascripts/prototype.js",
289
+ "test/rails_root/public/javascripts/scriptaculous.js",
290
+ "test/rails_root/public/javascripts/slider.js",
291
+ "test/rails_root/public/javascripts/sound.js",
292
+ "test/rails_root/public/robots.txt",
293
+ "test/rails_root/public/stylesheets/.keep",
294
+ "test/rails_root/public/stylesheets/admin.css",
295
+ "test/rails_root/public/stylesheets/blueprint/ie.css",
296
+ "test/rails_root/public/stylesheets/blueprint/liquid_screen.css",
297
+ "test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png",
298
+ "test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png",
299
+ "test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png",
300
+ "test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt",
301
+ "test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css",
302
+ "test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt",
303
+ "test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css",
304
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png",
305
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png",
306
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png",
307
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png",
308
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png",
309
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png",
310
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png",
311
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png",
312
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt",
313
+ "test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css",
314
+ "test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css",
315
+ "test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css",
316
+ "test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt",
317
+ "test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css",
318
+ "test/rails_root/public/stylesheets/blueprint/print.css",
319
+ "test/rails_root/public/stylesheets/blueprint/screen.css",
320
+ "test/rails_root/public/stylesheets/blueprint/sprite.css",
321
+ "test/rails_root/public/stylesheets/blueprint/src/forms.css",
322
+ "test/rails_root/public/stylesheets/blueprint/src/grid.css",
323
+ "test/rails_root/public/stylesheets/blueprint/src/grid.png",
324
+ "test/rails_root/public/stylesheets/blueprint/src/ie.css",
325
+ "test/rails_root/public/stylesheets/blueprint/src/print.css",
326
+ "test/rails_root/public/stylesheets/blueprint/src/reset.css",
327
+ "test/rails_root/public/stylesheets/blueprint/src/typography.css",
328
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png",
329
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png",
330
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png",
331
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png",
332
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png",
333
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png",
334
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png",
335
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png",
336
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png",
337
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png",
338
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png",
339
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png",
340
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png",
341
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png",
342
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png",
343
+ "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png",
344
+ "test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css",
345
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png",
346
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png",
347
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png",
348
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png",
349
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png",
350
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png",
351
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png",
352
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png",
353
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png",
354
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png",
355
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png",
356
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png",
357
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png",
358
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png",
359
+ "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png",
360
+ "test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css",
361
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png",
362
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png",
363
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png",
364
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png",
365
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png",
366
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png",
367
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png",
368
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png",
369
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png",
370
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png",
371
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png",
372
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png",
373
+ "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png",
374
+ "test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css",
375
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png",
376
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png",
377
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png",
378
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png",
379
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png",
380
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png",
381
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png",
382
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png",
383
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png",
384
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png",
385
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png",
386
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png",
387
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png",
388
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png",
389
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css",
390
+ "test/rails_root/public/stylesheets/reset.css",
391
+ "test/rails_root/public/stylesheets/styles.css",
392
+ "test/rails_root/public/stylesheets/themes/blue/styles.css",
393
+ "test/rails_root/public/stylesheets/themes/red/styles.css",
394
+ "test/rails_root/script/about",
395
+ "test/rails_root/script/breakpointer",
396
+ "test/rails_root/script/console",
397
+ "test/rails_root/script/create_project.rb",
398
+ "test/rails_root/script/cucumber",
399
+ "test/rails_root/script/dbconsole",
400
+ "test/rails_root/script/destroy",
401
+ "test/rails_root/script/generate",
402
+ "test/rails_root/script/performance/benchmarker",
403
+ "test/rails_root/script/performance/profiler",
404
+ "test/rails_root/script/performance/request",
405
+ "test/rails_root/script/plugin",
406
+ "test/rails_root/script/process/inspector",
407
+ "test/rails_root/script/process/reaper",
408
+ "test/rails_root/script/process/spawner",
409
+ "test/rails_root/script/runner",
410
+ "test/rails_root/script/server",
411
+ "test/rails_root/test/factories.rb",
412
+ "test/rails_root/test/functional/.keep",
413
+ "test/rails_root/test/functional/activations_controller_test.rb",
414
+ "test/rails_root/test/functional/admin/roles_controller_test.rb",
415
+ "test/rails_root/test/functional/admin/users_controller_test.rb",
416
+ "test/rails_root/test/functional/password_resets_controller_test.rb",
417
+ "test/rails_root/test/functional/user_sessions_controller_test.rb",
418
+ "test/rails_root/test/functional/users_controller_test.rb",
419
+ "test/rails_root/test/integration/.keep",
420
+ "test/rails_root/test/mocks/development/.keep",
421
+ "test/rails_root/test/mocks/test/.keep",
422
+ "test/rails_root/test/shoulda_macros/controller.rb",
423
+ "test/rails_root/test/shoulda_macros/forms.rb",
424
+ "test/rails_root/test/shoulda_macros/models.rb",
425
+ "test/rails_root/test/shoulda_macros/pagination.rb",
426
+ "test/rails_root/test/shoulda_macros/plugins.rb",
427
+ "test/rails_root/test/test_helper.rb",
428
+ "test/rails_root/test/unit/.keep",
429
+ "test/rails_root/test/unit/muck_user_mailer_test.rb",
430
+ "test/rails_root/test/unit/permission_test.rb",
431
+ "test/rails_root/test/unit/role_test.rb",
432
+ "test/rails_root/vendor/plugins/ssl_requirement/README",
433
+ "test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb",
434
+ "test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb",
242
435
  "uninstall.rb"
243
436
  ]
244
437
  s.has_rdoc = true
@@ -249,22 +442,46 @@ Gem::Specification.new do |s|
249
442
  s.rubygems_version = %q{1.3.1}
250
443
  s.summary = %q{Easy to use user engine for Rails}
251
444
  s.test_files = [
252
- "test/factories.rb",
253
- "test/functional/activations_controller_test.rb",
254
- "test/functional/admin/roles_controller_test.rb",
255
- "test/functional/admin/users_controller_test.rb",
256
- "test/functional/password_resets_controller_test.rb",
257
- "test/functional/user_sessions_controller_test.rb",
258
- "test/functional/users_controller_test.rb",
259
- "test/shoulda_macros/controller.rb",
260
- "test/shoulda_macros/forms.rb",
261
- "test/shoulda_macros/models.rb",
262
- "test/shoulda_macros/pagination.rb",
263
- "test/shoulda_macros/plugins.rb",
264
- "test/test_helper.rb",
265
- "test/unit/muck_user_mailer_test.rb",
266
- "test/unit/permission_test.rb",
267
- "test/unit/role_test.rb"
445
+ "test/rails_root/app/controllers/application_controller.rb",
446
+ "test/rails_root/app/controllers/default_controller.rb",
447
+ "test/rails_root/app/helpers/application_helper.rb",
448
+ "test/rails_root/app/models/user.rb",
449
+ "test/rails_root/app/models/user_session.rb",
450
+ "test/rails_root/config/boot.rb",
451
+ "test/rails_root/config/environment.rb",
452
+ "test/rails_root/config/environments/development.rb",
453
+ "test/rails_root/config/environments/production.rb",
454
+ "test/rails_root/config/environments/test.rb",
455
+ "test/rails_root/config/initializers/inflections.rb",
456
+ "test/rails_root/config/initializers/mime_types.rb",
457
+ "test/rails_root/config/initializers/requires.rb",
458
+ "test/rails_root/config/initializers/session_store.rb",
459
+ "test/rails_root/config/routes.rb",
460
+ "test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
461
+ "test/rails_root/db/migrate/20090602041838_create_users.rb",
462
+ "test/rails_root/db/schema.rb",
463
+ "test/rails_root/features/step_definitions/webrat_steps.rb",
464
+ "test/rails_root/features/support/env.rb",
465
+ "test/rails_root/public/dispatch.rb",
466
+ "test/rails_root/script/create_project.rb",
467
+ "test/rails_root/test/factories.rb",
468
+ "test/rails_root/test/functional/activations_controller_test.rb",
469
+ "test/rails_root/test/functional/admin/roles_controller_test.rb",
470
+ "test/rails_root/test/functional/admin/users_controller_test.rb",
471
+ "test/rails_root/test/functional/password_resets_controller_test.rb",
472
+ "test/rails_root/test/functional/user_sessions_controller_test.rb",
473
+ "test/rails_root/test/functional/users_controller_test.rb",
474
+ "test/rails_root/test/shoulda_macros/controller.rb",
475
+ "test/rails_root/test/shoulda_macros/forms.rb",
476
+ "test/rails_root/test/shoulda_macros/models.rb",
477
+ "test/rails_root/test/shoulda_macros/pagination.rb",
478
+ "test/rails_root/test/shoulda_macros/plugins.rb",
479
+ "test/rails_root/test/test_helper.rb",
480
+ "test/rails_root/test/unit/muck_user_mailer_test.rb",
481
+ "test/rails_root/test/unit/permission_test.rb",
482
+ "test/rails_root/test/unit/role_test.rb",
483
+ "test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb",
484
+ "test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb"
268
485
  ]
269
486
 
270
487
  if s.respond_to? :specification_version then
@@ -273,13 +490,16 @@ Gem::Specification.new do |s|
273
490
 
274
491
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
275
492
  s.add_runtime_dependency(%q<authlogic>, [">= 0"])
493
+ s.add_runtime_dependency(%q<bcrypt-ruby>, [">= 0"])
276
494
  s.add_runtime_dependency(%q<muck-engine>, [">= 0"])
277
495
  else
278
496
  s.add_dependency(%q<authlogic>, [">= 0"])
497
+ s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
279
498
  s.add_dependency(%q<muck-engine>, [">= 0"])
280
499
  end
281
500
  else
282
501
  s.add_dependency(%q<authlogic>, [">= 0"])
502
+ s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
283
503
  s.add_dependency(%q<muck-engine>, [">= 0"])
284
504
  end
285
505
  end
Binary file
@@ -0,0 +1,216 @@
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>Module: ActiveRecord::SecureMethods</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="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">ActiveRecord::SecureMethods</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/active_record/secure_methods_rb.html">
59
+ lib/active_record/secure_methods.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000049">check</a>&nbsp;&nbsp;
84
+ <a href="#M000046">check_creator</a>&nbsp;&nbsp;
85
+ <a href="#M000048">check_sharer</a>&nbsp;&nbsp;
86
+ <a href="#M000047">check_user</a>&nbsp;&nbsp;
87
+ </div>
88
+ </div>
89
+
90
+ </div>
91
+
92
+
93
+ <!-- if includes -->
94
+
95
+ <div id="section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <!-- if method_list -->
105
+ <div id="methods">
106
+ <h3 class="section-bar">Protected Instance methods</h3>
107
+
108
+ <div id="method-M000049" class="method-detail">
109
+ <a name="M000049"></a>
110
+
111
+ <div class="method-heading">
112
+ <a href="#M000049" class="method-signature">
113
+ <span class="method-name">check</span><span class="method-args">(user, field)</span>
114
+ </a>
115
+ </div>
116
+
117
+ <div class="method-description">
118
+ <p><a class="source-toggle" href="#"
119
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
120
+ <div class="method-source-code" id="M000049-source">
121
+ <pre>
122
+ <span class="ruby-comment cmt"># File lib/active_record/secure_methods.rb, line 18</span>
123
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">field</span>)
124
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">user</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">user</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:false</span>
125
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">field</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">admin?</span>
126
+ <span class="ruby-keyword kw">else</span>
127
+ <span class="ruby-keyword kw">false</span>
128
+ <span class="ruby-keyword kw">end</span>
129
+ <span class="ruby-keyword kw">end</span>
130
+ </pre>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ <div id="method-M000046" class="method-detail">
136
+ <a name="M000046"></a>
137
+
138
+ <div class="method-heading">
139
+ <a href="#M000046" class="method-signature">
140
+ <span class="method-name">check_creator</span><span class="method-args">(user)</span>
141
+ </a>
142
+ </div>
143
+
144
+ <div class="method-description">
145
+ <p><a class="source-toggle" href="#"
146
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000046-source">
148
+ <pre>
149
+ <span class="ruby-comment cmt"># File lib/active_record/secure_methods.rb, line 6</span>
150
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_creator</span>(<span class="ruby-identifier">user</span>)
151
+ <span class="ruby-identifier">check</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">:creator_id</span>)
152
+ <span class="ruby-keyword kw">end</span>
153
+ </pre>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+ <div id="method-M000048" class="method-detail">
159
+ <a name="M000048"></a>
160
+
161
+ <div class="method-heading">
162
+ <a href="#M000048" class="method-signature">
163
+ <span class="method-name">check_sharer</span><span class="method-args">(user)</span>
164
+ </a>
165
+ </div>
166
+
167
+ <div class="method-description">
168
+ <p><a class="source-toggle" href="#"
169
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
170
+ <div class="method-source-code" id="M000048-source">
171
+ <pre>
172
+ <span class="ruby-comment cmt"># File lib/active_record/secure_methods.rb, line 14</span>
173
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_sharer</span>(<span class="ruby-identifier">user</span>)
174
+ <span class="ruby-identifier">check</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">:shared_by_id</span>)
175
+ <span class="ruby-keyword kw">end</span>
176
+ </pre>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+ <div id="method-M000047" class="method-detail">
182
+ <a name="M000047"></a>
183
+
184
+ <div class="method-heading">
185
+ <a href="#M000047" class="method-signature">
186
+ <span class="method-name">check_user</span><span class="method-args">(user)</span>
187
+ </a>
188
+ </div>
189
+
190
+ <div class="method-description">
191
+ <p><a class="source-toggle" href="#"
192
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
193
+ <div class="method-source-code" id="M000047-source">
194
+ <pre>
195
+ <span class="ruby-comment cmt"># File lib/active_record/secure_methods.rb, line 10</span>
196
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_user</span>(<span class="ruby-identifier">user</span>)
197
+ <span class="ruby-identifier">check</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">:user_id</span>)
198
+ <span class="ruby-keyword kw">end</span>
199
+ </pre>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
204
+
205
+ </div>
206
+
207
+
208
+ </div>
209
+
210
+
211
+ <div id="validator-badges">
212
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
213
+ </div>
214
+
215
+ </body>
216
+ </html>