activeadmin 2.9.0 → 2.10.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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -1
  3. data/app/assets/javascripts/active_admin/base.js +12 -5
  4. data/app/assets/stylesheets/active_admin/_base.scss +43 -37
  5. data/app/assets/stylesheets/active_admin/_forms.scss +3 -3
  6. data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
  7. data/app/views/active_admin/devise/shared/_links.erb +1 -1
  8. data/app/views/active_admin/page/index.html.arb +1 -0
  9. data/app/views/active_admin/resource/edit.html.arb +1 -0
  10. data/app/views/active_admin/resource/index.html.arb +1 -0
  11. data/app/views/active_admin/resource/new.html.arb +1 -0
  12. data/app/views/active_admin/resource/show.html.arb +1 -0
  13. data/app/views/layouts/active_admin.html.arb +1 -0
  14. data/config/locales/ko.yml +1 -1
  15. data/config/locales/nl.yml +1 -1
  16. data/config/locales/ro.yml +3 -2
  17. data/docs/0-installation.md +1 -1
  18. data/docs/8-custom-actions.md +1 -1
  19. data/docs/Gemfile +1 -0
  20. data/docs/Gemfile.lock +102 -79
  21. data/lib/active_admin/abstract_view_factory.rb +1 -0
  22. data/lib/active_admin/application.rb +7 -7
  23. data/lib/active_admin/application_settings.rb +1 -0
  24. data/lib/active_admin/asset_registration.rb +1 -0
  25. data/lib/active_admin/authorization_adapter.rb +1 -0
  26. data/lib/active_admin/base_controller/authorization.rb +1 -0
  27. data/lib/active_admin/base_controller/menu.rb +1 -0
  28. data/lib/active_admin/base_controller.rb +1 -1
  29. data/lib/active_admin/batch_actions/controller.rb +1 -0
  30. data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
  31. data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
  32. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
  33. data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
  34. data/lib/active_admin/batch_actions.rb +1 -0
  35. data/lib/active_admin/callbacks.rb +1 -0
  36. data/lib/active_admin/cancan_adapter.rb +1 -0
  37. data/lib/active_admin/collection_decorator.rb +1 -0
  38. data/lib/active_admin/component.rb +1 -0
  39. data/lib/active_admin/controller_action.rb +1 -0
  40. data/lib/active_admin/csv_builder.rb +1 -0
  41. data/lib/active_admin/dependency.rb +2 -1
  42. data/lib/active_admin/deprecation.rb +1 -0
  43. data/lib/active_admin/devise.rb +1 -0
  44. data/lib/active_admin/dsl.rb +1 -0
  45. data/lib/active_admin/dynamic_setting.rb +1 -0
  46. data/lib/active_admin/dynamic_settings_node.rb +1 -0
  47. data/lib/active_admin/engine.rb +1 -0
  48. data/lib/active_admin/error.rb +1 -0
  49. data/lib/active_admin/filters/active.rb +1 -0
  50. data/lib/active_admin/filters/active_filter.rb +1 -0
  51. data/lib/active_admin/filters/active_sidebar.rb +2 -28
  52. data/lib/active_admin/filters/dsl.rb +1 -0
  53. data/lib/active_admin/filters/forms.rb +1 -0
  54. data/lib/active_admin/filters/formtastic_addons.rb +1 -0
  55. data/lib/active_admin/filters/resource_extension.rb +1 -0
  56. data/lib/active_admin/filters.rb +1 -0
  57. data/lib/active_admin/form_builder.rb +1 -0
  58. data/lib/active_admin/generators/boilerplate.rb +1 -0
  59. data/lib/active_admin/helpers/collection.rb +2 -0
  60. data/lib/active_admin/helpers/i18n.rb +1 -0
  61. data/lib/active_admin/helpers/optional_display.rb +1 -0
  62. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
  63. data/lib/active_admin/helpers/scope_chain.rb +1 -0
  64. data/lib/active_admin/inputs/datepicker_input.rb +1 -0
  65. data/lib/active_admin/inputs/filters/base/search_method_select.rb +1 -0
  66. data/lib/active_admin/inputs/filters/base.rb +1 -0
  67. data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
  68. data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
  69. data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
  70. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
  71. data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
  72. data/lib/active_admin/inputs/filters/select_input.rb +1 -0
  73. data/lib/active_admin/inputs/filters/string_input.rb +1 -0
  74. data/lib/active_admin/inputs/filters/text_input.rb +1 -0
  75. data/lib/active_admin/inputs.rb +1 -0
  76. data/lib/active_admin/localizers/resource_localizer.rb +1 -0
  77. data/lib/active_admin/localizers.rb +1 -0
  78. data/lib/active_admin/menu.rb +1 -0
  79. data/lib/active_admin/menu_collection.rb +1 -0
  80. data/lib/active_admin/menu_item.rb +1 -0
  81. data/lib/active_admin/namespace.rb +2 -1
  82. data/lib/active_admin/namespace_settings.rb +1 -0
  83. data/lib/active_admin/order_clause.rb +1 -0
  84. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -0
  85. data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
  86. data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
  87. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
  88. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -0
  89. data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
  90. data/lib/active_admin/orm/active_record/comments.rb +1 -0
  91. data/lib/active_admin/orm/active_record.rb +1 -0
  92. data/lib/active_admin/orm/mongoid.rb +1 -0
  93. data/lib/active_admin/page.rb +1 -0
  94. data/lib/active_admin/page_controller.rb +1 -0
  95. data/lib/active_admin/page_dsl.rb +1 -0
  96. data/lib/active_admin/page_presenter.rb +1 -0
  97. data/lib/active_admin/pundit_adapter.rb +1 -0
  98. data/lib/active_admin/resource/action_items.rb +1 -0
  99. data/lib/active_admin/resource/attributes.rb +1 -0
  100. data/lib/active_admin/resource/belongs_to.rb +1 -0
  101. data/lib/active_admin/resource/controllers.rb +1 -0
  102. data/lib/active_admin/resource/includes.rb +1 -0
  103. data/lib/active_admin/resource/menu.rb +1 -0
  104. data/lib/active_admin/resource/model.rb +1 -0
  105. data/lib/active_admin/resource/naming.rb +1 -0
  106. data/lib/active_admin/resource/ordering.rb +1 -0
  107. data/lib/active_admin/resource/page_presenters.rb +1 -0
  108. data/lib/active_admin/resource/pagination.rb +1 -0
  109. data/lib/active_admin/resource/routes.rb +1 -0
  110. data/lib/active_admin/resource/scope_to.rb +1 -0
  111. data/lib/active_admin/resource/scopes.rb +1 -0
  112. data/lib/active_admin/resource/sidebars.rb +1 -0
  113. data/lib/active_admin/resource.rb +1 -0
  114. data/lib/active_admin/resource_collection.rb +1 -0
  115. data/lib/active_admin/resource_controller/action_builder.rb +1 -0
  116. data/lib/active_admin/resource_controller/data_access.rb +3 -2
  117. data/lib/active_admin/resource_controller/decorators.rb +1 -0
  118. data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
  119. data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
  120. data/lib/active_admin/resource_controller/scoping.rb +1 -0
  121. data/lib/active_admin/resource_controller/sidebars.rb +1 -0
  122. data/lib/active_admin/resource_controller/streaming.rb +1 -0
  123. data/lib/active_admin/resource_controller.rb +1 -0
  124. data/lib/active_admin/resource_dsl.rb +7 -21
  125. data/lib/active_admin/router.rb +1 -0
  126. data/lib/active_admin/scope.rb +1 -0
  127. data/lib/active_admin/settings_node.rb +1 -0
  128. data/lib/active_admin/sidebar_section.rb +1 -0
  129. data/lib/active_admin/version.rb +2 -1
  130. data/lib/active_admin/view_factory.rb +1 -0
  131. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
  132. data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -0
  133. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
  134. data/lib/active_admin/view_helpers/display_helper.rb +11 -3
  135. data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
  136. data/lib/active_admin/view_helpers/fields_for.rb +1 -0
  137. data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
  138. data/lib/active_admin/view_helpers/form_helper.rb +1 -0
  139. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
  140. data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
  141. data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
  142. data/lib/active_admin/view_helpers/title_helper.rb +1 -0
  143. data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
  144. data/lib/active_admin/view_helpers.rb +1 -0
  145. data/lib/active_admin/views/action_items.rb +1 -0
  146. data/lib/active_admin/views/components/active_admin_form.rb +2 -1
  147. data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
  148. data/lib/active_admin/views/components/attributes_table.rb +1 -0
  149. data/lib/active_admin/views/components/blank_slate.rb +1 -0
  150. data/lib/active_admin/views/components/columns.rb +1 -0
  151. data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
  152. data/lib/active_admin/views/components/index_list.rb +1 -0
  153. data/lib/active_admin/views/components/menu.rb +1 -0
  154. data/lib/active_admin/views/components/menu_item.rb +1 -0
  155. data/lib/active_admin/views/components/paginated_collection.rb +1 -0
  156. data/lib/active_admin/views/components/panel.rb +1 -0
  157. data/lib/active_admin/views/components/scopes.rb +1 -0
  158. data/lib/active_admin/views/components/sidebar.rb +1 -0
  159. data/lib/active_admin/views/components/sidebar_section.rb +1 -0
  160. data/lib/active_admin/views/components/site_title.rb +1 -0
  161. data/lib/active_admin/views/components/status_tag.rb +1 -0
  162. data/lib/active_admin/views/components/table_for.rb +1 -0
  163. data/lib/active_admin/views/components/tabs.rb +1 -0
  164. data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
  165. data/lib/active_admin/views/footer.rb +1 -0
  166. data/lib/active_admin/views/header.rb +1 -0
  167. data/lib/active_admin/views/index_as_block.rb +1 -0
  168. data/lib/active_admin/views/index_as_blog.rb +1 -0
  169. data/lib/active_admin/views/index_as_grid.rb +1 -0
  170. data/lib/active_admin/views/index_as_table.rb +1 -0
  171. data/lib/active_admin/views/pages/base.rb +4 -1
  172. data/lib/active_admin/views/pages/form.rb +1 -0
  173. data/lib/active_admin/views/pages/index.rb +1 -0
  174. data/lib/active_admin/views/pages/layout.rb +1 -0
  175. data/lib/active_admin/views/pages/page.rb +1 -0
  176. data/lib/active_admin/views/pages/show.rb +1 -0
  177. data/lib/active_admin/views/tabbed_navigation.rb +1 -0
  178. data/lib/active_admin/views/title_bar.rb +1 -0
  179. data/lib/active_admin/views.rb +1 -0
  180. data/lib/active_admin.rb +2 -1
  181. data/lib/activeadmin.rb +1 -0
  182. data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
  183. data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
  184. data/lib/generators/active_admin/install/install_generator.rb +1 -0
  185. data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
  186. data/lib/generators/active_admin/page/page_generator.rb +1 -0
  187. data/lib/generators/active_admin/page/templates/page.rb +1 -0
  188. data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
  189. data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
  190. data/lib/ransack_ext.rb +1 -0
  191. metadata +11 -10
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.3)
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,23 +16,40 @@ GEM
16
16
  colorator (1.1.0)
17
17
  commonmarker (0.17.13)
18
18
  ruby-enum (~> 0.5)
19
- concurrent-ruby (1.1.7)
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.2)
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 (209)
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)
@@ -41,50 +58,51 @@ GEM
41
58
  jekyll-feed (= 0.15.1)
42
59
  jekyll-gist (= 1.5.0)
43
60
  jekyll-github-metadata (= 2.13.0)
61
+ jekyll-include-cache (= 0.2.1)
44
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
66
  jekyll-redirect-from (= 0.16.0)
49
67
  jekyll-relative-links (= 0.6.1)
50
- jekyll-remote-theme (= 0.4.2)
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.2)
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
87
  jemoji (= 0.12.0)
70
- kramdown (= 2.3.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.23.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
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)
@@ -121,6 +139,8 @@ GEM
121
139
  jekyll-github-metadata (2.13.0)
122
140
  jekyll (>= 3.4, < 5.0)
123
141
  octokit (~> 4.0, != 4.4.0)
142
+ jekyll-include-cache (0.2.1)
143
+ jekyll (>= 3.7, < 5.0)
124
144
  jekyll-mentions (1.6.0)
125
145
  html-pipeline (~> 2.3)
126
146
  jekyll (>= 3.7, < 5.0)
@@ -133,57 +153,57 @@ GEM
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.2)
156
+ jekyll-remote-theme (0.4.3)
137
157
  addressable (~> 2.0)
138
158
  jekyll (>= 3.5, < 5.0)
139
159
  jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
140
160
  rubyzip (>= 1.3.0, < 3.0)
141
161
  jekyll-sass-converter (1.5.2)
142
162
  sass (~> 3.4)
143
- jekyll-seo-tag (2.6.1)
144
- jekyll (>= 3.3, < 5.0)
163
+ jekyll-seo-tag (2.7.1)
164
+ jekyll (>= 3.8, < 5.0)
145
165
  jekyll-sitemap (1.4.0)
146
166
  jekyll (>= 3.7, < 5.0)
147
167
  jekyll-swiss (1.0.0)
148
- jekyll-theme-architect (0.1.1)
149
- jekyll (~> 3.5)
168
+ jekyll-theme-architect (0.2.0)
169
+ jekyll (> 3.5, < 5.0)
150
170
  jekyll-seo-tag (~> 2.0)
151
- jekyll-theme-cayman (0.1.1)
152
- jekyll (~> 3.5)
171
+ jekyll-theme-cayman (0.2.0)
172
+ jekyll (> 3.5, < 5.0)
153
173
  jekyll-seo-tag (~> 2.0)
154
- jekyll-theme-dinky (0.1.1)
155
- jekyll (~> 3.5)
174
+ jekyll-theme-dinky (0.2.0)
175
+ jekyll (> 3.5, < 5.0)
156
176
  jekyll-seo-tag (~> 2.0)
157
- jekyll-theme-hacker (0.1.2)
177
+ jekyll-theme-hacker (0.2.0)
158
178
  jekyll (> 3.5, < 5.0)
159
179
  jekyll-seo-tag (~> 2.0)
160
- jekyll-theme-leap-day (0.1.1)
161
- jekyll (~> 3.5)
180
+ jekyll-theme-leap-day (0.2.0)
181
+ jekyll (> 3.5, < 5.0)
162
182
  jekyll-seo-tag (~> 2.0)
163
- jekyll-theme-merlot (0.1.1)
164
- jekyll (~> 3.5)
183
+ jekyll-theme-merlot (0.2.0)
184
+ jekyll (> 3.5, < 5.0)
165
185
  jekyll-seo-tag (~> 2.0)
166
- jekyll-theme-midnight (0.1.1)
167
- jekyll (~> 3.5)
186
+ jekyll-theme-midnight (0.2.0)
187
+ jekyll (> 3.5, < 5.0)
168
188
  jekyll-seo-tag (~> 2.0)
169
- jekyll-theme-minimal (0.1.1)
170
- jekyll (~> 3.5)
189
+ jekyll-theme-minimal (0.2.0)
190
+ jekyll (> 3.5, < 5.0)
171
191
  jekyll-seo-tag (~> 2.0)
172
- jekyll-theme-modernist (0.1.1)
173
- jekyll (~> 3.5)
192
+ jekyll-theme-modernist (0.2.0)
193
+ jekyll (> 3.5, < 5.0)
174
194
  jekyll-seo-tag (~> 2.0)
175
- jekyll-theme-primer (0.5.4)
195
+ jekyll-theme-primer (0.6.0)
176
196
  jekyll (> 3.5, < 5.0)
177
197
  jekyll-github-metadata (~> 2.9)
178
198
  jekyll-seo-tag (~> 2.0)
179
- jekyll-theme-slate (0.1.1)
180
- jekyll (~> 3.5)
199
+ jekyll-theme-slate (0.2.0)
200
+ jekyll (> 3.5, < 5.0)
181
201
  jekyll-seo-tag (~> 2.0)
182
- jekyll-theme-tactile (0.1.1)
183
- jekyll (~> 3.5)
202
+ jekyll-theme-tactile (0.2.0)
203
+ jekyll (> 3.5, < 5.0)
184
204
  jekyll-seo-tag (~> 2.0)
185
- jekyll-theme-time-machine (0.1.1)
186
- jekyll (~> 3.5)
205
+ jekyll-theme-time-machine (0.2.0)
206
+ jekyll (> 3.5, < 5.0)
187
207
  jekyll-seo-tag (~> 2.0)
188
208
  jekyll-titles-from-headings (0.5.3)
189
209
  jekyll (>= 3.3, < 5.0)
@@ -193,38 +213,41 @@ GEM
193
213
  gemoji (~> 3.0)
194
214
  html-pipeline (~> 2.2)
195
215
  jekyll (>= 3.0, < 5.0)
196
- kramdown (2.3.0)
216
+ kramdown (2.3.1)
197
217
  rexml
198
218
  kramdown-parser-gfm (1.1.0)
199
219
  kramdown (~> 2.0)
200
220
  liquid (4.0.3)
201
- listen (3.2.1)
221
+ listen (3.7.0)
202
222
  rb-fsevent (~> 0.10, >= 0.10.3)
203
223
  rb-inotify (~> 0.9, >= 0.9.10)
204
224
  mercenary (0.3.6)
205
- mini_portile2 (2.4.0)
225
+ mini_portile2 (2.6.1)
206
226
  minima (2.5.1)
207
227
  jekyll (>= 3.5, < 5.0)
208
228
  jekyll-feed (~> 0.9)
209
229
  jekyll-seo-tag (~> 2.1)
210
- minitest (5.14.2)
230
+ minitest (5.15.0)
211
231
  multipart-post (2.1.1)
212
- nokogiri (1.10.10)
213
- mini_portile2 (~> 2.4.0)
214
- octokit (4.18.0)
232
+ nokogiri (1.12.5)
233
+ mini_portile2 (~> 2.6.1)
234
+ racc (~> 1.4)
235
+ octokit (4.21.0)
215
236
  faraday (>= 0.9)
216
237
  sawyer (~> 0.8.0, >= 0.5.3)
217
238
  pathutil (0.16.2)
218
239
  forwardable-extended (~> 2.6)
219
- public_suffix (3.1.1)
220
- rb-fsevent (0.10.4)
240
+ public_suffix (4.0.6)
241
+ racc (1.6.0)
242
+ rb-fsevent (0.11.0)
221
243
  rb-inotify (0.10.1)
222
244
  ffi (~> 1.0)
223
- rexml (3.2.4)
224
- rouge (3.23.0)
225
- ruby-enum (0.8.0)
245
+ rexml (3.2.5)
246
+ rouge (3.26.0)
247
+ ruby-enum (0.9.0)
226
248
  i18n
227
- rubyzip (2.3.0)
249
+ ruby2_keywords (0.0.5)
250
+ rubyzip (2.3.2)
228
251
  safe_yaml (1.0.5)
229
252
  sass (3.7.4)
230
253
  sass-listen (~> 4.0.0)
@@ -234,20 +257,20 @@ GEM
234
257
  sawyer (0.8.2)
235
258
  addressable (>= 2.3.5)
236
259
  faraday (> 0.8, < 2.0)
237
- simpleidn (0.1.1)
260
+ simpleidn (0.2.1)
238
261
  unf (~> 0.1.4)
239
262
  terminal-table (1.8.0)
240
263
  unicode-display_width (~> 1.1, >= 1.1.1)
241
264
  thread_safe (0.3.6)
242
265
  typhoeus (1.4.0)
243
266
  ethon (>= 0.9.0)
244
- tzinfo (1.2.7)
267
+ tzinfo (1.2.9)
245
268
  thread_safe (~> 0.1)
246
269
  unf (0.1.4)
247
270
  unf_ext
248
- unf_ext (0.0.7.7)
249
- unicode-display_width (1.7.0)
250
- zeitwerk (2.4.0)
271
+ unf_ext (0.0.8)
272
+ unicode-display_width (1.8.0)
273
+ zeitwerk (2.5.2)
251
274
 
252
275
  PLATFORMS
253
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,10 +145,10 @@ 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
153
  controllers_for_filters.each do |controller|
153
154
  controller.public_send name, *args, &block
@@ -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
 
@@ -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"
@@ -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|
@@ -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
@@ -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
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/filters/active"
2
3
 
3
4
  module ActiveAdmin
@@ -9,34 +10,7 @@ module ActiveAdmin
9
10
  end
10
11
 
11
12
  def block
12
- -> do
13
- active_filters = ActiveAdmin::Filters::Active.new(active_admin_config, assigns[:search])
14
- span do
15
- if current_scope
16
- h4 I18n.t("active_admin.search_status.current_scope"), style: "display: inline"
17
- b scope_name(current_scope), class: "current_scope_name", style: "display: inline"
18
- end
19
- div style: "margin-top: 10px" do
20
- h4 I18n.t("active_admin.search_status.current_filters"), style: "margin-bottom: 10px"
21
- ul do
22
- if active_filters.filters.blank?
23
- li I18n.t("active_admin.search_status.no_current_filters")
24
- else
25
- active_filters.filters.each do |filter|
26
- li filter.html_options do
27
- span do
28
- text_node filter.label
29
- end
30
- b do
31
- text_node to_sentence(filter.values.map { |v| pretty_format(v) })
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
13
+ -> { active_filters_sidebar_content }
40
14
  end
41
15
 
42
16
  def title
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Filters
3
4
  module DSL
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Filters
3
4
  # This form builder defines methods to build filter forms such
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Filters
3
4
  module FormtasticAddons
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Filters
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "active_admin/filters/dsl"
2
3
  require "active_admin/filters/resource_extension"
3
4
  require "active_admin/filters/formtastic_addons"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Provides an intuitive way to build has_many associated records in the same form.
2
3
  module Formtastic
3
4
  module Inputs
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Generators
3
4
  class Boilerplate
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module ActiveAdmin
2
3
  module Helpers
3
4
  module Collection
@@ -5,6 +6,7 @@ module ActiveAdmin
5
6
  # 2. correctly handles the Hash returned when `group by` is used
6
7
  def collection_size(c = collection)
7
8
  return c.count if c.is_a?(Array)
9
+ return c.length if c.limit_value
8
10
 
9
11
  c = c.except :select, :order
10
12