activeadmin 4.0.0.beta11 → 4.0.0.beta13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/UPGRADING.md +2 -2
  3. data/config/locales/es.yml +6 -0
  4. data/config/locales/pl.yml +4 -0
  5. data/lib/active_admin/application.rb +3 -3
  6. data/lib/active_admin/application_settings.rb +1 -1
  7. data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -1
  8. data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -1
  9. data/lib/active_admin/batch_actions.rb +4 -4
  10. data/lib/active_admin/dynamic_settings_node.rb +2 -2
  11. data/lib/active_admin/engine.rb +1 -1
  12. data/lib/active_admin/filters/active.rb +1 -1
  13. data/lib/active_admin/filters/resource_extension.rb +1 -1
  14. data/lib/active_admin/filters.rb +5 -5
  15. data/lib/active_admin/localizers.rb +1 -1
  16. data/lib/active_admin/menu_item.rb +1 -1
  17. data/lib/active_admin/namespace.rb +1 -1
  18. data/lib/active_admin/namespace_settings.rb +1 -1
  19. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -1
  20. data/lib/active_admin/orm/active_record/comments/views.rb +2 -2
  21. data/lib/active_admin/orm/active_record/comments.rb +3 -3
  22. data/lib/active_admin/orm/active_record.rb +1 -1
  23. data/lib/active_admin/resource/action_items.rb +1 -1
  24. data/lib/active_admin/resource/belongs_to.rb +1 -1
  25. data/lib/active_admin/resource/sidebars.rb +1 -1
  26. data/lib/active_admin/resource.rb +16 -16
  27. data/lib/active_admin/version.rb +1 -1
  28. data/lib/active_admin/views/components/scopes.rb +2 -2
  29. data/lib/active_admin.rb +5 -5
  30. data/lib/activeadmin.rb +1 -1
  31. data/lib/generators/active_admin/devise/devise_generator.rb +2 -2
  32. data/vendor/bundle/offense.rb +1 -0
  33. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df061ca5e8da419454b4e71fac6d1f1a5c0d10ac2bb134a9ed42d1e939605189
4
- data.tar.gz: 6bf6a2af2771226c400200da710d1b21d91e22415ca724df6f2417c30edd85dc
3
+ metadata.gz: cf25042e7687e53298da8f7f62c8acc1993b9f9d486f3f29cd84b00fa5553b48
4
+ data.tar.gz: 5f19b05d63d760714c6da4c61a05a551cf552b28ca90d590d61bcba989e6bd0b
5
5
  SHA512:
6
- metadata.gz: d75f067eb76806efc510ea3050a6c3b4394e2e731a01b6e6ba07169c3bdabd4620f338e6646e3558c99f830db2767cf4023492fb02294e9c78853dd4d114f7d0
7
- data.tar.gz: 194fd87159da440d9d45b81a54edbd52051322f8dab8f09b95762c9883907c48da255a5b67f2af452e2ad8265a859f135f917385ca7431a888aaaf306747fffb
6
+ metadata.gz: d4c1e6b0d83d48a8eef65140777b6360f66114a41deafe994157a9800edb9d681b62e5133cd0eeb325fcd91b2bc5b7f913ef3454fa986eede6ae0a2cbcd52663
7
+ data.tar.gz: 2e2158db77f77aac993d7540c0246379ce14b22143763ce05601fde1bec1554433e92648def2e9086f4747a312d07842789793896741fe83f73fd747a588825f
data/UPGRADING.md CHANGED
@@ -8,14 +8,14 @@ ActiveAdmin v4 uses TailwindCSS. It has **mobile web, dark mode and RTL support*
8
8
 
9
9
  These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing.
10
10
 
11
- Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta11"` and then run `gem install activeadmin --pre`.
11
+ Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta12"` and then run `gem install activeadmin --pre`.
12
12
 
13
13
  Now, run `rails generate active_admin:assets` to replace the old assets with the new files.
14
14
 
15
15
  Then add the npm package and update the `build:css` script.
16
16
 
17
17
  ```
18
- yarn add @activeadmin/activeadmin@4.0.0-beta11
18
+ yarn add @activeadmin/activeadmin@4.0.0-beta12
19
19
  npm pkg set scripts.build:css="tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c tailwind-active_admin.config.js"
20
20
  ```
21
21
 
@@ -35,6 +35,10 @@ es:
35
35
  has_many_delete: "Eliminar"
36
36
  has_many_remove: "Quitar"
37
37
  move: "Mover"
38
+ toggle_dark_mode: "Alternar modo oscuro"
39
+ toggle_main_navigation_menu: "Alternar el menú de navegación principal"
40
+ toggle_user_menu: "Alternar menú de usuario"
41
+ toggle_section: "Alternar sección"
38
42
  filters:
39
43
  buttons:
40
44
  filter: "Filtrar"
@@ -62,6 +66,8 @@ es:
62
66
  multiple: "Mostrando %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> de un total de <b>%{total}</b>"
63
67
  multiple_without_total: "Mostrando %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>"
64
68
  per_page: "Por página: "
69
+ previous: "Anterior"
70
+ next: "Siguiente"
65
71
  entry:
66
72
  one: "registro"
67
73
  other: "registros"
@@ -54,6 +54,10 @@ pl:
54
54
  "yes": "Tak"
55
55
  "no": "Nie"
56
56
  "unset": "Nie"
57
+ toggle_dark_mode: Przełącz tryb ciemny
58
+ toggle_main_navigation_menu: Przełącz główną nawigację
59
+ toggle_section: Przełącz sekcję
60
+ toggle_user_menu: Przełącz menu użytkownika
57
61
  logout: "Wyloguj"
58
62
  powered_by: "Powered by %{active_admin} %{version}"
59
63
  sidebars:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/router"
3
- require "active_admin/application_settings"
4
- require "active_admin/namespace_settings"
2
+ require_relative "router"
3
+ require_relative "application_settings"
4
+ require_relative "namespace_settings"
5
5
 
6
6
  module ActiveAdmin
7
7
  class Application
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/settings_node"
2
+ require_relative "settings_node"
3
3
 
4
4
  module ActiveAdmin
5
5
  class ApplicationSettings < SettingsNode
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/component"
2
+ require_relative "../../component"
3
3
 
4
4
  module ActiveAdmin
5
5
  module BatchActions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/component"
2
+ require_relative "../../component"
3
3
 
4
4
  module ActiveAdmin
5
5
  module BatchActions
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
  ActiveAdmin.before_load do |app|
3
- require "active_admin/batch_actions/resource_extension"
4
- require "active_admin/batch_actions/controller"
3
+ require_relative "batch_actions/resource_extension"
4
+ require_relative "batch_actions/controller"
5
5
 
6
6
  # Add our Extensions
7
7
  ActiveAdmin::Resource.send :include, ActiveAdmin::BatchActions::ResourceExtension
8
8
  ActiveAdmin::ResourceController.send :include, ActiveAdmin::BatchActions::Controller
9
9
 
10
- require "active_admin/batch_actions/views/batch_action_form"
11
- require "active_admin/batch_actions/views/selection_cells"
10
+ require_relative "batch_actions/views/batch_action_form"
11
+ require_relative "batch_actions/views/selection_cells"
12
12
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/dynamic_setting"
3
- require "active_admin/settings_node"
2
+ require_relative "dynamic_setting"
3
+ require_relative "settings_node"
4
4
 
5
5
  module ActiveAdmin
6
6
 
@@ -35,7 +35,7 @@ module ActiveAdmin
35
35
  end
36
36
 
37
37
  initializer "active_admin.routes" do
38
- require "active_admin/helpers/routes/url_helpers"
38
+ require_relative "helpers/routes/url_helpers"
39
39
  end
40
40
 
41
41
  initializer "active_admin.deprecator" do |app|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/filters/active_filter"
2
+ require_relative "active_filter"
3
3
 
4
4
  module ActiveAdmin
5
5
  module Filters
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/filters/active"
2
+ require_relative "active"
3
3
 
4
4
  module ActiveAdmin
5
5
  module Filters
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/filters/dsl"
3
- require "active_admin/filters/resource_extension"
4
- require "active_admin/filters/formtastic_addons"
5
- require "active_admin/filters/forms"
6
- require "active_admin/helpers/optional_display"
2
+ require_relative "filters/dsl"
3
+ require_relative "filters/resource_extension"
4
+ require_relative "filters/formtastic_addons"
5
+ require_relative "filters/forms"
6
+ require_relative "helpers/optional_display"
7
7
 
8
8
  # Add our Extensions
9
9
  ActiveAdmin::ResourceDSL.send :include, ActiveAdmin::Filters::DSL
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/localizers/resource_localizer"
2
+ require_relative "localizers/resource_localizer"
3
3
 
4
4
  module ActiveAdmin
5
5
  module Localizers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'active_admin/view_helpers/method_or_proc_helper'
2
+ require_relative "view_helpers/method_or_proc_helper"
3
3
 
4
4
  module ActiveAdmin
5
5
  class MenuItem
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/resource_collection"
2
+ require_relative "resource_collection"
3
3
 
4
4
  module ActiveAdmin
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/dynamic_settings_node"
2
+ require_relative "dynamic_settings_node"
3
3
 
4
4
  module ActiveAdmin
5
5
  class NamespaceSettings < DynamicSettingsNode
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/views"
2
+ require_relative "../../../../views"
3
3
 
4
4
  module ActiveAdmin
5
5
  module Comments
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/views"
3
- require "active_admin/orm/active_record/comments/views/active_admin_comments"
2
+ require_relative "../../../views"
3
+ require_relative "views/active_admin_comments"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/orm/active_record/comments/views"
3
- require "active_admin/orm/active_record/comments/namespace_helper"
4
- require "active_admin/orm/active_record/comments/resource_helper"
2
+ require_relative "comments/views"
3
+ require_relative "comments/namespace_helper"
4
+ require_relative "comments/resource_helper"
5
5
 
6
6
  # Add the comments configuration
7
7
  ActiveAdmin::Application.inheritable_setting :comments, true
@@ -3,4 +3,4 @@
3
3
 
4
4
  ActiveAdmin::DatabaseHitDuringLoad.database_error_classes << ActiveRecord::StatementInvalid
5
5
 
6
- require "active_admin/orm/active_record/comments"
6
+ require_relative "active_record/comments"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/helpers/optional_display"
2
+ require_relative "../helpers/optional_display"
3
3
 
4
4
  module ActiveAdmin
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/resource"
2
+ require_relative "../resource"
3
3
 
4
4
  module ActiveAdmin
5
5
  class Resource
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/helpers/optional_display"
2
+ require_relative "../helpers/optional_display"
3
3
 
4
4
  module ActiveAdmin
5
5
 
@@ -1,20 +1,20 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/view_helpers/method_or_proc_helper"
3
- require "active_admin/resource/action_items"
4
- require "active_admin/resource/attributes"
5
- require "active_admin/resource/controllers"
6
- require "active_admin/resource/menu"
7
- require "active_admin/resource/page_presenters"
8
- require "active_admin/resource/pagination"
9
- require "active_admin/resource/routes"
10
- require "active_admin/resource/naming"
11
- require "active_admin/resource/scopes"
12
- require "active_admin/resource/includes"
13
- require "active_admin/resource/scope_to"
14
- require "active_admin/resource/sidebars"
15
- require "active_admin/resource/belongs_to"
16
- require "active_admin/resource/ordering"
17
- require "active_admin/resource/model"
2
+ require_relative "view_helpers/method_or_proc_helper"
3
+ require_relative "resource/action_items"
4
+ require_relative "resource/attributes"
5
+ require_relative "resource/controllers"
6
+ require_relative "resource/menu"
7
+ require_relative "resource/page_presenters"
8
+ require_relative "resource/pagination"
9
+ require_relative "resource/routes"
10
+ require_relative "resource/naming"
11
+ require_relative "resource/scopes"
12
+ require_relative "resource/includes"
13
+ require_relative "resource/scope_to"
14
+ require_relative "resource/sidebars"
15
+ require_relative "resource/belongs_to"
16
+ require_relative "resource/ordering"
17
+ require_relative "resource/model"
18
18
 
19
19
  module ActiveAdmin
20
20
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "4.0.0.beta11"
3
+ VERSION = "4.0.0.beta13"
4
4
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/async_count"
3
- require "active_admin/view_helpers/method_or_proc_helper"
2
+ require_relative "../../async_count"
3
+ require_relative "../../view_helpers/method_or_proc_helper"
4
4
 
5
5
  module ActiveAdmin
6
6
  module Views
data/lib/active_admin.rb CHANGED
@@ -125,12 +125,12 @@ module ActiveAdmin
125
125
  end
126
126
 
127
127
  # Require things that don't support autoload
128
- require "active_admin/engine"
129
- require "active_admin/error"
128
+ require_relative "active_admin/engine"
129
+ require_relative "active_admin/error"
130
130
 
131
131
  # Require internal plugins
132
- require "active_admin/batch_actions"
133
- require "active_admin/filters"
132
+ require_relative "active_admin/batch_actions"
133
+ require_relative "active_admin/filters"
134
134
 
135
135
  # Require ORM-specific plugins
136
- require "active_admin/orm/active_record" if defined? ActiveRecord
136
+ require_relative "active_admin/orm/active_record" if defined? ActiveRecord
data/lib/activeadmin.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin"
2
+ require_relative "active_admin"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require "active_admin/error"
3
- require "active_admin/dependency"
2
+ require_relative "../../../active_admin/error"
3
+ require_relative "../../../active_admin/dependency"
4
4
 
5
5
  module ActiveAdmin
6
6
  module Generators
@@ -0,0 +1 @@
1
+ puts "Ciao"
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: 4.0.0.beta11
4
+ version: 4.0.0.beta13
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: 2024-08-31 00:00:00.000000000 Z
18
+ date: 2024-09-24 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -79,14 +79,14 @@ dependencies:
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.7'
82
+ version: '2.0'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.7'
89
+ version: '2.0'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: kaminari
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -377,6 +377,7 @@ files:
377
377
  - lib/generators/active_admin/resource/templates/resource.rb.erb
378
378
  - lib/generators/active_admin/views_generator.rb
379
379
  - plugin.js
380
+ - vendor/bundle/offense.rb
380
381
  - vendor/javascript/flowbite.js
381
382
  - vendor/javascript/rails_ujs_esm.js
382
383
  homepage: https://activeadmin.info
@@ -406,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
406
407
  - !ruby/object:Gem::Version
407
408
  version: '0'
408
409
  requirements: []
409
- rubygems_version: 3.5.15
410
+ rubygems_version: 3.5.18
410
411
  signing_key:
411
412
  specification_version: 4
412
413
  summary: Active Admin is a Ruby on Rails plugin for generating administration style