activeadmin 2.1.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +112 -27
  3. data/CONTRIBUTING.md +50 -26
  4. data/README.md +8 -1
  5. data/app/assets/javascripts/active_admin/base.js +509 -0
  6. data/app/assets/stylesheets/active_admin/_base.scss +29 -29
  7. data/app/assets/stylesheets/active_admin/_header.scss +3 -5
  8. data/app/assets/stylesheets/active_admin/_mixins.scss +1 -1
  9. data/{vendor → app}/assets/stylesheets/active_admin/_normalize.scss +0 -0
  10. data/app/assets/stylesheets/active_admin/components/_tables.scss +1 -2
  11. data/app/assets/stylesheets/active_admin/mixins/_all.scss +8 -8
  12. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +5 -0
  13. data/app/assets/stylesheets/active_admin/print.scss +2 -2
  14. data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +1 -1
  15. data/app/javascript/active_admin/base.js +19 -0
  16. data/app/{assets/javascripts/active_admin/ext/jquery-ui.es6 → javascript/active_admin/ext/jquery-ui.js} +0 -0
  17. data/app/{assets/javascripts/active_admin/ext/jquery.es6 → javascript/active_admin/ext/jquery.js} +0 -0
  18. data/app/{assets/javascripts/active_admin/lib/batch_actions.es6 → javascript/active_admin/initializers/batch-actions.js} +9 -3
  19. data/app/javascript/active_admin/initializers/checkbox-toggler.js +3 -0
  20. data/app/{assets/javascripts/active_admin/initializers/datepicker.es6 → javascript/active_admin/initializers/datepicker.js} +0 -0
  21. data/app/javascript/active_admin/initializers/dropdown-menu.js +9 -0
  22. data/app/javascript/active_admin/initializers/filters.js +10 -0
  23. data/app/{assets/javascripts/active_admin/lib/has_many.es6 → javascript/active_admin/initializers/has-many.js} +0 -0
  24. data/app/javascript/active_admin/initializers/per-page.js +13 -0
  25. data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +3 -0
  26. data/app/{assets/javascripts/active_admin/initializers/tabs.es6 → javascript/active_admin/initializers/tabs.js} +0 -0
  27. data/app/{assets/javascripts/active_admin/lib/checkbox-toggler.es6 → javascript/active_admin/lib/checkbox-toggler.js} +2 -2
  28. data/app/{assets/javascripts/active_admin/lib/dropdown-menu.es6 → javascript/active_admin/lib/dropdown-menu.js} +2 -9
  29. data/app/javascript/active_admin/lib/filters.js +39 -0
  30. data/app/{assets/javascripts/active_admin/lib/modal_dialog.es6 → javascript/active_admin/lib/modal-dialog.js} +3 -1
  31. data/app/javascript/active_admin/lib/per-page.js +38 -0
  32. data/app/{assets/javascripts/active_admin/lib/table-checkbox-toggler.es6 → javascript/active_admin/lib/table-checkbox-toggler.js} +4 -2
  33. data/app/javascript/active_admin/lib/utils.js +40 -0
  34. data/app/views/kaminari/active_admin_countless/_first_page.html.erb +11 -0
  35. data/app/views/kaminari/active_admin_countless/_gap.html.erb +8 -0
  36. data/app/views/kaminari/active_admin_countless/_next_page.html.erb +11 -0
  37. data/app/views/kaminari/active_admin_countless/_page.html.erb +12 -0
  38. data/app/views/kaminari/active_admin_countless/_paginator.html.erb +24 -0
  39. data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +11 -0
  40. data/config/locales/ar.yml +3 -2
  41. data/config/locales/az.yml +138 -0
  42. data/config/locales/bg.yml +1 -0
  43. data/config/locales/bs.yml +1 -0
  44. data/config/locales/ca.yml +1 -1
  45. data/config/locales/cs.yml +1 -0
  46. data/config/locales/da.yml +1 -0
  47. data/config/locales/de-CH.yml +1 -0
  48. data/config/locales/de.yml +19 -0
  49. data/config/locales/el.yml +1 -0
  50. data/config/locales/en-CA.yml +1 -0
  51. data/config/locales/en-GB.yml +1 -0
  52. data/config/locales/en.yml +1 -0
  53. data/config/locales/eo.yml +1 -0
  54. data/config/locales/es-MX.yml +1 -0
  55. data/config/locales/es.yml +1 -0
  56. data/config/locales/fa.yml +1 -0
  57. data/config/locales/fi.yml +1 -0
  58. data/config/locales/fr.yml +2 -1
  59. data/config/locales/he.yml +1 -0
  60. data/config/locales/hr.yml +1 -0
  61. data/config/locales/hu.yml +1 -0
  62. data/config/locales/id.yml +1 -0
  63. data/config/locales/it.yml +1 -0
  64. data/config/locales/ja.yml +1 -0
  65. data/config/locales/ko.yml +1 -0
  66. data/config/locales/lt.yml +1 -0
  67. data/config/locales/lv.yml +1 -0
  68. data/config/locales/mk.yml +134 -0
  69. data/config/locales/nb.yml +1 -0
  70. data/config/locales/nl.yml +1 -0
  71. data/config/locales/pl.yml +1 -0
  72. data/config/locales/pt-BR.yml +1 -0
  73. data/config/locales/pt-PT.yml +1 -0
  74. data/config/locales/ro.yml +1 -0
  75. data/config/locales/ru.yml +1 -0
  76. data/config/locales/sk.yml +60 -0
  77. data/config/locales/sv-SE.yml +1 -0
  78. data/config/locales/tr.yml +1 -0
  79. data/config/locales/uk.yml +1 -0
  80. data/config/locales/vi.yml +1 -0
  81. data/config/locales/zh-CN.yml +1 -0
  82. data/config/locales/zh-TW.yml +1 -0
  83. data/docs/1-general-configuration.md +20 -0
  84. data/docs/12-arbre-components.md +13 -0
  85. data/docs/13-authorization-adapter.md +2 -2
  86. data/docs/2-resource-customization.md +1 -1
  87. data/docs/3-index-pages/index-as-table.md +7 -0
  88. data/docs/Gemfile +0 -1
  89. data/docs/Gemfile.lock +58 -58
  90. data/docs/_config.yml +2 -0
  91. data/docs/_includes/top-menu.html +2 -2
  92. data/docs/index.html +108 -7
  93. data/docs/stylesheets/main.css +29 -0
  94. data/lib/active_admin.rb +0 -1
  95. data/lib/active_admin/application.rb +12 -3
  96. data/lib/active_admin/batch_actions/resource_extension.rb +5 -1
  97. data/lib/active_admin/controller_action.rb +2 -1
  98. data/lib/active_admin/csv_builder.rb +3 -2
  99. data/lib/active_admin/dependency.rb +0 -4
  100. data/lib/active_admin/error.rb +3 -1
  101. data/lib/active_admin/filters/active_filter.rb +3 -4
  102. data/lib/active_admin/filters/resource_extension.rb +24 -0
  103. data/lib/active_admin/generators/boilerplate.rb +12 -4
  104. data/lib/active_admin/inputs/filters/date_range_input.rb +4 -4
  105. data/lib/active_admin/namespace_settings.rb +13 -0
  106. data/lib/active_admin/order_clause.rb +1 -1
  107. data/lib/active_admin/page_presenter.rb +2 -1
  108. data/lib/active_admin/pundit_adapter.rb +7 -3
  109. data/lib/active_admin/resource.rb +16 -2
  110. data/lib/active_admin/resource/belongs_to.rb +6 -1
  111. data/lib/active_admin/resource/model.rb +15 -0
  112. data/lib/active_admin/resource/routes.rb +11 -3
  113. data/lib/active_admin/resource_controller.rb +2 -0
  114. data/lib/active_admin/resource_controller/decorators.rb +2 -2
  115. data/lib/active_admin/resource_controller/polymorphic_routes.rb +37 -0
  116. data/lib/active_admin/router.rb +2 -1
  117. data/lib/active_admin/scope.rb +7 -3
  118. data/lib/active_admin/sidebar_section.rb +3 -1
  119. data/lib/active_admin/version.rb +1 -1
  120. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +2 -2
  121. data/lib/active_admin/view_helpers/display_helper.rb +3 -2
  122. data/lib/active_admin/views/components/paginated_collection.rb +3 -2
  123. data/lib/active_admin/views/components/status_tag.rb +5 -1
  124. data/lib/active_admin/views/components/table_for.rb +1 -0
  125. data/lib/active_admin/views/index_as_table.rb +7 -0
  126. data/lib/active_admin/views/pages/base.rb +1 -1
  127. data/lib/active_admin/views/pages/index.rb +1 -0
  128. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +14 -1
  129. data/lib/generators/active_admin/resource/templates/admin.rb.erb +40 -37
  130. data/lib/ransack_ext.rb +2 -2
  131. metadata +38 -45
  132. data/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
  133. data/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
  134. data/app/assets/images/active_admin/orderable.png +0 -0
  135. data/app/assets/javascripts/active_admin/base.es6 +0 -23
  136. data/app/assets/javascripts/active_admin/initializers/filters.es6 +0 -45
  137. data/app/assets/javascripts/active_admin/lib/active_admin.es6 +0 -41
  138. data/app/assets/javascripts/active_admin/lib/per_page.es6 +0 -47
@@ -1,6 +1,7 @@
1
1
  require 'active_admin/resource_controller/action_builder'
2
2
  require 'active_admin/resource_controller/data_access'
3
3
  require 'active_admin/resource_controller/decorators'
4
+ require 'active_admin/resource_controller/polymorphic_routes'
4
5
  require 'active_admin/resource_controller/scoping'
5
6
  require 'active_admin/resource_controller/streaming'
6
7
  require 'active_admin/resource_controller/sidebars'
@@ -18,6 +19,7 @@ module ActiveAdmin
18
19
  include ActionBuilder
19
20
  include Decorators
20
21
  include DataAccess
22
+ include PolymorphicRoutes
21
23
  include Scoping
22
24
  include Streaming
23
25
  include Sidebars
@@ -67,8 +67,8 @@ module ActiveAdmin
67
67
  def self.wrap!(parent, name)
68
68
  ::Class.new parent do
69
69
  delegate :reorder, :page, :current_page, :total_pages, :limit_value,
70
- :total_count, :total_pages, :to_key, :group_values, :except,
71
- :find_each, :ransack
70
+ :total_count, :total_pages, :offset, :to_key, :group_values,
71
+ :except, :find_each, :ransack
72
72
 
73
73
  define_singleton_method(:name) { name }
74
74
  end
@@ -0,0 +1,37 @@
1
+ require "active_admin/resource"
2
+ require "active_admin/resource/model"
3
+
4
+ module ActiveAdmin
5
+ class ResourceController < BaseController
6
+ module PolymorphicRoutes
7
+ def polymorphic_url(record_or_hash_or_array, options = {})
8
+ super(map_named_resources_for(record_or_hash_or_array), options)
9
+ end
10
+
11
+ def polymorphic_path(record_or_hash_or_array, options = {})
12
+ super(map_named_resources_for(record_or_hash_or_array), options)
13
+ end
14
+
15
+ private
16
+
17
+ def map_named_resources_for(record_or_hash_or_array)
18
+ return record_or_hash_or_array unless record_or_hash_or_array.is_a?(Array)
19
+
20
+ record_or_hash_or_array.map { |record| to_named_resource(record) }
21
+ end
22
+
23
+ def to_named_resource(record)
24
+ if record.is_a?(resource_class)
25
+ return ActiveAdmin::Model.new(active_admin_config, record)
26
+ end
27
+
28
+ belongs_to_resource = active_admin_config.belongs_to_config.try(:resource)
29
+ if belongs_to_resource && record.is_a?(belongs_to_resource.resource_class)
30
+ return ActiveAdmin::Model.new(belongs_to_resource, record)
31
+ end
32
+
33
+ record
34
+ end
35
+ end
36
+ end
37
+ end
@@ -4,7 +4,8 @@ module ActiveAdmin
4
4
  attr_reader :namespaces, :router
5
5
 
6
6
  def initialize(router:, namespaces:)
7
- @router, @namespaces = router, namespaces
7
+ @router = router
8
+ @namespaces = namespaces
8
9
  end
9
10
 
10
11
  def apply
@@ -28,7 +28,8 @@ module ActiveAdmin
28
28
  # # => Scope with the group :status
29
29
  #
30
30
  def initialize(name, method = nil, options = {}, &block)
31
- @name, @scope_method = name, method.try(:to_sym)
31
+ @name = name
32
+ @scope_method = method.try(:to_sym)
32
33
 
33
34
  if name.is_a? Proc
34
35
  raise "A string/symbol is required as the second argument if your label is a proc." unless method
@@ -38,8 +39,11 @@ module ActiveAdmin
38
39
  @id = name.to_s.parameterize(separator: "_")
39
40
  end
40
41
 
41
- @scope_method = nil if @scope_method == :all
42
- @scope_method, @scope_block = nil, block if block_given?
42
+ @scope_method = nil if @scope_method == :all
43
+ if block_given?
44
+ @scope_method = nil
45
+ @scope_block = block
46
+ end
43
47
 
44
48
  @localizer = options[:localizer]
45
49
  @show_count = options.fetch(:show_count, true)
@@ -6,7 +6,9 @@ module ActiveAdmin
6
6
  attr_accessor :name, :options, :block
7
7
 
8
8
  def initialize(name, options = {}, &block)
9
- @name, @options, @block = name.to_s, options, block
9
+ @name = name.to_s
10
+ @options = options
11
+ @block = block
10
12
  normalize_display_options!
11
13
  end
12
14
 
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '2.1.0'
2
+ VERSION = '2.5.0'
3
3
  end
@@ -12,9 +12,9 @@ module ActiveAdmin
12
12
  # 1. try using `display_name` if we can locate a DB object
13
13
  # 2. try using the model name translation
14
14
  # 3. default to calling `titlecase` on the URL fragment
15
- if part =~ /\A(\d+|[a-f0-9]{24}|(?:[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}))\z/ && parts[index-1]
15
+ if part =~ /\A(\d+|[a-f0-9]{24}|(?:[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}))\z/ && parts[index - 1]
16
16
  parent = active_admin_config.belongs_to_config.try :target
17
- config = parent && parent.resource_name.route_key == parts[index-1] ? parent : active_admin_config
17
+ config = parent && parent.resource_name.route_key == parts[index - 1] ? parent : active_admin_config
18
18
  name = display_name config.find_resource part
19
19
  end
20
20
  name ||= I18n.t "activerecord.models.#{part.singularize}", count: ::ActiveAdmin::Helpers::I18n::PLURAL_MANY_COUNT, default: part.titlecase
@@ -3,7 +3,8 @@ module ActiveAdmin
3
3
  module DisplayHelper
4
4
 
5
5
  DISPLAY_NAME_FALLBACK = -> {
6
- name, klass = "", self.class
6
+ name = ""
7
+ klass = self.class
7
8
  name << klass.model_name.human if klass.respond_to? :model_name
8
9
  name << " ##{send(klass.primary_key)}" if klass.respond_to? :primary_key
9
10
  name.present? ? name : to_s
@@ -15,7 +16,7 @@ module ActiveAdmin
15
16
  # Attempts to call any known display name methods on the resource.
16
17
  # See the setting in `application.rb` for the list of methods and their priority.
17
18
  def display_name(resource)
18
- sanitize(render_in_context(resource, display_name_method_for(resource)).to_s) unless resource.nil?
19
+ ERB::Util.html_escape(render_in_context(resource, display_name_method_for(resource))) unless resource.nil?
19
20
  end
20
21
 
21
22
  # Looks up and caches the first available display name method.
@@ -92,11 +92,11 @@ module ActiveAdmin
92
92
  end
93
93
 
94
94
  def build_pagination
95
- options = { theme: 'active_admin' }
95
+ options = { theme: @display_total ? 'active_admin' : 'active_admin_countless' }
96
96
  options[:params] = @params if @params
97
97
  options[:param_name] = @param_name if @param_name
98
98
 
99
- if !@display_total && collection.respond_to?(:offset)
99
+ if !@display_total
100
100
  # The #paginate method in kaminari will query the resource with a
101
101
  # count(*) to determine how many pages there should be unless
102
102
  # you pass in the :total_pages option. We issue a query to determine
@@ -123,6 +123,7 @@ module ActiveAdmin
123
123
  entries_name = I18n.t "active_admin.pagination.entry", count: 2, default: 'entries'
124
124
  else
125
125
  key = "activerecord.models." + collection.first.class.model_name.i18n_key.to_s
126
+
126
127
  entry_name = I18n.translate key, count: 1, default: collection.first.class.name.underscore.sub('_', ' ')
127
128
  entries_name = I18n.translate key, count: collection.size, default: entry_name.pluralize
128
129
  end
@@ -51,8 +51,10 @@ module ActiveAdmin
51
51
  case status
52
52
  when true, 'true'
53
53
  'Yes'
54
- when false, 'false', nil
54
+ when false, 'false'
55
55
  'No'
56
+ when nil
57
+ 'Unset'
56
58
  else
57
59
  status
58
60
  end
@@ -60,6 +62,8 @@ module ActiveAdmin
60
62
 
61
63
  def status_to_class(status)
62
64
  case status
65
+ when 'Unset'
66
+ 'unset no'
63
67
  when String, Symbol
64
68
  status.to_s.titleize.gsub(/\s/, '').underscore
65
69
  else
@@ -13,6 +13,7 @@ module ActiveAdmin
13
13
  @collection = obj.respond_to?(:each) && !obj.is_a?(Hash) ? obj : [obj]
14
14
  @resource_class = options.delete(:i18n)
15
15
  @resource_class ||= @collection.klass if @collection.respond_to? :klass
16
+
16
17
  @columns = []
17
18
  @row_class = options.delete(:row_class)
18
19
 
@@ -192,6 +192,13 @@ module ActiveAdmin
192
192
  # end
193
193
  # ```
194
194
  #
195
+ # You can also define associated objects to include outside of the
196
+ # `scoped_collection` method:
197
+ #
198
+ # ```ruby
199
+ # includes :publisher
200
+ # ```
201
+ #
195
202
  # Then it's simple to sort by any Publisher attribute from within the index table:
196
203
  #
197
204
  # ```ruby
@@ -33,7 +33,7 @@ module ActiveAdmin
33
33
  end
34
34
 
35
35
  active_admin_namespace.meta_tags.each do |name, content|
36
- text_node(tag(:meta, name: name, content: content))
36
+ text_node(meta(name: name, content: content))
37
37
  end
38
38
 
39
39
  active_admin_application.javascripts.each do |path|
@@ -124,6 +124,7 @@ module ActiveAdmin
124
124
 
125
125
  def render_index
126
126
  renderer_class = find_index_renderer_class(config[:as])
127
+
127
128
  paginator = config.fetch(:paginator, true)
128
129
  download_links = config.fetch(:download_links, active_admin_config.namespace.download_links)
129
130
  pagination_total = config.fetch(:pagination_total, true)
@@ -286,12 +286,25 @@ ActiveAdmin.setup do |config|
286
286
  # config.filters = true
287
287
  #
288
288
  # By default the filters include associations in a select, which means
289
- # that every record will be loaded for each association.
289
+ # that every record will be loaded for each association (up
290
+ # to the value of config.maximum_association_filter_arity).
290
291
  # You can enabled or disable the inclusion
291
292
  # of those filters by default here.
292
293
  #
293
294
  # config.include_default_association_filters = true
294
295
 
296
+ # config.maximum_association_filter_arity = 256 # default value of :unlimited will change to 256 in a future version
297
+ # config.filter_columns_for_large_association, [
298
+ # :display_name,
299
+ # :full_name,
300
+ # :name,
301
+ # :username,
302
+ # :login,
303
+ # :title,
304
+ # :email,
305
+ # ]
306
+ # config.filter_method_for_large_association, '_starts_with'
307
+
295
308
  # == Head
296
309
  #
297
310
  # You can add your own content to the site head like analytics. Make sure
@@ -1,43 +1,46 @@
1
1
  ActiveAdmin.register <%= class_name %> do
2
- # See permitted parameters documentation:
3
- # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
4
- #
5
- # permit_params :list, :of, :attributes, :on, :model
6
- #
7
- # or
8
- #
9
- # permit_params do
10
- # permitted = [:permitted, :attributes]
11
- # permitted << :other if params[:action] == 'create' && current_user.admin?
12
- # permitted
13
- # end
14
- <% if options.include_boilerplate? %>
15
- # Limit actions available to your users by adding them to the 'except' array
16
- # actions :all, except: []
17
2
 
18
- # Add or remove filters (you can use any ActiveRecord scope) to toggle their
19
- # visibility in the sidebar
20
- <%= @boilerplate.filters %>
3
+ # See permitted parameters documentation:
4
+ # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
5
+ #
6
+ # Uncomment all parameters which should be permitted for assignment
7
+ #
8
+ # permit_params <%= @boilerplate.permit_params %>
9
+ #
10
+ # or
11
+ #
12
+ # permit_params do
13
+ # permitted = [<%= @boilerplate.permit_params %>]
14
+ # permitted << :other if params[:action] == 'create' && current_user.admin?
15
+ # permitted
16
+ # end
17
+ <% if options.include_boilerplate? %>
18
+ # Limit actions available to your users by adding them to the 'except' array
19
+ # actions :all, except: []
21
20
 
22
- # Add or remove columns to toggle their visiblity in the index action
23
- # index do
24
- # selectable_column
25
- # id_column
26
- <%= @boilerplate.columns %>
27
- # actions
28
- # end
21
+ # Add or remove filters (you can use any ActiveRecord scope) to toggle their
22
+ # visibility in the sidebar
23
+ <%= @boilerplate.filters %>
29
24
 
30
- # Add or remove rows to toggle their visiblity in the show action
31
- # show do |<%= class_name.downcase %>|
32
- <%= @boilerplate.rows %>
33
- # end
25
+ # Add or remove columns to toggle their visiblity in the index action
26
+ # index do
27
+ # selectable_column
28
+ # id_column
29
+ <%= @boilerplate.columns %>
30
+ # actions
31
+ # end
34
32
 
35
- # Add or remove fields to toggle their visibility in the form
36
- # form do |f|
37
- # f.inputs do
38
- <%= @boilerplate.form_inputs %>
39
- # end
40
- # f.actions
41
- # end
42
- <% end %>
33
+ # Add or remove rows to toggle their visiblity in the show action
34
+ # show do |<%= class_name.downcase %>|
35
+ <%= @boilerplate.rows %>
36
+ # end
37
+
38
+ # Add or remove fields to toggle their visibility in the form
39
+ # form do |f|
40
+ # f.inputs do
41
+ <%= @boilerplate.form_inputs %>
42
+ # end
43
+ # f.actions
44
+ # end
45
+ <% end %>
43
46
  end
@@ -2,11 +2,11 @@
2
2
  # identically to the versions given in Ransack.
3
3
  #
4
4
  Ransack.configure do |config|
5
- { 'contains'=>'cont', 'starts_with'=>'start', 'ends_with'=>'end' }.each do |old, current|
5
+ { 'contains' => 'cont', 'starts_with' => 'start', 'ends_with' => 'end' }.each do |old, current|
6
6
  config.add_predicate old, Ransack::Constants::DERIVED_PREDICATES.detect { |q, _| q == current }[1]
7
7
  end
8
8
 
9
- { 'equals'=>'eq', 'greater_than'=>'gt', 'less_than'=>'lt' }.each do |old, current|
9
+ { 'equals' => 'eq', 'greater_than' => 'gt', 'less_than' => 'lt' }.each do |old, current|
10
10
  config.add_predicate old, arel_predicate: current
11
11
  end
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-06-10 00:00:00.000000000 Z
18
+ date: 2019-11-26 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -119,20 +119,20 @@ dependencies:
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: '5.0'
122
+ version: '5.2'
123
123
  - - "<"
124
124
  - !ruby/object:Gem::Version
125
- version: '6.0'
125
+ version: '6.1'
126
126
  type: :runtime
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: '5.0'
132
+ version: '5.2'
133
133
  - - "<"
134
134
  - !ruby/object:Gem::Version
135
- version: '6.0'
135
+ version: '6.1'
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ransack
138
138
  requirement: !ruby/object:Gem::Requirement
@@ -187,26 +187,6 @@ dependencies:
187
187
  - - "<"
188
188
  - !ruby/object:Gem::Version
189
189
  version: '4.1'
190
- - !ruby/object:Gem::Dependency
191
- name: sprockets-es6
192
- requirement: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - "~>"
195
- - !ruby/object:Gem::Version
196
- version: '0.9'
197
- - - ">="
198
- - !ruby/object:Gem::Version
199
- version: 0.9.2
200
- type: :runtime
201
- prerelease: false
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - "~>"
205
- - !ruby/object:Gem::Version
206
- version: '0.9'
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- version: 0.9.2
210
190
  description: The administration framework for Ruby on Rails.
211
191
  email:
212
192
  - deivid.rodriguez@riseup.net
@@ -223,27 +203,12 @@ files:
223
203
  - CONTRIBUTING.md
224
204
  - LICENSE
225
205
  - README.md
226
- - app/assets/images/active_admin/nested_menu_arrow.gif
227
- - app/assets/images/active_admin/nested_menu_arrow_dark.gif
228
- - app/assets/images/active_admin/orderable.png
229
- - app/assets/javascripts/active_admin/base.es6
230
- - app/assets/javascripts/active_admin/ext/jquery-ui.es6
231
- - app/assets/javascripts/active_admin/ext/jquery.es6
232
- - app/assets/javascripts/active_admin/initializers/datepicker.es6
233
- - app/assets/javascripts/active_admin/initializers/filters.es6
234
- - app/assets/javascripts/active_admin/initializers/tabs.es6
235
- - app/assets/javascripts/active_admin/lib/active_admin.es6
236
- - app/assets/javascripts/active_admin/lib/batch_actions.es6
237
- - app/assets/javascripts/active_admin/lib/checkbox-toggler.es6
238
- - app/assets/javascripts/active_admin/lib/dropdown-menu.es6
239
- - app/assets/javascripts/active_admin/lib/has_many.es6
240
- - app/assets/javascripts/active_admin/lib/modal_dialog.es6
241
- - app/assets/javascripts/active_admin/lib/per_page.es6
242
- - app/assets/javascripts/active_admin/lib/table-checkbox-toggler.es6
206
+ - app/assets/javascripts/active_admin/base.js
243
207
  - app/assets/stylesheets/active_admin/_base.scss
244
208
  - app/assets/stylesheets/active_admin/_forms.scss
245
209
  - app/assets/stylesheets/active_admin/_header.scss
246
210
  - app/assets/stylesheets/active_admin/_mixins.scss
211
+ - app/assets/stylesheets/active_admin/_normalize.scss
247
212
  - app/assets/stylesheets/active_admin/_typography.scss
248
213
  - app/assets/stylesheets/active_admin/components/_batch_actions.scss
249
214
  - app/assets/stylesheets/active_admin/components/_blank_slates.scss
@@ -280,6 +245,25 @@ files:
280
245
  - app/assets/stylesheets/active_admin/structure/_footer.scss
281
246
  - app/assets/stylesheets/active_admin/structure/_main_structure.scss
282
247
  - app/assets/stylesheets/active_admin/structure/_title_bar.scss
248
+ - app/javascript/active_admin/base.js
249
+ - app/javascript/active_admin/ext/jquery-ui.js
250
+ - app/javascript/active_admin/ext/jquery.js
251
+ - app/javascript/active_admin/initializers/batch-actions.js
252
+ - app/javascript/active_admin/initializers/checkbox-toggler.js
253
+ - app/javascript/active_admin/initializers/datepicker.js
254
+ - app/javascript/active_admin/initializers/dropdown-menu.js
255
+ - app/javascript/active_admin/initializers/filters.js
256
+ - app/javascript/active_admin/initializers/has-many.js
257
+ - app/javascript/active_admin/initializers/per-page.js
258
+ - app/javascript/active_admin/initializers/table-checkbox-toggler.js
259
+ - app/javascript/active_admin/initializers/tabs.js
260
+ - app/javascript/active_admin/lib/checkbox-toggler.js
261
+ - app/javascript/active_admin/lib/dropdown-menu.js
262
+ - app/javascript/active_admin/lib/filters.js
263
+ - app/javascript/active_admin/lib/modal-dialog.js
264
+ - app/javascript/active_admin/lib/per-page.js
265
+ - app/javascript/active_admin/lib/table-checkbox-toggler.js
266
+ - app/javascript/active_admin/lib/utils.js
283
267
  - app/views/active_admin/devise/confirmations/new.html.erb
284
268
  - app/views/active_admin/devise/mailer/reset_password_instructions.html.erb
285
269
  - app/views/active_admin/devise/mailer/unlock_instructions.html.erb
@@ -302,9 +286,16 @@ files:
302
286
  - app/views/kaminari/active_admin/_page.html.erb
303
287
  - app/views/kaminari/active_admin/_paginator.html.erb
304
288
  - app/views/kaminari/active_admin/_prev_page.html.erb
289
+ - app/views/kaminari/active_admin_countless/_first_page.html.erb
290
+ - app/views/kaminari/active_admin_countless/_gap.html.erb
291
+ - app/views/kaminari/active_admin_countless/_next_page.html.erb
292
+ - app/views/kaminari/active_admin_countless/_page.html.erb
293
+ - app/views/kaminari/active_admin_countless/_paginator.html.erb
294
+ - app/views/kaminari/active_admin_countless/_prev_page.html.erb
305
295
  - app/views/layouts/active_admin.html.arb
306
296
  - app/views/layouts/active_admin_logged_out.html.erb
307
297
  - config/locales/ar.yml
298
+ - config/locales/az.yml
308
299
  - config/locales/bg.yml
309
300
  - config/locales/bs.yml
310
301
  - config/locales/ca.yml
@@ -331,6 +322,7 @@ files:
331
322
  - config/locales/ko.yml
332
323
  - config/locales/lt.yml
333
324
  - config/locales/lv.yml
325
+ - config/locales/mk.yml
334
326
  - config/locales/nb.yml
335
327
  - config/locales/nl.yml
336
328
  - config/locales/pl.yml
@@ -470,6 +462,7 @@ files:
470
462
  - lib/active_admin/resource/controllers.rb
471
463
  - lib/active_admin/resource/includes.rb
472
464
  - lib/active_admin/resource/menu.rb
465
+ - lib/active_admin/resource/model.rb
473
466
  - lib/active_admin/resource/naming.rb
474
467
  - lib/active_admin/resource/ordering.rb
475
468
  - lib/active_admin/resource/page_presenters.rb
@@ -483,6 +476,7 @@ files:
483
476
  - lib/active_admin/resource_controller/action_builder.rb
484
477
  - lib/active_admin/resource_controller/data_access.rb
485
478
  - lib/active_admin/resource_controller/decorators.rb
479
+ - lib/active_admin/resource_controller/polymorphic_routes.rb
486
480
  - lib/active_admin/resource_controller/resource_class_methods.rb
487
481
  - lib/active_admin/resource_controller/scoping.rb
488
482
  - lib/active_admin/resource_controller/sidebars.rb
@@ -586,7 +580,6 @@ files:
586
580
  - vendor/assets/javascripts/jquery-ui/widgets/resizable.js
587
581
  - vendor/assets/javascripts/jquery-ui/widgets/sortable.js
588
582
  - vendor/assets/javascripts/jquery-ui/widgets/tabs.js
589
- - vendor/assets/stylesheets/active_admin/_normalize.scss
590
583
  homepage: https://activeadmin.info
591
584
  licenses:
592
585
  - MIT
@@ -606,7 +599,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
606
599
  - !ruby/object:Gem::Version
607
600
  version: '0'
608
601
  requirements: []
609
- rubygems_version: 3.0.3
602
+ rubygems_version: 3.0.6
610
603
  signing_key:
611
604
  specification_version: 4
612
605
  summary: Active Admin is a Ruby on Rails plugin for generating administration style