avo 4.0.0.beta.47 → 4.0.0.beta.48

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba23003f4ee7bc29482310429df972d07aeb1af97571856a37b3a026f45201d5
4
- data.tar.gz: 695659c58a27c067cbea38878c4a166daa9e0063f0defa7f4a7741b8a64d4e6e
3
+ metadata.gz: e6a1cad34545b8a56a953bbd1b01c8dc7ebbe93c6c5b9060219a8694188059f0
4
+ data.tar.gz: 7afe5561111b169e1398ed8f4c3c36bcf0f4aad7ca7fcecb7096b2a4ff656f03
5
5
  SHA512:
6
- metadata.gz: 64d62afda0ff20ec3570dae40bd73f5bf989d9e64fe230ac647101a3c6449126fad622c6403c4f544599a77595a867336531a88801215b922d17b7e948c5add4
7
- data.tar.gz: 318edb1f086d42e925db79293f948326bf84ab6e05feff7df04d8e46e4080e7700276a0c5236260986dcee178651d83d1604bf4fd78b12e072546326664f2de3
6
+ metadata.gz: cf19d2b64536b96b623afbb3a2b4718c21b7cc5d0a53116732e15c344093be36e9a6898899d244c5e83186691a36559f49f3cb4a19731908508e224f771bc27f
7
+ data.tar.gz: 83358c02156416914aba2afad7e255aafc0155570b597e0e303e9c88310661c93e2a35cf07470c04188b0e219cc8f1cb9803a6a884c6061dd1bb51c6a3f56896
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (4.0.0.beta.47)
4
+ avo (4.0.0.beta.48)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -75,9 +75,9 @@ class Avo::ActionsComponent < Avo::BaseComponent
75
75
  render Avo::DividerComponent.new(action.label)
76
76
  when Avo::BaseAction
77
77
  render_action_link(action)
78
- when defined?(Avo::Advanced::Resources::Controls::Action) && Avo::Advanced::Resources::Controls::Action
78
+ when defined?(Avo::CustomControls::Resources::Controls::Action) && Avo::CustomControls::Resources::Controls::Action
79
79
  render_action_link(action.action, icon: action.icon)
80
- when defined?(Avo::Advanced::Resources::Controls::LinkTo) && Avo::Advanced::Resources::Controls::LinkTo
80
+ when defined?(Avo::CustomControls::Resources::Controls::LinkTo) && Avo::CustomControls::Resources::Controls::LinkTo
81
81
  link_to action.args[:path],
82
82
  class: action.args.delete(:class),
83
83
  **action.args.except(:path, :label, :icon) do
@@ -143,7 +143,7 @@ class Avo::Views::ResourceIndexComponent < Avo::ResourceComponent
143
143
  end
144
144
 
145
145
  def scopes_list
146
- Avo::Advanced::Scopes::ListComponent.new(
146
+ Avo::ResourceScopes::Scopes::ListComponent.new(
147
147
  scopes: @scopes,
148
148
  resource: @resource,
149
149
  turbo_frame: @turbo_frame,
@@ -155,7 +155,7 @@ class Avo::Views::ResourceIndexComponent < Avo::ResourceComponent
155
155
  end
156
156
 
157
157
  def can_render_scopes?
158
- defined?(Avo::Advanced) && @scopes.present?
158
+ Avo.plugin_manager.installed?("avo-resource_scopes") && @scopes.present?
159
159
  end
160
160
 
161
161
  def back_path
@@ -1,5 +1,7 @@
1
1
  module Avo
2
2
  module PluginDSL
3
+ private
4
+
3
5
  def avo_plugin(handler_class, handler_name:)
4
6
  handler_class ||= "#{name.deconstantize}::#{handler_name}".constantize
5
7
  instance_exec(&handler_class.handle)
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "4.0.0.beta.47" unless const_defined?(:VERSION)
2
+ VERSION = "4.0.0.beta.48" unless const_defined?(:VERSION)
3
3
  end
@@ -1,4 +1,4 @@
1
- class Avo::Scopes::<%= class_name.camelize %> < Avo::Advanced::Scopes::BaseScope
1
+ class Avo::Scopes::<%= class_name.camelize %> < Avo::ResourceScopes::Scopes::BaseScope
2
2
  self.name = "<%= name.underscore.humanize %>"
3
3
  # self.description = "<%= name.underscore.humanize %> description."
4
4
  self.scope = -> { query.all }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta.47
4
+ version: 4.0.0.beta.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin