activeadmin 2.8.1 → 2.10.1

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 (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +118 -1
  3. data/CONTRIBUTING.md +6 -6
  4. data/README.md +3 -3
  5. data/app/assets/javascripts/active_admin/base.js +12 -5
  6. data/app/assets/stylesheets/active_admin/_base.scss +53 -37
  7. data/app/assets/stylesheets/active_admin/_forms.scss +3 -4
  8. data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
  9. data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
  10. data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
  11. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
  12. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
  13. data/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +1 -1
  14. data/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +2 -2
  15. data/app/views/active_admin/devise/shared/_links.erb +1 -1
  16. data/app/views/active_admin/page/index.html.arb +1 -0
  17. data/app/views/active_admin/resource/edit.html.arb +1 -0
  18. data/app/views/active_admin/resource/index.html.arb +1 -0
  19. data/app/views/active_admin/resource/new.html.arb +1 -0
  20. data/app/views/active_admin/resource/show.html.arb +1 -0
  21. data/app/views/layouts/active_admin.html.arb +1 -0
  22. data/config/locales/ko.yml +1 -1
  23. data/config/locales/nl.yml +1 -1
  24. data/config/locales/ro.yml +3 -2
  25. data/docs/0-installation.md +1 -1
  26. data/docs/5-forms.md +6 -1
  27. data/docs/6-show-pages.md +12 -0
  28. data/docs/8-custom-actions.md +1 -1
  29. data/docs/Gemfile +1 -0
  30. data/docs/Gemfile.lock +114 -90
  31. data/lib/active_admin/abstract_view_factory.rb +1 -0
  32. data/lib/active_admin/application.rb +9 -9
  33. data/lib/active_admin/application_settings.rb +1 -0
  34. data/lib/active_admin/asset_registration.rb +1 -0
  35. data/lib/active_admin/authorization_adapter.rb +1 -0
  36. data/lib/active_admin/base_controller/authorization.rb +1 -0
  37. data/lib/active_admin/base_controller/menu.rb +1 -0
  38. data/lib/active_admin/base_controller.rb +2 -1
  39. data/lib/active_admin/batch_actions/controller.rb +1 -0
  40. data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
  41. data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
  42. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
  43. data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
  44. data/lib/active_admin/batch_actions.rb +1 -0
  45. data/lib/active_admin/callbacks.rb +1 -0
  46. data/lib/active_admin/cancan_adapter.rb +1 -0
  47. data/lib/active_admin/collection_decorator.rb +1 -0
  48. data/lib/active_admin/component.rb +1 -0
  49. data/lib/active_admin/controller_action.rb +1 -0
  50. data/lib/active_admin/csv_builder.rb +1 -0
  51. data/lib/active_admin/dependency.rb +2 -1
  52. data/lib/active_admin/deprecation.rb +1 -0
  53. data/lib/active_admin/devise.rb +11 -0
  54. data/lib/active_admin/dsl.rb +1 -0
  55. data/lib/active_admin/dynamic_setting.rb +1 -0
  56. data/lib/active_admin/dynamic_settings_node.rb +1 -0
  57. data/lib/active_admin/engine.rb +8 -5
  58. data/lib/active_admin/error.rb +1 -2
  59. data/lib/active_admin/filters/active.rb +1 -0
  60. data/lib/active_admin/filters/active_filter.rb +1 -2
  61. data/lib/active_admin/filters/active_sidebar.rb +2 -28
  62. data/lib/active_admin/filters/dsl.rb +1 -0
  63. data/lib/active_admin/filters/forms.rb +1 -0
  64. data/lib/active_admin/filters/formtastic_addons.rb +1 -0
  65. data/lib/active_admin/filters/resource_extension.rb +1 -0
  66. data/lib/active_admin/filters.rb +1 -0
  67. data/lib/active_admin/form_builder.rb +5 -2
  68. data/lib/active_admin/generators/boilerplate.rb +1 -0
  69. data/lib/active_admin/helpers/collection.rb +2 -0
  70. data/lib/active_admin/helpers/i18n.rb +1 -0
  71. data/lib/active_admin/helpers/optional_display.rb +1 -0
  72. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
  73. data/lib/active_admin/helpers/scope_chain.rb +1 -0
  74. data/lib/active_admin/inputs/datepicker_input.rb +1 -0
  75. data/lib/active_admin/inputs/filters/base/search_method_select.rb +1 -0
  76. data/lib/active_admin/inputs/filters/base.rb +1 -0
  77. data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
  78. data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
  79. data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
  80. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
  81. data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
  82. data/lib/active_admin/inputs/filters/select_input.rb +1 -0
  83. data/lib/active_admin/inputs/filters/string_input.rb +1 -0
  84. data/lib/active_admin/inputs/filters/text_input.rb +1 -0
  85. data/lib/active_admin/inputs.rb +1 -0
  86. data/lib/active_admin/localizers/resource_localizer.rb +1 -0
  87. data/lib/active_admin/localizers.rb +1 -0
  88. data/lib/active_admin/menu.rb +1 -0
  89. data/lib/active_admin/menu_collection.rb +1 -0
  90. data/lib/active_admin/menu_item.rb +1 -0
  91. data/lib/active_admin/namespace.rb +2 -1
  92. data/lib/active_admin/namespace_settings.rb +1 -0
  93. data/lib/active_admin/order_clause.rb +1 -0
  94. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -0
  95. data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
  96. data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
  97. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
  98. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -0
  99. data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
  100. data/lib/active_admin/orm/active_record/comments.rb +1 -0
  101. data/lib/active_admin/orm/active_record.rb +1 -0
  102. data/lib/active_admin/orm/mongoid.rb +1 -0
  103. data/lib/active_admin/page.rb +1 -0
  104. data/lib/active_admin/page_controller.rb +1 -0
  105. data/lib/active_admin/page_dsl.rb +1 -0
  106. data/lib/active_admin/page_presenter.rb +1 -0
  107. data/lib/active_admin/pundit_adapter.rb +1 -0
  108. data/lib/active_admin/resource/action_items.rb +1 -0
  109. data/lib/active_admin/resource/attributes.rb +1 -0
  110. data/lib/active_admin/resource/belongs_to.rb +1 -0
  111. data/lib/active_admin/resource/controllers.rb +1 -0
  112. data/lib/active_admin/resource/includes.rb +1 -0
  113. data/lib/active_admin/resource/menu.rb +1 -0
  114. data/lib/active_admin/resource/model.rb +1 -0
  115. data/lib/active_admin/resource/naming.rb +1 -0
  116. data/lib/active_admin/resource/ordering.rb +1 -0
  117. data/lib/active_admin/resource/page_presenters.rb +1 -0
  118. data/lib/active_admin/resource/pagination.rb +1 -0
  119. data/lib/active_admin/resource/routes.rb +1 -2
  120. data/lib/active_admin/resource/scope_to.rb +1 -0
  121. data/lib/active_admin/resource/scopes.rb +1 -0
  122. data/lib/active_admin/resource/sidebars.rb +1 -0
  123. data/lib/active_admin/resource.rb +1 -0
  124. data/lib/active_admin/resource_collection.rb +1 -0
  125. data/lib/active_admin/resource_controller/action_builder.rb +1 -0
  126. data/lib/active_admin/resource_controller/data_access.rb +3 -2
  127. data/lib/active_admin/resource_controller/decorators.rb +1 -2
  128. data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
  129. data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
  130. data/lib/active_admin/resource_controller/scoping.rb +1 -0
  131. data/lib/active_admin/resource_controller/sidebars.rb +1 -0
  132. data/lib/active_admin/resource_controller/streaming.rb +2 -1
  133. data/lib/active_admin/resource_controller.rb +1 -0
  134. data/lib/active_admin/resource_dsl.rb +7 -21
  135. data/lib/active_admin/router.rb +1 -0
  136. data/lib/active_admin/scope.rb +1 -0
  137. data/lib/active_admin/settings_node.rb +1 -0
  138. data/lib/active_admin/sidebar_section.rb +1 -0
  139. data/lib/active_admin/version.rb +2 -1
  140. data/lib/active_admin/view_factory.rb +1 -0
  141. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
  142. data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -0
  143. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
  144. data/lib/active_admin/view_helpers/display_helper.rb +11 -3
  145. data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
  146. data/lib/active_admin/view_helpers/fields_for.rb +1 -0
  147. data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
  148. data/lib/active_admin/view_helpers/form_helper.rb +1 -0
  149. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
  150. data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
  151. data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
  152. data/lib/active_admin/view_helpers/title_helper.rb +1 -0
  153. data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
  154. data/lib/active_admin/view_helpers.rb +1 -0
  155. data/lib/active_admin/views/action_items.rb +1 -0
  156. data/lib/active_admin/views/components/active_admin_form.rb +2 -1
  157. data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
  158. data/lib/active_admin/views/components/attributes_table.rb +1 -0
  159. data/lib/active_admin/views/components/blank_slate.rb +1 -0
  160. data/lib/active_admin/views/components/columns.rb +1 -0
  161. data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
  162. data/lib/active_admin/views/components/index_list.rb +1 -0
  163. data/lib/active_admin/views/components/menu.rb +1 -0
  164. data/lib/active_admin/views/components/menu_item.rb +1 -0
  165. data/lib/active_admin/views/components/paginated_collection.rb +1 -0
  166. data/lib/active_admin/views/components/panel.rb +1 -0
  167. data/lib/active_admin/views/components/scopes.rb +1 -0
  168. data/lib/active_admin/views/components/sidebar.rb +1 -0
  169. data/lib/active_admin/views/components/sidebar_section.rb +1 -0
  170. data/lib/active_admin/views/components/site_title.rb +1 -0
  171. data/lib/active_admin/views/components/status_tag.rb +1 -0
  172. data/lib/active_admin/views/components/table_for.rb +1 -0
  173. data/lib/active_admin/views/components/tabs.rb +1 -0
  174. data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
  175. data/lib/active_admin/views/footer.rb +1 -0
  176. data/lib/active_admin/views/header.rb +1 -0
  177. data/lib/active_admin/views/index_as_block.rb +1 -0
  178. data/lib/active_admin/views/index_as_blog.rb +1 -0
  179. data/lib/active_admin/views/index_as_grid.rb +1 -0
  180. data/lib/active_admin/views/index_as_table.rb +1 -0
  181. data/lib/active_admin/views/pages/base.rb +4 -1
  182. data/lib/active_admin/views/pages/form.rb +1 -0
  183. data/lib/active_admin/views/pages/index.rb +1 -0
  184. data/lib/active_admin/views/pages/layout.rb +1 -0
  185. data/lib/active_admin/views/pages/page.rb +1 -0
  186. data/lib/active_admin/views/pages/show.rb +1 -0
  187. data/lib/active_admin/views/tabbed_navigation.rb +1 -0
  188. data/lib/active_admin/views/title_bar.rb +1 -0
  189. data/lib/active_admin/views.rb +1 -0
  190. data/lib/active_admin.rb +2 -2
  191. data/lib/activeadmin.rb +1 -0
  192. data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
  193. data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
  194. data/lib/generators/active_admin/install/install_generator.rb +1 -0
  195. data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
  196. data/lib/generators/active_admin/page/page_generator.rb +1 -0
  197. data/lib/generators/active_admin/page/templates/page.rb +1 -0
  198. data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
  199. data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
  200. data/lib/ransack_ext.rb +1 -0
  201. metadata +13 -46
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -12,10 +12,10 @@ authors:
12
12
  - Piers C
13
13
  - Sean Linsley
14
14
  - Timo Schilling
15
- autorequire:
15
+ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2020-09-28 00:00:00.000000000 Z
18
+ date: 2022-02-25 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -125,20 +125,20 @@ dependencies:
125
125
  requirements:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: '5.2'
128
+ version: '6.0'
129
129
  - - "<"
130
130
  - !ruby/object:Gem::Version
131
- version: '6.1'
131
+ version: '6.2'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '5.2'
138
+ version: '6.0'
139
139
  - - "<"
140
140
  - !ruby/object:Gem::Version
141
- version: '6.1'
141
+ version: '6.2'
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: ransack
144
144
  requirement: !ruby/object:Gem::Requirement
@@ -159,40 +159,6 @@ dependencies:
159
159
  - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: 2.1.1
162
- - !ruby/object:Gem::Dependency
163
- name: sassc-rails
164
- requirement: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - "~>"
167
- - !ruby/object:Gem::Version
168
- version: '2.1'
169
- type: :runtime
170
- prerelease: false
171
- version_requirements: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - "~>"
174
- - !ruby/object:Gem::Version
175
- version: '2.1'
176
- - !ruby/object:Gem::Dependency
177
- name: sprockets
178
- requirement: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: '3.0'
183
- - - "<"
184
- - !ruby/object:Gem::Version
185
- version: '4.1'
186
- type: :runtime
187
- prerelease: false
188
- version_requirements: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: '3.0'
193
- - - "<"
194
- - !ruby/object:Gem::Version
195
- version: '4.1'
196
162
  description: The administration framework for Ruby on Rails.
197
163
  email:
198
164
  - deivid.rodriguez@riseup.net
@@ -215,6 +181,7 @@ files:
215
181
  - app/assets/stylesheets/active_admin/_header.scss
216
182
  - app/assets/stylesheets/active_admin/_mixins.scss
217
183
  - app/assets/stylesheets/active_admin/_normalize.scss
184
+ - app/assets/stylesheets/active_admin/_print.scss
218
185
  - app/assets/stylesheets/active_admin/_typography.scss
219
186
  - app/assets/stylesheets/active_admin/components/_batch_actions.scss
220
187
  - app/assets/stylesheets/active_admin/components/_blank_slates.scss
@@ -247,7 +214,6 @@ files:
247
214
  - app/assets/stylesheets/active_admin/mixins/_utilities.scss
248
215
  - app/assets/stylesheets/active_admin/mixins/_variables.scss
249
216
  - app/assets/stylesheets/active_admin/pages/_logged_out.scss
250
- - app/assets/stylesheets/active_admin/print.scss
251
217
  - app/assets/stylesheets/active_admin/structure/_footer.scss
252
218
  - app/assets/stylesheets/active_admin/structure/_main_structure.scss
253
219
  - app/assets/stylesheets/active_admin/structure/_title_bar.scss
@@ -512,6 +478,7 @@ files:
512
478
  - lib/active_admin/views.rb
513
479
  - lib/active_admin/views/action_items.rb
514
480
  - lib/active_admin/views/components/active_admin_form.rb
481
+ - lib/active_admin/views/components/active_filters_sidebar_content.rb
515
482
  - lib/active_admin/views/components/attributes_table.rb
516
483
  - lib/active_admin/views/components/blank_slate.rb
517
484
  - lib/active_admin/views/components/columns.rb
@@ -596,7 +563,7 @@ homepage: https://activeadmin.info
596
563
  licenses:
597
564
  - MIT
598
565
  metadata: {}
599
- post_install_message:
566
+ post_install_message:
600
567
  rdoc_options: []
601
568
  require_paths:
602
569
  - lib
@@ -604,15 +571,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
604
571
  requirements:
605
572
  - - ">="
606
573
  - !ruby/object:Gem::Version
607
- version: '2.5'
574
+ version: '2.6'
608
575
  required_rubygems_version: !ruby/object:Gem::Requirement
609
576
  requirements:
610
577
  - - ">="
611
578
  - !ruby/object:Gem::Version
612
579
  version: '0'
613
580
  requirements: []
614
- rubygems_version: 3.2.0.rc.1
615
- signing_key:
581
+ rubygems_version: 3.3.7
582
+ signing_key:
616
583
  specification_version: 4
617
584
  summary: Active Admin is a Ruby on Rails plugin for generating administration style
618
585
  interfaces. It abstracts common business application patterns to make it simple