administrate 0.12.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -2
- data/app/assets/javascripts/administrate/application.js +0 -2
- data/app/assets/javascripts/administrate/components/associative.js +5 -0
- data/app/assets/javascripts/administrate/components/select.js +3 -0
- data/app/assets/javascripts/administrate/components/table.js +1 -1
- data/app/assets/stylesheets/administrate/application.scss +0 -1
- data/app/assets/stylesheets/administrate/base/_forms.scss +1 -1
- data/app/assets/stylesheets/administrate/base/_tables.scss +3 -0
- data/app/assets/stylesheets/administrate/components/_attributes.scss +4 -3
- data/app/assets/stylesheets/administrate/components/_buttons.scss +20 -0
- data/app/assets/stylesheets/administrate/components/_cells.scss +2 -0
- data/app/assets/stylesheets/administrate/components/_field-unit.scss +24 -4
- data/app/assets/stylesheets/administrate/components/_flashes.scss +2 -10
- data/app/assets/stylesheets/administrate/components/_main-content.scss +1 -0
- data/app/assets/stylesheets/administrate/components/_navigation.scss +2 -3
- data/app/assets/stylesheets/administrate/library/_variables.scss +11 -9
- data/app/controllers/administrate/application_controller.rb +127 -25
- data/app/controllers/concerns/administrate/punditize.rb +44 -20
- data/app/helpers/administrate/application_helper.rb +56 -20
- data/app/views/administrate/application/_collection.html.erb +26 -29
- data/app/views/administrate/application/_collection_header_actions.html.erb +4 -0
- data/app/views/administrate/application/_collection_item_actions.html.erb +17 -0
- data/app/views/administrate/application/_flashes.html.erb +1 -0
- data/app/views/administrate/application/_form.html.erb +20 -5
- data/app/views/administrate/application/_icons.html.erb +1 -1
- data/app/views/administrate/application/_index_header.html.erb +28 -0
- data/app/views/administrate/application/_navigation.html.erb +6 -4
- data/app/views/administrate/application/_pagination.html.erb +1 -0
- data/app/views/administrate/application/edit.html.erb +2 -2
- data/app/views/administrate/application/index.html.erb +9 -29
- data/app/views/administrate/application/new.html.erb +1 -1
- data/app/views/administrate/application/show.html.erb +28 -12
- data/app/views/fields/belongs_to/_form.html.erb +3 -3
- data/app/views/fields/belongs_to/_index.html.erb +1 -1
- data/app/views/fields/belongs_to/_show.html.erb +1 -1
- data/app/views/fields/date/_form.html.erb +22 -0
- data/app/views/fields/date/_index.html.erb +21 -0
- data/app/views/fields/date/_show.html.erb +21 -0
- data/app/views/fields/date_time/_form.html.erb +1 -3
- data/app/views/fields/has_many/_index.html.erb +1 -1
- data/app/views/fields/has_many/_show.html.erb +2 -1
- data/app/views/fields/has_one/_form.html.erb +15 -5
- data/app/views/fields/has_one/_index.html.erb +3 -2
- data/app/views/fields/has_one/_show.html.erb +22 -15
- data/app/views/fields/number/_form.html.erb +1 -1
- data/app/views/fields/polymorphic/_index.html.erb +2 -1
- data/app/views/fields/polymorphic/_show.html.erb +1 -1
- data/app/views/fields/select/_form.html.erb +9 -8
- data/app/views/fields/string/_show.html.erb +2 -2
- data/app/views/fields/text/_show.html.erb +2 -3
- data/app/views/fields/time/_form.html.erb +2 -2
- data/app/views/fields/time/_index.html.erb +3 -1
- data/app/views/fields/time/_show.html.erb +3 -1
- data/app/views/fields/url/_index.html.erb +2 -2
- data/app/views/fields/url/_show.html.erb +2 -2
- data/app/views/layouts/administrate/application.html.erb +2 -1
- data/config/locales/administrate.ar.yml +2 -0
- data/config/locales/administrate.bs.yml +2 -0
- data/config/locales/administrate.ca.yml +2 -0
- data/config/locales/administrate.da.yml +2 -0
- data/config/locales/administrate.de.yml +4 -2
- data/config/locales/administrate.en.yml +2 -0
- data/config/locales/administrate.es.yml +2 -0
- data/config/locales/administrate.fi.yml +30 -0
- data/config/locales/administrate.fr.yml +4 -2
- data/config/locales/administrate.id.yml +2 -0
- data/config/locales/administrate.it.yml +2 -0
- data/config/locales/administrate.ja.yml +7 -5
- data/config/locales/administrate.ko.yml +2 -0
- data/config/locales/administrate.nl.yml +7 -5
- data/config/locales/administrate.pl.yml +2 -0
- data/config/locales/administrate.pt-BR.yml +4 -2
- data/config/locales/administrate.pt.yml +4 -2
- data/config/locales/administrate.ru.yml +2 -0
- data/config/locales/administrate.sl.yml +30 -0
- data/config/locales/{administrate.al.yml → administrate.sq.yml} +3 -1
- data/config/locales/administrate.sv.yml +2 -0
- data/config/locales/administrate.tr.yml +30 -0
- data/config/locales/administrate.uk.yml +2 -0
- data/config/locales/administrate.vi.yml +2 -0
- data/config/locales/administrate.zh-CN.yml +2 -0
- data/config/locales/administrate.zh-TW.yml +2 -0
- data/docs/adding_controllers_without_related_model.md +52 -0
- data/docs/adding_custom_field_types.md +3 -1
- data/docs/authentication.md +3 -1
- data/docs/authorization.md +47 -22
- data/docs/customizing_attribute_partials.md +4 -1
- data/docs/customizing_controller_actions.md +67 -1
- data/docs/customizing_dashboards.md +171 -40
- data/docs/customizing_page_views.md +18 -4
- data/docs/extending_administrate.md +27 -0
- data/docs/getting_started.md +35 -11
- data/docs/guides/customising_search.md +149 -0
- data/docs/guides/hiding_dashboards_from_sidebar.md +21 -0
- data/docs/guides/scoping_has_many_relations.md +27 -0
- data/docs/guides.md +7 -0
- data/docs/rails_api.md +5 -3
- data/lib/administrate/base_dashboard.rb +73 -14
- data/lib/administrate/custom_dashboard.rb +15 -0
- data/lib/administrate/engine.rb +9 -2
- data/lib/administrate/field/associative.rb +61 -7
- data/lib/administrate/field/base.rb +39 -9
- data/lib/administrate/field/belongs_to.rb +22 -5
- data/lib/administrate/field/date.rb +20 -0
- data/lib/administrate/field/deferred.rb +26 -3
- data/lib/administrate/field/has_many.rb +35 -8
- data/lib/administrate/field/has_one.rb +36 -12
- data/lib/administrate/field/number.rb +13 -2
- data/lib/administrate/field/polymorphic.rb +7 -6
- data/lib/administrate/field/select.rb +23 -4
- data/lib/administrate/field/time.rb +11 -0
- data/lib/administrate/field/url.rb +4 -0
- data/lib/administrate/namespace.rb +5 -1
- data/lib/administrate/not_authorized_error.rb +20 -0
- data/lib/administrate/order.rb +85 -19
- data/lib/administrate/page/base.rb +5 -3
- data/lib/administrate/page/collection.rb +1 -0
- data/lib/administrate/page/form.rb +12 -4
- data/lib/administrate/page/show.rb +10 -2
- data/lib/administrate/resource_resolver.rb +4 -3
- data/lib/administrate/search.rb +47 -36
- data/lib/administrate/version.rb +1 -1
- data/lib/administrate/view_generator.rb +14 -3
- data/lib/administrate.rb +42 -0
- data/lib/generators/administrate/dashboard/dashboard_generator.rb +38 -16
- data/lib/generators/administrate/dashboard/templates/controller.rb.erb +23 -11
- data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +4 -4
- data/lib/generators/administrate/install/install_generator.rb +43 -2
- data/lib/generators/administrate/install/templates/application_controller.rb.erb +4 -4
- data/lib/generators/administrate/routes/routes_generator.rb +26 -27
- data/lib/generators/administrate/test_record.rb +21 -0
- data/lib/generators/administrate/views/views_generator.rb +5 -4
- metadata +57 -78
- data/app/assets/javascripts/administrate/components/date_time_picker.js +0 -10
- data/app/assets/javascripts/administrate/components/has_many_form.js +0 -3
- data/config/i18n-tasks.yml +0 -18
- data/config/routes.rb +0 -2
- data/config/unicorn.rb +0 -30
@@ -0,0 +1,21 @@
|
|
1
|
+
module Administrate
|
2
|
+
module Generators
|
3
|
+
# This class serves only to work around a strange behaviour in Rails 7
|
4
|
+
# with Ruby 3.
|
5
|
+
#
|
6
|
+
# After running the spec for DashboardGenerator, the fake models that
|
7
|
+
# it generates (eg: Foo, Shipment) linger around despite being removed
|
8
|
+
# explicitly. This causes RouteGenerator to take them into
|
9
|
+
# account and generate routes for them, which its spec doesn't expect,
|
10
|
+
# causing a spec failure.
|
11
|
+
#
|
12
|
+
# To avoid this, the spec for DashboardGenerator defines its fake models
|
13
|
+
# as children of TestRecord. Then RoutesGenerator explicitly filters
|
14
|
+
# child classes of TestRecord when figuring out what models exist.
|
15
|
+
#
|
16
|
+
# Discussion at https://github.com/thoughtbot/administrate/pull/2324
|
17
|
+
class TestRecord < ApplicationRecord
|
18
|
+
self.abstract_class = true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -4,10 +4,11 @@ module Administrate
|
|
4
4
|
module Generators
|
5
5
|
class ViewsGenerator < Administrate::ViewGenerator
|
6
6
|
def copy_templates
|
7
|
-
|
8
|
-
call_generator("
|
9
|
-
call_generator("
|
10
|
-
call_generator("
|
7
|
+
view = "administrate:views:"
|
8
|
+
call_generator("#{view}index", resource_path, "--namespace", namespace)
|
9
|
+
call_generator("#{view}show", resource_path, "--namespace", namespace)
|
10
|
+
call_generator("#{view}new", resource_path, "--namespace", namespace)
|
11
|
+
call_generator("#{view}edit", resource_path, "--namespace", namespace)
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Charlton
|
8
8
|
- Grayson Wright
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -17,49 +17,50 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '6.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '8.0'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
30
|
+
version: '6.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '8.0'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: actionview
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
38
|
- - ">="
|
33
39
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
-
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '4.2'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: activerecord
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
40
|
+
version: '6.0'
|
41
|
+
- - "<"
|
47
42
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
43
|
+
version: '8.0'
|
49
44
|
type: :runtime
|
50
45
|
prerelease: false
|
51
46
|
version_requirements: !ruby/object:Gem::Requirement
|
52
47
|
requirements:
|
53
48
|
- - ">="
|
54
49
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
50
|
+
version: '6.0'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '8.0'
|
56
54
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
55
|
+
name: activerecord
|
58
56
|
requirement: !ruby/object:Gem::Requirement
|
59
57
|
requirements:
|
60
58
|
- - ">="
|
61
59
|
- !ruby/object:Gem::Version
|
62
60
|
version: '6.0'
|
61
|
+
- - "<"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '8.0'
|
63
64
|
type: :runtime
|
64
65
|
prerelease: false
|
65
66
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,62 +68,37 @@ dependencies:
|
|
67
68
|
- - ">="
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '6.0'
|
70
|
-
-
|
71
|
-
name: datetime_picker_rails
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - "~>"
|
71
|
+
- - "<"
|
75
72
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
77
|
-
type: :runtime
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 0.0.7
|
73
|
+
version: '8.0'
|
84
74
|
- !ruby/object:Gem::Dependency
|
85
75
|
name: jquery-rails
|
86
76
|
requirement: !ruby/object:Gem::Requirement
|
87
77
|
requirements:
|
88
|
-
- - "
|
78
|
+
- - "~>"
|
89
79
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
80
|
+
version: 4.6.0
|
91
81
|
type: :runtime
|
92
82
|
prerelease: false
|
93
83
|
version_requirements: !ruby/object:Gem::Requirement
|
94
84
|
requirements:
|
95
|
-
- - "
|
85
|
+
- - "~>"
|
96
86
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
87
|
+
version: 4.6.0
|
98
88
|
- !ruby/object:Gem::Dependency
|
99
89
|
name: kaminari
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '1.0'
|
105
|
-
type: :runtime
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '1.0'
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: momentjs-rails
|
114
90
|
requirement: !ruby/object:Gem::Requirement
|
115
91
|
requirements:
|
116
92
|
- - "~>"
|
117
93
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
94
|
+
version: 1.2.2
|
119
95
|
type: :runtime
|
120
96
|
prerelease: false
|
121
97
|
version_requirements: !ruby/object:Gem::Requirement
|
122
98
|
requirements:
|
123
99
|
- - "~>"
|
124
100
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
101
|
+
version: 1.2.2
|
126
102
|
- !ruby/object:Gem::Dependency
|
127
103
|
name: sassc-rails
|
128
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,20 +127,6 @@ dependencies:
|
|
151
127
|
- - "~>"
|
152
128
|
- !ruby/object:Gem::Version
|
153
129
|
version: '0.6'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: rspec-rails
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
type: :development
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
130
|
description: |
|
169
131
|
Administrate is heavily inspired by projects like Rails Admin and ActiveAdmin,
|
170
132
|
but aims to provide a better user experience for site admins,
|
@@ -187,8 +149,8 @@ extra_rdoc_files: []
|
|
187
149
|
files:
|
188
150
|
- Rakefile
|
189
151
|
- app/assets/javascripts/administrate/application.js
|
190
|
-
- app/assets/javascripts/administrate/components/
|
191
|
-
- app/assets/javascripts/administrate/components/
|
152
|
+
- app/assets/javascripts/administrate/components/associative.js
|
153
|
+
- app/assets/javascripts/administrate/components/select.js
|
192
154
|
- app/assets/javascripts/administrate/components/table.js
|
193
155
|
- app/assets/stylesheets/administrate/application.scss
|
194
156
|
- app/assets/stylesheets/administrate/base/_forms.scss
|
@@ -217,11 +179,15 @@ files:
|
|
217
179
|
- app/controllers/concerns/administrate/punditize.rb
|
218
180
|
- app/helpers/administrate/application_helper.rb
|
219
181
|
- app/views/administrate/application/_collection.html.erb
|
182
|
+
- app/views/administrate/application/_collection_header_actions.html.erb
|
183
|
+
- app/views/administrate/application/_collection_item_actions.html.erb
|
220
184
|
- app/views/administrate/application/_flashes.html.erb
|
221
185
|
- app/views/administrate/application/_form.html.erb
|
222
186
|
- app/views/administrate/application/_icons.html.erb
|
187
|
+
- app/views/administrate/application/_index_header.html.erb
|
223
188
|
- app/views/administrate/application/_javascript.html.erb
|
224
189
|
- app/views/administrate/application/_navigation.html.erb
|
190
|
+
- app/views/administrate/application/_pagination.html.erb
|
225
191
|
- app/views/administrate/application/_search.html.erb
|
226
192
|
- app/views/administrate/application/_stylesheet.html.erb
|
227
193
|
- app/views/administrate/application/edit.html.erb
|
@@ -234,6 +200,9 @@ files:
|
|
234
200
|
- app/views/fields/boolean/_form.html.erb
|
235
201
|
- app/views/fields/boolean/_index.html.erb
|
236
202
|
- app/views/fields/boolean/_show.html.erb
|
203
|
+
- app/views/fields/date/_form.html.erb
|
204
|
+
- app/views/fields/date/_index.html.erb
|
205
|
+
- app/views/fields/date/_show.html.erb
|
237
206
|
- app/views/fields/date_time/_form.html.erb
|
238
207
|
- app/views/fields/date_time/_index.html.erb
|
239
208
|
- app/views/fields/date_time/_show.html.erb
|
@@ -271,8 +240,6 @@ files:
|
|
271
240
|
- app/views/fields/url/_index.html.erb
|
272
241
|
- app/views/fields/url/_show.html.erb
|
273
242
|
- app/views/layouts/administrate/application.html.erb
|
274
|
-
- config/i18n-tasks.yml
|
275
|
-
- config/locales/administrate.al.yml
|
276
243
|
- config/locales/administrate.ar.yml
|
277
244
|
- config/locales/administrate.bs.yml
|
278
245
|
- config/locales/administrate.ca.yml
|
@@ -280,6 +247,7 @@ files:
|
|
280
247
|
- config/locales/administrate.de.yml
|
281
248
|
- config/locales/administrate.en.yml
|
282
249
|
- config/locales/administrate.es.yml
|
250
|
+
- config/locales/administrate.fi.yml
|
283
251
|
- config/locales/administrate.fr.yml
|
284
252
|
- config/locales/administrate.id.yml
|
285
253
|
- config/locales/administrate.it.yml
|
@@ -290,13 +258,15 @@ files:
|
|
290
258
|
- config/locales/administrate.pt-BR.yml
|
291
259
|
- config/locales/administrate.pt.yml
|
292
260
|
- config/locales/administrate.ru.yml
|
261
|
+
- config/locales/administrate.sl.yml
|
262
|
+
- config/locales/administrate.sq.yml
|
293
263
|
- config/locales/administrate.sv.yml
|
264
|
+
- config/locales/administrate.tr.yml
|
294
265
|
- config/locales/administrate.uk.yml
|
295
266
|
- config/locales/administrate.vi.yml
|
296
267
|
- config/locales/administrate.zh-CN.yml
|
297
268
|
- config/locales/administrate.zh-TW.yml
|
298
|
-
-
|
299
|
-
- config/unicorn.rb
|
269
|
+
- docs/adding_controllers_without_related_model.md
|
300
270
|
- docs/adding_custom_field_types.md
|
301
271
|
- docs/authentication.md
|
302
272
|
- docs/authorization.md
|
@@ -304,15 +274,22 @@ files:
|
|
304
274
|
- docs/customizing_controller_actions.md
|
305
275
|
- docs/customizing_dashboards.md
|
306
276
|
- docs/customizing_page_views.md
|
277
|
+
- docs/extending_administrate.md
|
307
278
|
- docs/getting_started.md
|
279
|
+
- docs/guides.md
|
280
|
+
- docs/guides/customising_search.md
|
281
|
+
- docs/guides/hiding_dashboards_from_sidebar.md
|
282
|
+
- docs/guides/scoping_has_many_relations.md
|
308
283
|
- docs/rails_api.md
|
309
284
|
- lib/administrate.rb
|
310
285
|
- lib/administrate/base_dashboard.rb
|
286
|
+
- lib/administrate/custom_dashboard.rb
|
311
287
|
- lib/administrate/engine.rb
|
312
288
|
- lib/administrate/field/associative.rb
|
313
289
|
- lib/administrate/field/base.rb
|
314
290
|
- lib/administrate/field/belongs_to.rb
|
315
291
|
- lib/administrate/field/boolean.rb
|
292
|
+
- lib/administrate/field/date.rb
|
316
293
|
- lib/administrate/field/date_time.rb
|
317
294
|
- lib/administrate/field/deferred.rb
|
318
295
|
- lib/administrate/field/email.rb
|
@@ -329,6 +306,7 @@ files:
|
|
329
306
|
- lib/administrate/generator_helpers.rb
|
330
307
|
- lib/administrate/namespace.rb
|
331
308
|
- lib/administrate/namespace/resource.rb
|
309
|
+
- lib/administrate/not_authorized_error.rb
|
332
310
|
- lib/administrate/order.rb
|
333
311
|
- lib/administrate/page.rb
|
334
312
|
- lib/administrate/page/base.rb
|
@@ -355,6 +333,7 @@ files:
|
|
355
333
|
- lib/generators/administrate/install/templates/application_controller.rb.erb
|
356
334
|
- lib/generators/administrate/routes/routes_generator.rb
|
357
335
|
- lib/generators/administrate/routes/templates/routes.rb.erb
|
336
|
+
- lib/generators/administrate/test_record.rb
|
358
337
|
- lib/generators/administrate/views/edit_generator.rb
|
359
338
|
- lib/generators/administrate/views/field_generator.rb
|
360
339
|
- lib/generators/administrate/views/form_generator.rb
|
@@ -365,11 +344,11 @@ files:
|
|
365
344
|
- lib/generators/administrate/views/show_generator.rb
|
366
345
|
- lib/generators/administrate/views/views_generator.rb
|
367
346
|
- lib/tasks/administrate_tasks.rake
|
368
|
-
homepage: https://administrate-
|
347
|
+
homepage: https://administrate-demo.herokuapp.com/
|
369
348
|
licenses:
|
370
349
|
- MIT
|
371
350
|
metadata: {}
|
372
|
-
post_install_message:
|
351
|
+
post_install_message:
|
373
352
|
rdoc_options: []
|
374
353
|
require_paths:
|
375
354
|
- lib
|
@@ -384,8 +363,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
363
|
- !ruby/object:Gem::Version
|
385
364
|
version: '0'
|
386
365
|
requirements: []
|
387
|
-
rubygems_version: 3.
|
388
|
-
signing_key:
|
366
|
+
rubygems_version: 3.4.20
|
367
|
+
signing_key:
|
389
368
|
specification_version: 4
|
390
369
|
summary: A Rails engine for creating super-flexible admin dashboards
|
391
370
|
test_files: []
|
data/config/i18n-tasks.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
search:
|
2
|
-
paths:
|
3
|
-
- "app/controllers"
|
4
|
-
- "app/helpers"
|
5
|
-
- "app/pages"
|
6
|
-
- "app/views"
|
7
|
-
|
8
|
-
data:
|
9
|
-
read:
|
10
|
-
- config/locales/administrate.%{locale}.yml
|
11
|
-
|
12
|
-
ignore_unused:
|
13
|
-
- activerecord.*
|
14
|
-
- administrate.*
|
15
|
-
- date.*
|
16
|
-
- simple_form.*
|
17
|
-
- time.*
|
18
|
-
- titles.*
|
data/config/routes.rb
DELETED
data/config/unicorn.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# https://devcenter.heroku.com/articles/rails-unicorn
|
2
|
-
|
3
|
-
worker_processes (ENV["UNICORN_WORKERS"] || 3).to_i
|
4
|
-
timeout (ENV["UNICORN_TIMEOUT"] || 15).to_i
|
5
|
-
preload_app true
|
6
|
-
|
7
|
-
before_fork do |_server, _worker|
|
8
|
-
Signal.trap "TERM" do
|
9
|
-
puts "Unicorn master intercepting TERM, sending myself QUIT instead"
|
10
|
-
Process.kill "QUIT", Process.pid
|
11
|
-
end
|
12
|
-
|
13
|
-
if defined? ActiveRecord::Base
|
14
|
-
ActiveRecord::Base.connection.disconnect!
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
after_fork do |_server, _worker|
|
19
|
-
Signal.trap "TERM" do
|
20
|
-
puts "Unicorn worker intercepting TERM, waiting for master to send QUIT"
|
21
|
-
end
|
22
|
-
|
23
|
-
if defined? ActiveRecord::Base
|
24
|
-
config = ActiveRecord::Base.configurations[Rails.env] ||
|
25
|
-
Rails.application.config.database_configuration[Rails.env]
|
26
|
-
config["reaping_frequency"] = (ENV["DB_REAPING_FREQUENCY"] || 10).to_i
|
27
|
-
config["pool"] = (ENV["DB_POOL"] || 2).to_i
|
28
|
-
ActiveRecord::Base.establish_connection(config)
|
29
|
-
end
|
30
|
-
end
|