administrate 0.20.1 → 1.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +9 -9
- data/app/assets/builds/administrate/application.css +1960 -0
- data/app/assets/builds/administrate/application.css.map +1 -0
- data/app/assets/builds/administrate/application.js +8110 -0
- data/app/assets/builds/administrate/application.js.map +7 -0
- data/app/assets/builds/administrate-internal/docs.css +89 -0
- data/app/assets/builds/administrate-internal/docs.css.map +1 -0
- data/app/assets/config/administrate_manifest.js +2 -0
- data/app/assets/javascripts/administrate/add_jquery.js +4 -0
- data/app/assets/javascripts/administrate/application.js +8 -4
- data/app/assets/stylesheets/administrate/application.scss +2 -1
- data/app/assets/stylesheets/administrate/base/_forms.scss +4 -4
- data/app/assets/stylesheets/administrate/base/_tables.scss +1 -1
- data/app/assets/stylesheets/administrate/components/_attributes.scss +1 -0
- data/app/assets/stylesheets/administrate/components/_buttons.scss +1 -3
- data/app/assets/stylesheets/administrate/components/_cells.scss +19 -19
- data/app/assets/stylesheets/administrate/components/_field-unit.scss +1 -0
- data/app/assets/stylesheets/administrate/components/_main-content.scss +1 -1
- data/app/assets/stylesheets/administrate/components/_navigation.scss +3 -3
- data/app/assets/stylesheets/administrate/components/_search.scss +11 -11
- data/app/assets/stylesheets/administrate/library/_variables.scss +7 -3
- data/app/controllers/administrate/application_controller.rb +19 -19
- data/app/controllers/concerns/administrate/punditize.rb +5 -5
- data/app/helpers/administrate/application_helper.rb +4 -4
- data/lib/administrate/base_dashboard.rb +5 -5
- data/lib/administrate/engine.rb +1 -6
- data/lib/administrate/field/associative.rb +1 -1
- data/lib/administrate/field/base.rb +2 -2
- data/lib/administrate/field/belongs_to.rb +1 -1
- data/lib/administrate/field/date.rb +1 -1
- data/lib/administrate/field/date_time.rb +2 -2
- data/lib/administrate/field/deferred.rb +1 -1
- data/lib/administrate/field/has_many.rb +5 -5
- data/lib/administrate/field/has_one.rb +6 -6
- data/lib/administrate/field/number.rb +2 -2
- data/lib/administrate/field/polymorphic.rb +3 -3
- data/lib/administrate/generator_helpers.rb +1 -1
- data/lib/administrate/namespace/resource.rb +1 -1
- data/lib/administrate/order.rb +6 -6
- data/lib/administrate/page/base.rb +1 -1
- data/lib/administrate/page/collection.rb +2 -2
- data/lib/administrate/page/form.rb +1 -1
- data/lib/administrate/page/show.rb +1 -1
- data/lib/administrate/resource_resolver.rb +1 -1
- data/lib/administrate/search.rb +6 -7
- data/lib/administrate/version.rb +1 -1
- data/lib/administrate/view_generator.rb +3 -3
- data/lib/administrate.rb +18 -18
- data/lib/generators/administrate/dashboard/dashboard_generator.rb +9 -9
- data/lib/generators/administrate/field/field_generator.rb +2 -2
- data/lib/generators/administrate/install/install_generator.rb +2 -2
- data/lib/generators/administrate/routes/routes_generator.rb +5 -5
- data/lib/generators/administrate/views/field_generator.rb +2 -2
- data/lib/generators/administrate/views/layout_generator.rb +1 -1
- metadata +13 -47
- /data/app/assets/stylesheets/{docs.scss → administrate-internal/docs.scss} +0 -0
@@ -18,14 +18,14 @@ module Administrate
|
|
18
18
|
# be `country_ids` instead.
|
19
19
|
#
|
20
20
|
# See https://github.com/rails/rails/blob/b30a23f53b52e59d31358f7b80385ee5c2ba3afe/activerecord/lib/active_record/associations/builder/collection_association.rb#L48
|
21
|
-
{
|
21
|
+
{"#{attr.to_s.singularize}_ids": []}
|
22
22
|
end
|
23
23
|
|
24
24
|
def associated_collection(order = self.order)
|
25
25
|
Administrate::Page::Collection.new(
|
26
26
|
associated_dashboard,
|
27
27
|
order: order,
|
28
|
-
collection_attributes: options[:collection_attributes]
|
28
|
+
collection_attributes: options[:collection_attributes]
|
29
29
|
)
|
30
30
|
end
|
31
31
|
|
@@ -37,7 +37,7 @@ module Administrate
|
|
37
37
|
candidate_resources.map do |associated_resource|
|
38
38
|
[
|
39
39
|
display_candidate_resource(associated_resource),
|
40
|
-
associated_resource.send(association_primary_key)
|
40
|
+
associated_resource.send(association_primary_key)
|
41
41
|
]
|
42
42
|
end
|
43
43
|
end
|
@@ -59,7 +59,7 @@ module Administrate
|
|
59
59
|
def permitted_attribute
|
60
60
|
self.class.permitted_attribute(
|
61
61
|
attribute,
|
62
|
-
resource_class: resource.class
|
62
|
+
resource_class: resource.class
|
63
63
|
)
|
64
64
|
end
|
65
65
|
|
@@ -82,7 +82,7 @@ module Administrate
|
|
82
82
|
def order_from_params(params)
|
83
83
|
Administrate::Order.new(
|
84
84
|
params.fetch(:order, sort_by),
|
85
|
-
params.fetch(:direction, direction)
|
85
|
+
params.fetch(:direction, direction)
|
86
86
|
)
|
87
87
|
end
|
88
88
|
|
@@ -20,10 +20,10 @@ module Administrate
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
related_dashboard_attributes =
|
23
|
-
Administrate::ResourceResolver
|
24
|
-
new("admin/#{final_associated_class_name}")
|
25
|
-
dashboard_class.new.permitted_attributes + [:id]
|
26
|
-
{
|
23
|
+
Administrate::ResourceResolver
|
24
|
+
.new("admin/#{final_associated_class_name}")
|
25
|
+
.dashboard_class.new.permitted_attributes + [:id]
|
26
|
+
{"#{attr}_attributes": related_dashboard_attributes}
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.eager_load?
|
@@ -33,14 +33,14 @@ module Administrate
|
|
33
33
|
def nested_form
|
34
34
|
@nested_form ||= Administrate::Page::Form.new(
|
35
35
|
resolver.dashboard_class.new,
|
36
|
-
data || resolver.resource_class.new
|
36
|
+
data || resolver.resource_class.new
|
37
37
|
)
|
38
38
|
end
|
39
39
|
|
40
40
|
def nested_show
|
41
41
|
@nested_show ||= Administrate::Page::Show.new(
|
42
42
|
resolver.dashboard_class.new,
|
43
|
-
data || resolver.resource_class.new
|
43
|
+
data || resolver.resource_class.new
|
44
44
|
)
|
45
45
|
end
|
46
46
|
|
@@ -38,8 +38,8 @@ module Administrate
|
|
38
38
|
formatter = options[:format][:formatter]
|
39
39
|
formatter_options = options[:format][:formatter_options].to_h
|
40
40
|
|
41
|
-
ActiveSupport::NumberHelper
|
42
|
-
try(formatter, result, **formatter_options) || result
|
41
|
+
ActiveSupport::NumberHelper
|
42
|
+
.try(formatter, result, **formatter_options) || result
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -4,7 +4,7 @@ module Administrate
|
|
4
4
|
module Field
|
5
5
|
class Polymorphic < BelongsTo
|
6
6
|
def self.permitted_attribute(attr, _options = {})
|
7
|
-
{
|
7
|
+
{attr => %i[type value]}
|
8
8
|
end
|
9
9
|
|
10
10
|
def associated_resource_grouped_options
|
@@ -16,11 +16,11 @@ module Administrate
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def permitted_attribute
|
19
|
-
{
|
19
|
+
{attribute => %i[type value]}
|
20
20
|
end
|
21
21
|
|
22
22
|
def selected_global_id
|
23
|
-
data
|
23
|
+
data&.to_global_id
|
24
24
|
end
|
25
25
|
|
26
26
|
private
|
data/lib/administrate/order.rb
CHANGED
@@ -48,7 +48,7 @@ module Administrate
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def opposite_direction
|
51
|
-
direction == :asc ? :desc : :asc
|
51
|
+
(direction == :asc) ? :desc : :asc
|
52
52
|
end
|
53
53
|
|
54
54
|
def order_by_association(relation)
|
@@ -67,10 +67,10 @@ module Administrate
|
|
67
67
|
def order_by_count(relation)
|
68
68
|
klass = reflect_association(relation).klass
|
69
69
|
query = klass.arel_table[klass.primary_key].count.public_send(direction)
|
70
|
-
relation
|
71
|
-
left_joins(attribute.to_sym)
|
72
|
-
group(:id)
|
73
|
-
reorder(query)
|
70
|
+
relation
|
71
|
+
.left_joins(attribute.to_sym)
|
72
|
+
.group(:id)
|
73
|
+
.reorder(query)
|
74
74
|
end
|
75
75
|
|
76
76
|
def order_by_belongs_to(relation)
|
@@ -91,7 +91,7 @@ module Administrate
|
|
91
91
|
|
92
92
|
def order_by_attribute(relation)
|
93
93
|
relation.joins(
|
94
|
-
attribute.to_sym
|
94
|
+
attribute.to_sym
|
95
95
|
).reorder(order_by_attribute_query)
|
96
96
|
end
|
97
97
|
|
@@ -5,7 +5,7 @@ module Administrate
|
|
5
5
|
class Collection < Page::Base
|
6
6
|
def attribute_names
|
7
7
|
options.fetch(:collection_attributes, nil) ||
|
8
|
-
|
8
|
+
dashboard.collection_attributes
|
9
9
|
end
|
10
10
|
|
11
11
|
def attributes_for(resource)
|
@@ -25,7 +25,7 @@ module Administrate
|
|
25
25
|
delegate :ordered_by?, to: :order
|
26
26
|
|
27
27
|
def order_params_for(attr, key: resource_name)
|
28
|
-
{
|
28
|
+
{key => order.order_params_for(attr)}
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
data/lib/administrate/search.rb
CHANGED
@@ -59,8 +59,7 @@ module Administrate
|
|
59
59
|
@scoped_resource.all
|
60
60
|
else
|
61
61
|
results = search_results(@scoped_resource)
|
62
|
-
|
63
|
-
results
|
62
|
+
filter_results(results)
|
64
63
|
end
|
65
64
|
end
|
66
65
|
|
@@ -112,9 +111,9 @@ module Administrate
|
|
112
111
|
end
|
113
112
|
|
114
113
|
def search_results(resources)
|
115
|
-
resources
|
116
|
-
left_joins(tables_to_join)
|
117
|
-
where(query_template, *query_values)
|
114
|
+
resources
|
115
|
+
.left_joins(tables_to_join)
|
116
|
+
.where(query_template, *query_values)
|
118
117
|
end
|
119
118
|
|
120
119
|
def valid_filters
|
@@ -141,8 +140,8 @@ module Administrate
|
|
141
140
|
end
|
142
141
|
ActiveRecord::Base.connection.quote_table_name(unquoted_table_name)
|
143
142
|
else
|
144
|
-
ActiveRecord::Base.connection
|
145
|
-
quote_table_name(@scoped_resource.table_name)
|
143
|
+
ActiveRecord::Base.connection
|
144
|
+
.quote_table_name(@scoped_resource.table_name)
|
146
145
|
end
|
147
146
|
end
|
148
147
|
|
data/lib/administrate/version.rb
CHANGED
@@ -9,13 +9,13 @@ module Administrate
|
|
9
9
|
:namespace,
|
10
10
|
type: :string,
|
11
11
|
desc: "Namespace where the admin dashboards live",
|
12
|
-
default: "admin"
|
12
|
+
default: "admin"
|
13
13
|
)
|
14
14
|
|
15
15
|
def self.template_source_path
|
16
16
|
File.expand_path(
|
17
17
|
"../../../app/views/administrate/application",
|
18
|
-
__FILE__
|
18
|
+
__FILE__
|
19
19
|
)
|
20
20
|
end
|
21
21
|
|
@@ -30,7 +30,7 @@ module Administrate
|
|
30
30
|
|
31
31
|
copy_file(
|
32
32
|
template_file,
|
33
|
-
"app/views/#{namespace}/#{resource_path}/#{template_file}"
|
33
|
+
"app/views/#{namespace}/#{resource_path}/#{template_file}"
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
data/lib/administrate.rb
CHANGED
@@ -4,39 +4,39 @@ require "administrate/version"
|
|
4
4
|
module Administrate
|
5
5
|
def self.warn_of_missing_resource_class
|
6
6
|
deprecator.warn(
|
7
|
-
"Calling Field::Base.permitted_attribute without the option "
|
8
|
-
":resource_class is deprecated. If you are seeing this "
|
9
|
-
"message, you are probably using a custom field type that"
|
10
|
-
"does this. Please make sure to update it to a version that "
|
11
|
-
"does not use a deprecated API"
|
7
|
+
"Calling Field::Base.permitted_attribute without the option " \
|
8
|
+
":resource_class is deprecated. If you are seeing this " \
|
9
|
+
"message, you are probably using a custom field type that" \
|
10
|
+
"does this. Please make sure to update it to a version that " \
|
11
|
+
"does not use a deprecated API"
|
12
12
|
)
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.warn_of_deprecated_option(name)
|
16
16
|
deprecator.warn(
|
17
|
-
"The option :#{name} is deprecated. "
|
18
|
-
"Administrate should detect it automatically. "
|
19
|
-
"Please file an issue at "
|
20
|
-
"https://github.com/thoughtbot/administrate/issues "
|
21
|
-
"if you think otherwise."
|
17
|
+
"The option :#{name} is deprecated. " \
|
18
|
+
"Administrate should detect it automatically. " \
|
19
|
+
"Please file an issue at " \
|
20
|
+
"https://github.com/thoughtbot/administrate/issues " \
|
21
|
+
"if you think otherwise."
|
22
22
|
)
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.warn_of_deprecated_method(klass, method)
|
26
26
|
deprecator.warn(
|
27
|
-
"The method #{klass}##{method} is deprecated. "
|
28
|
-
"If you are seeing this message you are probably "
|
29
|
-
"using a dashboard that depends explicitly on it. "
|
30
|
-
"Please make sure you update it to a version that "
|
31
|
-
"does not use a deprecated API"
|
27
|
+
"The method #{klass}##{method} is deprecated. " \
|
28
|
+
"If you are seeing this message you are probably " \
|
29
|
+
"using a dashboard that depends explicitly on it. " \
|
30
|
+
"Please make sure you update it to a version that " \
|
31
|
+
"does not use a deprecated API"
|
32
32
|
)
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.warn_of_deprecated_authorization_method(method)
|
36
36
|
deprecator.warn(
|
37
|
-
"The method `#{method}` is deprecated. "
|
38
|
-
"Please use `accessible_action?` instead, "
|
39
|
-
"or see the documentation for other options."
|
37
|
+
"The method `#{method}` is deprecated. " \
|
38
|
+
"Please use `accessible_action?` instead, " \
|
39
|
+
"or see the documentation for other options."
|
40
40
|
)
|
41
41
|
end
|
42
42
|
|
@@ -13,14 +13,14 @@ module Administrate
|
|
13
13
|
time: "Field::Time",
|
14
14
|
text: "Field::Text",
|
15
15
|
string: "Field::String",
|
16
|
-
uuid: "Field::String"
|
16
|
+
uuid: "Field::String"
|
17
17
|
}
|
18
18
|
|
19
19
|
ATTRIBUTE_OPTIONS_MAPPING = {
|
20
20
|
# procs must be defined in one line!
|
21
|
-
enum: {
|
22
|
-
|
23
|
-
float: {
|
21
|
+
enum: {searchable: false,
|
22
|
+
collection: ->(field) { field.resource.class.send(field.attribute.to_s.pluralize).keys }},
|
23
|
+
float: {decimals: 2}
|
24
24
|
}
|
25
25
|
|
26
26
|
DEFAULT_FIELD_TYPE = "Field::String.with_options(searchable: false)"
|
@@ -31,7 +31,7 @@ module Administrate
|
|
31
31
|
:namespace,
|
32
32
|
type: :string,
|
33
33
|
desc: "Namespace where the admin dashboards live",
|
34
|
-
default: "admin"
|
34
|
+
default: "admin"
|
35
35
|
)
|
36
36
|
|
37
37
|
source_root File.expand_path("../templates", __FILE__)
|
@@ -39,13 +39,13 @@ module Administrate
|
|
39
39
|
def create_dashboard_definition
|
40
40
|
template(
|
41
41
|
"dashboard.rb.erb",
|
42
|
-
Rails.root.join("app/dashboards/#{file_name}_dashboard.rb")
|
42
|
+
Rails.root.join("app/dashboards/#{file_name}_dashboard.rb")
|
43
43
|
)
|
44
44
|
end
|
45
45
|
|
46
46
|
def create_resource_controller
|
47
47
|
destination = Rails.root.join(
|
48
|
-
"app/controllers/#{namespace}/#{file_name.pluralize}_controller.rb"
|
48
|
+
"app/controllers/#{namespace}/#{file_name.pluralize}_controller.rb"
|
49
49
|
)
|
50
50
|
|
51
51
|
template("controller.rb.erb", destination)
|
@@ -72,7 +72,7 @@ module Administrate
|
|
72
72
|
primary_key,
|
73
73
|
*attrs.sort,
|
74
74
|
created_at,
|
75
|
-
updated_at
|
75
|
+
updated_at
|
76
76
|
].compact
|
77
77
|
end
|
78
78
|
|
@@ -116,7 +116,7 @@ module Administrate
|
|
116
116
|
|
117
117
|
def enum_column?(attr)
|
118
118
|
klass.respond_to?(:defined_enums) &&
|
119
|
-
klass.defined_enums.
|
119
|
+
klass.defined_enums.key?(attr)
|
120
120
|
end
|
121
121
|
|
122
122
|
def column_types(attr)
|
@@ -6,7 +6,7 @@ module Administrate
|
|
6
6
|
def template_field_object
|
7
7
|
template(
|
8
8
|
"field_object.rb.erb",
|
9
|
-
"app/fields/#{file_name}_field.rb"
|
9
|
+
"app/fields/#{file_name}_field.rb"
|
10
10
|
)
|
11
11
|
end
|
12
12
|
|
@@ -23,7 +23,7 @@ module Administrate
|
|
23
23
|
|
24
24
|
copy_file(
|
25
25
|
partial,
|
26
|
-
"app/views/fields/#{file_name}_field/#{partial}"
|
26
|
+
"app/views/fields/#{file_name}_field/#{partial}"
|
27
27
|
)
|
28
28
|
end
|
29
29
|
end
|
@@ -18,7 +18,7 @@ module Administrate
|
|
18
18
|
:namespace,
|
19
19
|
type: :string,
|
20
20
|
desc: "Namespace where the admin dashboards will live",
|
21
|
-
default: "admin"
|
21
|
+
default: "admin"
|
22
22
|
)
|
23
23
|
|
24
24
|
def run_routes_generator
|
@@ -31,7 +31,7 @@ module Administrate
|
|
31
31
|
def create_dashboard_controller
|
32
32
|
template(
|
33
33
|
"application_controller.rb.erb",
|
34
|
-
"app/controllers/#{namespace}/application_controller.rb"
|
34
|
+
"app/controllers/#{namespace}/application_controller.rb"
|
35
35
|
)
|
36
36
|
end
|
37
37
|
|
@@ -18,7 +18,7 @@ module Administrate
|
|
18
18
|
:namespace,
|
19
19
|
type: :string,
|
20
20
|
desc: "Namespace where the admin dashboards live",
|
21
|
-
default: "admin"
|
21
|
+
default: "admin"
|
22
22
|
)
|
23
23
|
|
24
24
|
def insert_dashboard_routes
|
@@ -61,10 +61,10 @@ module Administrate
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def database_models
|
64
|
-
ActiveRecord::Base.descendants
|
65
|
-
reject(&:abstract_class?)
|
66
|
-
reject { |k| k < Administrate::Generators::TestRecord }
|
67
|
-
sort_by(&:to_s)
|
64
|
+
ActiveRecord::Base.descendants
|
65
|
+
.reject(&:abstract_class?)
|
66
|
+
.reject { |k| k < Administrate::Generators::TestRecord }
|
67
|
+
.sort_by(&:to_s)
|
68
68
|
end
|
69
69
|
|
70
70
|
def invalid_dashboard_models
|
@@ -7,7 +7,7 @@ module Administrate
|
|
7
7
|
def self.template_source_path
|
8
8
|
File.expand_path(
|
9
9
|
"../../../../../app/views/fields/",
|
10
|
-
__FILE__
|
10
|
+
__FILE__
|
11
11
|
)
|
12
12
|
end
|
13
13
|
|
@@ -41,7 +41,7 @@ module Administrate
|
|
41
41
|
|
42
42
|
copy_file(
|
43
43
|
template_file,
|
44
|
-
"app/views/fields/#{template_file}"
|
44
|
+
"app/views/fields/#{template_file}"
|
45
45
|
)
|
46
46
|
end
|
47
47
|
end
|
@@ -9,7 +9,7 @@ module Administrate
|
|
9
9
|
def copy_template
|
10
10
|
copy_file(
|
11
11
|
"../../layouts/administrate/application.html.erb",
|
12
|
-
"app/views/layouts/admin/application.html.erb"
|
12
|
+
"app/views/layouts/admin/application.html.erb"
|
13
13
|
)
|
14
14
|
|
15
15
|
call_generator("administrate:views:navigation")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Charlton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -71,20 +71,6 @@ dependencies:
|
|
71
71
|
- - "<"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '8.0'
|
74
|
-
- !ruby/object:Gem::Dependency
|
75
|
-
name: jquery-rails
|
76
|
-
requirement: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 4.6.0
|
81
|
-
type: :runtime
|
82
|
-
prerelease: false
|
83
|
-
version_requirements: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 4.6.0
|
88
74
|
- !ruby/object:Gem::Dependency
|
89
75
|
name: kaminari
|
90
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,34 +85,6 @@ dependencies:
|
|
99
85
|
- - "~>"
|
100
86
|
- !ruby/object:Gem::Version
|
101
87
|
version: 1.2.2
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: sassc-rails
|
104
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '2.1'
|
109
|
-
type: :runtime
|
110
|
-
prerelease: false
|
111
|
-
version_requirements: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '2.1'
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: selectize-rails
|
118
|
-
requirement: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '0.6'
|
123
|
-
type: :runtime
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '0.6'
|
130
88
|
description: |
|
131
89
|
Administrate is heavily inspired by projects like Rails Admin and ActiveAdmin,
|
132
90
|
but aims to provide a better user experience for site admins,
|
@@ -148,10 +106,19 @@ extensions: []
|
|
148
106
|
extra_rdoc_files: []
|
149
107
|
files:
|
150
108
|
- Rakefile
|
109
|
+
- app/assets/builds/administrate-internal/docs.css
|
110
|
+
- app/assets/builds/administrate-internal/docs.css.map
|
111
|
+
- app/assets/builds/administrate/application.css
|
112
|
+
- app/assets/builds/administrate/application.css.map
|
113
|
+
- app/assets/builds/administrate/application.js
|
114
|
+
- app/assets/builds/administrate/application.js.map
|
115
|
+
- app/assets/config/administrate_manifest.js
|
116
|
+
- app/assets/javascripts/administrate/add_jquery.js
|
151
117
|
- app/assets/javascripts/administrate/application.js
|
152
118
|
- app/assets/javascripts/administrate/components/associative.js
|
153
119
|
- app/assets/javascripts/administrate/components/select.js
|
154
120
|
- app/assets/javascripts/administrate/components/table.js
|
121
|
+
- app/assets/stylesheets/administrate-internal/docs.scss
|
155
122
|
- app/assets/stylesheets/administrate/application.scss
|
156
123
|
- app/assets/stylesheets/administrate/base/_forms.scss
|
157
124
|
- app/assets/stylesheets/administrate/base/_layout.scss
|
@@ -174,7 +141,6 @@ files:
|
|
174
141
|
- app/assets/stylesheets/administrate/library/_variables.scss
|
175
142
|
- app/assets/stylesheets/administrate/reset/_normalize.scss
|
176
143
|
- app/assets/stylesheets/administrate/utilities/_text-color.scss
|
177
|
-
- app/assets/stylesheets/docs.scss
|
178
144
|
- app/controllers/administrate/application_controller.rb
|
179
145
|
- app/controllers/concerns/administrate/punditize.rb
|
180
146
|
- app/helpers/administrate/application_helper.rb
|
@@ -359,9 +325,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
359
325
|
version: '0'
|
360
326
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
361
327
|
requirements:
|
362
|
-
- - "
|
328
|
+
- - ">"
|
363
329
|
- !ruby/object:Gem::Version
|
364
|
-
version:
|
330
|
+
version: 1.3.1
|
365
331
|
requirements: []
|
366
332
|
rubygems_version: 3.4.20
|
367
333
|
signing_key:
|
File without changes
|