nsm-activeadmin 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (321) hide show
  1. data/.document +5 -0
  2. data/.gitignore +34 -0
  3. data/.travis.yml +4 -0
  4. data/.yardopts +8 -0
  5. data/CHANGELOG.rdoc +76 -0
  6. data/Gemfile +39 -0
  7. data/LICENSE +25 -0
  8. data/README.rdoc +487 -0
  9. data/Rakefile +27 -0
  10. data/activeadmin.gemspec +28 -0
  11. data/app/assets/images/active_admin/admin_notes_icon.png +0 -0
  12. data/app/assets/images/active_admin/datepicker/datepicker-header-bg.png +0 -0
  13. data/app/assets/images/active_admin/datepicker/datepicker-input-icon.png +0 -0
  14. data/app/assets/images/active_admin/datepicker/datepicker-next-link-icon.png +0 -0
  15. data/app/assets/images/active_admin/datepicker/datepicker-nipple.png +0 -0
  16. data/app/assets/images/active_admin/datepicker/datepicker-prev-link-icon.png +0 -0
  17. data/app/assets/images/active_admin/loading.gif +0 -0
  18. data/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
  19. data/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
  20. data/app/assets/images/active_admin/orderable.png +0 -0
  21. data/app/assets/javascripts/active_admin/base.js +12 -0
  22. data/app/assets/javascripts/active_admin/vendor.js +382 -0
  23. data/app/assets/stylesheets/active_admin/_base.css.scss +400 -0
  24. data/app/assets/stylesheets/active_admin/_forms.css.scss +256 -0
  25. data/app/assets/stylesheets/active_admin/_header.css.scss +110 -0
  26. data/app/assets/stylesheets/active_admin/_mixins.css.scss +1 -0
  27. data/app/assets/stylesheets/active_admin/_typography.css.scss +100 -0
  28. data/app/assets/stylesheets/active_admin/components/_comments.css.scss +40 -0
  29. data/app/assets/stylesheets/active_admin/components/_date_picker.css.scss +123 -0
  30. data/app/assets/stylesheets/active_admin/components/_flash_messages.css.scss +38 -0
  31. data/app/assets/stylesheets/active_admin/mixins/_all.css.scss +8 -0
  32. data/app/assets/stylesheets/active_admin/mixins/_buttons.css.scss +27 -0
  33. data/app/assets/stylesheets/active_admin/mixins/_gradients.css.scss +29 -0
  34. data/app/assets/stylesheets/active_admin/mixins/_icons.css.scss +20 -0
  35. data/app/assets/stylesheets/active_admin/mixins/_reset.css.scss +165 -0
  36. data/app/assets/stylesheets/active_admin/mixins/_rounded.css.scss +43 -0
  37. data/app/assets/stylesheets/active_admin/mixins/_sections.css.scss +34 -0
  38. data/app/assets/stylesheets/active_admin/mixins/_shadows.css.scss +21 -0
  39. data/app/assets/stylesheets/active_admin/mixins/_variables.css.scss +21 -0
  40. data/app/views/active_admin/dashboard/index.html.arb +1 -0
  41. data/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +8 -0
  42. data/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +7 -0
  43. data/app/views/active_admin/devise/passwords/edit.html.erb +16 -0
  44. data/app/views/active_admin/devise/passwords/new.html.erb +14 -0
  45. data/app/views/active_admin/devise/sessions/new.html.erb +18 -0
  46. data/app/views/active_admin/devise/shared/_links.erb +20 -0
  47. data/app/views/active_admin/devise/unlocks/new.html.erb +12 -0
  48. data/app/views/active_admin/resource/edit.html.arb +1 -0
  49. data/app/views/active_admin/resource/index.csv.erb +20 -0
  50. data/app/views/active_admin/resource/index.html.arb +1 -0
  51. data/app/views/active_admin/resource/new.html.arb +1 -0
  52. data/app/views/active_admin/resource/show.html.arb +1 -0
  53. data/app/views/layouts/active_admin.html.arb +1 -0
  54. data/app/views/layouts/active_admin_logged_out.html.erb +35 -0
  55. data/cucumber.yml +2 -0
  56. data/docs/1-general-configuration.md +52 -0
  57. data/docs/2-resource-customization.md +35 -0
  58. data/docs/3-index-pages.md +55 -0
  59. data/docs/3-index-pages/index-as-block.md +16 -0
  60. data/docs/3-index-pages/index-as-blog.md +61 -0
  61. data/docs/3-index-pages/index-as-grid.md +21 -0
  62. data/docs/3-index-pages/index-as-table.md +74 -0
  63. data/docs/4-csv-format.md +14 -0
  64. data/docs/5-forms.md +39 -0
  65. data/docs/6-show-screens.md +22 -0
  66. data/docs/7-sidebars.md +35 -0
  67. data/docs/8-custom-actions.md +123 -0
  68. data/features/comments/commenting.feature +112 -0
  69. data/features/comments/viewing_index.feature +19 -0
  70. data/features/dashboard.feature +26 -0
  71. data/features/edit_page.feature +106 -0
  72. data/features/first_boot.feature +16 -0
  73. data/features/global_navigation.feature +30 -0
  74. data/features/index/format_as_csv.feature +46 -0
  75. data/features/index/formats.feature +12 -0
  76. data/features/index/index_as_block.feature +15 -0
  77. data/features/index/index_as_blog.feature +50 -0
  78. data/features/index/index_as_grid.feature +45 -0
  79. data/features/index/index_as_table.feature +81 -0
  80. data/features/index/index_blank_slate.feature +55 -0
  81. data/features/index/index_scopes.feature +52 -0
  82. data/features/index/pagination.feature +17 -0
  83. data/features/menu.feature +26 -0
  84. data/features/new_page.feature +75 -0
  85. data/features/registering_assets.feature +35 -0
  86. data/features/registering_resources.feature +33 -0
  87. data/features/show/default_content.feature +43 -0
  88. data/features/show/page_title.feature +33 -0
  89. data/features/sidebar_sections.feature +127 -0
  90. data/features/specifying_actions.feature +87 -0
  91. data/features/step_definitions/action_item_steps.rb +7 -0
  92. data/features/step_definitions/additional_web_steps.rb +77 -0
  93. data/features/step_definitions/asset_steps.rb +7 -0
  94. data/features/step_definitions/attribute_steps.rb +13 -0
  95. data/features/step_definitions/comment_steps.rb +8 -0
  96. data/features/step_definitions/configuration_steps.rb +31 -0
  97. data/features/step_definitions/dashboard_steps.rb +11 -0
  98. data/features/step_definitions/factory_steps.rb +29 -0
  99. data/features/step_definitions/flash_steps.rb +3 -0
  100. data/features/step_definitions/format_steps.rb +35 -0
  101. data/features/step_definitions/index_scope_steps.rb +20 -0
  102. data/features/step_definitions/layout_steps.rb +3 -0
  103. data/features/step_definitions/menu_steps.rb +7 -0
  104. data/features/step_definitions/pagination_steps.rb +8 -0
  105. data/features/step_definitions/sidebar_steps.rb +7 -0
  106. data/features/step_definitions/tab_steps.rb +3 -0
  107. data/features/step_definitions/user_steps.rb +26 -0
  108. data/features/step_definitions/web_steps.rb +211 -0
  109. data/features/sti_resource.feature +61 -0
  110. data/features/support/env.rb +90 -0
  111. data/features/support/paths.rb +50 -0
  112. data/features/support/selectors.rb +45 -0
  113. data/features/users/logging_in.feature +34 -0
  114. data/features/users/logging_out.feature +13 -0
  115. data/lib/active_admin.rb +74 -0
  116. data/lib/active_admin/abstract_view_factory.rb +95 -0
  117. data/lib/active_admin/application.rb +228 -0
  118. data/lib/active_admin/arbre.rb +23 -0
  119. data/lib/active_admin/arbre/attributes.rb +20 -0
  120. data/lib/active_admin/arbre/class_list.rb +28 -0
  121. data/lib/active_admin/arbre/collection.rb +27 -0
  122. data/lib/active_admin/arbre/context.rb +14 -0
  123. data/lib/active_admin/arbre/core_extensions.rb +5 -0
  124. data/lib/active_admin/arbre/document.rb +42 -0
  125. data/lib/active_admin/arbre/element.rb +151 -0
  126. data/lib/active_admin/arbre/html.rb +84 -0
  127. data/lib/active_admin/arbre/html5_elements.rb +47 -0
  128. data/lib/active_admin/arbre/tag.rb +137 -0
  129. data/lib/active_admin/arbre/text_node.rb +35 -0
  130. data/lib/active_admin/asset_registration.rb +34 -0
  131. data/lib/active_admin/callbacks.rb +89 -0
  132. data/lib/active_admin/comments.rb +88 -0
  133. data/lib/active_admin/comments/comment.rb +21 -0
  134. data/lib/active_admin/comments/configuration.rb +18 -0
  135. data/lib/active_admin/comments/namespace_helper.rb +14 -0
  136. data/lib/active_admin/comments/resource_helper.rb +17 -0
  137. data/lib/active_admin/comments/show_page_helper.rb +23 -0
  138. data/lib/active_admin/comments/views.rb +3 -0
  139. data/lib/active_admin/comments/views/active_admin_comment.rb +0 -0
  140. data/lib/active_admin/comments/views/active_admin_comments.rb +82 -0
  141. data/lib/active_admin/component.rb +22 -0
  142. data/lib/active_admin/controller_action.rb +12 -0
  143. data/lib/active_admin/csv_builder.rb +45 -0
  144. data/lib/active_admin/dashboards.rb +48 -0
  145. data/lib/active_admin/dashboards/dashboard_controller.rb +38 -0
  146. data/lib/active_admin/dashboards/section.rb +34 -0
  147. data/lib/active_admin/deprecation.rb +36 -0
  148. data/lib/active_admin/devise.rb +43 -0
  149. data/lib/active_admin/dsl.rb +224 -0
  150. data/lib/active_admin/engine.rb +4 -0
  151. data/lib/active_admin/event.rb +31 -0
  152. data/lib/active_admin/form_builder.rb +109 -0
  153. data/lib/active_admin/helpers/optional_display.rb +34 -0
  154. data/lib/active_admin/helpers/settings.rb +63 -0
  155. data/lib/active_admin/iconic.rb +51 -0
  156. data/lib/active_admin/iconic/icons.rb +142 -0
  157. data/lib/active_admin/locales/da.yml +28 -0
  158. data/lib/active_admin/locales/en.yml +40 -0
  159. data/lib/active_admin/locales/es.yml +39 -0
  160. data/lib/active_admin/locales/it.yml +39 -0
  161. data/lib/active_admin/locales/pt-BR.yml +36 -0
  162. data/lib/active_admin/locales/ru.yml +40 -0
  163. data/lib/active_admin/locales/zh_cn.yml +40 -0
  164. data/lib/active_admin/menu.rb +42 -0
  165. data/lib/active_admin/menu_item.rb +73 -0
  166. data/lib/active_admin/namespace.rb +206 -0
  167. data/lib/active_admin/page_config.rb +15 -0
  168. data/lib/active_admin/reloader.rb +30 -0
  169. data/lib/active_admin/renderer.rb +87 -0
  170. data/lib/active_admin/resource.rb +151 -0
  171. data/lib/active_admin/resource/action_items.rb +88 -0
  172. data/lib/active_admin/resource/belongs_to.rb +31 -0
  173. data/lib/active_admin/resource/menu.rb +45 -0
  174. data/lib/active_admin/resource/naming.rb +36 -0
  175. data/lib/active_admin/resource/scopes.rb +33 -0
  176. data/lib/active_admin/resource/sidebars.rb +36 -0
  177. data/lib/active_admin/resource_controller.rb +103 -0
  178. data/lib/active_admin/resource_controller/action_builder.rb +21 -0
  179. data/lib/active_admin/resource_controller/actions.rb +79 -0
  180. data/lib/active_admin/resource_controller/callbacks.rb +47 -0
  181. data/lib/active_admin/resource_controller/collection.rb +144 -0
  182. data/lib/active_admin/resource_controller/filters.rb +58 -0
  183. data/lib/active_admin/resource_controller/form.rb +42 -0
  184. data/lib/active_admin/resource_controller/menu.rb +29 -0
  185. data/lib/active_admin/resource_controller/page_configurations.rb +53 -0
  186. data/lib/active_admin/resource_controller/scoping.rb +36 -0
  187. data/lib/active_admin/resource_controller/sidebars.rb +18 -0
  188. data/lib/active_admin/router.rb +85 -0
  189. data/lib/active_admin/sass/active_admin.scss +3 -0
  190. data/lib/active_admin/sass/css_loader.rb +16 -0
  191. data/lib/active_admin/sass/helpers.rb +40 -0
  192. data/lib/active_admin/scope.rb +17 -0
  193. data/lib/active_admin/sidebar_section.rb +41 -0
  194. data/lib/active_admin/stylesheets/active_admin/mixins/_utilities.scss +0 -0
  195. data/lib/active_admin/version.rb +3 -0
  196. data/lib/active_admin/view_factory.rb +23 -0
  197. data/lib/active_admin/view_helpers.rb +22 -0
  198. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +12 -0
  199. data/lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb +7 -0
  200. data/lib/active_admin/view_helpers/auto_link_helper.rb +42 -0
  201. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +29 -0
  202. data/lib/active_admin/view_helpers/display_helper.rb +38 -0
  203. data/lib/active_admin/view_helpers/filter_form_helper.rb +186 -0
  204. data/lib/active_admin/view_helpers/form_helper.rb +13 -0
  205. data/lib/active_admin/view_helpers/icon_helper.rb +12 -0
  206. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +26 -0
  207. data/lib/active_admin/view_helpers/renderer_helper.rb +29 -0
  208. data/lib/active_admin/view_helpers/sidebar_helper.rb +15 -0
  209. data/lib/active_admin/view_helpers/title_helper.rb +11 -0
  210. data/lib/active_admin/view_helpers/view_factory_helper.rb +11 -0
  211. data/lib/active_admin/views.rb +8 -0
  212. data/lib/active_admin/views/action_items.rb +17 -0
  213. data/lib/active_admin/views/components/attributes_table.rb +66 -0
  214. data/lib/active_admin/views/components/blank_slate.rb +33 -0
  215. data/lib/active_admin/views/components/columns.rb +47 -0
  216. data/lib/active_admin/views/components/paginated_collection.rb +92 -0
  217. data/lib/active_admin/views/components/panel.rb +26 -0
  218. data/lib/active_admin/views/components/scopes.rb +70 -0
  219. data/lib/active_admin/views/components/sidebar_section.rb +28 -0
  220. data/lib/active_admin/views/components/status_tag.rb +55 -0
  221. data/lib/active_admin/views/components/table_for.rb +193 -0
  222. data/lib/active_admin/views/dashboard_section_renderer.rb +19 -0
  223. data/lib/active_admin/views/header_renderer.rb +53 -0
  224. data/lib/active_admin/views/index_as_block.rb +29 -0
  225. data/lib/active_admin/views/index_as_blog.rb +129 -0
  226. data/lib/active_admin/views/index_as_grid.rb +70 -0
  227. data/lib/active_admin/views/index_as_table.rb +148 -0
  228. data/lib/active_admin/views/pages/base.rb +155 -0
  229. data/lib/active_admin/views/pages/dashboard.rb +62 -0
  230. data/lib/active_admin/views/pages/edit.rb +28 -0
  231. data/lib/active_admin/views/pages/index.rb +74 -0
  232. data/lib/active_admin/views/pages/layout.rb +26 -0
  233. data/lib/active_admin/views/pages/new.rb +28 -0
  234. data/lib/active_admin/views/pages/show.rb +56 -0
  235. data/lib/active_admin/views/tabs_renderer.rb +58 -0
  236. data/lib/activeadmin.rb +1 -0
  237. data/lib/generators/active_admin/assets/assets_generator.rb +21 -0
  238. data/lib/generators/active_admin/assets/templates/3.0/active_admin.js +427 -0
  239. data/lib/generators/active_admin/assets/templates/3.1/active_admin.css.scss +6 -0
  240. data/lib/generators/active_admin/assets/templates/3.1/active_admin.js +1 -0
  241. data/lib/generators/active_admin/assets/templates/dashboards.rb +36 -0
  242. data/lib/generators/active_admin/devise/devise_generator.rb +49 -0
  243. data/lib/generators/active_admin/install/install_generator.rb +44 -0
  244. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +93 -0
  245. data/lib/generators/active_admin/install/templates/dashboards.rb +38 -0
  246. data/lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb +16 -0
  247. data/lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb +25 -0
  248. data/lib/generators/active_admin/resource/resource_generator.rb +16 -0
  249. data/lib/generators/active_admin/resource/templates/admin.rb +3 -0
  250. data/script/local +44 -0
  251. data/script/use_rails +45 -0
  252. data/spec/integration/belongs_to_spec.rb +42 -0
  253. data/spec/integration/default_namespace.rb +77 -0
  254. data/spec/integration/javascript_spec.rb +20 -0
  255. data/spec/integration/stylesheets_spec.rb +41 -0
  256. data/spec/spec_helper.rb +157 -0
  257. data/spec/support/detect_rails_version.rb +11 -0
  258. data/spec/support/integration_example_group.rb +33 -0
  259. data/spec/support/jslint.yml +80 -0
  260. data/spec/support/rails_template.rb +32 -0
  261. data/spec/support/rails_template_with_data.rb +33 -0
  262. data/spec/support/templates/cucumber.rb +24 -0
  263. data/spec/unit/abstract_view_factory_spec.rb +79 -0
  264. data/spec/unit/action_builder_spec.rb +88 -0
  265. data/spec/unit/application_spec.rb +78 -0
  266. data/spec/unit/arbre/html/context_spec.rb +22 -0
  267. data/spec/unit/arbre/html/element_finder_methods_spec.rb +54 -0
  268. data/spec/unit/arbre/html/element_spec.rb +224 -0
  269. data/spec/unit/arbre/html/tag_attributes_spec.rb +61 -0
  270. data/spec/unit/arbre/html/tag_spec.rb +63 -0
  271. data/spec/unit/arbre/html_spec.rb +210 -0
  272. data/spec/unit/asset_registration_spec.rb +37 -0
  273. data/spec/unit/auto_link_spec.rb +39 -0
  274. data/spec/unit/belongs_to_spec.rb +45 -0
  275. data/spec/unit/breadcrumbs_spec.rb +110 -0
  276. data/spec/unit/comments_spec.rb +57 -0
  277. data/spec/unit/component_spec.rb +18 -0
  278. data/spec/unit/controller_filters_spec.rb +34 -0
  279. data/spec/unit/csv_builder_spec.rb +83 -0
  280. data/spec/unit/dashboard_controller_spec.rb +26 -0
  281. data/spec/unit/dashboard_section_spec.rb +56 -0
  282. data/spec/unit/dashboards_spec.rb +59 -0
  283. data/spec/unit/display_name_spec.rb +29 -0
  284. data/spec/unit/event_spec.rb +41 -0
  285. data/spec/unit/filter_form_builder_spec.rb +182 -0
  286. data/spec/unit/form_builder_spec.rb +239 -0
  287. data/spec/unit/generators/install_rails_3_1_spec.rb +16 -0
  288. data/spec/unit/helpers/settings_spec.rb +30 -0
  289. data/spec/unit/menu_item_spec.rb +143 -0
  290. data/spec/unit/menu_spec.rb +53 -0
  291. data/spec/unit/namespace_spec.rb +214 -0
  292. data/spec/unit/pretty_format_spec.rb +35 -0
  293. data/spec/unit/rails_spec.rb +43 -0
  294. data/spec/unit/registration_spec.rb +76 -0
  295. data/spec/unit/reloader_spec.rb +28 -0
  296. data/spec/unit/renderer_spec.rb +108 -0
  297. data/spec/unit/resource/action_items_spec.rb +62 -0
  298. data/spec/unit/resource/menu_spec.rb +80 -0
  299. data/spec/unit/resource/naming_spec.rb +56 -0
  300. data/spec/unit/resource/scopes_spec.rb +30 -0
  301. data/spec/unit/resource/sidebars_spec.rb +50 -0
  302. data/spec/unit/resource_controller/collection_spec.rb +34 -0
  303. data/spec/unit/resource_controller_spec.rb +152 -0
  304. data/spec/unit/resource_spec.rb +260 -0
  305. data/spec/unit/routing_spec.rb +88 -0
  306. data/spec/unit/sass/helpers_spec.rb +47 -0
  307. data/spec/unit/scope_spec.rb +31 -0
  308. data/spec/unit/tabs_renderer_spec.rb +85 -0
  309. data/spec/unit/view_factory_spec.rb +19 -0
  310. data/spec/unit/views/components/attributes_table_spec.rb +100 -0
  311. data/spec/unit/views/components/blank_slate_spec.rb +31 -0
  312. data/spec/unit/views/components/columns_spec.rb +75 -0
  313. data/spec/unit/views/components/panel_spec.rb +31 -0
  314. data/spec/unit/views/components/sidebar_section_spec.rb +37 -0
  315. data/spec/unit/views/components/status_tag_spec.rb +81 -0
  316. data/spec/unit/views/components/table_for_spec.rb +130 -0
  317. data/spec/unit/views/pages/layout_spec.rb +22 -0
  318. data/tasks/docs.rake +39 -0
  319. data/tasks/test.rake +49 -0
  320. data/tasks/yard.rake +6 -0
  321. metadata +510 -0
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Views::Panel do
4
+ include Arbre::HTML
5
+ let(:assigns){ {} }
6
+
7
+ let(:helpers) { action_view }
8
+
9
+ let(:the_panel) do
10
+ panel "My Title" do
11
+ span("Hello World")
12
+ end
13
+ end
14
+
15
+ it "should have a title h3" do
16
+ the_panel.find_by_tag("h3").first.content.should == "My Title"
17
+ end
18
+
19
+ it "should have a contents div" do
20
+ the_panel.find_by_tag("div").first.class_list.should include("panel_contents")
21
+ end
22
+
23
+ it "should add children to the contents div" do
24
+ the_panel.find_by_tag("span").first.parent.should == the_panel.find_by_tag("div").first
25
+ end
26
+
27
+ it "should set the icon" do
28
+ panel("Title", :icon => :arrow_down).find_by_tag("h3").first.content.should include("span class=\"icon")
29
+ end
30
+
31
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Views::SidebarSection do
4
+ include Arbre::HTML
5
+ let(:assigns){ {} }
6
+
7
+ let(:section) do
8
+ ActiveAdmin::SidebarSection.new(:help) do
9
+ span "Help Me"
10
+ end
11
+ end
12
+
13
+ let(:html) do
14
+ sidebar_section(section)
15
+ end
16
+
17
+ it "should have a title h3" do
18
+ html.find_by_tag("h3").first.content.should == "Help"
19
+ end
20
+
21
+ it "should have the class of 'sidebar_section'" do
22
+ html.class_list.should include("sidebar_section")
23
+ end
24
+
25
+ it "should have an id based on the title" do
26
+ html.id.should == "help_sidebar_section"
27
+ end
28
+
29
+ it "should have a contents div" do
30
+ html.find_by_tag("div").first.class_list.should include("panel_contents")
31
+ end
32
+
33
+ it "should add children to the contents div" do
34
+ html.find_by_tag("span").first.parent.should == html.find_by_tag("div").first
35
+ end
36
+
37
+ end
@@ -0,0 +1,81 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Views::StatusTag do
4
+ include Arbre::HTML
5
+ let(:assigns) { {} }
6
+
7
+ let(:helpers) { action_view }
8
+
9
+ describe "#status_tag" do
10
+ subject { status_tag(nil) }
11
+
12
+ its(:tag_name) { should == 'span' }
13
+ its(:class_list) { should include('status') }
14
+
15
+ context "when status is 'completed'" do
16
+ subject { status_tag('completed') }
17
+
18
+ its(:tag_name) { should == 'span' }
19
+ its(:class_list) { should include('status') }
20
+ its(:class_list) { should include('completed') }
21
+ its(:content) { should == 'Completed' }
22
+ end
23
+
24
+ context "when status is 'in_progress'" do
25
+ subject { status_tag('in_progress') }
26
+
27
+ its(:class_list) { should include('in_progress') }
28
+ its(:content) { should == 'In Progress' }
29
+ end
30
+
31
+ context "when status is 'In progress'" do
32
+ subject { status_tag('In progress') }
33
+
34
+ its(:class_list) { should include('in_progress') }
35
+ its(:content) { should == 'In Progress' }
36
+ end
37
+
38
+ context "when status is an empty string" do
39
+ subject { status_tag('') }
40
+
41
+ its(:class_list) { should include('status') }
42
+ its(:content) { should == '' }
43
+ end
44
+
45
+ context "when status is nil" do
46
+ subject { status_tag(nil) }
47
+
48
+ its(:class_list) { should include('status') }
49
+ its(:content) { should == '' }
50
+ end
51
+
52
+ context "when status is 'Active' and type is :ok" do
53
+ subject { status_tag('Active', :ok) }
54
+
55
+ its(:class_list) { should include('status') }
56
+ its(:class_list) { should include('active') }
57
+ its(:class_list) { should include('ok') }
58
+ end
59
+
60
+ context "when status is 'Active' and class is 'ok'" do
61
+ subject { status_tag('Active', :class => 'ok') }
62
+
63
+ its(:class_list) { should include('status') }
64
+ its(:class_list) { should include('active') }
65
+ its(:class_list) { should include('ok') }
66
+ end
67
+
68
+ context "when status is 'So useless', type is :ok, class is 'woot awesome' and id is 'useless'" do
69
+ subject { status_tag('So useless', :ok, :class => 'woot awesome', :id => 'useless') }
70
+
71
+ its(:content) { should == 'So Useless' }
72
+ its(:class_list) { should include('status') }
73
+ its(:class_list) { should include('ok') }
74
+ its(:class_list) { should include('so_useless') }
75
+ its(:class_list) { should include('woot') }
76
+ its(:class_list) { should include('awesome') }
77
+ its(:id) { should == 'useless' }
78
+ end
79
+
80
+ end # describe "#status_tag"
81
+ end
@@ -0,0 +1,130 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Views::TableFor do
4
+ describe "creating with the dsl" do
5
+ include Arbre::HTML
6
+
7
+ let(:assigns){ {} }
8
+ let(:helpers){ mock_action_view }
9
+
10
+ let(:collection) do
11
+ [Post.new(:title => "First Post"), Post.new(:title => "Second Post"), Post.new(:title => "Third Post")]
12
+ end
13
+
14
+ context "when creating a column with a symbol" do
15
+ let(:table) do
16
+ table_for(collection) do
17
+ column :title
18
+ end
19
+ end
20
+
21
+ it "should create a table header based on the symbol" do
22
+ table.find_by_tag("th").first.content.should == "Title"
23
+ end
24
+
25
+ it "should create a table row for each element in the collection" do
26
+ table.find_by_tag("tr").size.should == 4 # 1 for head, 3 for rows
27
+ end
28
+
29
+ ["First Post", "Second Post", "Third Post"].each_with_index do |content, index|
30
+ it "should create a cell with #{content}" do
31
+ table.find_by_tag("td")[index].content.should == content
32
+ end
33
+ end
34
+ end
35
+
36
+ context "when creating many columns with symbols" do
37
+ let(:table) do
38
+ table_for(collection) do
39
+ column :title
40
+ column :created_at
41
+ end
42
+ end
43
+
44
+ it "should create a table header based on the symbol" do
45
+ table.find_by_tag("th").first.content.should == "Title"
46
+ table.find_by_tag("th").last.content.should == "Created At"
47
+ end
48
+
49
+ it "should create a table row for each element in the collection" do
50
+ table.find_by_tag("tr").size.should == 4 # 1 for head, 3 for rows
51
+ end
52
+
53
+ it "should create a cell for each column" do
54
+ table.find_by_tag("td").size.should == 6
55
+ end
56
+ end
57
+
58
+ context "when creating a column with block content" do
59
+ let(:table) do
60
+ table_for(collection) do
61
+ column :title do |post|
62
+ span(post.title)
63
+ end
64
+ end
65
+ end
66
+
67
+ [ "<span>First Post</span>",
68
+ "<span>Second Post</span>",
69
+ "<span>Third Post</span>" ].each_with_index do |content, index|
70
+ it "should create a cell with #{content}" do
71
+ table.find_by_tag("td")[index].content.strip.should == content
72
+ end
73
+ end
74
+ end
75
+
76
+ context "when creating a column with multiple block content" do
77
+ let(:table) do
78
+ table_for(collection) do
79
+ column :title do |post|
80
+ span(post.title)
81
+ span(post.title)
82
+ end
83
+ end
84
+ end
85
+
86
+ 3.times do |index|
87
+ it "should create a cell with multiple elements in row #{index}" do
88
+ table.find_by_tag("td")[index].find_by_tag("span").size.should == 2
89
+ end
90
+ end
91
+ end
92
+ end
93
+
94
+ describe "column sorting" do
95
+
96
+ def build_column(*args, &block)
97
+ ActiveAdmin::Views::TableFor::Column.new(*args, &block)
98
+ end
99
+
100
+ subject { table_column }
101
+
102
+ context "when default" do
103
+ let(:table_column){ build_column(:username) }
104
+ it { should be_sortable }
105
+ its(:sort_key){ should == "username" }
106
+ end
107
+
108
+ context "when a block given with no sort key" do
109
+ let(:table_column){ build_column("Username"){ } }
110
+ it { should_not be_sortable }
111
+ end
112
+
113
+ context "when a block given with a sort key" do
114
+ let(:table_column){ build_column("Username", :sortable => :username){ } }
115
+ it { should be_sortable }
116
+ its(:sort_key){ should == "username" }
117
+ end
118
+
119
+ context "when :sortable => false with a symbol" do
120
+ let(:table_column){ build_column(:username, :sortable => false) }
121
+ it { should_not be_sortable }
122
+ end
123
+
124
+ context "when :sortable => false with a symbol and string" do
125
+ let(:table_column){ build_column("Username", :username, :sortable => false) }
126
+ it { should_not be_sortable }
127
+ end
128
+
129
+ end
130
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Views::Pages::Layout do
4
+
5
+ describe "the page title" do
6
+
7
+ it "should be the @page_title if assigned in the controller" do
8
+ assigns = {:page_title => "My Page Title"}
9
+ layout = ActiveAdmin::Views::Pages::Layout.new(assigns, nil)
10
+ layout.title.should == "My Page Title"
11
+ end
12
+
13
+ it "should be the default translation" do
14
+ assigns = {}
15
+ helpers = mock(:params => {:action => 'edit'})
16
+ layout = ActiveAdmin::Views::Pages::Layout.new(assigns, helpers)
17
+ layout.title.should == "Edit"
18
+ end
19
+
20
+ end
21
+
22
+ end
data/tasks/docs.rake ADDED
@@ -0,0 +1,39 @@
1
+ namespace :docs do
2
+
3
+ def rdoc_to_markdown(content)
4
+ content.gsub(/^ ?(=+) /) do |m|
5
+ m.gsub('=', '#')
6
+ end
7
+ end
8
+
9
+ def prepare_docstring(content)
10
+ content = rdoc_to_markdown(content)
11
+ "<!-- Please don't edit this file. It will be clobbered. -->\n\n#{content}"
12
+ end
13
+
14
+ def filename_from_module(mod)
15
+ mod.name.to_s.underscore.gsub('_', '-')
16
+ end
17
+
18
+ def write_docstrings_to(path, mods)
19
+ mods.each do |mod|
20
+ File.open("#{path}/#{filename_from_module(mod)}.md", 'w+') do |f|
21
+ f << prepare_docstring(mod.docstring)
22
+ end
23
+ end
24
+ end
25
+
26
+ desc "Update docs in the docs folder"
27
+ task :build do
28
+ require 'yard'
29
+ require 'active_support/all'
30
+
31
+ YARD::Registry.load!
32
+ views = YARD::Registry.at("ActiveAdmin::Views")
33
+
34
+ # Index Types
35
+ index_types = views.children.select{|obj| obj.name.to_s =~ /^IndexAs/ }
36
+ write_docstrings_to "docs/3-index-pages", index_types
37
+ end
38
+
39
+ end
data/tasks/test.rake ADDED
@@ -0,0 +1,49 @@
1
+ desc "Creates a test rails app for the specs to run against"
2
+ task :setup do
3
+ require 'rails/version'
4
+ system("mkdir spec/rails") unless File.exists?("spec/rails")
5
+ system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template.rb"
6
+ end
7
+
8
+ namespace :test do
9
+ desc "Run against the important versions of rails"
10
+ task :major_rails_versions do
11
+ current_version = detect_rails_version
12
+ ["3.0.7", "3.1.0.rc4"].each do |version|
13
+ puts
14
+ puts
15
+ puts "== Using Rails #{version}"
16
+ cmd "./script/use_rails #{version}"
17
+ cmd "bundle exec rspec spec"
18
+ cmd "bundle exec cucumber features"
19
+ end
20
+ cmd "./script/use_rails #{current_version}"
21
+ end
22
+
23
+ end
24
+
25
+ namespace :spec do
26
+ desc "Run specs for all versions of rails"
27
+ task :all do
28
+ (0..6).to_a.each do |v|
29
+ puts "Running for Rails 3.0.#{v}"
30
+ cmd "rm Gemfile.lock" if File.exists?("Gemfile.lock")
31
+ cmd "/usr/bin/env RAILS=3.0.#{v} bundle install"
32
+ cmd "/usr/bin/env RAILS=3.0.#{v} rake spec"
33
+ end
34
+ end
35
+ end
36
+
37
+ require 'cucumber/rake/task'
38
+
39
+ namespace :cucumber do
40
+ Cucumber::Rake::Task.new(:all) do |t|
41
+ t.profile = 'default'
42
+ end
43
+
44
+ Cucumber::Rake::Task.new(:wip) do |t|
45
+ t.profile = 'wip'
46
+ end
47
+ end
48
+
49
+ task :cucumber => "cucumber:all"
data/tasks/yard.rake ADDED
@@ -0,0 +1,6 @@
1
+ require 'yard'
2
+ require 'yard/rake/yardoc_task'
3
+
4
+ YARD::Rake::YardocTask.new do |t|
5
+ t.files = ['lib/**/*.rb']
6
+ end
metadata ADDED
@@ -0,0 +1,510 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nsm-activeadmin
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 2
10
+ version: 0.2.2
11
+ platform: ruby
12
+ authors:
13
+ - Greg Bell
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-08-09 00:00:00 -03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ type: :runtime
23
+ name: rails
24
+ prerelease: false
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 7
31
+ segments:
32
+ - 3
33
+ - 0
34
+ - 0
35
+ version: 3.0.0
36
+ requirement: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ type: :runtime
39
+ name: meta_search
40
+ prerelease: false
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 63
47
+ segments:
48
+ - 0
49
+ - 9
50
+ - 2
51
+ version: 0.9.2
52
+ requirement: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ type: :runtime
55
+ name: devise
56
+ prerelease: false
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 23
63
+ segments:
64
+ - 1
65
+ - 1
66
+ - 2
67
+ version: 1.1.2
68
+ requirement: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ type: :runtime
71
+ name: formtastic
72
+ prerelease: false
73
+ version_requirements: &id004 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ hash: 19
79
+ segments:
80
+ - 1
81
+ - 1
82
+ - 0
83
+ version: 1.1.0
84
+ requirement: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ type: :runtime
87
+ name: inherited_resources
88
+ prerelease: false
89
+ version_requirements: &id005 !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ hash: 3
95
+ segments:
96
+ - 0
97
+ version: "0"
98
+ requirement: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ type: :runtime
101
+ name: kaminari
102
+ prerelease: false
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ hash: 39
109
+ segments:
110
+ - 0
111
+ - 12
112
+ - 4
113
+ version: 0.12.4
114
+ requirement: *id006
115
+ - !ruby/object:Gem::Dependency
116
+ type: :runtime
117
+ name: sass
118
+ prerelease: false
119
+ version_requirements: &id007 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 3
127
+ - 1
128
+ - 0
129
+ version: 3.1.0
130
+ requirement: *id007
131
+ - !ruby/object:Gem::Dependency
132
+ type: :runtime
133
+ name: fastercsv
134
+ prerelease: false
135
+ version_requirements: &id008 !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ hash: 3
141
+ segments:
142
+ - 0
143
+ version: "0"
144
+ requirement: *id008
145
+ description: The administration framework for Ruby on Rails.
146
+ email:
147
+ - gregdbell@gmail.com
148
+ executables: []
149
+
150
+ extensions: []
151
+
152
+ extra_rdoc_files: []
153
+
154
+ files:
155
+ - .document
156
+ - .gitignore
157
+ - .travis.yml
158
+ - .yardopts
159
+ - CHANGELOG.rdoc
160
+ - Gemfile
161
+ - LICENSE
162
+ - README.rdoc
163
+ - Rakefile
164
+ - activeadmin.gemspec
165
+ - app/assets/images/active_admin/admin_notes_icon.png
166
+ - app/assets/images/active_admin/datepicker/datepicker-header-bg.png
167
+ - app/assets/images/active_admin/datepicker/datepicker-input-icon.png
168
+ - app/assets/images/active_admin/datepicker/datepicker-next-link-icon.png
169
+ - app/assets/images/active_admin/datepicker/datepicker-nipple.png
170
+ - app/assets/images/active_admin/datepicker/datepicker-prev-link-icon.png
171
+ - app/assets/images/active_admin/loading.gif
172
+ - app/assets/images/active_admin/nested_menu_arrow.gif
173
+ - app/assets/images/active_admin/nested_menu_arrow_dark.gif
174
+ - app/assets/images/active_admin/orderable.png
175
+ - app/assets/javascripts/active_admin/base.js
176
+ - app/assets/javascripts/active_admin/vendor.js
177
+ - app/assets/stylesheets/active_admin/_base.css.scss
178
+ - app/assets/stylesheets/active_admin/_forms.css.scss
179
+ - app/assets/stylesheets/active_admin/_header.css.scss
180
+ - app/assets/stylesheets/active_admin/_mixins.css.scss
181
+ - app/assets/stylesheets/active_admin/_typography.css.scss
182
+ - app/assets/stylesheets/active_admin/components/_comments.css.scss
183
+ - app/assets/stylesheets/active_admin/components/_date_picker.css.scss
184
+ - app/assets/stylesheets/active_admin/components/_flash_messages.css.scss
185
+ - app/assets/stylesheets/active_admin/mixins/_all.css.scss
186
+ - app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
187
+ - app/assets/stylesheets/active_admin/mixins/_gradients.css.scss
188
+ - app/assets/stylesheets/active_admin/mixins/_icons.css.scss
189
+ - app/assets/stylesheets/active_admin/mixins/_reset.css.scss
190
+ - app/assets/stylesheets/active_admin/mixins/_rounded.css.scss
191
+ - app/assets/stylesheets/active_admin/mixins/_sections.css.scss
192
+ - app/assets/stylesheets/active_admin/mixins/_shadows.css.scss
193
+ - app/assets/stylesheets/active_admin/mixins/_variables.css.scss
194
+ - app/views/active_admin/dashboard/index.html.arb
195
+ - app/views/active_admin/devise/mailer/reset_password_instructions.html.erb
196
+ - app/views/active_admin/devise/mailer/unlock_instructions.html.erb
197
+ - app/views/active_admin/devise/passwords/edit.html.erb
198
+ - app/views/active_admin/devise/passwords/new.html.erb
199
+ - app/views/active_admin/devise/sessions/new.html.erb
200
+ - app/views/active_admin/devise/shared/_links.erb
201
+ - app/views/active_admin/devise/unlocks/new.html.erb
202
+ - app/views/active_admin/resource/edit.html.arb
203
+ - app/views/active_admin/resource/index.csv.erb
204
+ - app/views/active_admin/resource/index.html.arb
205
+ - app/views/active_admin/resource/new.html.arb
206
+ - app/views/active_admin/resource/show.html.arb
207
+ - app/views/layouts/active_admin.html.arb
208
+ - app/views/layouts/active_admin_logged_out.html.erb
209
+ - cucumber.yml
210
+ - docs/1-general-configuration.md
211
+ - docs/2-resource-customization.md
212
+ - docs/3-index-pages.md
213
+ - docs/3-index-pages/index-as-block.md
214
+ - docs/3-index-pages/index-as-blog.md
215
+ - docs/3-index-pages/index-as-grid.md
216
+ - docs/3-index-pages/index-as-table.md
217
+ - docs/4-csv-format.md
218
+ - docs/5-forms.md
219
+ - docs/6-show-screens.md
220
+ - docs/7-sidebars.md
221
+ - docs/8-custom-actions.md
222
+ - features/comments/commenting.feature
223
+ - features/comments/viewing_index.feature
224
+ - features/dashboard.feature
225
+ - features/edit_page.feature
226
+ - features/first_boot.feature
227
+ - features/global_navigation.feature
228
+ - features/index/format_as_csv.feature
229
+ - features/index/formats.feature
230
+ - features/index/index_as_block.feature
231
+ - features/index/index_as_blog.feature
232
+ - features/index/index_as_grid.feature
233
+ - features/index/index_as_table.feature
234
+ - features/index/index_blank_slate.feature
235
+ - features/index/index_scopes.feature
236
+ - features/index/pagination.feature
237
+ - features/menu.feature
238
+ - features/new_page.feature
239
+ - features/registering_assets.feature
240
+ - features/registering_resources.feature
241
+ - features/show/default_content.feature
242
+ - features/show/page_title.feature
243
+ - features/sidebar_sections.feature
244
+ - features/specifying_actions.feature
245
+ - features/step_definitions/action_item_steps.rb
246
+ - features/step_definitions/additional_web_steps.rb
247
+ - features/step_definitions/asset_steps.rb
248
+ - features/step_definitions/attribute_steps.rb
249
+ - features/step_definitions/comment_steps.rb
250
+ - features/step_definitions/configuration_steps.rb
251
+ - features/step_definitions/dashboard_steps.rb
252
+ - features/step_definitions/factory_steps.rb
253
+ - features/step_definitions/flash_steps.rb
254
+ - features/step_definitions/format_steps.rb
255
+ - features/step_definitions/index_scope_steps.rb
256
+ - features/step_definitions/layout_steps.rb
257
+ - features/step_definitions/menu_steps.rb
258
+ - features/step_definitions/pagination_steps.rb
259
+ - features/step_definitions/sidebar_steps.rb
260
+ - features/step_definitions/tab_steps.rb
261
+ - features/step_definitions/user_steps.rb
262
+ - features/step_definitions/web_steps.rb
263
+ - features/sti_resource.feature
264
+ - features/support/env.rb
265
+ - features/support/paths.rb
266
+ - features/support/selectors.rb
267
+ - features/users/logging_in.feature
268
+ - features/users/logging_out.feature
269
+ - lib/active_admin.rb
270
+ - lib/active_admin/abstract_view_factory.rb
271
+ - lib/active_admin/application.rb
272
+ - lib/active_admin/arbre.rb
273
+ - lib/active_admin/arbre/attributes.rb
274
+ - lib/active_admin/arbre/class_list.rb
275
+ - lib/active_admin/arbre/collection.rb
276
+ - lib/active_admin/arbre/context.rb
277
+ - lib/active_admin/arbre/core_extensions.rb
278
+ - lib/active_admin/arbre/document.rb
279
+ - lib/active_admin/arbre/element.rb
280
+ - lib/active_admin/arbre/html.rb
281
+ - lib/active_admin/arbre/html5_elements.rb
282
+ - lib/active_admin/arbre/tag.rb
283
+ - lib/active_admin/arbre/text_node.rb
284
+ - lib/active_admin/asset_registration.rb
285
+ - lib/active_admin/callbacks.rb
286
+ - lib/active_admin/comments.rb
287
+ - lib/active_admin/comments/comment.rb
288
+ - lib/active_admin/comments/configuration.rb
289
+ - lib/active_admin/comments/namespace_helper.rb
290
+ - lib/active_admin/comments/resource_helper.rb
291
+ - lib/active_admin/comments/show_page_helper.rb
292
+ - lib/active_admin/comments/views.rb
293
+ - lib/active_admin/comments/views/active_admin_comment.rb
294
+ - lib/active_admin/comments/views/active_admin_comments.rb
295
+ - lib/active_admin/component.rb
296
+ - lib/active_admin/controller_action.rb
297
+ - lib/active_admin/csv_builder.rb
298
+ - lib/active_admin/dashboards.rb
299
+ - lib/active_admin/dashboards/dashboard_controller.rb
300
+ - lib/active_admin/dashboards/section.rb
301
+ - lib/active_admin/deprecation.rb
302
+ - lib/active_admin/devise.rb
303
+ - lib/active_admin/dsl.rb
304
+ - lib/active_admin/engine.rb
305
+ - lib/active_admin/event.rb
306
+ - lib/active_admin/form_builder.rb
307
+ - lib/active_admin/helpers/optional_display.rb
308
+ - lib/active_admin/helpers/settings.rb
309
+ - lib/active_admin/iconic.rb
310
+ - lib/active_admin/iconic/icons.rb
311
+ - lib/active_admin/locales/da.yml
312
+ - lib/active_admin/locales/en.yml
313
+ - lib/active_admin/locales/es.yml
314
+ - lib/active_admin/locales/it.yml
315
+ - lib/active_admin/locales/pt-BR.yml
316
+ - lib/active_admin/locales/ru.yml
317
+ - lib/active_admin/locales/zh_cn.yml
318
+ - lib/active_admin/menu.rb
319
+ - lib/active_admin/menu_item.rb
320
+ - lib/active_admin/namespace.rb
321
+ - lib/active_admin/page_config.rb
322
+ - lib/active_admin/reloader.rb
323
+ - lib/active_admin/renderer.rb
324
+ - lib/active_admin/resource.rb
325
+ - lib/active_admin/resource/action_items.rb
326
+ - lib/active_admin/resource/belongs_to.rb
327
+ - lib/active_admin/resource/menu.rb
328
+ - lib/active_admin/resource/naming.rb
329
+ - lib/active_admin/resource/scopes.rb
330
+ - lib/active_admin/resource/sidebars.rb
331
+ - lib/active_admin/resource_controller.rb
332
+ - lib/active_admin/resource_controller/action_builder.rb
333
+ - lib/active_admin/resource_controller/actions.rb
334
+ - lib/active_admin/resource_controller/callbacks.rb
335
+ - lib/active_admin/resource_controller/collection.rb
336
+ - lib/active_admin/resource_controller/filters.rb
337
+ - lib/active_admin/resource_controller/form.rb
338
+ - lib/active_admin/resource_controller/menu.rb
339
+ - lib/active_admin/resource_controller/page_configurations.rb
340
+ - lib/active_admin/resource_controller/scoping.rb
341
+ - lib/active_admin/resource_controller/sidebars.rb
342
+ - lib/active_admin/router.rb
343
+ - lib/active_admin/sass/active_admin.scss
344
+ - lib/active_admin/sass/css_loader.rb
345
+ - lib/active_admin/sass/helpers.rb
346
+ - lib/active_admin/scope.rb
347
+ - lib/active_admin/sidebar_section.rb
348
+ - lib/active_admin/stylesheets/active_admin/mixins/_utilities.scss
349
+ - lib/active_admin/version.rb
350
+ - lib/active_admin/view_factory.rb
351
+ - lib/active_admin/view_helpers.rb
352
+ - lib/active_admin/view_helpers/active_admin_application_helper.rb
353
+ - lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb
354
+ - lib/active_admin/view_helpers/auto_link_helper.rb
355
+ - lib/active_admin/view_helpers/breadcrumb_helper.rb
356
+ - lib/active_admin/view_helpers/display_helper.rb
357
+ - lib/active_admin/view_helpers/filter_form_helper.rb
358
+ - lib/active_admin/view_helpers/form_helper.rb
359
+ - lib/active_admin/view_helpers/icon_helper.rb
360
+ - lib/active_admin/view_helpers/method_or_proc_helper.rb
361
+ - lib/active_admin/view_helpers/renderer_helper.rb
362
+ - lib/active_admin/view_helpers/sidebar_helper.rb
363
+ - lib/active_admin/view_helpers/title_helper.rb
364
+ - lib/active_admin/view_helpers/view_factory_helper.rb
365
+ - lib/active_admin/views.rb
366
+ - lib/active_admin/views/action_items.rb
367
+ - lib/active_admin/views/components/attributes_table.rb
368
+ - lib/active_admin/views/components/blank_slate.rb
369
+ - lib/active_admin/views/components/columns.rb
370
+ - lib/active_admin/views/components/paginated_collection.rb
371
+ - lib/active_admin/views/components/panel.rb
372
+ - lib/active_admin/views/components/scopes.rb
373
+ - lib/active_admin/views/components/sidebar_section.rb
374
+ - lib/active_admin/views/components/status_tag.rb
375
+ - lib/active_admin/views/components/table_for.rb
376
+ - lib/active_admin/views/dashboard_section_renderer.rb
377
+ - lib/active_admin/views/header_renderer.rb
378
+ - lib/active_admin/views/index_as_block.rb
379
+ - lib/active_admin/views/index_as_blog.rb
380
+ - lib/active_admin/views/index_as_grid.rb
381
+ - lib/active_admin/views/index_as_table.rb
382
+ - lib/active_admin/views/pages/base.rb
383
+ - lib/active_admin/views/pages/dashboard.rb
384
+ - lib/active_admin/views/pages/edit.rb
385
+ - lib/active_admin/views/pages/index.rb
386
+ - lib/active_admin/views/pages/layout.rb
387
+ - lib/active_admin/views/pages/new.rb
388
+ - lib/active_admin/views/pages/show.rb
389
+ - lib/active_admin/views/tabs_renderer.rb
390
+ - lib/activeadmin.rb
391
+ - lib/generators/active_admin/assets/assets_generator.rb
392
+ - lib/generators/active_admin/assets/templates/3.0/active_admin.js
393
+ - lib/generators/active_admin/assets/templates/3.1/active_admin.css.scss
394
+ - lib/generators/active_admin/assets/templates/3.1/active_admin.js
395
+ - lib/generators/active_admin/assets/templates/dashboards.rb
396
+ - lib/generators/active_admin/devise/devise_generator.rb
397
+ - lib/generators/active_admin/install/install_generator.rb
398
+ - lib/generators/active_admin/install/templates/active_admin.rb.erb
399
+ - lib/generators/active_admin/install/templates/dashboards.rb
400
+ - lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb
401
+ - lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb
402
+ - lib/generators/active_admin/resource/resource_generator.rb
403
+ - lib/generators/active_admin/resource/templates/admin.rb
404
+ - script/local
405
+ - script/use_rails
406
+ - spec/integration/belongs_to_spec.rb
407
+ - spec/integration/default_namespace.rb
408
+ - spec/integration/javascript_spec.rb
409
+ - spec/integration/stylesheets_spec.rb
410
+ - spec/spec_helper.rb
411
+ - spec/support/detect_rails_version.rb
412
+ - spec/support/integration_example_group.rb
413
+ - spec/support/jslint.yml
414
+ - spec/support/rails_template.rb
415
+ - spec/support/rails_template_with_data.rb
416
+ - spec/support/templates/cucumber.rb
417
+ - spec/unit/abstract_view_factory_spec.rb
418
+ - spec/unit/action_builder_spec.rb
419
+ - spec/unit/application_spec.rb
420
+ - spec/unit/arbre/html/context_spec.rb
421
+ - spec/unit/arbre/html/element_finder_methods_spec.rb
422
+ - spec/unit/arbre/html/element_spec.rb
423
+ - spec/unit/arbre/html/tag_attributes_spec.rb
424
+ - spec/unit/arbre/html/tag_spec.rb
425
+ - spec/unit/arbre/html_spec.rb
426
+ - spec/unit/asset_registration_spec.rb
427
+ - spec/unit/auto_link_spec.rb
428
+ - spec/unit/belongs_to_spec.rb
429
+ - spec/unit/breadcrumbs_spec.rb
430
+ - spec/unit/comments_spec.rb
431
+ - spec/unit/component_spec.rb
432
+ - spec/unit/controller_filters_spec.rb
433
+ - spec/unit/csv_builder_spec.rb
434
+ - spec/unit/dashboard_controller_spec.rb
435
+ - spec/unit/dashboard_section_spec.rb
436
+ - spec/unit/dashboards_spec.rb
437
+ - spec/unit/display_name_spec.rb
438
+ - spec/unit/event_spec.rb
439
+ - spec/unit/filter_form_builder_spec.rb
440
+ - spec/unit/form_builder_spec.rb
441
+ - spec/unit/generators/install_rails_3_1_spec.rb
442
+ - spec/unit/helpers/settings_spec.rb
443
+ - spec/unit/menu_item_spec.rb
444
+ - spec/unit/menu_spec.rb
445
+ - spec/unit/namespace_spec.rb
446
+ - spec/unit/pretty_format_spec.rb
447
+ - spec/unit/rails_spec.rb
448
+ - spec/unit/registration_spec.rb
449
+ - spec/unit/reloader_spec.rb
450
+ - spec/unit/renderer_spec.rb
451
+ - spec/unit/resource/action_items_spec.rb
452
+ - spec/unit/resource/menu_spec.rb
453
+ - spec/unit/resource/naming_spec.rb
454
+ - spec/unit/resource/scopes_spec.rb
455
+ - spec/unit/resource/sidebars_spec.rb
456
+ - spec/unit/resource_controller/collection_spec.rb
457
+ - spec/unit/resource_controller_spec.rb
458
+ - spec/unit/resource_spec.rb
459
+ - spec/unit/routing_spec.rb
460
+ - spec/unit/sass/helpers_spec.rb
461
+ - spec/unit/scope_spec.rb
462
+ - spec/unit/tabs_renderer_spec.rb
463
+ - spec/unit/view_factory_spec.rb
464
+ - spec/unit/views/components/attributes_table_spec.rb
465
+ - spec/unit/views/components/blank_slate_spec.rb
466
+ - spec/unit/views/components/columns_spec.rb
467
+ - spec/unit/views/components/panel_spec.rb
468
+ - spec/unit/views/components/sidebar_section_spec.rb
469
+ - spec/unit/views/components/status_tag_spec.rb
470
+ - spec/unit/views/components/table_for_spec.rb
471
+ - spec/unit/views/pages/layout_spec.rb
472
+ - tasks/docs.rake
473
+ - tasks/test.rake
474
+ - tasks/yard.rake
475
+ has_rdoc: true
476
+ homepage: http://activeadmin.info
477
+ licenses: []
478
+
479
+ post_install_message:
480
+ rdoc_options: []
481
+
482
+ require_paths:
483
+ - lib
484
+ required_ruby_version: !ruby/object:Gem::Requirement
485
+ none: false
486
+ requirements:
487
+ - - ">="
488
+ - !ruby/object:Gem::Version
489
+ hash: 3
490
+ segments:
491
+ - 0
492
+ version: "0"
493
+ required_rubygems_version: !ruby/object:Gem::Requirement
494
+ none: false
495
+ requirements:
496
+ - - ">="
497
+ - !ruby/object:Gem::Version
498
+ hash: 3
499
+ segments:
500
+ - 0
501
+ version: "0"
502
+ requirements: []
503
+
504
+ rubyforge_project:
505
+ rubygems_version: 1.3.7
506
+ signing_key:
507
+ specification_version: 3
508
+ summary: The administration framework for Ruby on Rails.
509
+ test_files: []
510
+