activeldap 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. data/CHANGES +6 -0
  2. data/README +1 -0
  3. data/lib/active_ldap/get_text_support.rb +3 -1
  4. data/lib/active_ldap.rb +1 -1
  5. metadata +5 -321
  6. data/examples/al-admin/README +0 -182
  7. data/examples/al-admin/Rakefile +0 -16
  8. data/examples/al-admin/app/controllers/account_controller.rb +0 -60
  9. data/examples/al-admin/app/controllers/application_controller.rb +0 -46
  10. data/examples/al-admin/app/controllers/attributes_controller.rb +0 -17
  11. data/examples/al-admin/app/controllers/directory_controller.rb +0 -49
  12. data/examples/al-admin/app/controllers/object_classes_controller.rb +0 -17
  13. data/examples/al-admin/app/controllers/syntaxes_controller.rb +0 -17
  14. data/examples/al-admin/app/controllers/users_controller.rb +0 -66
  15. data/examples/al-admin/app/controllers/welcome_controller.rb +0 -12
  16. data/examples/al-admin/app/helpers/account_helper.rb +0 -2
  17. data/examples/al-admin/app/helpers/application_helper.rb +0 -46
  18. data/examples/al-admin/app/helpers/attributes_helper.rb +0 -15
  19. data/examples/al-admin/app/helpers/directory_helper.rb +0 -7
  20. data/examples/al-admin/app/helpers/object_classes_helper.rb +0 -10
  21. data/examples/al-admin/app/helpers/syntaxes_helper.rb +0 -10
  22. data/examples/al-admin/app/helpers/url_helper.rb +0 -17
  23. data/examples/al-admin/app/helpers/users_helper.rb +0 -17
  24. data/examples/al-admin/app/helpers/welcome_helper.rb +0 -2
  25. data/examples/al-admin/app/models/entry.rb +0 -23
  26. data/examples/al-admin/app/models/ldap_user.rb +0 -58
  27. data/examples/al-admin/app/models/user.rb +0 -91
  28. data/examples/al-admin/app/views/_entry/_attributes_information.html.erb +0 -29
  29. data/examples/al-admin/app/views/_entry/_entry.html.erb +0 -15
  30. data/examples/al-admin/app/views/_schema/_aliases.html.erb +0 -7
  31. data/examples/al-admin/app/views/_switcher/_after.html.erb +0 -2
  32. data/examples/al-admin/app/views/_switcher/_before.html.erb +0 -5
  33. data/examples/al-admin/app/views/account/login.html.erb +0 -26
  34. data/examples/al-admin/app/views/account/sign_up.html.erb +0 -29
  35. data/examples/al-admin/app/views/attributes/_attributes.html.erb +0 -19
  36. data/examples/al-admin/app/views/attributes/_detail.html.erb +0 -29
  37. data/examples/al-admin/app/views/attributes/index.html.erb +0 -3
  38. data/examples/al-admin/app/views/attributes/show.html.erb +0 -31
  39. data/examples/al-admin/app/views/directory/_tree.html.erb +0 -10
  40. data/examples/al-admin/app/views/directory/_tree_view_js.html.erb +0 -25
  41. data/examples/al-admin/app/views/directory/index.html.erb +0 -13
  42. data/examples/al-admin/app/views/directory/populate.html.erb +0 -2
  43. data/examples/al-admin/app/views/layouts/_footer.html.erb +0 -11
  44. data/examples/al-admin/app/views/layouts/_header_menu.html.erb +0 -10
  45. data/examples/al-admin/app/views/layouts/_main_menu.html.erb +0 -18
  46. data/examples/al-admin/app/views/layouts/application.html.erb +0 -57
  47. data/examples/al-admin/app/views/object_classes/_attributes.html.erb +0 -28
  48. data/examples/al-admin/app/views/object_classes/_object_classes.html.erb +0 -19
  49. data/examples/al-admin/app/views/object_classes/index.html.erb +0 -3
  50. data/examples/al-admin/app/views/object_classes/show.html.erb +0 -39
  51. data/examples/al-admin/app/views/syntaxes/_detail.html.erb +0 -14
  52. data/examples/al-admin/app/views/syntaxes/_syntaxes.html.erb +0 -19
  53. data/examples/al-admin/app/views/syntaxes/index.html.erb +0 -3
  54. data/examples/al-admin/app/views/syntaxes/show.html.erb +0 -22
  55. data/examples/al-admin/app/views/users/_attributes_update_form.html.erb +0 -42
  56. data/examples/al-admin/app/views/users/_form.html.erb +0 -13
  57. data/examples/al-admin/app/views/users/_object_classes_update_form.html.erb +0 -46
  58. data/examples/al-admin/app/views/users/_password_change_form.html.erb +0 -20
  59. data/examples/al-admin/app/views/users/edit.html.erb +0 -15
  60. data/examples/al-admin/app/views/users/index.html.erb +0 -10
  61. data/examples/al-admin/app/views/users/show.html.erb +0 -11
  62. data/examples/al-admin/app/views/welcome/index.html.erb +0 -13
  63. data/examples/al-admin/config/boot.rb +0 -110
  64. data/examples/al-admin/config/database.yml.example +0 -19
  65. data/examples/al-admin/config/environment.rb +0 -73
  66. data/examples/al-admin/config/environments/development.rb +0 -17
  67. data/examples/al-admin/config/environments/production.rb +0 -24
  68. data/examples/al-admin/config/environments/test.rb +0 -22
  69. data/examples/al-admin/config/initializers/exception_notifier.rb +0 -2
  70. data/examples/al-admin/config/initializers/fast_gettext.rb +0 -3
  71. data/examples/al-admin/config/initializers/inflections.rb +0 -10
  72. data/examples/al-admin/config/initializers/mime_types.rb +0 -5
  73. data/examples/al-admin/config/initializers/session_store.rb +0 -23
  74. data/examples/al-admin/config/ldap.yml.example +0 -21
  75. data/examples/al-admin/config/routes.rb +0 -58
  76. data/examples/al-admin/config/session_secret.txt +0 -1
  77. data/examples/al-admin/config.ru +0 -7
  78. data/examples/al-admin/db/migrate/001_create_users.rb +0 -16
  79. data/examples/al-admin/db/schema.rb +0 -23
  80. data/examples/al-admin/lib/authenticated_system.rb +0 -124
  81. data/examples/al-admin/lib/authenticated_test_helper.rb +0 -113
  82. data/examples/al-admin/lib/ldap_test_helper.rb +0 -38
  83. data/examples/al-admin/lib/tasks/testing.rake +0 -10
  84. data/examples/al-admin/po/en/al-admin.po +0 -343
  85. data/examples/al-admin/po/ja/al-admin.po +0 -343
  86. data/examples/al-admin/po/nl/al-admin.po +0 -380
  87. data/examples/al-admin/public/.htaccess +0 -40
  88. data/examples/al-admin/public/404.html +0 -30
  89. data/examples/al-admin/public/500.html +0 -30
  90. data/examples/al-admin/public/dispatch.cgi +0 -10
  91. data/examples/al-admin/public/dispatch.fcgi +0 -24
  92. data/examples/al-admin/public/dispatch.rb +0 -10
  93. data/examples/al-admin/public/favicon.ico +0 -0
  94. data/examples/al-admin/public/images/active-ldap.svg +0 -6351
  95. data/examples/al-admin/public/images/al-admin.png +0 -0
  96. data/examples/al-admin/public/images/al-admin.svg +0 -6371
  97. data/examples/al-admin/public/images/header-background.png +0 -0
  98. data/examples/al-admin/public/images/header-background.svg +0 -99
  99. data/examples/al-admin/public/images/rails.png +0 -0
  100. data/examples/al-admin/public/images/spinelz/accordion_tab_left_active.gif +0 -0
  101. data/examples/al-admin/public/images/spinelz/accordion_tab_left_inactive.gif +0 -0
  102. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_active.gif +0 -0
  103. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_inactive.gif +0 -0
  104. data/examples/al-admin/public/images/spinelz/accordion_tab_right_active.gif +0 -0
  105. data/examples/al-admin/public/images/spinelz/accordion_tab_right_inactive.gif +0 -0
  106. data/examples/al-admin/public/images/spinelz/balloon_back.gif +0 -0
  107. data/examples/al-admin/public/images/spinelz/balloon_bottom_left.gif +0 -0
  108. data/examples/al-admin/public/images/spinelz/balloon_bottom_middle.gif +0 -0
  109. data/examples/al-admin/public/images/spinelz/balloon_bottom_right.gif +0 -0
  110. data/examples/al-admin/public/images/spinelz/balloon_left_down_arrow.gif +0 -0
  111. data/examples/al-admin/public/images/spinelz/balloon_left_up_arrow.gif +0 -0
  112. data/examples/al-admin/public/images/spinelz/balloon_middle_left.gif +0 -0
  113. data/examples/al-admin/public/images/spinelz/balloon_middle_right.gif +0 -0
  114. data/examples/al-admin/public/images/spinelz/balloon_right_down_arrow.gif +0 -0
  115. data/examples/al-admin/public/images/spinelz/balloon_right_up_arrow.gif +0 -0
  116. data/examples/al-admin/public/images/spinelz/balloon_top_left.gif +0 -0
  117. data/examples/al-admin/public/images/spinelz/balloon_top_middle.gif +0 -0
  118. data/examples/al-admin/public/images/spinelz/balloon_top_right.gif +0 -0
  119. data/examples/al-admin/public/images/spinelz/barchart_h.gif +0 -0
  120. data/examples/al-admin/public/images/spinelz/barchart_v.gif +0 -0
  121. data/examples/al-admin/public/images/spinelz/button.gif +0 -0
  122. data/examples/al-admin/public/images/spinelz/calendar_default_handler.gif +0 -0
  123. data/examples/al-admin/public/images/spinelz/calendar_delete.gif +0 -0
  124. data/examples/al-admin/public/images/spinelz/calendar_next.gif +0 -0
  125. data/examples/al-admin/public/images/spinelz/calendar_next_second.gif +0 -0
  126. data/examples/al-admin/public/images/spinelz/calendar_pre.gif +0 -0
  127. data/examples/al-admin/public/images/spinelz/calendar_pre_second.gif +0 -0
  128. data/examples/al-admin/public/images/spinelz/calendar_private_icon.gif +0 -0
  129. data/examples/al-admin/public/images/spinelz/calendar_schedule.gif +0 -0
  130. data/examples/al-admin/public/images/spinelz/calender_back.gif +0 -0
  131. data/examples/al-admin/public/images/spinelz/calender_back_second.gif +0 -0
  132. data/examples/al-admin/public/images/spinelz/datepicker2_back.gif +0 -0
  133. data/examples/al-admin/public/images/spinelz/datepicker2_back_second.gif +0 -0
  134. data/examples/al-admin/public/images/spinelz/datepicker2_next.gif +0 -0
  135. data/examples/al-admin/public/images/spinelz/datepicker2_next_second.gif +0 -0
  136. data/examples/al-admin/public/images/spinelz/datepicker2_pre.gif +0 -0
  137. data/examples/al-admin/public/images/spinelz/datepicker2_pre_second.gif +0 -0
  138. data/examples/al-admin/public/images/spinelz/datepicker_back.gif +0 -0
  139. data/examples/al-admin/public/images/spinelz/datepicker_back_second.gif +0 -0
  140. data/examples/al-admin/public/images/spinelz/datepicker_next.gif +0 -0
  141. data/examples/al-admin/public/images/spinelz/datepicker_next_second.gif +0 -0
  142. data/examples/al-admin/public/images/spinelz/datepicker_pre.gif +0 -0
  143. data/examples/al-admin/public/images/spinelz/datepicker_pre_second.gif +0 -0
  144. data/examples/al-admin/public/images/spinelz/grid_down.gif +0 -0
  145. data/examples/al-admin/public/images/spinelz/grid_state.gif +0 -0
  146. data/examples/al-admin/public/images/spinelz/grid_up.gif +0 -0
  147. data/examples/al-admin/public/images/spinelz/icon_day.gif +0 -0
  148. data/examples/al-admin/public/images/spinelz/icon_month.gif +0 -0
  149. data/examples/al-admin/public/images/spinelz/icon_week.gif +0 -0
  150. data/examples/al-admin/public/images/spinelz/menubar_back.gif +0 -0
  151. data/examples/al-admin/public/images/spinelz/menubar_subcontents_back.gif +0 -0
  152. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_active.gif +0 -0
  153. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_inactive.gif +0 -0
  154. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_active.gif +0 -0
  155. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_inactive.gif +0 -0
  156. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_active.gif +0 -0
  157. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_inactive.gif +0 -0
  158. data/examples/al-admin/public/images/spinelz/select_date.gif +0 -0
  159. data/examples/al-admin/public/images/spinelz/selectabletable_selected.gif +0 -0
  160. data/examples/al-admin/public/images/spinelz/sideBarBox_about.gif +0 -0
  161. data/examples/al-admin/public/images/spinelz/sideBarBox_menu.gif +0 -0
  162. data/examples/al-admin/public/images/spinelz/sideBarBox_sample.gif +0 -0
  163. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomActive.gif +0 -0
  164. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomInactive.gif +0 -0
  165. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive.gif +0 -0
  166. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive2.gif +0 -0
  167. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive.gif +0 -0
  168. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive2.gif +0 -0
  169. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopActive.gif +0 -0
  170. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopInactive.gif +0 -0
  171. data/examples/al-admin/public/images/spinelz/sideBarBox_tabbar.gif +0 -0
  172. data/examples/al-admin/public/images/spinelz/sortableTable_down.gif +0 -0
  173. data/examples/al-admin/public/images/spinelz/sortableTable_normal.gif +0 -0
  174. data/examples/al-admin/public/images/spinelz/sortableTable_up.gif +0 -0
  175. data/examples/al-admin/public/images/spinelz/switcher_close.gif +0 -0
  176. data/examples/al-admin/public/images/spinelz/switcher_open.gif +0 -0
  177. data/examples/al-admin/public/images/spinelz/tabBox_close.gif +0 -0
  178. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftActive.gif +0 -0
  179. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftInactive.gif +0 -0
  180. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleActive.gif +0 -0
  181. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleInactive.gif +0 -0
  182. data/examples/al-admin/public/images/spinelz/tabBox_tabRightActive.gif +0 -0
  183. data/examples/al-admin/public/images/spinelz/tabBox_tabRightInactive.gif +0 -0
  184. data/examples/al-admin/public/images/spinelz/tab_bar.gif +0 -0
  185. data/examples/al-admin/public/images/spinelz/table_back.gif +0 -0
  186. data/examples/al-admin/public/images/spinelz/timepicker_clock.gif +0 -0
  187. data/examples/al-admin/public/images/spinelz/toolbar_close.gif +0 -0
  188. data/examples/al-admin/public/images/spinelz/toolbar_left.gif +0 -0
  189. data/examples/al-admin/public/images/spinelz/toolbar_max.gif +0 -0
  190. data/examples/al-admin/public/images/spinelz/toolbar_middle.gif +0 -0
  191. data/examples/al-admin/public/images/spinelz/toolbar_min.gif +0 -0
  192. data/examples/al-admin/public/images/spinelz/toolbar_next.gif +0 -0
  193. data/examples/al-admin/public/images/spinelz/toolbar_right.gif +0 -0
  194. data/examples/al-admin/public/images/spinelz/treeview_dir.gif +0 -0
  195. data/examples/al-admin/public/images/spinelz/treeview_file.gif +0 -0
  196. data/examples/al-admin/public/images/spinelz/treeview_group.gif +0 -0
  197. data/examples/al-admin/public/images/spinelz/treeview_group_special.gif +0 -0
  198. data/examples/al-admin/public/images/spinelz/treeview_state.gif +0 -0
  199. data/examples/al-admin/public/images/spinelz/treeview_user.gif +0 -0
  200. data/examples/al-admin/public/images/spinelz/window_bottom_left.gif +0 -0
  201. data/examples/al-admin/public/images/spinelz/window_bottom_middle.gif +0 -0
  202. data/examples/al-admin/public/images/spinelz/window_bottom_right.gif +0 -0
  203. data/examples/al-admin/public/images/spinelz/window_close.gif +0 -0
  204. data/examples/al-admin/public/images/spinelz/window_max.gif +0 -0
  205. data/examples/al-admin/public/images/spinelz/window_middle_left.gif +0 -0
  206. data/examples/al-admin/public/images/spinelz/window_middle_right.gif +0 -0
  207. data/examples/al-admin/public/images/spinelz/window_min.gif +0 -0
  208. data/examples/al-admin/public/images/spinelz/window_top_left.gif +0 -0
  209. data/examples/al-admin/public/images/spinelz/window_top_middle.gif +0 -0
  210. data/examples/al-admin/public/images/spinelz/window_top_right.gif +0 -0
  211. data/examples/al-admin/public/javascripts/application.js +0 -2
  212. data/examples/al-admin/public/javascripts/controls.js +0 -963
  213. data/examples/al-admin/public/javascripts/dragdrop.js +0 -973
  214. data/examples/al-admin/public/javascripts/effects.js +0 -1128
  215. data/examples/al-admin/public/javascripts/prototype.js +0 -4320
  216. data/examples/al-admin/public/javascripts/spinelz/accordion.js +0 -185
  217. data/examples/al-admin/public/javascripts/spinelz/ajaxHistory.js +0 -157
  218. data/examples/al-admin/public/javascripts/spinelz/balloon.js +0 -287
  219. data/examples/al-admin/public/javascripts/spinelz/barchart.js +0 -524
  220. data/examples/al-admin/public/javascripts/spinelz/calendar.js +0 -3012
  221. data/examples/al-admin/public/javascripts/spinelz/colorpicker.js +0 -128
  222. data/examples/al-admin/public/javascripts/spinelz/datepicker.js +0 -438
  223. data/examples/al-admin/public/javascripts/spinelz/grid.js +0 -1391
  224. data/examples/al-admin/public/javascripts/spinelz/grid_resizeEx.js +0 -100
  225. data/examples/al-admin/public/javascripts/spinelz/grid_sortabletableEx.js +0 -129
  226. data/examples/al-admin/public/javascripts/spinelz/inplaceEditorEx.js +0 -148
  227. data/examples/al-admin/public/javascripts/spinelz/menubar.js +0 -232
  228. data/examples/al-admin/public/javascripts/spinelz/navPanel.js +0 -170
  229. data/examples/al-admin/public/javascripts/spinelz/selectableTable.js +0 -433
  230. data/examples/al-admin/public/javascripts/spinelz/sideBarBox.js +0 -282
  231. data/examples/al-admin/public/javascripts/spinelz/sideBarBox_effects.js +0 -83
  232. data/examples/al-admin/public/javascripts/spinelz/sortableTable.js +0 -270
  233. data/examples/al-admin/public/javascripts/spinelz/switcher.js +0 -78
  234. data/examples/al-admin/public/javascripts/spinelz/tabBox.js +0 -469
  235. data/examples/al-admin/public/javascripts/spinelz/timepicker.js +0 -384
  236. data/examples/al-admin/public/javascripts/spinelz/toolbar.js +0 -152
  237. data/examples/al-admin/public/javascripts/spinelz/treeview.js +0 -703
  238. data/examples/al-admin/public/javascripts/spinelz/window.js +0 -641
  239. data/examples/al-admin/public/javascripts/spinelz/window_resizeEx.js +0 -130
  240. data/examples/al-admin/public/javascripts/spinelz_lib/builder.js +0 -131
  241. data/examples/al-admin/public/javascripts/spinelz_lib/controls.js +0 -835
  242. data/examples/al-admin/public/javascripts/spinelz_lib/dragdrop.js +0 -944
  243. data/examples/al-admin/public/javascripts/spinelz_lib/effects.js +0 -1090
  244. data/examples/al-admin/public/javascripts/spinelz_lib/json.js +0 -139
  245. data/examples/al-admin/public/javascripts/spinelz_lib/prototype.js +0 -2515
  246. data/examples/al-admin/public/javascripts/spinelz_lib/resize.js +0 -215
  247. data/examples/al-admin/public/javascripts/spinelz_lib/scriptaculous.js +0 -51
  248. data/examples/al-admin/public/javascripts/spinelz_lib/slider.js +0 -278
  249. data/examples/al-admin/public/javascripts/spinelz_lib/spinelz_util.js +0 -1266
  250. data/examples/al-admin/public/javascripts/spinelz_lib/unittest.js +0 -564
  251. data/examples/al-admin/public/robots.txt +0 -1
  252. data/examples/al-admin/public/stylesheets/account.css +0 -41
  253. data/examples/al-admin/public/stylesheets/attributes.css +0 -1
  254. data/examples/al-admin/public/stylesheets/base.css +0 -104
  255. data/examples/al-admin/public/stylesheets/detail.css +0 -36
  256. data/examples/al-admin/public/stylesheets/directory.css +0 -22
  257. data/examples/al-admin/public/stylesheets/object-classes.css +0 -6
  258. data/examples/al-admin/public/stylesheets/rails.css +0 -35
  259. data/examples/al-admin/public/stylesheets/spinelz/accordion.css +0 -59
  260. data/examples/al-admin/public/stylesheets/spinelz/balloon.css +0 -151
  261. data/examples/al-admin/public/stylesheets/spinelz/calendar.css +0 -564
  262. data/examples/al-admin/public/stylesheets/spinelz/datepicker.css +0 -175
  263. data/examples/al-admin/public/stylesheets/spinelz/grid.css +0 -137
  264. data/examples/al-admin/public/stylesheets/spinelz/menubar.css +0 -78
  265. data/examples/al-admin/public/stylesheets/spinelz/modal.css +0 -22
  266. data/examples/al-admin/public/stylesheets/spinelz/navPanel.css +0 -58
  267. data/examples/al-admin/public/stylesheets/spinelz/selectableTable.css +0 -28
  268. data/examples/al-admin/public/stylesheets/spinelz/sideBarBox.css +0 -82
  269. data/examples/al-admin/public/stylesheets/spinelz/sortableTable.css +0 -51
  270. data/examples/al-admin/public/stylesheets/spinelz/switcher.css +0 -23
  271. data/examples/al-admin/public/stylesheets/spinelz/tabBox.css +0 -94
  272. data/examples/al-admin/public/stylesheets/spinelz/timepicker.css +0 -508
  273. data/examples/al-admin/public/stylesheets/spinelz/toolbar.css +0 -82
  274. data/examples/al-admin/public/stylesheets/spinelz/treeview.css +0 -121
  275. data/examples/al-admin/public/stylesheets/spinelz/window.css +0 -140
  276. data/examples/al-admin/public/stylesheets/structure.css +0 -81
  277. data/examples/al-admin/public/stylesheets/syntaxes.css +0 -1
  278. data/examples/al-admin/public/stylesheets/users.css +0 -13
  279. data/examples/al-admin/public/stylesheets/welcome.css +0 -0
  280. data/examples/al-admin/script/about +0 -3
  281. data/examples/al-admin/script/console +0 -3
  282. data/examples/al-admin/script/dbconsole +0 -3
  283. data/examples/al-admin/script/destroy +0 -3
  284. data/examples/al-admin/script/generate +0 -3
  285. data/examples/al-admin/script/performance/benchmarker +0 -3
  286. data/examples/al-admin/script/performance/profiler +0 -3
  287. data/examples/al-admin/script/performance/request +0 -3
  288. data/examples/al-admin/script/plugin +0 -3
  289. data/examples/al-admin/script/process/inspector +0 -3
  290. data/examples/al-admin/script/process/reaper +0 -3
  291. data/examples/al-admin/script/process/spawner +0 -3
  292. data/examples/al-admin/script/runner +0 -3
  293. data/examples/al-admin/script/server +0 -3
  294. data/examples/al-admin/test/fixtures/users.yml +0 -9
  295. data/examples/al-admin/test/functional/account_controller_test.rb +0 -12
  296. data/examples/al-admin/test/functional/attributes_controller_test.rb +0 -8
  297. data/examples/al-admin/test/functional/directory_controller_test.rb +0 -8
  298. data/examples/al-admin/test/functional/object_classes_controller_test.rb +0 -8
  299. data/examples/al-admin/test/functional/syntaxes_controller_test.rb +0 -8
  300. data/examples/al-admin/test/functional/users_controller_test.rb +0 -8
  301. data/examples/al-admin/test/functional/welcome_controller_test.rb +0 -8
  302. data/examples/al-admin/test/integration/sign_up_test.rb +0 -44
  303. data/examples/al-admin/test/run-test.sh +0 -3
  304. data/examples/al-admin/test/test_helper.rb +0 -52
  305. data/examples/al-admin/test/unit/user_test.rb +0 -12
  306. data/examples/al-admin/vendor/plugins/exception_notification/README +0 -111
  307. data/examples/al-admin/vendor/plugins/exception_notification/init.rb +0 -1
  308. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifiable.rb +0 -99
  309. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier.rb +0 -66
  310. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier_helper.rb +0 -78
  311. data/examples/al-admin/vendor/plugins/exception_notification/test/exception_notifier_helper_test.rb +0 -61
  312. data/examples/al-admin/vendor/plugins/exception_notification/test/test_helper.rb +0 -7
  313. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml +0 -1
  314. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml +0 -7
  315. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml +0 -16
  316. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml +0 -4
  317. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml +0 -2
  318. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml +0 -3
  319. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml +0 -6
@@ -1,111 +0,0 @@
1
- = Exception Notifier Plugin for Rails
2
-
3
- The Exception Notifier plugin provides a mailer object and a default set of
4
- templates for sending email notifications when errors occur in a Rails
5
- application. The plugin is configurable, allowing programmers to specify:
6
-
7
- * the sender address of the email
8
- * the recipient addresses
9
- * the text used to prefix the subject line
10
-
11
- The email includes information about the current request, session, and
12
- environment, and also gives a backtrace of the exception.
13
-
14
- == Usage
15
-
16
- First, include the ExceptionNotifiable mixin in whichever controller you want
17
- to generate error emails (typically ApplicationController):
18
-
19
- class ApplicationController < ActionController::Base
20
- include ExceptionNotifiable
21
- ...
22
- end
23
-
24
- Then, specify the email recipients in your environment:
25
-
26
- ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com)
27
-
28
- And that's it! The defaults take care of the rest.
29
-
30
- == Configuration
31
-
32
- You can tweak other values to your liking, as well. In your environment file,
33
- just set any or all of the following values:
34
-
35
- # defaults to exception.notifier@default.com
36
- ExceptionNotifier.sender_address =
37
- %("Application Error" <app.error@myapp.com>)
38
-
39
- # defaults to "[ERROR] "
40
- ExceptionNotifier.email_prefix = "[APP] "
41
-
42
- Email notifications will only occur when the IP address is determined not to
43
- be local. You can specify certain addresses to always be local so that you'll
44
- get a detailed error instead of the generic error page. You do this in your
45
- controller (or even per-controller):
46
-
47
- consider_local "64.72.18.143", "14.17.21.25"
48
-
49
- You can specify subnet masks as well, so that all matching addresses are
50
- considered local:
51
-
52
- consider_local "64.72.18.143/24"
53
-
54
- The address "127.0.0.1" is always considered local. If you want to completely
55
- reset the list of all addresses (for instance, if you wanted "127.0.0.1" to
56
- NOT be considered local), you can simply do, somewhere in your controller:
57
-
58
- local_addresses.clear
59
-
60
- == Customization
61
-
62
- By default, the notification email includes four parts: request, session,
63
- environment, and backtrace (in that order). You can customize how each of those
64
- sections are rendered by placing a partial named for that part in your
65
- app/views/exception_notifier directory (e.g., _session.rhtml). Each partial has
66
- access to the following variables:
67
-
68
- * @controller: the controller that caused the error
69
- * @request: the current request object
70
- * @exception: the exception that was raised
71
- * @host: the name of the host that made the request
72
- * @backtrace: a sanitized version of the exception's backtrace
73
- * @rails_root: a sanitized version of RAILS_ROOT
74
- * @data: a hash of optional data values that were passed to the notifier
75
- * @sections: the array of sections to include in the email
76
-
77
- You can reorder the sections, or exclude sections completely, by altering the
78
- ExceptionNotifier.sections variable. You can even add new sections that
79
- describe application-specific data--just add the section's name to the list
80
- (whereever you'd like), and define the corresponding partial. Then, if your
81
- new section requires information that isn't available by default, make sure
82
- it is made available to the email using the exception_data macro:
83
-
84
- class ApplicationController < ActionController::Base
85
- ...
86
- protected
87
- exception_data :additional_data
88
-
89
- def additional_data
90
- { :document => @document,
91
- :person => @person }
92
- end
93
- ...
94
- end
95
-
96
- In the above case, @document and @person would be made available to the email
97
- renderer, allowing your new section(s) to access and display them. See the
98
- existing sections defined by the plugin for examples of how to write your own.
99
-
100
- == Advanced Customization
101
-
102
- By default, the email notifier will only notify on critical errors. For
103
- ActiveRecord::RecordNotFound and ActionController::UnknownAction, it will
104
- simply render the contents of your public/404.html file. Other exceptions
105
- will render public/500.html and will send the email notification. If you want
106
- to use different rules for the notification, you will need to implement your
107
- own rescue_action_in_public method. You can look at the default implementation
108
- in ExceptionNotifiable for an example of how to go about that.
109
-
110
-
111
- Copyright (c) 2005 Jamis Buck, released under the MIT license
@@ -1 +0,0 @@
1
- require "action_mailer"
@@ -1,99 +0,0 @@
1
- require 'ipaddr'
2
-
3
- # Copyright (c) 2005 Jamis Buck
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
- module ExceptionNotifiable
24
- def self.included(target)
25
- target.extend(ClassMethods)
26
- end
27
-
28
- module ClassMethods
29
- def consider_local(*args)
30
- local_addresses.concat(args.flatten.map { |a| IPAddr.new(a) })
31
- end
32
-
33
- def local_addresses
34
- addresses = read_inheritable_attribute(:local_addresses)
35
- unless addresses
36
- addresses = [IPAddr.new("127.0.0.1")]
37
- write_inheritable_attribute(:local_addresses, addresses)
38
- end
39
- addresses
40
- end
41
-
42
- def exception_data(deliverer=self)
43
- if deliverer == self
44
- read_inheritable_attribute(:exception_data)
45
- else
46
- write_inheritable_attribute(:exception_data, deliverer)
47
- end
48
- end
49
-
50
- def exceptions_to_treat_as_404
51
- exceptions = [ActiveRecord::RecordNotFound,
52
- ActionController::UnknownController,
53
- ActionController::UnknownAction]
54
- exceptions << ActionController::RoutingError if ActionController.const_defined?(:RoutingError)
55
- exceptions
56
- end
57
- end
58
-
59
- private
60
-
61
- def local_request?
62
- remote = IPAddr.new(request.remote_ip)
63
- !self.class.local_addresses.detect { |addr| addr.include?(remote) }.nil?
64
- end
65
-
66
- def render_404
67
- respond_to do |type|
68
- type.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" }
69
- type.all { render :nothing => true, :status => "404 Not Found" }
70
- end
71
- end
72
-
73
- def render_500
74
- respond_to do |type|
75
- type.html { render :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error" }
76
- type.all { render :nothing => true, :status => "500 Error" }
77
- end
78
- end
79
-
80
- def rescue_action_in_public(exception)
81
- case exception
82
- when *self.class.exceptions_to_treat_as_404
83
- render_404
84
-
85
- else
86
- render_500
87
-
88
- deliverer = self.class.exception_data
89
- data = case deliverer
90
- when nil then {}
91
- when Symbol then send(deliverer)
92
- when Proc then deliverer.call(self)
93
- end
94
-
95
- ExceptionNotifier.deliver_exception_notification(exception, self,
96
- request, data)
97
- end
98
- end
99
- end
@@ -1,66 +0,0 @@
1
- require 'pathname'
2
-
3
- # Copyright (c) 2005 Jamis Buck
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
- class ExceptionNotifier < ActionMailer::Base
24
- @@sender_address = %("Exception Notifier" <exception.notifier@default.com>)
25
- cattr_accessor :sender_address
26
-
27
- @@exception_recipients = []
28
- cattr_accessor :exception_recipients
29
-
30
- @@email_prefix = "[ERROR] "
31
- cattr_accessor :email_prefix
32
-
33
- @@sections = %w(request session environment backtrace)
34
- cattr_accessor :sections
35
-
36
- self.template_root = "#{File.dirname(__FILE__)}/../views"
37
-
38
- def self.reloadable?() false end
39
-
40
- def exception_notification(exception, controller, request, data={})
41
- content_type "text/plain"
42
-
43
- subject "#{email_prefix}#{controller.controller_name}##{controller.action_name} (#{exception.class}) #{exception.message.inspect}"
44
-
45
- recipients exception_recipients
46
- from sender_address
47
-
48
- body data.merge({ :controller => controller, :request => request,
49
- :exception => exception, :host => (request.env["HTTP_X_FORWARDED_HOST"] || request.env["HTTP_HOST"]),
50
- :backtrace => sanitize_backtrace(exception.backtrace),
51
- :rails_root => rails_root, :data => data,
52
- :sections => sections })
53
- end
54
-
55
- private
56
-
57
- def sanitize_backtrace(trace)
58
- re = Regexp.new(/^#{Regexp.escape(rails_root)}/)
59
- trace.map { |line| Pathname.new(line.gsub(re, "[RAILS_ROOT]")).cleanpath.to_s }
60
- end
61
-
62
- def rails_root
63
- @rails_root ||= Pathname.new(RAILS_ROOT).cleanpath.to_s
64
- end
65
-
66
- end
@@ -1,78 +0,0 @@
1
- require 'pp'
2
-
3
- # Copyright (c) 2005 Jamis Buck
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
- module ExceptionNotifierHelper
24
- VIEW_PATH = "views/exception_notifier"
25
- APP_PATH = "#{RAILS_ROOT}/app/#{VIEW_PATH}"
26
- PARAM_FILTER_REPLACEMENT = "[FILTERED]"
27
-
28
- def render_section(section)
29
- RAILS_DEFAULT_LOGGER.info("rendering section #{section.inspect}")
30
- summary = render_overridable(section).strip
31
- unless summary.blank?
32
- title = render_overridable(:title, :locals => { :title => section }).strip
33
- "#{title}\n\n#{summary.gsub(/^/, " ")}\n\n"
34
- end
35
- end
36
-
37
- def render_overridable(partial, options={})
38
- if File.exist?(path = "#{APP_PATH}/_#{partial}.rhtml")
39
- render(options.merge(:file => path, :use_full_path => false))
40
- elsif File.exist?(path = "#{File.dirname(__FILE__)}/../#{VIEW_PATH}/_#{partial}.rhtml")
41
- render(options.merge(:file => path, :use_full_path => false))
42
- else
43
- ""
44
- end
45
- end
46
-
47
- def inspect_model_object(model, locals={})
48
- render_overridable(:inspect_model,
49
- :locals => { :inspect_model => model,
50
- :show_instance_variables => true,
51
- :show_attributes => true }.merge(locals))
52
- end
53
-
54
- def inspect_value(value)
55
- len = 512
56
- result = object_to_yaml(value).gsub(/\n/, "\n ").strip
57
- result = result[0,len] + "... (#{result.length-len} bytes more)" if result.length > len+20
58
- result
59
- end
60
-
61
- def object_to_yaml(object)
62
- object.to_yaml.sub(/^---\s*/m, "")
63
- end
64
-
65
- def exclude_raw_post_parameters?
66
- @controller && @controller.respond_to?(:filter_parameters)
67
- end
68
-
69
- def filter_sensitive_post_data_parameters(parameters)
70
- exclude_raw_post_parameters? ? @controller.filter_parameters(parameters) : parameters
71
- end
72
-
73
- def filter_sensitive_post_data_from_env(env_key, env_value)
74
- return env_value unless exclude_raw_post_parameters?
75
- return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
76
- return @controller.filter_parameters({env_key => env_value}).values[0]
77
- end
78
- end
@@ -1,61 +0,0 @@
1
- require 'test_helper'
2
- require 'exception_notifier_helper'
3
-
4
- class ExceptionNotifierHelperTest < Test::Unit::TestCase
5
-
6
- class ExceptionNotifierHelperIncludeTarget
7
- include ExceptionNotifierHelper
8
- end
9
-
10
- def setup
11
- @helper = ExceptionNotifierHelperIncludeTarget.new
12
- end
13
-
14
- # No controller
15
-
16
- def test_should_not_exclude_raw_post_parameters_if_no_controller
17
- assert !@helper.exclude_raw_post_parameters?
18
- end
19
-
20
- # Controller, no filtering
21
-
22
- class ControllerWithoutFilterParameters; end
23
-
24
- def test_should_not_filter_env_values_for_raw_post_data_keys_if_controller_can_not_filter_parameters
25
- stub_controller(ControllerWithoutFilterParameters.new)
26
- assert @helper.filter_sensitive_post_data_from_env("RAW_POST_DATA", "secret").include?("secret")
27
- end
28
- def test_should_not_exclude_raw_post_parameters_if_controller_can_not_filter_parameters
29
- stub_controller(ControllerWithoutFilterParameters.new)
30
- assert !@helper.exclude_raw_post_parameters?
31
- end
32
- def test_should_return_params_if_controller_can_not_filter_parameters
33
- stub_controller(ControllerWithoutFilterParameters.new)
34
- assert_equal :params, @helper.filter_sensitive_post_data_parameters(:params)
35
- end
36
-
37
- # Controller with filtering
38
-
39
- class ControllerWithFilterParameters
40
- def filter_parameters(params); :filtered end
41
- end
42
-
43
- def test_should_filter_env_values_for_raw_post_data_keys_if_controller_can_filter_parameters
44
- stub_controller(ControllerWithFilterParameters.new)
45
- assert !@helper.filter_sensitive_post_data_from_env("RAW_POST_DATA", "secret").include?("secret")
46
- assert @helper.filter_sensitive_post_data_from_env("SOME_OTHER_KEY", "secret").include?("secret")
47
- end
48
- def test_should_exclude_raw_post_parameters_if_controller_can_filter_parameters
49
- stub_controller(ControllerWithFilterParameters.new)
50
- assert @helper.exclude_raw_post_parameters?
51
- end
52
- def test_should_delegate_param_filtering_to_controller_if_controller_can_filter_parameters
53
- stub_controller(ControllerWithFilterParameters.new)
54
- assert_equal :filtered, @helper.filter_sensitive_post_data_parameters(:params)
55
- end
56
-
57
- private
58
- def stub_controller(controller)
59
- @helper.instance_variable_set(:@controller, controller)
60
- end
61
- end
@@ -1,7 +0,0 @@
1
- require 'test/unit'
2
- require 'rubygems'
3
- require 'active_support'
4
-
5
- $:.unshift File.join(File.dirname(__FILE__), '../lib')
6
-
7
- RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
@@ -1,7 +0,0 @@
1
- <% max = @request.env.keys.max { |a,b| a.length <=> b.length } -%>
2
- <% @request.env.keys.sort.each do |key| -%>
3
- * <%= "%-*s: %s" % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %>
4
- <% end -%>
5
-
6
- * Process: <%= $$ %>
7
- * Server : <%= `hostname -s`.chomp %>
@@ -1,16 +0,0 @@
1
- <% if show_attributes -%>
2
- [attributes]
3
- <% attrs = inspect_model.attributes -%>
4
- <% max = attrs.keys.max { |a,b| a.length <=> b.length } -%>
5
- <% attrs.keys.sort.each do |attr| -%>
6
- * <%= "%*-s: %s" % [max.length, attr, object_to_yaml(attrs[attr]).gsub(/\n/, "\n ").strip] %>
7
- <% end -%>
8
- <% end -%>
9
-
10
- <% if show_instance_variables -%>
11
- [instance variables]
12
- <% inspect_model.instance_variables.sort.each do |variable| -%>
13
- <%- next if variable == "@attributes" -%>
14
- * <%= variable %>: <%= inspect_value(inspect_model.instance_variable_get(variable)) %>
15
- <% end -%>
16
- <% end -%>
@@ -1,4 +0,0 @@
1
- * URL : <%= @request.protocol %><%= @host %><%= @request.request_uri %>
2
- * IP address: <%= @request.env["HTTP_X_FORWARDED_FOR"] || @request.env["REMOTE_ADDR"] %>
3
- * Parameters: <%= filter_sensitive_post_data_parameters(@request.parameters).inspect %>
4
- * Rails root: <%= @rails_root %>
@@ -1,2 +0,0 @@
1
- * session id: <%= @request.session.instance_variable_get(:@session_id).inspect %>
2
- * data: <%= PP.pp(@request.session.instance_variable_get(:@data),"").gsub(/\n/, "\n ").strip %>
@@ -1,3 +0,0 @@
1
- -------------------------------
2
- <%= title.to_s.humanize %>:
3
- -------------------------------
@@ -1,6 +0,0 @@
1
- A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>:
2
-
3
- <%= @exception.message %>
4
- <%= @backtrace.first %>
5
-
6
- <%= @sections.map { |section| render_section(section) }.join %>