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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -1
- data/app/assets/javascripts/active_admin/base.js +12 -5
- data/app/assets/stylesheets/active_admin/_base.scss +43 -37
- data/app/assets/stylesheets/active_admin/_forms.scss +3 -3
- data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
- data/app/views/active_admin/devise/shared/_links.erb +1 -1
- data/app/views/active_admin/page/index.html.arb +1 -0
- data/app/views/active_admin/resource/edit.html.arb +1 -0
- data/app/views/active_admin/resource/index.html.arb +1 -0
- data/app/views/active_admin/resource/new.html.arb +1 -0
- data/app/views/active_admin/resource/show.html.arb +1 -0
- data/app/views/layouts/active_admin.html.arb +1 -0
- data/config/locales/ko.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/config/locales/ro.yml +3 -2
- data/docs/0-installation.md +1 -1
- data/docs/8-custom-actions.md +1 -1
- data/docs/Gemfile +1 -0
- data/docs/Gemfile.lock +102 -79
- data/lib/active_admin/abstract_view_factory.rb +1 -0
- data/lib/active_admin/application.rb +7 -7
- data/lib/active_admin/application_settings.rb +1 -0
- data/lib/active_admin/asset_registration.rb +1 -0
- data/lib/active_admin/authorization_adapter.rb +1 -0
- data/lib/active_admin/base_controller/authorization.rb +1 -0
- data/lib/active_admin/base_controller/menu.rb +1 -0
- data/lib/active_admin/base_controller.rb +1 -1
- data/lib/active_admin/batch_actions/controller.rb +1 -0
- data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
- data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
- data/lib/active_admin/batch_actions.rb +1 -0
- data/lib/active_admin/callbacks.rb +1 -0
- data/lib/active_admin/cancan_adapter.rb +1 -0
- data/lib/active_admin/collection_decorator.rb +1 -0
- data/lib/active_admin/component.rb +1 -0
- data/lib/active_admin/controller_action.rb +1 -0
- data/lib/active_admin/csv_builder.rb +1 -0
- data/lib/active_admin/dependency.rb +2 -1
- data/lib/active_admin/deprecation.rb +1 -0
- data/lib/active_admin/devise.rb +1 -0
- data/lib/active_admin/dsl.rb +1 -0
- data/lib/active_admin/dynamic_setting.rb +1 -0
- data/lib/active_admin/dynamic_settings_node.rb +1 -0
- data/lib/active_admin/engine.rb +1 -0
- data/lib/active_admin/error.rb +1 -0
- data/lib/active_admin/filters/active.rb +1 -0
- data/lib/active_admin/filters/active_filter.rb +1 -0
- data/lib/active_admin/filters/active_sidebar.rb +2 -28
- data/lib/active_admin/filters/dsl.rb +1 -0
- data/lib/active_admin/filters/forms.rb +1 -0
- data/lib/active_admin/filters/formtastic_addons.rb +1 -0
- data/lib/active_admin/filters/resource_extension.rb +1 -0
- data/lib/active_admin/filters.rb +1 -0
- data/lib/active_admin/form_builder.rb +1 -0
- data/lib/active_admin/generators/boilerplate.rb +1 -0
- data/lib/active_admin/helpers/collection.rb +2 -0
- data/lib/active_admin/helpers/i18n.rb +1 -0
- data/lib/active_admin/helpers/optional_display.rb +1 -0
- data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
- data/lib/active_admin/helpers/scope_chain.rb +1 -0
- data/lib/active_admin/inputs/datepicker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +1 -0
- data/lib/active_admin/inputs/filters/base.rb +1 -0
- data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
- data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
- data/lib/active_admin/inputs/filters/select_input.rb +1 -0
- data/lib/active_admin/inputs/filters/string_input.rb +1 -0
- data/lib/active_admin/inputs/filters/text_input.rb +1 -0
- data/lib/active_admin/inputs.rb +1 -0
- data/lib/active_admin/localizers/resource_localizer.rb +1 -0
- data/lib/active_admin/localizers.rb +1 -0
- data/lib/active_admin/menu.rb +1 -0
- data/lib/active_admin/menu_collection.rb +1 -0
- data/lib/active_admin/menu_item.rb +1 -0
- data/lib/active_admin/namespace.rb +2 -1
- data/lib/active_admin/namespace_settings.rb +1 -0
- data/lib/active_admin/order_clause.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/comment.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
- data/lib/active_admin/orm/active_record/comments.rb +1 -0
- data/lib/active_admin/orm/active_record.rb +1 -0
- data/lib/active_admin/orm/mongoid.rb +1 -0
- data/lib/active_admin/page.rb +1 -0
- data/lib/active_admin/page_controller.rb +1 -0
- data/lib/active_admin/page_dsl.rb +1 -0
- data/lib/active_admin/page_presenter.rb +1 -0
- data/lib/active_admin/pundit_adapter.rb +1 -0
- data/lib/active_admin/resource/action_items.rb +1 -0
- data/lib/active_admin/resource/attributes.rb +1 -0
- data/lib/active_admin/resource/belongs_to.rb +1 -0
- data/lib/active_admin/resource/controllers.rb +1 -0
- data/lib/active_admin/resource/includes.rb +1 -0
- data/lib/active_admin/resource/menu.rb +1 -0
- data/lib/active_admin/resource/model.rb +1 -0
- data/lib/active_admin/resource/naming.rb +1 -0
- data/lib/active_admin/resource/ordering.rb +1 -0
- data/lib/active_admin/resource/page_presenters.rb +1 -0
- data/lib/active_admin/resource/pagination.rb +1 -0
- data/lib/active_admin/resource/routes.rb +1 -0
- data/lib/active_admin/resource/scope_to.rb +1 -0
- data/lib/active_admin/resource/scopes.rb +1 -0
- data/lib/active_admin/resource/sidebars.rb +1 -0
- data/lib/active_admin/resource.rb +1 -0
- data/lib/active_admin/resource_collection.rb +1 -0
- data/lib/active_admin/resource_controller/action_builder.rb +1 -0
- data/lib/active_admin/resource_controller/data_access.rb +3 -2
- data/lib/active_admin/resource_controller/decorators.rb +1 -0
- data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
- data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
- data/lib/active_admin/resource_controller/scoping.rb +1 -0
- data/lib/active_admin/resource_controller/sidebars.rb +1 -0
- data/lib/active_admin/resource_controller/streaming.rb +1 -0
- data/lib/active_admin/resource_controller.rb +1 -0
- data/lib/active_admin/resource_dsl.rb +7 -21
- data/lib/active_admin/router.rb +1 -0
- data/lib/active_admin/scope.rb +1 -0
- data/lib/active_admin/settings_node.rb +1 -0
- data/lib/active_admin/sidebar_section.rb +1 -0
- data/lib/active_admin/version.rb +2 -1
- data/lib/active_admin/view_factory.rb +1 -0
- data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
- data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -0
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
- data/lib/active_admin/view_helpers/display_helper.rb +11 -3
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
- data/lib/active_admin/view_helpers/fields_for.rb +1 -0
- data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
- data/lib/active_admin/view_helpers/form_helper.rb +1 -0
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
- data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
- data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
- data/lib/active_admin/view_helpers/title_helper.rb +1 -0
- data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
- data/lib/active_admin/view_helpers.rb +1 -0
- data/lib/active_admin/views/action_items.rb +1 -0
- data/lib/active_admin/views/components/active_admin_form.rb +2 -1
- data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
- data/lib/active_admin/views/components/attributes_table.rb +1 -0
- data/lib/active_admin/views/components/blank_slate.rb +1 -0
- data/lib/active_admin/views/components/columns.rb +1 -0
- data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
- data/lib/active_admin/views/components/index_list.rb +1 -0
- data/lib/active_admin/views/components/menu.rb +1 -0
- data/lib/active_admin/views/components/menu_item.rb +1 -0
- data/lib/active_admin/views/components/paginated_collection.rb +1 -0
- data/lib/active_admin/views/components/panel.rb +1 -0
- data/lib/active_admin/views/components/scopes.rb +1 -0
- data/lib/active_admin/views/components/sidebar.rb +1 -0
- data/lib/active_admin/views/components/sidebar_section.rb +1 -0
- data/lib/active_admin/views/components/site_title.rb +1 -0
- data/lib/active_admin/views/components/status_tag.rb +1 -0
- data/lib/active_admin/views/components/table_for.rb +1 -0
- data/lib/active_admin/views/components/tabs.rb +1 -0
- data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
- data/lib/active_admin/views/footer.rb +1 -0
- data/lib/active_admin/views/header.rb +1 -0
- data/lib/active_admin/views/index_as_block.rb +1 -0
- data/lib/active_admin/views/index_as_blog.rb +1 -0
- data/lib/active_admin/views/index_as_grid.rb +1 -0
- data/lib/active_admin/views/index_as_table.rb +1 -0
- data/lib/active_admin/views/pages/base.rb +4 -1
- data/lib/active_admin/views/pages/form.rb +1 -0
- data/lib/active_admin/views/pages/index.rb +1 -0
- data/lib/active_admin/views/pages/layout.rb +1 -0
- data/lib/active_admin/views/pages/page.rb +1 -0
- data/lib/active_admin/views/pages/show.rb +1 -0
- data/lib/active_admin/views/tabbed_navigation.rb +1 -0
- data/lib/active_admin/views/title_bar.rb +1 -0
- data/lib/active_admin/views.rb +1 -0
- data/lib/active_admin.rb +2 -1
- data/lib/activeadmin.rb +1 -0
- data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
- data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
- data/lib/generators/active_admin/install/install_generator.rb +1 -0
- data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
- data/lib/generators/active_admin/page/page_generator.rb +1 -0
- data/lib/generators/active_admin/page/templates/page.rb +1 -0
- data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
- data/lib/ransack_ext.rb +1 -0
- 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.
|
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.
|
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.
|
20
|
-
dnsruby (1.61.
|
19
|
+
concurrent-ruby (1.1.9)
|
20
|
+
dnsruby (1.61.7)
|
21
21
|
simpleidn (~> 0.1)
|
22
|
-
em-websocket (0.5.
|
22
|
+
em-websocket (0.5.3)
|
23
23
|
eventmachine (>= 0.12.9)
|
24
|
-
http_parser.rb (~> 0
|
25
|
-
ethon (0.
|
26
|
-
ffi (>= 1.
|
24
|
+
http_parser.rb (~> 0)
|
25
|
+
ethon (0.15.0)
|
26
|
+
ffi (>= 1.15.0)
|
27
27
|
eventmachine (1.2.7)
|
28
|
-
execjs (2.
|
29
|
-
faraday (1.0
|
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
|
-
|
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 (
|
35
|
-
github-pages-health-check (= 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.
|
68
|
+
jekyll-remote-theme (= 0.4.3)
|
51
69
|
jekyll-sass-converter (= 1.5.2)
|
52
|
-
jekyll-seo-tag (= 2.
|
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.
|
56
|
-
jekyll-theme-cayman (= 0.
|
57
|
-
jekyll-theme-dinky (= 0.
|
58
|
-
jekyll-theme-hacker (= 0.
|
59
|
-
jekyll-theme-leap-day (= 0.
|
60
|
-
jekyll-theme-merlot (= 0.
|
61
|
-
jekyll-theme-midnight (= 0.
|
62
|
-
jekyll-theme-minimal (= 0.
|
63
|
-
jekyll-theme-modernist (= 0.
|
64
|
-
jekyll-theme-primer (= 0.
|
65
|
-
jekyll-theme-slate (= 0.
|
66
|
-
jekyll-theme-tactile (= 0.
|
67
|
-
jekyll-theme-time-machine (= 0.
|
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.
|
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.
|
76
|
-
rouge (= 3.
|
93
|
+
nokogiri (>= 1.12.5, < 2.0)
|
94
|
+
rouge (= 3.26.0)
|
77
95
|
terminal-table (~> 1.4)
|
78
|
-
github-pages-health-check (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 (
|
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.
|
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.
|
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.
|
144
|
-
jekyll (>= 3.
|
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.
|
149
|
-
jekyll (
|
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.
|
152
|
-
jekyll (
|
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.
|
155
|
-
jekyll (
|
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.
|
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.
|
161
|
-
jekyll (
|
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.
|
164
|
-
jekyll (
|
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.
|
167
|
-
jekyll (
|
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.
|
170
|
-
jekyll (
|
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.
|
173
|
-
jekyll (
|
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.
|
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.
|
180
|
-
jekyll (
|
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.
|
183
|
-
jekyll (
|
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.
|
186
|
-
jekyll (
|
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.
|
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.
|
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.
|
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.
|
230
|
+
minitest (5.15.0)
|
211
231
|
multipart-post (2.1.1)
|
212
|
-
nokogiri (1.
|
213
|
-
mini_portile2 (~> 2.
|
214
|
-
|
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 (
|
220
|
-
|
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.
|
224
|
-
rouge (3.
|
225
|
-
ruby-enum (0.
|
245
|
+
rexml (3.2.5)
|
246
|
+
rouge (3.26.0)
|
247
|
+
ruby-enum (0.9.0)
|
226
248
|
i18n
|
227
|
-
|
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.
|
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.
|
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.
|
249
|
-
unicode-display_width (1.
|
250
|
-
zeitwerk (2.
|
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
|
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.
|
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.
|
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.
|
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.
|
148
|
+
# ActiveAdmin.before_action :authenticate_admin!
|
148
149
|
#
|
149
150
|
AbstractController::Callbacks::ClassMethods.public_instance_methods.
|
150
|
-
select { |m| m.match(/
|
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: "
|
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/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 Dependency
|
3
4
|
module Requirements
|
@@ -56,7 +57,7 @@ module ActiveAdmin
|
|
56
57
|
end
|
57
58
|
|
58
59
|
def self.supports_zeitwerk?
|
59
|
-
|
60
|
+
RUBY_ENGINE != "jruby"
|
60
61
|
end
|
61
62
|
|
62
63
|
class Matcher
|
data/lib/active_admin/devise.rb
CHANGED
data/lib/active_admin/dsl.rb
CHANGED
data/lib/active_admin/engine.rb
CHANGED
data/lib/active_admin/error.rb
CHANGED
@@ -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
|
-
->
|
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
|
data/lib/active_admin/filters.rb
CHANGED
@@ -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
|
|