devise_ldap_authenticatable 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +1 -4
  5. data/README.md +45 -92
  6. data/Rakefile +8 -7
  7. data/devise_ldap_authenticatable.gemspec +15 -3
  8. data/lib/devise_ldap_authenticatable/ldap_adapter.rb +51 -27
  9. data/lib/devise_ldap_authenticatable/model.rb +5 -1
  10. data/lib/devise_ldap_authenticatable/strategy.rb +3 -1
  11. data/lib/devise_ldap_authenticatable/version.rb +1 -1
  12. data/lib/generators/devise_ldap_authenticatable/templates/ldap.yml +3 -3
  13. data/spec/ldap/.gitignore +2 -0
  14. data/{test → spec}/ldap/base.ldif +0 -0
  15. data/{test → spec}/ldap/clear.ldif +0 -0
  16. data/{test → spec}/ldap/local.schema +0 -0
  17. data/spec/ldap/openldap-data/.gitignore +2 -0
  18. data/spec/ldap/openldap-data/run/.gitignore +2 -0
  19. data/{test → spec}/ldap/openldap-data/run/.gitkeep +0 -0
  20. data/spec/ldap/run-server +31 -0
  21. data/{test → spec}/ldap/server.pem +0 -0
  22. data/{test/ldap/slapd-test.conf → spec/ldap/slapd-test.conf.erb} +16 -16
  23. data/{test → spec}/rails_app/Rakefile +0 -0
  24. data/spec/rails_app/app/controllers/application_controller.rb +7 -0
  25. data/{test → spec}/rails_app/app/controllers/posts_controller.rb +0 -0
  26. data/{test → spec}/rails_app/app/helpers/application_helper.rb +0 -0
  27. data/{test → spec}/rails_app/app/helpers/posts_helper.rb +0 -0
  28. data/{test → spec}/rails_app/app/models/post.rb +0 -0
  29. data/{test → spec}/rails_app/app/models/user.rb +0 -0
  30. data/{test → spec}/rails_app/app/views/layouts/application.html.erb +0 -0
  31. data/{test → spec}/rails_app/app/views/posts/index.html.erb +0 -0
  32. data/{test → spec}/rails_app/config.ru +0 -0
  33. data/{test → spec}/rails_app/config/application.rb +0 -0
  34. data/{test → spec}/rails_app/config/boot.rb +1 -1
  35. data/{test → spec}/rails_app/config/cucumber.yml +0 -0
  36. data/{test → spec}/rails_app/config/database.yml +0 -0
  37. data/{test → spec}/rails_app/config/environment.rb +0 -0
  38. data/{test → spec}/rails_app/config/environments/development.rb +0 -1
  39. data/{test → spec}/rails_app/config/environments/production.rb +0 -0
  40. data/{test → spec}/rails_app/config/environments/test.rb +1 -1
  41. data/{test → spec}/rails_app/config/initializers/backtrace_silencers.rb +0 -0
  42. data/spec/rails_app/config/initializers/devise.rb +242 -0
  43. data/{test → spec}/rails_app/config/initializers/inflections.rb +0 -0
  44. data/{test → spec}/rails_app/config/initializers/mime_types.rb +0 -0
  45. data/{test → spec}/rails_app/config/initializers/secret_token.rb +0 -0
  46. data/{test → spec}/rails_app/config/initializers/session_store.rb +0 -0
  47. data/{test → spec}/rails_app/config/ldap.yml +0 -0
  48. data/{test → spec}/rails_app/config/ldap_with_boolean_ssl.yml +0 -0
  49. data/{test → spec}/rails_app/config/ldap_with_erb.yml +0 -0
  50. data/{test → spec}/rails_app/config/ldap_with_uid.yml +0 -0
  51. data/spec/rails_app/config/locales/devise.en.yml +58 -0
  52. data/{test → spec}/rails_app/config/locales/en.yml +0 -0
  53. data/{test → spec}/rails_app/config/routes.rb +0 -0
  54. data/{test → spec}/rails_app/config/ssl_ldap.yml +0 -0
  55. data/{test → spec}/rails_app/config/ssl_ldap_with_erb.yml +0 -0
  56. data/{test → spec}/rails_app/config/ssl_ldap_with_uid.yml +0 -0
  57. data/{test → spec}/rails_app/db/migrate/20100708120448_devise_create_users.rb +18 -4
  58. data/{test → spec}/rails_app/db/schema.rb +6 -13
  59. data/{test → spec}/rails_app/features/manage_logins.feature +0 -0
  60. data/{test → spec}/rails_app/features/step_definitions/login_steps.rb +0 -0
  61. data/{test → spec}/rails_app/features/step_definitions/web_steps.rb +0 -0
  62. data/{test → spec}/rails_app/features/support/env.rb +0 -0
  63. data/{test → spec}/rails_app/features/support/paths.rb +0 -0
  64. data/{test → spec}/rails_app/lib/tasks/.gitkeep +0 -0
  65. data/{test → spec}/rails_app/lib/tasks/cucumber.rake +0 -0
  66. data/{test → spec}/rails_app/public/404.html +0 -0
  67. data/{test → spec}/rails_app/public/422.html +0 -0
  68. data/{test → spec}/rails_app/public/500.html +0 -0
  69. data/{test → spec}/rails_app/public/images/rails.png +0 -0
  70. data/{test → spec}/rails_app/public/javascripts/application.js +0 -0
  71. data/{test → spec}/rails_app/public/javascripts/controls.js +0 -0
  72. data/{test → spec}/rails_app/public/javascripts/dragdrop.js +0 -0
  73. data/{test → spec}/rails_app/public/javascripts/effects.js +0 -0
  74. data/{test → spec}/rails_app/public/javascripts/prototype.js +0 -0
  75. data/{test → spec}/rails_app/public/javascripts/rails.js +0 -0
  76. data/{test → spec}/rails_app/public/stylesheets/.gitkeep +0 -0
  77. data/{test → spec}/rails_app/script/cucumber +0 -0
  78. data/{test → spec}/rails_app/script/rails +0 -0
  79. data/spec/spec_helper.rb +47 -0
  80. data/spec/support/factories.rb +16 -0
  81. data/spec/unit/user_spec.rb +303 -0
  82. metadata +292 -179
  83. data/Gemfile.lock +0 -92
  84. data/rails/init.rb +0 -2
  85. data/test/devise_ldap_authenticatable_test.rb +0 -8
  86. data/test/ldap/run-server.sh +0 -10
  87. data/test/ldap/slapd-ssl-test.conf +0 -107
  88. data/test/rails_app/Gemfile +0 -22
  89. data/test/rails_app/Gemfile.lock +0 -159
  90. data/test/rails_app/app/controllers/application_controller.rb +0 -4
  91. data/test/rails_app/config/initializers/devise.rb +0 -140
  92. data/test/rails_app/config/ldap_with_check_membership_off.yml +0 -23
  93. data/test/rails_app/config/ldap_with_check_membership_on.yml +0 -23
  94. data/test/rails_app/config/locales/devise.en.yml +0 -39
  95. data/test/rails_app/db/migrate/20100708120302_create_posts.rb +0 -14
  96. data/test/rails_app/db/seeds.rb +0 -7
  97. data/test/rails_app/test/factories/users.rb +0 -14
  98. data/test/rails_app/test/functional/posts_controller_test.rb +0 -58
  99. data/test/rails_app/test/performance/browsing_test.rb +0 -9
  100. data/test/rails_app/test/test_helper.rb +0 -36
  101. data/test/rails_app/test/unit/helpers/posts_helper_test.rb +0 -4
  102. data/test/rails_app/test/unit/post_test.rb +0 -4
  103. data/test/rails_app/test/unit/user_test.rb +0 -314
  104. data/test/test_helper.rb +0 -3
data/test/test_helper.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'rubygems'
2
- require 'active_support'
3
- require 'active_support/test_case'