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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +118 -1
- data/CONTRIBUTING.md +6 -6
- data/README.md +3 -3
- data/app/assets/javascripts/active_admin/base.js +12 -5
- data/app/assets/stylesheets/active_admin/_base.scss +53 -37
- data/app/assets/stylesheets/active_admin/_forms.scss +3 -4
- data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
- data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
- data/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +1 -1
- data/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +2 -2
- 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/5-forms.md +6 -1
- data/docs/6-show-pages.md +12 -0
- data/docs/8-custom-actions.md +1 -1
- data/docs/Gemfile +1 -0
- data/docs/Gemfile.lock +114 -90
- data/lib/active_admin/abstract_view_factory.rb +1 -0
- data/lib/active_admin/application.rb +9 -9
- 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 +2 -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 +11 -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 +8 -5
- data/lib/active_admin/error.rb +1 -2
- data/lib/active_admin/filters/active.rb +1 -0
- data/lib/active_admin/filters/active_filter.rb +1 -2
- 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 +5 -2
- 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 -2
- 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 -2
- 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 +2 -1
- 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 -2
- 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 +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.
|
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,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.
|
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)
|
39
56
|
jekyll-commonmark-ghpages (= 0.1.6)
|
40
57
|
jekyll-default-layout (= 0.1.4)
|
41
|
-
jekyll-feed (= 0.
|
58
|
+
jekyll-feed (= 0.15.1)
|
42
59
|
jekyll-gist (= 1.5.0)
|
43
60
|
jekyll-github-metadata (= 2.13.0)
|
44
|
-
jekyll-
|
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.
|
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
|
-
jemoji (= 0.
|
70
|
-
kramdown (= 2.3.
|
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.
|
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
|
-
html-pipeline (2.
|
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)
|
@@ -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.
|
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-
|
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.
|
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.
|
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)
|
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.
|
143
|
-
jekyll (>= 3.
|
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.
|
148
|
-
jekyll (
|
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.
|
151
|
-
jekyll (
|
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.
|
154
|
-
jekyll (
|
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.
|
157
|
-
jekyll (
|
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.
|
160
|
-
jekyll (
|
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.
|
163
|
-
jekyll (
|
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.
|
166
|
-
jekyll (
|
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.
|
169
|
-
jekyll (
|
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.
|
172
|
-
jekyll (
|
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.
|
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.
|
179
|
-
jekyll (
|
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.
|
182
|
-
jekyll (
|
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.
|
185
|
-
jekyll (
|
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.
|
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.
|
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.
|
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.
|
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.
|
230
|
+
minitest (5.15.0)
|
210
231
|
multipart-post (2.1.1)
|
211
|
-
nokogiri (1.
|
212
|
-
mini_portile2 (~> 2.
|
213
|
-
|
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 (
|
219
|
-
|
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.
|
223
|
-
rouge (3.
|
224
|
-
ruby-enum (0.
|
245
|
+
rexml (3.2.5)
|
246
|
+
rouge (3.26.0)
|
247
|
+
ruby-enum (0.9.0)
|
225
248
|
i18n
|
226
|
-
|
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.
|
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.
|
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.
|
248
|
-
unicode-display_width (1.
|
249
|
-
zeitwerk (2.
|
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
|
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,13 +145,13 @@ 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
|
-
|
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: "
|
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
|
|
@@ -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 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
@@ -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
|
data/lib/active_admin/dsl.rb
CHANGED
data/lib/active_admin/engine.rb
CHANGED
@@ -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.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
|
data/lib/active_admin/error.rb
CHANGED
@@ -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
|
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
|