activeadmin 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (333) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +467 -0
  3. data/.gitignore +2 -5
  4. data/.rspec +1 -0
  5. data/.rspec_parallel +2 -0
  6. data/.rubocop.yml +25 -7
  7. data/.simplecov +4 -6
  8. data/CHANGELOG.md +175 -83
  9. data/CODE_OF_CONDUCT.md +64 -12
  10. data/CONTRIBUTING.md +77 -40
  11. data/Gemfile +7 -55
  12. data/Gemfile.common +53 -0
  13. data/Gemfile.lock +431 -0
  14. data/README.md +39 -18
  15. data/Rakefile +1 -32
  16. data/app/assets/stylesheets/active_admin/_forms.scss +1 -1
  17. data/app/assets/stylesheets/active_admin/components/_scopes.scss +3 -0
  18. data/app/views/active_admin/devise/confirmations/new.html.erb +1 -1
  19. data/app/views/active_admin/devise/passwords/edit.html.erb +1 -1
  20. data/app/views/active_admin/devise/passwords/new.html.erb +1 -1
  21. data/app/views/active_admin/devise/registrations/new.html.erb +1 -1
  22. data/app/views/active_admin/devise/sessions/new.html.erb +1 -1
  23. data/app/views/active_admin/devise/unlocks/new.html.erb +1 -1
  24. data/app/views/layouts/active_admin_logged_out.html.erb +1 -1
  25. data/bin/install_chromedriver.sh +17 -0
  26. data/config/locales/de.yml +10 -0
  27. data/config/locales/en.yml +19 -1
  28. data/config/locales/es.yml +20 -1
  29. data/config/locales/fi.yml +1 -1
  30. data/config/locales/it.yml +4 -0
  31. data/config/locales/nb.yml +15 -5
  32. data/config/locales/nl.yml +11 -0
  33. data/config/locales/pl.yml +71 -3
  34. data/config/locales/ru.yml +2 -0
  35. data/config/locales/tr.yml +9 -0
  36. data/config/locales/zh-CN.yml +33 -5
  37. data/config/mdl_style.rb +2 -0
  38. data/cucumber.yml +7 -3
  39. data/docs/.gitignore +1 -0
  40. data/docs/1-general-configuration.md +16 -1
  41. data/docs/10-custom-pages.md +14 -0
  42. data/docs/12-arbre-components.md +28 -1
  43. data/docs/13-authorization-adapter.md +36 -17
  44. data/docs/2-resource-customization.md +8 -3
  45. data/docs/3-index-pages.md +17 -0
  46. data/docs/3-index-pages/custom-index.md +1 -1
  47. data/docs/3-index-pages/index-as-blog.md +1 -1
  48. data/docs/3-index-pages/index-as-table.md +5 -5
  49. data/docs/5-forms.md +16 -2
  50. data/docs/8-custom-actions.md +11 -0
  51. data/docs/Gemfile +2 -0
  52. data/docs/Gemfile.lock +249 -0
  53. data/docs/_config.yml +1 -1
  54. data/docs/_includes/toc.html +1 -1
  55. data/docs/_includes/top-menu.html +9 -1
  56. data/docs/documentation.md +1 -1
  57. data/docs/images/tidelift.svg +14 -0
  58. data/docs/stylesheets/main.css +26 -2
  59. data/gemfiles/rails_42.gemfile +2 -2
  60. data/gemfiles/rails_42.gemfile.lock +410 -0
  61. data/gemfiles/rails_50.gemfile +2 -2
  62. data/gemfiles/rails_50.gemfile.lock +424 -0
  63. data/gemfiles/rails_51.gemfile +2 -2
  64. data/gemfiles/rails_51.gemfile.lock +423 -0
  65. data/lib/active_admin/abstract_view_factory.rb +13 -51
  66. data/lib/active_admin/application.rb +42 -142
  67. data/lib/active_admin/application_settings.rb +39 -0
  68. data/lib/active_admin/base_controller/authorization.rb +1 -2
  69. data/lib/active_admin/batch_actions/controller.rb +1 -1
  70. data/lib/active_admin/dependency.rb +8 -0
  71. data/lib/active_admin/deprecation.rb +0 -25
  72. data/lib/active_admin/dynamic_setting.rb +38 -0
  73. data/lib/active_admin/dynamic_settings_node.rb +28 -0
  74. data/lib/active_admin/engine.rb +5 -0
  75. data/lib/active_admin/filters/active_filter.rb +1 -1
  76. data/lib/active_admin/filters/resource_extension.rb +1 -1
  77. data/lib/active_admin/form_builder.rb +95 -60
  78. data/lib/active_admin/inputs/datepicker_input.rb +7 -0
  79. data/lib/active_admin/menu.rb +2 -8
  80. data/lib/active_admin/menu_item.rb +3 -31
  81. data/lib/active_admin/namespace.rb +18 -6
  82. data/lib/active_admin/namespace_settings.rb +107 -0
  83. data/lib/active_admin/orm/active_record/comments.rb +11 -0
  84. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -1
  85. data/lib/active_admin/resource/action_items.rb +6 -1
  86. data/lib/active_admin/resource_controller/decorators.rb +3 -3
  87. data/lib/active_admin/resource_controller/scoping.rb +1 -1
  88. data/lib/active_admin/router.rb +89 -84
  89. data/lib/active_admin/scope.rb +5 -1
  90. data/lib/active_admin/settings_node.rb +19 -0
  91. data/lib/active_admin/version.rb +1 -1
  92. data/lib/active_admin/views/components/active_admin_form.rb +2 -3
  93. data/lib/active_admin/views/components/menu.rb +32 -0
  94. data/lib/active_admin/views/components/menu_item.rb +58 -0
  95. data/lib/active_admin/views/components/scopes.rb +11 -4
  96. data/lib/active_admin/views/components/sidebar.rb +13 -0
  97. data/lib/active_admin/views/components/site_title.rb +5 -6
  98. data/lib/active_admin/views/components/table_for.rb +1 -10
  99. data/lib/active_admin/views/components/tabs.rb +4 -1
  100. data/lib/active_admin/views/footer.rb +2 -6
  101. data/lib/active_admin/views/header.rb +3 -15
  102. data/lib/active_admin/views/index_as_blog.rb +1 -1
  103. data/lib/active_admin/views/index_as_grid.rb +25 -25
  104. data/lib/active_admin/views/index_as_table.rb +6 -6
  105. data/lib/active_admin/views/pages/base.rb +27 -53
  106. data/lib/active_admin/views/tabbed_navigation.rb +4 -59
  107. data/lib/bug_report_templates/active_admin_master.rb +2 -3
  108. data/tasks/application_generator.rb +48 -0
  109. data/tasks/gemfiles.rake +8 -0
  110. data/tasks/lint.rake +96 -7
  111. data/tasks/local.rake +10 -8
  112. data/tasks/test.rake +30 -16
  113. metadata +26 -440
  114. data/.travis.yml +0 -51
  115. data/features/action_item.feature +0 -73
  116. data/features/authorization.feature +0 -64
  117. data/features/authorization_cancan.feature +0 -52
  118. data/features/authorization_pundit.feature +0 -37
  119. data/features/belongs_to.feature +0 -124
  120. data/features/breadcrumb.feature +0 -75
  121. data/features/comments/commenting.feature +0 -178
  122. data/features/comments/viewing_index.feature +0 -19
  123. data/features/create_another.feature +0 -55
  124. data/features/dashboard.feature +0 -16
  125. data/features/decorators.feature +0 -43
  126. data/features/development_reloading.feature +0 -28
  127. data/features/edit_page.feature +0 -116
  128. data/features/favicon.feature +0 -20
  129. data/features/first_boot.feature +0 -16
  130. data/features/footer.feature +0 -28
  131. data/features/global_navigation.feature +0 -29
  132. data/features/i18n.feature +0 -55
  133. data/features/index/batch_actions.feature +0 -218
  134. data/features/index/filters.feature +0 -250
  135. data/features/index/format_as_csv.feature +0 -220
  136. data/features/index/formats.feature +0 -88
  137. data/features/index/index_as_block.feature +0 -15
  138. data/features/index/index_as_blog.feature +0 -69
  139. data/features/index/index_as_grid.feature +0 -45
  140. data/features/index/index_as_table.feature +0 -291
  141. data/features/index/index_blank_slate.feature +0 -83
  142. data/features/index/index_parameters.feature +0 -75
  143. data/features/index/index_scope_to.feature +0 -56
  144. data/features/index/index_scopes.feature +0 -285
  145. data/features/index/page_title.feature +0 -41
  146. data/features/index/pagination.feature +0 -63
  147. data/features/index/switch_index_view.feature +0 -73
  148. data/features/menu.feature +0 -72
  149. data/features/meta_tags.feature +0 -21
  150. data/features/new_page.feature +0 -136
  151. data/features/registering_assets.feature +0 -38
  152. data/features/registering_pages.feature +0 -237
  153. data/features/registering_resources.feature +0 -33
  154. data/features/renamed_resource.feature +0 -30
  155. data/features/root_to.feature +0 -17
  156. data/features/show/attributes_table_title.feature +0 -54
  157. data/features/show/columns.feature +0 -40
  158. data/features/show/default_content.feature +0 -44
  159. data/features/show/page_title.feature +0 -58
  160. data/features/show/tabs.feature +0 -33
  161. data/features/sidebar_sections.feature +0 -210
  162. data/features/site_title.feature +0 -47
  163. data/features/specifying_actions.feature +0 -118
  164. data/features/step_definitions/action_item_steps.rb +0 -7
  165. data/features/step_definitions/action_link_steps.rb +0 -19
  166. data/features/step_definitions/additional_web_steps.rb +0 -81
  167. data/features/step_definitions/asset_steps.rb +0 -15
  168. data/features/step_definitions/attribute_steps.rb +0 -18
  169. data/features/step_definitions/attributes_table_title_steps.rb +0 -11
  170. data/features/step_definitions/batch_action_steps.rb +0 -81
  171. data/features/step_definitions/blog_steps.rb +0 -3
  172. data/features/step_definitions/breadcrumb_steps.rb +0 -3
  173. data/features/step_definitions/column_steps.rb +0 -8
  174. data/features/step_definitions/comment_steps.rb +0 -32
  175. data/features/step_definitions/configuration_steps.rb +0 -100
  176. data/features/step_definitions/dashboard_steps.rb +0 -15
  177. data/features/step_definitions/factory_steps.rb +0 -35
  178. data/features/step_definitions/filter_steps.rb +0 -47
  179. data/features/step_definitions/flash_steps.rb +0 -11
  180. data/features/step_definitions/footer_steps.rb +0 -11
  181. data/features/step_definitions/format_steps.rb +0 -56
  182. data/features/step_definitions/i18n_steps.rb +0 -11
  183. data/features/step_definitions/index_scope_steps.rb +0 -29
  184. data/features/step_definitions/index_views_steps.rb +0 -3
  185. data/features/step_definitions/layout_steps.rb +0 -3
  186. data/features/step_definitions/member_link_steps.rb +0 -7
  187. data/features/step_definitions/menu_steps.rb +0 -11
  188. data/features/step_definitions/meta_tag_steps.rb +0 -3
  189. data/features/step_definitions/pagination_steps.rb +0 -15
  190. data/features/step_definitions/sidebar_steps.rb +0 -11
  191. data/features/step_definitions/site_title_steps.rb +0 -17
  192. data/features/step_definitions/tab_steps.rb +0 -8
  193. data/features/step_definitions/table_steps.rb +0 -116
  194. data/features/step_definitions/user_steps.rb +0 -52
  195. data/features/step_definitions/web_steps.rb +0 -86
  196. data/features/sti_resource.feature +0 -65
  197. data/features/strong_parameters.feature +0 -69
  198. data/features/support/env.rb +0 -122
  199. data/features/support/paths.rb +0 -73
  200. data/features/support/regular_env.rb +0 -7
  201. data/features/support/reload_env.rb +0 -7
  202. data/features/support/selectors.rb +0 -45
  203. data/features/users/logging_in.feature +0 -36
  204. data/features/users/logging_out.feature +0 -13
  205. data/features/users/resetting_password.feature +0 -34
  206. data/gemfiles/rails_52.gemfile +0 -11
  207. data/lib/active_admin/helpers/settings.rb +0 -114
  208. data/spec/bug_report_templates_spec.rb +0 -26
  209. data/spec/javascripts/coffeescripts/jquery.aa.checkbox-toggler-spec.js.coffee +0 -50
  210. data/spec/javascripts/coffeescripts/jquery.aa.flash.js.coffee +0 -25
  211. data/spec/javascripts/coffeescripts/jquery.aa.table-checkbox-toggler-spec.js.coffee +0 -34
  212. data/spec/javascripts/fixtures/checkboxes.html +0 -9
  213. data/spec/javascripts/fixtures/flashes.html +0 -2
  214. data/spec/javascripts/fixtures/table_checkboxes.html +0 -17
  215. data/spec/javascripts/helpers/SpecHelper.js +0 -3
  216. data/spec/javascripts/support/jasmine.yml +0 -74
  217. data/spec/javascripts/support/jasmine_runner.rb +0 -19
  218. data/spec/rails_helper.rb +0 -59
  219. data/spec/requests/default_namespace_spec.rb +0 -81
  220. data/spec/requests/memory_spec.rb +0 -25
  221. data/spec/requests/stylesheets_spec.rb +0 -18
  222. data/spec/spec_helper.rb +0 -1
  223. data/spec/support/active_admin_integration_spec_helper.rb +0 -73
  224. data/spec/support/active_admin_request_helpers.rb +0 -39
  225. data/spec/support/rails_template.rb +0 -153
  226. data/spec/support/rails_template_with_data.rb +0 -327
  227. data/spec/support/templates/admin/stores.rb +0 -7
  228. data/spec/support/templates/en.yml +0 -8
  229. data/spec/support/templates/manifest.js +0 -3
  230. data/spec/support/templates/policies/active_admin/comment_policy.rb +0 -9
  231. data/spec/support/templates/policies/active_admin/page_policy.rb +0 -18
  232. data/spec/support/templates/policies/admin_user_policy.rb +0 -11
  233. data/spec/support/templates/policies/application_policy.rb +0 -44
  234. data/spec/support/templates/policies/category_policy.rb +0 -7
  235. data/spec/support/templates/policies/post_policy.rb +0 -15
  236. data/spec/support/templates/policies/store_policy.rb +0 -11
  237. data/spec/support/templates/policies/user_policy.rb +0 -11
  238. data/spec/support/templates/post_decorator.rb +0 -24
  239. data/spec/unit/abstract_view_factory_spec.rb +0 -78
  240. data/spec/unit/action_builder_spec.rb +0 -158
  241. data/spec/unit/active_admin_spec.rb +0 -11
  242. data/spec/unit/application_spec.rb +0 -184
  243. data/spec/unit/asset_registration_spec.rb +0 -81
  244. data/spec/unit/authorization/authorization_adapter_spec.rb +0 -61
  245. data/spec/unit/authorization/controller_authorization_spec.rb +0 -43
  246. data/spec/unit/authorization/index_overriding_spec.rb +0 -23
  247. data/spec/unit/auto_link_spec.rb +0 -93
  248. data/spec/unit/batch_actions/resource_spec.rb +0 -84
  249. data/spec/unit/batch_actions/settings_spec.rb +0 -61
  250. data/spec/unit/belongs_to_spec.rb +0 -76
  251. data/spec/unit/cancan_adapter_spec.rb +0 -43
  252. data/spec/unit/comments_spec.rb +0 -176
  253. data/spec/unit/component_spec.rb +0 -18
  254. data/spec/unit/config_shared_examples.rb +0 -59
  255. data/spec/unit/controller_filters_spec.rb +0 -41
  256. data/spec/unit/csv_builder_spec.rb +0 -313
  257. data/spec/unit/dependency_spec.rb +0 -135
  258. data/spec/unit/devise_spec.rb +0 -110
  259. data/spec/unit/dsl_spec.rb +0 -120
  260. data/spec/unit/filters/active_filter_spec.rb +0 -189
  261. data/spec/unit/filters/active_spec.rb +0 -24
  262. data/spec/unit/filters/filter_form_builder_spec.rb +0 -524
  263. data/spec/unit/filters/resource_spec.rb +0 -128
  264. data/spec/unit/form_builder_spec.rb +0 -990
  265. data/spec/unit/generators/install_spec.rb +0 -31
  266. data/spec/unit/helpers/collection_spec.rb +0 -68
  267. data/spec/unit/helpers/output_safety_helper_spec.rb +0 -79
  268. data/spec/unit/helpers/scope_chain_spec.rb +0 -35
  269. data/spec/unit/helpers/settings_spec.rb +0 -30
  270. data/spec/unit/i18n_spec.rb +0 -29
  271. data/spec/unit/localizers/resource_localizer_spec.rb +0 -36
  272. data/spec/unit/menu_collection_spec.rb +0 -62
  273. data/spec/unit/menu_item_spec.rb +0 -141
  274. data/spec/unit/menu_spec.rb +0 -71
  275. data/spec/unit/namespace/authorization_spec.rb +0 -27
  276. data/spec/unit/namespace/register_page_spec.rb +0 -99
  277. data/spec/unit/namespace/register_resource_spec.rb +0 -162
  278. data/spec/unit/namespace_spec.rb +0 -124
  279. data/spec/unit/order_clause_spec.rb +0 -81
  280. data/spec/unit/page_controller_spec.rb +0 -5
  281. data/spec/unit/page_spec.rb +0 -128
  282. data/spec/unit/pretty_format_spec.rb +0 -82
  283. data/spec/unit/pundit_adapter_spec.rb +0 -98
  284. data/spec/unit/resource/action_items_spec.rb +0 -69
  285. data/spec/unit/resource/attributes_spec.rb +0 -49
  286. data/spec/unit/resource/includes_spec.rb +0 -21
  287. data/spec/unit/resource/menu_spec.rb +0 -18
  288. data/spec/unit/resource/naming_spec.rb +0 -122
  289. data/spec/unit/resource/ordering_spec.rb +0 -35
  290. data/spec/unit/resource/page_presenters_spec.rb +0 -44
  291. data/spec/unit/resource/pagination_spec.rb +0 -38
  292. data/spec/unit/resource/routes_spec.rb +0 -125
  293. data/spec/unit/resource/scopes_spec.rb +0 -50
  294. data/spec/unit/resource/sidebars_spec.rb +0 -43
  295. data/spec/unit/resource_collection_spec.rb +0 -175
  296. data/spec/unit/resource_controller/data_access_spec.rb +0 -234
  297. data/spec/unit/resource_controller/decorators_spec.rb +0 -94
  298. data/spec/unit/resource_controller/sidebars_spec.rb +0 -37
  299. data/spec/unit/resource_controller_spec.rb +0 -273
  300. data/spec/unit/resource_registration_spec.rb +0 -61
  301. data/spec/unit/resource_spec.rb +0 -320
  302. data/spec/unit/routing_spec.rb +0 -211
  303. data/spec/unit/scope_spec.rb +0 -209
  304. data/spec/unit/settings_spec.rb +0 -117
  305. data/spec/unit/view_factory_spec.rb +0 -19
  306. data/spec/unit/view_helpers/breadcrumbs_spec.rb +0 -253
  307. data/spec/unit/view_helpers/display_helper_spec.rb +0 -203
  308. data/spec/unit/view_helpers/download_format_links_helper_spec.rb +0 -39
  309. data/spec/unit/view_helpers/fields_for_spec.rb +0 -50
  310. data/spec/unit/view_helpers/flash_helper_spec.rb +0 -24
  311. data/spec/unit/view_helpers/form_helper_spec.rb +0 -42
  312. data/spec/unit/view_helpers/method_or_proc_helper_spec.rb +0 -138
  313. data/spec/unit/views/components/attributes_table_spec.rb +0 -271
  314. data/spec/unit/views/components/batch_action_selector_spec.rb +0 -43
  315. data/spec/unit/views/components/blank_slate_spec.rb +0 -27
  316. data/spec/unit/views/components/columns_spec.rb +0 -187
  317. data/spec/unit/views/components/index_list_spec.rb +0 -49
  318. data/spec/unit/views/components/index_table_for_spec.rb +0 -127
  319. data/spec/unit/views/components/paginated_collection_spec.rb +0 -249
  320. data/spec/unit/views/components/panel_spec.rb +0 -58
  321. data/spec/unit/views/components/sidebar_section_spec.rb +0 -68
  322. data/spec/unit/views/components/site_title_spec.rb +0 -76
  323. data/spec/unit/views/components/status_tag_spec.rb +0 -265
  324. data/spec/unit/views/components/table_for_spec.rb +0 -436
  325. data/spec/unit/views/components/tabs_spec.rb +0 -67
  326. data/spec/unit/views/components/unsupported_browser_spec.rb +0 -41
  327. data/spec/unit/views/index_as_blog_spec.rb +0 -76
  328. data/spec/unit/views/pages/form_spec.rb +0 -54
  329. data/spec/unit/views/pages/index_spec.rb +0 -60
  330. data/spec/unit/views/pages/layout_spec.rb +0 -59
  331. data/spec/unit/views/pages/show_spec.rb +0 -32
  332. data/spec/unit/views/tabbed_navigation_spec.rb +0 -158
  333. data/tasks/parallel_tests.rake +0 -66
@@ -20,9 +20,8 @@ gemfile(true) do
20
20
 
21
21
  gem 'sass-rails'
22
22
  gem 'sqlite3', platform: :mri
23
- gem 'activerecord-jdbcsqlite3-adapter',
24
- git: 'https://github.com/jruby/activerecord-jdbc-adapter',
25
- platform: :jruby
23
+ gem 'activerecord-jdbcsqlite3-adapter', "~> 51.0", platform: :jruby
24
+ gem 'jruby-openssl', '~> 0.10.1', platforms: :jruby
26
25
  end
27
26
 
28
27
  require 'active_record'
@@ -0,0 +1,48 @@
1
+ module ActiveAdmin
2
+ class ApplicationGenerator
3
+ attr_reader :rails_env, :template
4
+
5
+ def initialize(opts = {})
6
+ @rails_env = opts[:rails_env] || 'test'
7
+ @template = opts[:template] || 'rails_template'
8
+ end
9
+
10
+ def generate
11
+ if File.exist? app_dir
12
+ puts "test app #{app_dir} already exists; skipping test app generation"
13
+ else
14
+ system "mkdir -p #{base_dir}"
15
+ args = %W(
16
+ -m spec/support/#{template}.rb
17
+ --skip-bootsnap
18
+ --skip-bundle
19
+ --skip-gemfile
20
+ --skip-listen
21
+ --skip-turbolinks
22
+ --skip-test-unit
23
+ )
24
+
25
+ command = ['bundle', 'exec', 'rails', 'new', app_dir, *args].join(' ')
26
+
27
+ env = { 'BUNDLE_GEMFILE' => ENV['BUNDLE_GEMFILE'], 'RAILS_ENV' => rails_env }
28
+
29
+ Bundler.with_original_env { Kernel.system(env, command) }
30
+ end
31
+
32
+ app_dir
33
+ end
34
+
35
+ private
36
+
37
+ def base_dir
38
+ @base_dir ||= rails_env == 'test' ? 'spec/rails' : '.test-rails-apps'
39
+ end
40
+
41
+ def app_dir
42
+ @app_dir ||= begin
43
+ require 'rails/version'
44
+ "#{base_dir}/rails-#{Rails::VERSION::STRING}"
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,8 @@
1
+ desc "Bundle all Gemfiles"
2
+ task :bundle do |_t, opts|
3
+ ["Gemfile", *Dir.glob("gemfiles/*.gemfile")].each do |gemfile|
4
+ Bundler.with_original_env do
5
+ system({ "BUNDLE_GEMFILE" => gemfile }, "bundle", *opts)
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,73 @@
1
+ require "open3"
2
+
3
+ #
4
+ # Common stuff for a linter
5
+ #
6
+ module LinterMixin
7
+ def run
8
+ offenses = []
9
+
10
+ applicable_files.each do |file|
11
+ if clean?(file)
12
+ print "."
13
+ else
14
+ offenses << file
15
+ print "F"
16
+ end
17
+ end
18
+
19
+ print "\n"
20
+
21
+ return if offenses.empty?
22
+
23
+ raise failure_message_for(offenses)
24
+ end
25
+
26
+ private
27
+
28
+ def applicable_files
29
+ Open3.capture2("git grep -Il ''")[0].split.reject { |file| file =~ %r{vendor/} }
30
+ end
31
+
32
+ def failure_message_for(offenses)
33
+ msg = "#{self.class.name} detected offenses. "
34
+
35
+ msg += if respond_to?(:fixing_cmd)
36
+ "Run `#{fixing_cmd(offenses)}` to fix them."
37
+ else
38
+ "Affected files: #{offenses.join(' ')}"
39
+ end
40
+
41
+ msg
42
+ end
43
+ end
44
+
45
+ #
46
+ # Checks trailing whitespace
47
+ #
48
+ class TrailingWhitespaceLinter
49
+ include LinterMixin
50
+
51
+ def clean?(file)
52
+ File.read(file, encoding: Encoding::UTF_8) !~ / +$/
53
+ end
54
+ end
55
+
56
+ #
57
+ # Checks trailing whitespace
58
+ #
59
+ class FixmeLinter
60
+ include LinterMixin
61
+
62
+ def clean?(file)
63
+ relative_path = Pathname.new(__FILE__).relative_path_from(Pathname.new(File.dirname(__dir__))).to_s
64
+
65
+ file == relative_path || File.read(file, encoding: Encoding::UTF_8) !~ /(BUG|FIXME)/
66
+ end
67
+ end
68
+
1
69
  desc "Lints ActiveAdmin code base"
2
- task lint: ["lint:rubocop", "lint:mdl"]
70
+ task lint: ["lint:rubocop", "lint:mdl", "lint:trailing_whitespace", "lint:fixme", "lint:rspec"]
3
71
 
4
72
  namespace :lint do
5
73
  require "rubocop/rake_task"
@@ -10,12 +78,33 @@ namespace :lint do
10
78
  task :mdl do
11
79
  puts "Running mdl..."
12
80
 
13
- targets = [
14
- *Dir.glob("docs/**/*.md"),
15
- "CONTRIBUTING.md",
16
- ".github/ISSUE_TEMPLATE.md"
17
- ]
81
+ abort unless system("mdl", "--git-recurse", ".")
82
+ end
83
+
84
+ desc "Check for unnecessary trailing whitespace across all repo files"
85
+ task :trailing_whitespace do
86
+ puts "Checking for unnecessary trailing whitespace..."
87
+
88
+ TrailingWhitespaceLinter.new.run
89
+ end
90
+
91
+ desc "Check for FIXME strings that should be fixed now, not later"
92
+ task :fixme do
93
+ puts "Checking for FIXME strings..."
94
+
95
+ FixmeLinter.new.run
96
+ end
97
+
98
+ desc "RSpec specs for linting project files"
99
+ task :rspec do
100
+ puts "Linting project files..."
18
101
 
19
- abort unless system("mdl", *targets)
102
+ abort unless system(
103
+ { "COVERAGE" => "true" },
104
+ "rspec",
105
+ "spec/gemfiles_spec.lint.rb",
106
+ "spec/changelog_spec.lint.rb",
107
+ "spec/i18n_spec.lint.rb"
108
+ )
20
109
  end
21
110
  end
@@ -1,10 +1,11 @@
1
- desc 'Runs a command agains the local sample application'
2
- task :local do
3
- Rake::Task['setup'].invoke(false,
4
- '.test-rails-apps',
5
- 'rails_template_with_data')
1
+ require_relative "application_generator"
6
2
 
7
- app_folder = ".test-rails-apps/rails-#{Rails::VERSION::STRING}"
3
+ desc 'Run a command against the local sample application'
4
+ task :local do
5
+ app_folder = ActiveAdmin::ApplicationGenerator.new(
6
+ rails_env: 'development',
7
+ template: 'rails_template_with_data'
8
+ ).generate
8
9
 
9
10
  # Discard the "local" argument (name of the task)
10
11
  argv = ARGV[1..-1]
@@ -17,9 +18,10 @@ task :local do
17
18
  end
18
19
 
19
20
  command = ['bundle', 'exec', *argv].join(' ')
20
- env = { 'BUNDLE_GEMFILE' => ENV['BUNDLE_GEMFILE'] }
21
+ gemfile = ENV['BUNDLE_GEMFILE'] || File.expand_path("../Gemfile", __dir__)
22
+ env = { 'BUNDLE_GEMFILE' => gemfile }
21
23
 
22
24
  Dir.chdir(app_folder) do
23
- Bundler.with_clean_env { Kernel.exec(env, command) }
25
+ Bundler.with_original_env { Kernel.exec(env, command) }
24
26
  end
25
27
  end
@@ -1,29 +1,43 @@
1
- desc "Run the full suite using 1 core"
2
- task test: [:spec, :cucumber]
1
+ require 'parallel'
2
+ require_relative "application_generator"
3
3
 
4
- require 'rspec/core/rake_task'
4
+ desc "Run the full suite using parallel_tests to run on multiple cores"
5
+ task test: [:setup, :spec, :cucumber]
5
6
 
6
- RSpec::Core::RakeTask.new(:spec)
7
+ desc "Create a test rails app for the parallel specs to run against"
8
+ task :setup, [:rails_env, :template] do |_t, opts|
9
+ ActiveAdmin::ApplicationGenerator.new(opts).generate
10
+ end
11
+
12
+ desc "Run the specs in parallel"
13
+ task :spec do
14
+ system("parallel_rspec --serialize-stdout --verbose spec/")
15
+ end
7
16
 
8
- require 'cucumber/rake/task'
17
+ namespace :spec do
18
+
19
+ %i(unit request).each do |type|
20
+ desc "Run the #{type} specs in parallel"
21
+ task type do
22
+ system("parallel_rspec --serialize-stdout --verbose spec/#{type}")
23
+ end
24
+ end
9
25
 
26
+ end
27
+
28
+ desc "Run the cucumber scenarios in parallel"
10
29
  task cucumber: [:"cucumber:regular", :"cucumber:reloading"]
11
30
 
12
31
  namespace :cucumber do
13
32
 
14
- Cucumber::Rake::Task.new(:regular, "Run the standard cucumber scenarios") do |t|
15
- t.profile = 'default'
16
- t.bundler = false
17
- end
18
-
19
- Cucumber::Rake::Task.new(:wip, "Run the cucumber scenarios with the @wip tag") do |t|
20
- t.profile = 'wip'
21
- t.bundler = false
33
+ desc "Run the standard cucumber scenarios in parallel"
34
+ task :regular do
35
+ system("parallel_cucumber --serialize-stdout --verbose features/")
22
36
  end
23
37
 
24
- Cucumber::Rake::Task.new(:reloading, "Run the cucumber scenarios that test reloading") do |t|
25
- t.profile = 'class-reloading'
26
- t.bundler = false
38
+ desc "Run the cucumber scenarios that test reloading"
39
+ task :reloading do
40
+ system("cucumber --profile class-reloading")
27
41
  end
28
42
 
29
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2018-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arbre
@@ -177,17 +177,21 @@ executables: []
177
177
  extensions: []
178
178
  extra_rdoc_files: []
179
179
  files:
180
+ - ".circleci/config.yml"
180
181
  - ".github/ISSUE_TEMPLATE.md"
181
182
  - ".gitignore"
182
183
  - ".mdlrc"
184
+ - ".rspec"
185
+ - ".rspec_parallel"
183
186
  - ".rubocop.yml"
184
187
  - ".simplecov"
185
- - ".travis.yml"
186
188
  - ".yardopts"
187
189
  - CHANGELOG.md
188
190
  - CODE_OF_CONDUCT.md
189
191
  - CONTRIBUTING.md
190
192
  - Gemfile
193
+ - Gemfile.common
194
+ - Gemfile.lock
191
195
  - LICENSE
192
196
  - README.md
193
197
  - Rakefile
@@ -273,6 +277,7 @@ files:
273
277
  - app/views/kaminari/active_admin/_prev_page.html.erb
274
278
  - app/views/layouts/active_admin.html.arb
275
279
  - app/views/layouts/active_admin_logged_out.html.erb
280
+ - bin/install_chromedriver.sh
276
281
  - codecov.yml
277
282
  - config/i18n-tasks.yml
278
283
  - config/locales/ar.yml
@@ -318,6 +323,7 @@ files:
318
323
  - config/locales/zh-TW.yml
319
324
  - config/mdl_style.rb
320
325
  - cucumber.yml
326
+ - docs/.gitignore
321
327
  - docs/0-installation.md
322
328
  - docs/1-general-configuration.md
323
329
  - docs/10-custom-pages.md
@@ -340,6 +346,7 @@ files:
340
346
  - docs/9-batch-actions.md
341
347
  - docs/CNAME
342
348
  - docs/Gemfile
349
+ - docs/Gemfile.lock
343
350
  - docs/README.md
344
351
  - docs/_config.yml
345
352
  - docs/_includes/footer.html
@@ -353,106 +360,19 @@ files:
353
360
  - docs/images/code-header.png
354
361
  - docs/images/divider.png
355
362
  - docs/images/features.png
363
+ - docs/images/tidelift.svg
356
364
  - docs/index.html
357
365
  - docs/stylesheets/main.css
358
- - features/action_item.feature
359
- - features/authorization.feature
360
- - features/authorization_cancan.feature
361
- - features/authorization_pundit.feature
362
- - features/belongs_to.feature
363
- - features/breadcrumb.feature
364
- - features/comments/commenting.feature
365
- - features/comments/viewing_index.feature
366
- - features/create_another.feature
367
- - features/dashboard.feature
368
- - features/decorators.feature
369
- - features/development_reloading.feature
370
- - features/edit_page.feature
371
- - features/favicon.feature
372
- - features/first_boot.feature
373
- - features/footer.feature
374
- - features/global_navigation.feature
375
- - features/i18n.feature
376
- - features/index/batch_actions.feature
377
- - features/index/filters.feature
378
- - features/index/format_as_csv.feature
379
- - features/index/formats.feature
380
- - features/index/index_as_block.feature
381
- - features/index/index_as_blog.feature
382
- - features/index/index_as_grid.feature
383
- - features/index/index_as_table.feature
384
- - features/index/index_blank_slate.feature
385
- - features/index/index_parameters.feature
386
- - features/index/index_scope_to.feature
387
- - features/index/index_scopes.feature
388
- - features/index/page_title.feature
389
- - features/index/pagination.feature
390
- - features/index/switch_index_view.feature
391
- - features/menu.feature
392
- - features/meta_tags.feature
393
- - features/new_page.feature
394
- - features/registering_assets.feature
395
- - features/registering_pages.feature
396
- - features/registering_resources.feature
397
- - features/renamed_resource.feature
398
- - features/root_to.feature
399
- - features/show/attributes_table_title.feature
400
- - features/show/columns.feature
401
- - features/show/default_content.feature
402
- - features/show/page_title.feature
403
- - features/show/tabs.feature
404
- - features/sidebar_sections.feature
405
- - features/site_title.feature
406
- - features/specifying_actions.feature
407
- - features/step_definitions/action_item_steps.rb
408
- - features/step_definitions/action_link_steps.rb
409
- - features/step_definitions/additional_web_steps.rb
410
- - features/step_definitions/asset_steps.rb
411
- - features/step_definitions/attribute_steps.rb
412
- - features/step_definitions/attributes_table_title_steps.rb
413
- - features/step_definitions/batch_action_steps.rb
414
- - features/step_definitions/blog_steps.rb
415
- - features/step_definitions/breadcrumb_steps.rb
416
- - features/step_definitions/column_steps.rb
417
- - features/step_definitions/comment_steps.rb
418
- - features/step_definitions/configuration_steps.rb
419
- - features/step_definitions/dashboard_steps.rb
420
- - features/step_definitions/factory_steps.rb
421
- - features/step_definitions/filter_steps.rb
422
- - features/step_definitions/flash_steps.rb
423
- - features/step_definitions/footer_steps.rb
424
- - features/step_definitions/format_steps.rb
425
- - features/step_definitions/i18n_steps.rb
426
- - features/step_definitions/index_scope_steps.rb
427
- - features/step_definitions/index_views_steps.rb
428
- - features/step_definitions/layout_steps.rb
429
- - features/step_definitions/member_link_steps.rb
430
- - features/step_definitions/menu_steps.rb
431
- - features/step_definitions/meta_tag_steps.rb
432
- - features/step_definitions/pagination_steps.rb
433
- - features/step_definitions/sidebar_steps.rb
434
- - features/step_definitions/site_title_steps.rb
435
- - features/step_definitions/tab_steps.rb
436
- - features/step_definitions/table_steps.rb
437
- - features/step_definitions/user_steps.rb
438
- - features/step_definitions/web_steps.rb
439
- - features/sti_resource.feature
440
- - features/strong_parameters.feature
441
- - features/support/env.rb
442
- - features/support/paths.rb
443
- - features/support/regular_env.rb
444
- - features/support/reload_env.rb
445
- - features/support/selectors.rb
446
- - features/users/logging_in.feature
447
- - features/users/logging_out.feature
448
- - features/users/resetting_password.feature
449
366
  - gemfiles/rails_42.gemfile
367
+ - gemfiles/rails_42.gemfile.lock
450
368
  - gemfiles/rails_50.gemfile
369
+ - gemfiles/rails_50.gemfile.lock
451
370
  - gemfiles/rails_51.gemfile
452
- - gemfiles/rails_52.gemfile
371
+ - gemfiles/rails_51.gemfile.lock
453
372
  - lib/active_admin.rb
454
373
  - lib/active_admin/abstract_view_factory.rb
455
374
  - lib/active_admin/application.rb
375
+ - lib/active_admin/application_settings.rb
456
376
  - lib/active_admin/asset_registration.rb
457
377
  - lib/active_admin/authorization_adapter.rb
458
378
  - lib/active_admin/base_controller.rb
@@ -473,6 +393,8 @@ files:
473
393
  - lib/active_admin/deprecation.rb
474
394
  - lib/active_admin/devise.rb
475
395
  - lib/active_admin/dsl.rb
396
+ - lib/active_admin/dynamic_setting.rb
397
+ - lib/active_admin/dynamic_settings_node.rb
476
398
  - lib/active_admin/engine.rb
477
399
  - lib/active_admin/error.rb
478
400
  - lib/active_admin/event.rb
@@ -492,7 +414,6 @@ files:
492
414
  - lib/active_admin/helpers/output_safety_helper.rb
493
415
  - lib/active_admin/helpers/routes/url_helpers.rb
494
416
  - lib/active_admin/helpers/scope_chain.rb
495
- - lib/active_admin/helpers/settings.rb
496
417
  - lib/active_admin/inputs.rb
497
418
  - lib/active_admin/inputs/datepicker_input.rb
498
419
  - lib/active_admin/inputs/filters/base.rb
@@ -511,6 +432,7 @@ files:
511
432
  - lib/active_admin/menu_collection.rb
512
433
  - lib/active_admin/menu_item.rb
513
434
  - lib/active_admin/namespace.rb
435
+ - lib/active_admin/namespace_settings.rb
514
436
  - lib/active_admin/order_clause.rb
515
437
  - lib/active_admin/orm/active_record.rb
516
438
  - lib/active_admin/orm/active_record/comments.rb
@@ -555,6 +477,7 @@ files:
555
477
  - lib/active_admin/resource_dsl.rb
556
478
  - lib/active_admin/router.rb
557
479
  - lib/active_admin/scope.rb
480
+ - lib/active_admin/settings_node.rb
558
481
  - lib/active_admin/sidebar_section.rb
559
482
  - lib/active_admin/version.rb
560
483
  - lib/active_admin/view_factory.rb
@@ -580,9 +503,12 @@ files:
580
503
  - lib/active_admin/views/components/columns.rb
581
504
  - lib/active_admin/views/components/dropdown_menu.rb
582
505
  - lib/active_admin/views/components/index_list.rb
506
+ - lib/active_admin/views/components/menu.rb
507
+ - lib/active_admin/views/components/menu_item.rb
583
508
  - lib/active_admin/views/components/paginated_collection.rb
584
509
  - lib/active_admin/views/components/panel.rb
585
510
  - lib/active_admin/views/components/scopes.rb
511
+ - lib/active_admin/views/components/sidebar.rb
586
512
  - lib/active_admin/views/components/sidebar_section.rb
587
513
  - lib/active_admin/views/components/site_title.rb
588
514
  - lib/active_admin/views/components/status_tag.rb
@@ -620,135 +546,11 @@ files:
620
546
  - lib/generators/active_admin/resource/resource_generator.rb
621
547
  - lib/generators/active_admin/resource/templates/admin.rb.erb
622
548
  - lib/ransack_ext.rb
623
- - spec/bug_report_templates_spec.rb
624
- - spec/javascripts/coffeescripts/jquery.aa.checkbox-toggler-spec.js.coffee
625
- - spec/javascripts/coffeescripts/jquery.aa.flash.js.coffee
626
- - spec/javascripts/coffeescripts/jquery.aa.table-checkbox-toggler-spec.js.coffee
627
- - spec/javascripts/fixtures/checkboxes.html
628
- - spec/javascripts/fixtures/flashes.html
629
- - spec/javascripts/fixtures/table_checkboxes.html
630
- - spec/javascripts/helpers/SpecHelper.js
631
- - spec/javascripts/support/jasmine.yml
632
- - spec/javascripts/support/jasmine_runner.rb
633
- - spec/rails_helper.rb
634
- - spec/requests/default_namespace_spec.rb
635
- - spec/requests/memory_spec.rb
636
- - spec/requests/stylesheets_spec.rb
637
- - spec/spec_helper.rb
638
- - spec/support/active_admin_integration_spec_helper.rb
639
- - spec/support/active_admin_request_helpers.rb
640
- - spec/support/rails_template.rb
641
- - spec/support/rails_template_with_data.rb
642
- - spec/support/templates/admin/stores.rb
643
- - spec/support/templates/en.yml
644
- - spec/support/templates/manifest.js
645
- - spec/support/templates/policies/active_admin/comment_policy.rb
646
- - spec/support/templates/policies/active_admin/page_policy.rb
647
- - spec/support/templates/policies/admin_user_policy.rb
648
- - spec/support/templates/policies/application_policy.rb
649
- - spec/support/templates/policies/category_policy.rb
650
- - spec/support/templates/policies/post_policy.rb
651
- - spec/support/templates/policies/store_policy.rb
652
- - spec/support/templates/policies/user_policy.rb
653
- - spec/support/templates/post_decorator.rb
654
- - spec/unit/abstract_view_factory_spec.rb
655
- - spec/unit/action_builder_spec.rb
656
- - spec/unit/active_admin_spec.rb
657
- - spec/unit/application_spec.rb
658
- - spec/unit/asset_registration_spec.rb
659
- - spec/unit/authorization/authorization_adapter_spec.rb
660
- - spec/unit/authorization/controller_authorization_spec.rb
661
- - spec/unit/authorization/index_overriding_spec.rb
662
- - spec/unit/auto_link_spec.rb
663
- - spec/unit/batch_actions/resource_spec.rb
664
- - spec/unit/batch_actions/settings_spec.rb
665
- - spec/unit/belongs_to_spec.rb
666
- - spec/unit/cancan_adapter_spec.rb
667
- - spec/unit/comments_spec.rb
668
- - spec/unit/component_spec.rb
669
- - spec/unit/config_shared_examples.rb
670
- - spec/unit/controller_filters_spec.rb
671
- - spec/unit/csv_builder_spec.rb
672
- - spec/unit/dependency_spec.rb
673
- - spec/unit/devise_spec.rb
674
- - spec/unit/dsl_spec.rb
675
- - spec/unit/filters/active_filter_spec.rb
676
- - spec/unit/filters/active_spec.rb
677
- - spec/unit/filters/filter_form_builder_spec.rb
678
- - spec/unit/filters/resource_spec.rb
679
- - spec/unit/form_builder_spec.rb
680
- - spec/unit/generators/install_spec.rb
681
- - spec/unit/helpers/collection_spec.rb
682
- - spec/unit/helpers/output_safety_helper_spec.rb
683
- - spec/unit/helpers/scope_chain_spec.rb
684
- - spec/unit/helpers/settings_spec.rb
685
- - spec/unit/i18n_spec.rb
686
- - spec/unit/localizers/resource_localizer_spec.rb
687
- - spec/unit/menu_collection_spec.rb
688
- - spec/unit/menu_item_spec.rb
689
- - spec/unit/menu_spec.rb
690
- - spec/unit/namespace/authorization_spec.rb
691
- - spec/unit/namespace/register_page_spec.rb
692
- - spec/unit/namespace/register_resource_spec.rb
693
- - spec/unit/namespace_spec.rb
694
- - spec/unit/order_clause_spec.rb
695
- - spec/unit/page_controller_spec.rb
696
- - spec/unit/page_spec.rb
697
- - spec/unit/pretty_format_spec.rb
698
- - spec/unit/pundit_adapter_spec.rb
699
- - spec/unit/resource/action_items_spec.rb
700
- - spec/unit/resource/attributes_spec.rb
701
- - spec/unit/resource/includes_spec.rb
702
- - spec/unit/resource/menu_spec.rb
703
- - spec/unit/resource/naming_spec.rb
704
- - spec/unit/resource/ordering_spec.rb
705
- - spec/unit/resource/page_presenters_spec.rb
706
- - spec/unit/resource/pagination_spec.rb
707
- - spec/unit/resource/routes_spec.rb
708
- - spec/unit/resource/scopes_spec.rb
709
- - spec/unit/resource/sidebars_spec.rb
710
- - spec/unit/resource_collection_spec.rb
711
- - spec/unit/resource_controller/data_access_spec.rb
712
- - spec/unit/resource_controller/decorators_spec.rb
713
- - spec/unit/resource_controller/sidebars_spec.rb
714
- - spec/unit/resource_controller_spec.rb
715
- - spec/unit/resource_registration_spec.rb
716
- - spec/unit/resource_spec.rb
717
- - spec/unit/routing_spec.rb
718
- - spec/unit/scope_spec.rb
719
- - spec/unit/settings_spec.rb
720
- - spec/unit/view_factory_spec.rb
721
- - spec/unit/view_helpers/breadcrumbs_spec.rb
722
- - spec/unit/view_helpers/display_helper_spec.rb
723
- - spec/unit/view_helpers/download_format_links_helper_spec.rb
724
- - spec/unit/view_helpers/fields_for_spec.rb
725
- - spec/unit/view_helpers/flash_helper_spec.rb
726
- - spec/unit/view_helpers/form_helper_spec.rb
727
- - spec/unit/view_helpers/method_or_proc_helper_spec.rb
728
- - spec/unit/views/components/attributes_table_spec.rb
729
- - spec/unit/views/components/batch_action_selector_spec.rb
730
- - spec/unit/views/components/blank_slate_spec.rb
731
- - spec/unit/views/components/columns_spec.rb
732
- - spec/unit/views/components/index_list_spec.rb
733
- - spec/unit/views/components/index_table_for_spec.rb
734
- - spec/unit/views/components/paginated_collection_spec.rb
735
- - spec/unit/views/components/panel_spec.rb
736
- - spec/unit/views/components/sidebar_section_spec.rb
737
- - spec/unit/views/components/site_title_spec.rb
738
- - spec/unit/views/components/status_tag_spec.rb
739
- - spec/unit/views/components/table_for_spec.rb
740
- - spec/unit/views/components/tabs_spec.rb
741
- - spec/unit/views/components/unsupported_browser_spec.rb
742
- - spec/unit/views/index_as_blog_spec.rb
743
- - spec/unit/views/pages/form_spec.rb
744
- - spec/unit/views/pages/index_spec.rb
745
- - spec/unit/views/pages/layout_spec.rb
746
- - spec/unit/views/pages/show_spec.rb
747
- - spec/unit/views/tabbed_navigation_spec.rb
549
+ - tasks/application_generator.rb
748
550
  - tasks/docs.rake
551
+ - tasks/gemfiles.rake
749
552
  - tasks/lint.rake
750
553
  - tasks/local.rake
751
- - tasks/parallel_tests.rake
752
554
  - tasks/test.rake
753
555
  - vendor/assets/javascripts/jquery-ui/data.js
754
556
  - vendor/assets/javascripts/jquery-ui/disable-selection.js
@@ -796,224 +598,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
796
598
  version: '0'
797
599
  requirements: []
798
600
  rubyforge_project:
799
- rubygems_version: 2.7.6
601
+ rubygems_version: 2.7.8
800
602
  signing_key:
801
603
  specification_version: 4
802
604
  summary: The administration framework for Ruby on Rails.
803
- test_files:
804
- - features/action_item.feature
805
- - features/authorization.feature
806
- - features/authorization_cancan.feature
807
- - features/authorization_pundit.feature
808
- - features/belongs_to.feature
809
- - features/breadcrumb.feature
810
- - features/comments/commenting.feature
811
- - features/comments/viewing_index.feature
812
- - features/create_another.feature
813
- - features/dashboard.feature
814
- - features/decorators.feature
815
- - features/development_reloading.feature
816
- - features/edit_page.feature
817
- - features/favicon.feature
818
- - features/first_boot.feature
819
- - features/footer.feature
820
- - features/global_navigation.feature
821
- - features/i18n.feature
822
- - features/index/batch_actions.feature
823
- - features/index/filters.feature
824
- - features/index/format_as_csv.feature
825
- - features/index/formats.feature
826
- - features/index/index_as_block.feature
827
- - features/index/index_as_blog.feature
828
- - features/index/index_as_grid.feature
829
- - features/index/index_as_table.feature
830
- - features/index/index_blank_slate.feature
831
- - features/index/index_parameters.feature
832
- - features/index/index_scope_to.feature
833
- - features/index/index_scopes.feature
834
- - features/index/page_title.feature
835
- - features/index/pagination.feature
836
- - features/index/switch_index_view.feature
837
- - features/menu.feature
838
- - features/meta_tags.feature
839
- - features/new_page.feature
840
- - features/registering_assets.feature
841
- - features/registering_pages.feature
842
- - features/registering_resources.feature
843
- - features/renamed_resource.feature
844
- - features/root_to.feature
845
- - features/show/attributes_table_title.feature
846
- - features/show/columns.feature
847
- - features/show/default_content.feature
848
- - features/show/page_title.feature
849
- - features/show/tabs.feature
850
- - features/sidebar_sections.feature
851
- - features/site_title.feature
852
- - features/specifying_actions.feature
853
- - features/step_definitions/action_item_steps.rb
854
- - features/step_definitions/action_link_steps.rb
855
- - features/step_definitions/additional_web_steps.rb
856
- - features/step_definitions/asset_steps.rb
857
- - features/step_definitions/attribute_steps.rb
858
- - features/step_definitions/attributes_table_title_steps.rb
859
- - features/step_definitions/batch_action_steps.rb
860
- - features/step_definitions/blog_steps.rb
861
- - features/step_definitions/breadcrumb_steps.rb
862
- - features/step_definitions/column_steps.rb
863
- - features/step_definitions/comment_steps.rb
864
- - features/step_definitions/configuration_steps.rb
865
- - features/step_definitions/dashboard_steps.rb
866
- - features/step_definitions/factory_steps.rb
867
- - features/step_definitions/filter_steps.rb
868
- - features/step_definitions/flash_steps.rb
869
- - features/step_definitions/footer_steps.rb
870
- - features/step_definitions/format_steps.rb
871
- - features/step_definitions/i18n_steps.rb
872
- - features/step_definitions/index_scope_steps.rb
873
- - features/step_definitions/index_views_steps.rb
874
- - features/step_definitions/layout_steps.rb
875
- - features/step_definitions/member_link_steps.rb
876
- - features/step_definitions/menu_steps.rb
877
- - features/step_definitions/meta_tag_steps.rb
878
- - features/step_definitions/pagination_steps.rb
879
- - features/step_definitions/sidebar_steps.rb
880
- - features/step_definitions/site_title_steps.rb
881
- - features/step_definitions/tab_steps.rb
882
- - features/step_definitions/table_steps.rb
883
- - features/step_definitions/user_steps.rb
884
- - features/step_definitions/web_steps.rb
885
- - features/sti_resource.feature
886
- - features/strong_parameters.feature
887
- - features/support/env.rb
888
- - features/support/paths.rb
889
- - features/support/regular_env.rb
890
- - features/support/reload_env.rb
891
- - features/support/selectors.rb
892
- - features/users/logging_in.feature
893
- - features/users/logging_out.feature
894
- - features/users/resetting_password.feature
895
- - spec/bug_report_templates_spec.rb
896
- - spec/javascripts/coffeescripts/jquery.aa.checkbox-toggler-spec.js.coffee
897
- - spec/javascripts/coffeescripts/jquery.aa.flash.js.coffee
898
- - spec/javascripts/coffeescripts/jquery.aa.table-checkbox-toggler-spec.js.coffee
899
- - spec/javascripts/fixtures/checkboxes.html
900
- - spec/javascripts/fixtures/flashes.html
901
- - spec/javascripts/fixtures/table_checkboxes.html
902
- - spec/javascripts/helpers/SpecHelper.js
903
- - spec/javascripts/support/jasmine.yml
904
- - spec/javascripts/support/jasmine_runner.rb
905
- - spec/rails_helper.rb
906
- - spec/requests/default_namespace_spec.rb
907
- - spec/requests/memory_spec.rb
908
- - spec/requests/stylesheets_spec.rb
909
- - spec/spec_helper.rb
910
- - spec/support/active_admin_integration_spec_helper.rb
911
- - spec/support/active_admin_request_helpers.rb
912
- - spec/support/rails_template.rb
913
- - spec/support/rails_template_with_data.rb
914
- - spec/support/templates/admin/stores.rb
915
- - spec/support/templates/en.yml
916
- - spec/support/templates/manifest.js
917
- - spec/support/templates/policies/active_admin/comment_policy.rb
918
- - spec/support/templates/policies/active_admin/page_policy.rb
919
- - spec/support/templates/policies/admin_user_policy.rb
920
- - spec/support/templates/policies/application_policy.rb
921
- - spec/support/templates/policies/category_policy.rb
922
- - spec/support/templates/policies/post_policy.rb
923
- - spec/support/templates/policies/store_policy.rb
924
- - spec/support/templates/policies/user_policy.rb
925
- - spec/support/templates/post_decorator.rb
926
- - spec/unit/abstract_view_factory_spec.rb
927
- - spec/unit/action_builder_spec.rb
928
- - spec/unit/active_admin_spec.rb
929
- - spec/unit/application_spec.rb
930
- - spec/unit/asset_registration_spec.rb
931
- - spec/unit/authorization/authorization_adapter_spec.rb
932
- - spec/unit/authorization/controller_authorization_spec.rb
933
- - spec/unit/authorization/index_overriding_spec.rb
934
- - spec/unit/auto_link_spec.rb
935
- - spec/unit/batch_actions/resource_spec.rb
936
- - spec/unit/batch_actions/settings_spec.rb
937
- - spec/unit/belongs_to_spec.rb
938
- - spec/unit/cancan_adapter_spec.rb
939
- - spec/unit/comments_spec.rb
940
- - spec/unit/component_spec.rb
941
- - spec/unit/config_shared_examples.rb
942
- - spec/unit/controller_filters_spec.rb
943
- - spec/unit/csv_builder_spec.rb
944
- - spec/unit/dependency_spec.rb
945
- - spec/unit/devise_spec.rb
946
- - spec/unit/dsl_spec.rb
947
- - spec/unit/filters/active_filter_spec.rb
948
- - spec/unit/filters/active_spec.rb
949
- - spec/unit/filters/filter_form_builder_spec.rb
950
- - spec/unit/filters/resource_spec.rb
951
- - spec/unit/form_builder_spec.rb
952
- - spec/unit/generators/install_spec.rb
953
- - spec/unit/helpers/collection_spec.rb
954
- - spec/unit/helpers/output_safety_helper_spec.rb
955
- - spec/unit/helpers/scope_chain_spec.rb
956
- - spec/unit/helpers/settings_spec.rb
957
- - spec/unit/i18n_spec.rb
958
- - spec/unit/localizers/resource_localizer_spec.rb
959
- - spec/unit/menu_collection_spec.rb
960
- - spec/unit/menu_item_spec.rb
961
- - spec/unit/menu_spec.rb
962
- - spec/unit/namespace/authorization_spec.rb
963
- - spec/unit/namespace/register_page_spec.rb
964
- - spec/unit/namespace/register_resource_spec.rb
965
- - spec/unit/namespace_spec.rb
966
- - spec/unit/order_clause_spec.rb
967
- - spec/unit/page_controller_spec.rb
968
- - spec/unit/page_spec.rb
969
- - spec/unit/pretty_format_spec.rb
970
- - spec/unit/pundit_adapter_spec.rb
971
- - spec/unit/resource/action_items_spec.rb
972
- - spec/unit/resource/attributes_spec.rb
973
- - spec/unit/resource/includes_spec.rb
974
- - spec/unit/resource/menu_spec.rb
975
- - spec/unit/resource/naming_spec.rb
976
- - spec/unit/resource/ordering_spec.rb
977
- - spec/unit/resource/page_presenters_spec.rb
978
- - spec/unit/resource/pagination_spec.rb
979
- - spec/unit/resource/routes_spec.rb
980
- - spec/unit/resource/scopes_spec.rb
981
- - spec/unit/resource/sidebars_spec.rb
982
- - spec/unit/resource_collection_spec.rb
983
- - spec/unit/resource_controller/data_access_spec.rb
984
- - spec/unit/resource_controller/decorators_spec.rb
985
- - spec/unit/resource_controller/sidebars_spec.rb
986
- - spec/unit/resource_controller_spec.rb
987
- - spec/unit/resource_registration_spec.rb
988
- - spec/unit/resource_spec.rb
989
- - spec/unit/routing_spec.rb
990
- - spec/unit/scope_spec.rb
991
- - spec/unit/settings_spec.rb
992
- - spec/unit/view_factory_spec.rb
993
- - spec/unit/view_helpers/breadcrumbs_spec.rb
994
- - spec/unit/view_helpers/display_helper_spec.rb
995
- - spec/unit/view_helpers/download_format_links_helper_spec.rb
996
- - spec/unit/view_helpers/fields_for_spec.rb
997
- - spec/unit/view_helpers/flash_helper_spec.rb
998
- - spec/unit/view_helpers/form_helper_spec.rb
999
- - spec/unit/view_helpers/method_or_proc_helper_spec.rb
1000
- - spec/unit/views/components/attributes_table_spec.rb
1001
- - spec/unit/views/components/batch_action_selector_spec.rb
1002
- - spec/unit/views/components/blank_slate_spec.rb
1003
- - spec/unit/views/components/columns_spec.rb
1004
- - spec/unit/views/components/index_list_spec.rb
1005
- - spec/unit/views/components/index_table_for_spec.rb
1006
- - spec/unit/views/components/paginated_collection_spec.rb
1007
- - spec/unit/views/components/panel_spec.rb
1008
- - spec/unit/views/components/sidebar_section_spec.rb
1009
- - spec/unit/views/components/site_title_spec.rb
1010
- - spec/unit/views/components/status_tag_spec.rb
1011
- - spec/unit/views/components/table_for_spec.rb
1012
- - spec/unit/views/components/tabs_spec.rb
1013
- - spec/unit/views/components/unsupported_browser_spec.rb
1014
- - spec/unit/views/index_as_blog_spec.rb
1015
- - spec/unit/views/pages/form_spec.rb
1016
- - spec/unit/views/pages/index_spec.rb
1017
- - spec/unit/views/pages/layout_spec.rb
1018
- - spec/unit/views/pages/show_spec.rb
1019
- - spec/unit/views/tabbed_navigation_spec.rb
605
+ test_files: []