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
data/docs/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (6.0.3.2)
4
+ activesupport (6.0.4.4)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.2)
6
6
  i18n (>= 0.7, < 2)
7
7
  minitest (~> 5.1)
8
8
  tzinfo (~> 1.1)
9
9
  zeitwerk (~> 2.2, >= 2.2.2)
10
- addressable (2.7.0)
10
+ addressable (2.8.0)
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
12
  coffee-script (2.4.1)
13
13
  coffee-script-source
@@ -16,75 +16,93 @@ GEM
16
16
  colorator (1.1.0)
17
17
  commonmarker (0.17.13)
18
18
  ruby-enum (~> 0.5)
19
- concurrent-ruby (1.1.6)
20
- dnsruby (1.61.4)
19
+ concurrent-ruby (1.1.9)
20
+ dnsruby (1.61.7)
21
21
  simpleidn (~> 0.1)
22
- em-websocket (0.5.1)
22
+ em-websocket (0.5.3)
23
23
  eventmachine (>= 0.12.9)
24
- http_parser.rb (~> 0.6.0)
25
- ethon (0.12.0)
26
- ffi (>= 1.3.0)
24
+ http_parser.rb (~> 0)
25
+ ethon (0.15.0)
26
+ ffi (>= 1.15.0)
27
27
  eventmachine (1.2.7)
28
- execjs (2.7.0)
29
- faraday (1.0.1)
28
+ execjs (2.8.1)
29
+ faraday (1.8.0)
30
+ faraday-em_http (~> 1.0)
31
+ faraday-em_synchrony (~> 1.0)
32
+ faraday-excon (~> 1.1)
33
+ faraday-httpclient (~> 1.0.1)
34
+ faraday-net_http (~> 1.0)
35
+ faraday-net_http_persistent (~> 1.1)
36
+ faraday-patron (~> 1.0)
37
+ faraday-rack (~> 1.0)
30
38
  multipart-post (>= 1.2, < 3)
31
- ffi (1.13.1)
39
+ ruby2_keywords (>= 0.0.4)
40
+ faraday-em_http (1.0.0)
41
+ faraday-em_synchrony (1.0.0)
42
+ faraday-excon (1.1.0)
43
+ faraday-httpclient (1.0.1)
44
+ faraday-net_http (1.0.1)
45
+ faraday-net_http_persistent (1.2.0)
46
+ faraday-patron (1.0.0)
47
+ faraday-rack (1.0.0)
48
+ ffi (1.15.4)
32
49
  forwardable-extended (2.6.0)
33
50
  gemoji (3.0.1)
34
- github-pages (207)
35
- github-pages-health-check (= 1.16.1)
51
+ github-pages (223)
52
+ github-pages-health-check (= 1.17.9)
36
53
  jekyll (= 3.9.0)
37
54
  jekyll-avatar (= 0.7.0)
38
55
  jekyll-coffeescript (= 1.1.1)
39
56
  jekyll-commonmark-ghpages (= 0.1.6)
40
57
  jekyll-default-layout (= 0.1.4)
41
- jekyll-feed (= 0.13.0)
58
+ jekyll-feed (= 0.15.1)
42
59
  jekyll-gist (= 1.5.0)
43
60
  jekyll-github-metadata (= 2.13.0)
44
- jekyll-mentions (= 1.5.1)
61
+ jekyll-include-cache (= 0.2.1)
62
+ jekyll-mentions (= 1.6.0)
45
63
  jekyll-optional-front-matter (= 0.3.2)
46
64
  jekyll-paginate (= 1.1.0)
47
65
  jekyll-readme-index (= 0.3.0)
48
- jekyll-redirect-from (= 0.15.0)
66
+ jekyll-redirect-from (= 0.16.0)
49
67
  jekyll-relative-links (= 0.6.1)
50
- jekyll-remote-theme (= 0.4.1)
68
+ jekyll-remote-theme (= 0.4.3)
51
69
  jekyll-sass-converter (= 1.5.2)
52
- jekyll-seo-tag (= 2.6.1)
70
+ jekyll-seo-tag (= 2.7.1)
53
71
  jekyll-sitemap (= 1.4.0)
54
72
  jekyll-swiss (= 1.0.0)
55
- jekyll-theme-architect (= 0.1.1)
56
- jekyll-theme-cayman (= 0.1.1)
57
- jekyll-theme-dinky (= 0.1.1)
58
- jekyll-theme-hacker (= 0.1.1)
59
- jekyll-theme-leap-day (= 0.1.1)
60
- jekyll-theme-merlot (= 0.1.1)
61
- jekyll-theme-midnight (= 0.1.1)
62
- jekyll-theme-minimal (= 0.1.1)
63
- jekyll-theme-modernist (= 0.1.1)
64
- jekyll-theme-primer (= 0.5.4)
65
- jekyll-theme-slate (= 0.1.1)
66
- jekyll-theme-tactile (= 0.1.1)
67
- jekyll-theme-time-machine (= 0.1.1)
73
+ jekyll-theme-architect (= 0.2.0)
74
+ jekyll-theme-cayman (= 0.2.0)
75
+ jekyll-theme-dinky (= 0.2.0)
76
+ jekyll-theme-hacker (= 0.2.0)
77
+ jekyll-theme-leap-day (= 0.2.0)
78
+ jekyll-theme-merlot (= 0.2.0)
79
+ jekyll-theme-midnight (= 0.2.0)
80
+ jekyll-theme-minimal (= 0.2.0)
81
+ jekyll-theme-modernist (= 0.2.0)
82
+ jekyll-theme-primer (= 0.6.0)
83
+ jekyll-theme-slate (= 0.2.0)
84
+ jekyll-theme-tactile (= 0.2.0)
85
+ jekyll-theme-time-machine (= 0.2.0)
68
86
  jekyll-titles-from-headings (= 0.5.3)
69
- jemoji (= 0.11.1)
70
- kramdown (= 2.3.0)
87
+ jemoji (= 0.12.0)
88
+ kramdown (= 2.3.1)
71
89
  kramdown-parser-gfm (= 1.1.0)
72
90
  liquid (= 4.0.3)
73
91
  mercenary (~> 0.3)
74
92
  minima (= 2.5.1)
75
- nokogiri (>= 1.10.4, < 2.0)
76
- rouge (= 3.19.0)
93
+ nokogiri (>= 1.12.5, < 2.0)
94
+ rouge (= 3.26.0)
77
95
  terminal-table (~> 1.4)
78
- github-pages-health-check (1.16.1)
96
+ github-pages-health-check (1.17.9)
79
97
  addressable (~> 2.3)
80
98
  dnsruby (~> 1.60)
81
99
  octokit (~> 4.0)
82
- public_suffix (~> 3.0)
100
+ public_suffix (>= 3.0, < 5.0)
83
101
  typhoeus (~> 1.3)
84
- html-pipeline (2.13.0)
102
+ html-pipeline (2.14.0)
85
103
  activesupport (>= 2)
86
104
  nokogiri (>= 1.4)
87
- http_parser.rb (0.6.0)
105
+ http_parser.rb (0.8.0)
88
106
  i18n (0.9.5)
89
107
  concurrent-ruby (~> 1.0)
90
108
  jekyll (3.9.0)
@@ -114,14 +132,16 @@ GEM
114
132
  rouge (>= 2.0, < 4.0)
115
133
  jekyll-default-layout (0.1.4)
116
134
  jekyll (~> 3.0)
117
- jekyll-feed (0.13.0)
135
+ jekyll-feed (0.15.1)
118
136
  jekyll (>= 3.7, < 5.0)
119
137
  jekyll-gist (1.5.0)
120
138
  octokit (~> 4.2)
121
139
  jekyll-github-metadata (2.13.0)
122
140
  jekyll (>= 3.4, < 5.0)
123
141
  octokit (~> 4.0, != 4.4.0)
124
- jekyll-mentions (1.5.1)
142
+ jekyll-include-cache (0.2.1)
143
+ jekyll (>= 3.7, < 5.0)
144
+ jekyll-mentions (1.6.0)
125
145
  html-pipeline (~> 2.3)
126
146
  jekyll (>= 3.7, < 5.0)
127
147
  jekyll-optional-front-matter (0.3.2)
@@ -129,101 +149,105 @@ GEM
129
149
  jekyll-paginate (1.1.0)
130
150
  jekyll-readme-index (0.3.0)
131
151
  jekyll (>= 3.0, < 5.0)
132
- jekyll-redirect-from (0.15.0)
152
+ jekyll-redirect-from (0.16.0)
133
153
  jekyll (>= 3.3, < 5.0)
134
154
  jekyll-relative-links (0.6.1)
135
155
  jekyll (>= 3.3, < 5.0)
136
- jekyll-remote-theme (0.4.1)
156
+ jekyll-remote-theme (0.4.3)
137
157
  addressable (~> 2.0)
138
158
  jekyll (>= 3.5, < 5.0)
139
- rubyzip (>= 1.3.0)
159
+ jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
160
+ rubyzip (>= 1.3.0, < 3.0)
140
161
  jekyll-sass-converter (1.5.2)
141
162
  sass (~> 3.4)
142
- jekyll-seo-tag (2.6.1)
143
- jekyll (>= 3.3, < 5.0)
163
+ jekyll-seo-tag (2.7.1)
164
+ jekyll (>= 3.8, < 5.0)
144
165
  jekyll-sitemap (1.4.0)
145
166
  jekyll (>= 3.7, < 5.0)
146
167
  jekyll-swiss (1.0.0)
147
- jekyll-theme-architect (0.1.1)
148
- jekyll (~> 3.5)
168
+ jekyll-theme-architect (0.2.0)
169
+ jekyll (> 3.5, < 5.0)
149
170
  jekyll-seo-tag (~> 2.0)
150
- jekyll-theme-cayman (0.1.1)
151
- jekyll (~> 3.5)
171
+ jekyll-theme-cayman (0.2.0)
172
+ jekyll (> 3.5, < 5.0)
152
173
  jekyll-seo-tag (~> 2.0)
153
- jekyll-theme-dinky (0.1.1)
154
- jekyll (~> 3.5)
174
+ jekyll-theme-dinky (0.2.0)
175
+ jekyll (> 3.5, < 5.0)
155
176
  jekyll-seo-tag (~> 2.0)
156
- jekyll-theme-hacker (0.1.1)
157
- jekyll (~> 3.5)
177
+ jekyll-theme-hacker (0.2.0)
178
+ jekyll (> 3.5, < 5.0)
158
179
  jekyll-seo-tag (~> 2.0)
159
- jekyll-theme-leap-day (0.1.1)
160
- jekyll (~> 3.5)
180
+ jekyll-theme-leap-day (0.2.0)
181
+ jekyll (> 3.5, < 5.0)
161
182
  jekyll-seo-tag (~> 2.0)
162
- jekyll-theme-merlot (0.1.1)
163
- jekyll (~> 3.5)
183
+ jekyll-theme-merlot (0.2.0)
184
+ jekyll (> 3.5, < 5.0)
164
185
  jekyll-seo-tag (~> 2.0)
165
- jekyll-theme-midnight (0.1.1)
166
- jekyll (~> 3.5)
186
+ jekyll-theme-midnight (0.2.0)
187
+ jekyll (> 3.5, < 5.0)
167
188
  jekyll-seo-tag (~> 2.0)
168
- jekyll-theme-minimal (0.1.1)
169
- jekyll (~> 3.5)
189
+ jekyll-theme-minimal (0.2.0)
190
+ jekyll (> 3.5, < 5.0)
170
191
  jekyll-seo-tag (~> 2.0)
171
- jekyll-theme-modernist (0.1.1)
172
- jekyll (~> 3.5)
192
+ jekyll-theme-modernist (0.2.0)
193
+ jekyll (> 3.5, < 5.0)
173
194
  jekyll-seo-tag (~> 2.0)
174
- jekyll-theme-primer (0.5.4)
195
+ jekyll-theme-primer (0.6.0)
175
196
  jekyll (> 3.5, < 5.0)
176
197
  jekyll-github-metadata (~> 2.9)
177
198
  jekyll-seo-tag (~> 2.0)
178
- jekyll-theme-slate (0.1.1)
179
- jekyll (~> 3.5)
199
+ jekyll-theme-slate (0.2.0)
200
+ jekyll (> 3.5, < 5.0)
180
201
  jekyll-seo-tag (~> 2.0)
181
- jekyll-theme-tactile (0.1.1)
182
- jekyll (~> 3.5)
202
+ jekyll-theme-tactile (0.2.0)
203
+ jekyll (> 3.5, < 5.0)
183
204
  jekyll-seo-tag (~> 2.0)
184
- jekyll-theme-time-machine (0.1.1)
185
- jekyll (~> 3.5)
205
+ jekyll-theme-time-machine (0.2.0)
206
+ jekyll (> 3.5, < 5.0)
186
207
  jekyll-seo-tag (~> 2.0)
187
208
  jekyll-titles-from-headings (0.5.3)
188
209
  jekyll (>= 3.3, < 5.0)
189
210
  jekyll-watch (2.2.1)
190
211
  listen (~> 3.0)
191
- jemoji (0.11.1)
212
+ jemoji (0.12.0)
192
213
  gemoji (~> 3.0)
193
214
  html-pipeline (~> 2.2)
194
215
  jekyll (>= 3.0, < 5.0)
195
- kramdown (2.3.0)
216
+ kramdown (2.3.1)
196
217
  rexml
197
218
  kramdown-parser-gfm (1.1.0)
198
219
  kramdown (~> 2.0)
199
220
  liquid (4.0.3)
200
- listen (3.2.1)
221
+ listen (3.7.0)
201
222
  rb-fsevent (~> 0.10, >= 0.10.3)
202
223
  rb-inotify (~> 0.9, >= 0.9.10)
203
224
  mercenary (0.3.6)
204
- mini_portile2 (2.4.0)
225
+ mini_portile2 (2.6.1)
205
226
  minima (2.5.1)
206
227
  jekyll (>= 3.5, < 5.0)
207
228
  jekyll-feed (~> 0.9)
208
229
  jekyll-seo-tag (~> 2.1)
209
- minitest (5.14.1)
230
+ minitest (5.15.0)
210
231
  multipart-post (2.1.1)
211
- nokogiri (1.10.10)
212
- mini_portile2 (~> 2.4.0)
213
- octokit (4.18.0)
232
+ nokogiri (1.12.5)
233
+ mini_portile2 (~> 2.6.1)
234
+ racc (~> 1.4)
235
+ octokit (4.21.0)
214
236
  faraday (>= 0.9)
215
237
  sawyer (~> 0.8.0, >= 0.5.3)
216
238
  pathutil (0.16.2)
217
239
  forwardable-extended (~> 2.6)
218
- public_suffix (3.1.1)
219
- rb-fsevent (0.10.4)
240
+ public_suffix (4.0.6)
241
+ racc (1.6.0)
242
+ rb-fsevent (0.11.0)
220
243
  rb-inotify (0.10.1)
221
244
  ffi (~> 1.0)
222
- rexml (3.2.4)
223
- rouge (3.19.0)
224
- ruby-enum (0.8.0)
245
+ rexml (3.2.5)
246
+ rouge (3.26.0)
247
+ ruby-enum (0.9.0)
225
248
  i18n
226
- rubyzip (2.3.0)
249
+ ruby2_keywords (0.0.5)
250
+ rubyzip (2.3.2)
227
251
  safe_yaml (1.0.5)
228
252
  sass (3.7.4)
229
253
  sass-listen (~> 4.0.0)
@@ -233,20 +257,20 @@ GEM
233
257
  sawyer (0.8.2)
234
258
  addressable (>= 2.3.5)
235
259
  faraday (> 0.8, < 2.0)
236
- simpleidn (0.1.1)
260
+ simpleidn (0.2.1)
237
261
  unf (~> 0.1.4)
238
262
  terminal-table (1.8.0)
239
263
  unicode-display_width (~> 1.1, >= 1.1.1)
240
264
  thread_safe (0.3.6)
241
265
  typhoeus (1.4.0)
242
266
  ethon (>= 0.9.0)
243
- tzinfo (1.2.7)
267
+ tzinfo (1.2.9)
244
268
  thread_safe (~> 0.1)
245
269
  unf (0.1.4)
246
270
  unf_ext
247
- unf_ext (0.0.7.7)
248
- unicode-display_width (1.7.0)
249
- zeitwerk (2.4.0)
271
+ unf_ext (0.0.8)
272
+ unicode-display_width (1.8.0)
273
+ zeitwerk (2.5.2)
250
274
 
251
275
  PLATFORMS
252
276
  ruby
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class AbstractViewFactory < SettingsNode
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/router"
2
3
  require "active_admin/application_settings"
3
4
  require "active_admin/namespace_settings"
@@ -75,7 +76,7 @@ module ActiveAdmin
75
76
 
76
77
  namespace = namespaces[name.to_sym] ||= begin
77
78
  namespace = Namespace.new(self, name)
78
- ActiveSupport::Notifications.publish ActiveAdmin::Namespace::RegisterEvent, namespace
79
+ ActiveSupport::Notifications.instrument ActiveAdmin::Namespace::RegisterEvent, namespace
79
80
  namespace
80
81
  end
81
82
 
@@ -111,10 +112,10 @@ module ActiveAdmin
111
112
  # To reload everything simply call `ActiveAdmin.unload!`
112
113
  def load!
113
114
  unless loaded?
114
- ActiveSupport::Notifications.publish BeforeLoadEvent, self # before_load hook
115
+ ActiveSupport::Notifications.instrument BeforeLoadEvent, self # before_load hook
115
116
  files.each { |file| load file } # load files
116
117
  namespace(default_namespace) # init AA resources
117
- ActiveSupport::Notifications.publish AfterLoadEvent, self # after_load hook
118
+ ActiveSupport::Notifications.instrument AfterLoadEvent, self # after_load hook
118
119
  @@loaded = true
119
120
  end
120
121
  end
@@ -144,13 +145,13 @@ module ActiveAdmin
144
145
 
145
146
  # Adds before, around and after filters to all controllers.
146
147
  # Example usage:
147
- # ActiveAdmin.before_filter :authenticate_admin!
148
+ # ActiveAdmin.before_action :authenticate_admin!
148
149
  #
149
150
  AbstractController::Callbacks::ClassMethods.public_instance_methods.
150
- select { |m| m.match(/(filter|action)/) }.each do |name|
151
+ select { |m| m.match(/_action\z/) }.each do |name|
151
152
  define_method name do |*args, &block|
152
- controllers_for_filters.each do |controller|
153
- controller.public_send name, *args, &block
153
+ ActiveSupport.on_load(:active_admin_controller) do
154
+ public_send name, *args, &block
154
155
  end
155
156
  end
156
157
  end
@@ -164,8 +165,7 @@ module ActiveAdmin
164
165
  private
165
166
 
166
167
  def register_default_assets
167
- register_stylesheet "active_admin.css", media: "screen"
168
- register_stylesheet "active_admin/print.css", media: "print"
168
+ register_stylesheet "active_admin.css", media: "all"
169
169
  register_javascript "active_admin.js"
170
170
  end
171
171
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/settings_node"
2
3
 
3
4
  module ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module AssetRegistration
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
 
3
4
  # Default Authorization permissions for Active Admin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class BaseController < ::InheritedResources::Base
3
4
  module Authorization
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class BaseController < ::InheritedResources::Base
3
4
  module Menu
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/base_controller/authorization"
2
3
  require "active_admin/base_controller/menu"
3
4
 
@@ -6,7 +7,6 @@ module ActiveAdmin
6
7
  # It implements ActiveAdmin controllers core features.
7
8
  class BaseController < ::InheritedResources::Base
8
9
  helper ::ActiveAdmin::ViewHelpers
9
- helper_method :env
10
10
 
11
11
  layout :determine_active_admin_layout
12
12
 
@@ -77,5 +77,6 @@ module ActiveAdmin
77
77
  { controller: controller, action: action }
78
78
  end
79
79
 
80
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
80
81
  end
81
82
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module BatchActions
3
4
  module Controller
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
 
3
4
  module BatchActions
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/component"
2
3
 
3
4
  module ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/component"
2
3
 
3
4
  module ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/component"
2
3
 
3
4
  module ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  ActiveAdmin.before_load do |app|
2
3
  require "active_admin/batch_actions/resource_extension"
3
4
  require "active_admin/batch_actions/controller"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Callbacks
3
4
  extend ActiveSupport::Concern
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  unless ActiveAdmin::Dependency.cancan? || ActiveAdmin::Dependency.cancancan?
2
3
  ActiveAdmin::Dependency.cancan!
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  # This class decorates a collection of objects delegating
3
4
  # mehods to behave like an Array. It's used to decouple ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class Component < Arbre::Component
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class ControllerAction
3
4
  attr_reader :name
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  # CSVBuilder stores CSV configuration
3
4
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Dependency
3
4
  module Requirements
@@ -56,7 +57,7 @@ module ActiveAdmin
56
57
  end
57
58
 
58
59
  def self.supports_zeitwerk?
59
- rails >= "6.0.0.beta3" && RUBY_ENGINE != "jruby"
60
+ RUBY_ENGINE != "jruby"
60
61
  end
61
62
 
62
63
  class Matcher
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Deprecation
3
4
  module_function
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  ActiveAdmin::Dependency.devise! ActiveAdmin::Dependency::Requirements::DEVISE
2
3
 
3
4
  require "devise"
@@ -52,22 +53,32 @@ module ActiveAdmin
52
53
 
53
54
  class SessionsController < ::Devise::SessionsController
54
55
  include ::ActiveAdmin::Devise::Controller
56
+
57
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
55
58
  end
56
59
 
57
60
  class PasswordsController < ::Devise::PasswordsController
58
61
  include ::ActiveAdmin::Devise::Controller
62
+
63
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
59
64
  end
60
65
 
61
66
  class UnlocksController < ::Devise::UnlocksController
62
67
  include ::ActiveAdmin::Devise::Controller
68
+
69
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
63
70
  end
64
71
 
65
72
  class RegistrationsController < ::Devise::RegistrationsController
66
73
  include ::ActiveAdmin::Devise::Controller
74
+
75
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
67
76
  end
68
77
 
69
78
  class ConfirmationsController < ::Devise::ConfirmationsController
70
79
  include ::ActiveAdmin::Devise::Controller
80
+
81
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
71
82
  end
72
83
 
73
84
  def self.controllers_for_filters
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
 
3
4
  # The Active Admin DSL. This class is where all the registration blocks
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
 
3
4
  class DynamicSetting
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/dynamic_setting"
2
3
  require "active_admin/settings_node"
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  class Engine < ::Rails::Engine
3
4
  initializer "active_admin.load_app_path" do |app|
@@ -6,11 +7,13 @@ module ActiveAdmin
6
7
  end
7
8
 
8
9
  initializer "active_admin.precompile", group: :all do |app|
9
- ActiveAdmin.application.stylesheets.each do |path, _|
10
- app.config.assets.precompile << path
11
- end
12
- ActiveAdmin.application.javascripts.each do |path|
13
- app.config.assets.precompile << path
10
+ unless ActiveAdmin.application.use_webpacker
11
+ ActiveAdmin.application.stylesheets.each do |path, _|
12
+ app.config.assets.precompile << path
13
+ end
14
+ ActiveAdmin.application.javascripts.each do |path|
15
+ app.config.assets.precompile << path
16
+ end
14
17
  end
15
18
  end
16
19
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  # Exception class to raise when there is an authorized access
3
4
  # exception thrown. The exception has a few goodies that may
@@ -45,8 +46,6 @@ module ActiveAdmin
45
46
  raise new exception
46
47
  end
47
48
 
48
- private
49
-
50
49
  def self.database_error_classes
51
50
  @classes ||= []
52
51
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/filters/active_filter"
2
3
 
3
4
  module ActiveAdmin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Filters
3
4
 
@@ -113,8 +114,6 @@ module ActiveAdmin
113
114
  @predicate_association
114
115
  end
115
116
 
116
- private
117
-
118
117
  def find_predicate_association
119
118
  condition_attribute.klass.reflect_on_all_associations.
120
119
  reject { |r| r.options[:polymorphic] }. #skip polymorphic