rails-doorman 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/LICENSE +21 -0
  2. data/README.rdoc +94 -0
  3. data/Rakefile +89 -0
  4. data/features/doorman.feature +99 -0
  5. data/features/step_definitions/common_steps.rb +25 -0
  6. data/features/step_definitions/webrat_steps.rb +115 -0
  7. data/features/support/authorized_matcher.rb +29 -0
  8. data/features/support/env.rb +16 -0
  9. data/features/support/paths.rb +19 -0
  10. data/features/support/unauthorized_matcher.rb +29 -0
  11. data/lib/doorman.rb +111 -0
  12. data/lib/doorman/helpers.rb +17 -0
  13. data/lib/doorman/rule.rb +59 -0
  14. data/rails/init.rb +1 -0
  15. data/spec/fixtures/app/README +243 -0
  16. data/spec/fixtures/app/Rakefile +10 -0
  17. data/spec/fixtures/app/app/controllers/access_control_by_host_controller.rb +5 -0
  18. data/spec/fixtures/app/app/controllers/access_control_by_user_agent_controller.rb +4 -0
  19. data/spec/fixtures/app/app/controllers/allow_all_by_default_controller.rb +2 -0
  20. data/spec/fixtures/app/app/controllers/allowed_and_denied_roles_controller.rb +4 -0
  21. data/spec/fixtures/app/app/controllers/allowed_and_denied_users_controller.rb +4 -0
  22. data/spec/fixtures/app/app/controllers/allowed_role_controller.rb +3 -0
  23. data/spec/fixtures/app/app/controllers/allowed_role_with_only_controller.rb +3 -0
  24. data/spec/fixtures/app/app/controllers/allowed_user_controller.rb +3 -0
  25. data/spec/fixtures/app/app/controllers/application_controller.rb +37 -0
  26. data/spec/fixtures/app/app/controllers/denied_role_controller.rb +3 -0
  27. data/spec/fixtures/app/app/controllers/denied_user_controller.rb +4 -0
  28. data/spec/fixtures/app/app/controllers/deny_all_controller.rb +3 -0
  29. data/spec/fixtures/app/app/controllers/explicitly_allow_all_controller.rb +3 -0
  30. data/spec/fixtures/app/app/controllers/test_controller.rb +4 -0
  31. data/spec/fixtures/app/app/controllers/view_helpers_controller.rb +4 -0
  32. data/spec/fixtures/app/app/helpers/application_helper.rb +3 -0
  33. data/spec/fixtures/app/app/models/user.rb +7 -0
  34. data/spec/fixtures/app/app/views/layouts/application.html.erb +8 -0
  35. data/spec/fixtures/app/app/views/view_helpers/allow_via_role.html.erb +3 -0
  36. data/spec/fixtures/app/app/views/view_helpers/deny_via_role.html.erb +3 -0
  37. data/spec/fixtures/app/config/boot.rb +110 -0
  38. data/spec/fixtures/app/config/environment.rb +41 -0
  39. data/spec/fixtures/app/config/environments/development.rb +0 -0
  40. data/spec/fixtures/app/config/environments/production.rb +0 -0
  41. data/spec/fixtures/app/config/environments/test.rb +31 -0
  42. data/spec/fixtures/app/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/fixtures/app/config/initializers/inflections.rb +10 -0
  44. data/spec/fixtures/app/config/initializers/mime_types.rb +5 -0
  45. data/spec/fixtures/app/config/initializers/new_rails_defaults.rb +19 -0
  46. data/spec/fixtures/app/config/initializers/session_store.rb +15 -0
  47. data/spec/fixtures/app/config/locales/en.yml +5 -0
  48. data/spec/fixtures/app/config/routes.rb +43 -0
  49. data/spec/fixtures/app/db/foo.txt +0 -0
  50. data/spec/fixtures/app/doc/README_FOR_APP +2 -0
  51. data/spec/fixtures/app/log/test.log +11988 -0
  52. data/spec/fixtures/app/public/404.html +30 -0
  53. data/spec/fixtures/app/public/422.html +30 -0
  54. data/spec/fixtures/app/public/500.html +30 -0
  55. data/spec/fixtures/app/public/favicon.ico +0 -0
  56. data/spec/fixtures/app/public/images/rails.png +0 -0
  57. data/spec/fixtures/app/public/javascripts/application.js +2 -0
  58. data/spec/fixtures/app/public/javascripts/controls.js +963 -0
  59. data/spec/fixtures/app/public/javascripts/dragdrop.js +973 -0
  60. data/spec/fixtures/app/public/javascripts/effects.js +1128 -0
  61. data/spec/fixtures/app/public/javascripts/prototype.js +4320 -0
  62. data/spec/fixtures/app/public/robots.txt +5 -0
  63. data/spec/fixtures/app/script/about +4 -0
  64. data/spec/fixtures/app/script/console +3 -0
  65. data/spec/fixtures/app/script/dbconsole +3 -0
  66. data/spec/fixtures/app/script/destroy +3 -0
  67. data/spec/fixtures/app/script/generate +3 -0
  68. data/spec/fixtures/app/script/performance/benchmarker +3 -0
  69. data/spec/fixtures/app/script/performance/profiler +3 -0
  70. data/spec/fixtures/app/script/plugin +3 -0
  71. data/spec/fixtures/app/script/runner +3 -0
  72. data/spec/fixtures/app/script/server +3 -0
  73. data/spec/fixtures/app/test/performance/browsing_test.rb +9 -0
  74. data/spec/fixtures/app/test/test_helper.rb +38 -0
  75. data/spec/fixtures/app/vendor/plugins/doorman/init.rb +1 -0
  76. data/spec/rails_doorman/class_methods_spec.rb +49 -0
  77. data/spec/rails_doorman/rule_spec.rb +120 -0
  78. data/spec/spec_helper.rb +15 -0
  79. metadata +225 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.