avo 4.1.8 → 4.1.9
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/Gemfile.lock +1 -1
- data/lib/avo/plugin_manager.rb +5 -2
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81d127e8a613717364c7e10b3bbf49802976232424d09c27aba2ada3b04ca369
|
|
4
|
+
data.tar.gz: db0176a477fadb34142c3ac5d479c48b5276bef56a47ff35182f8869027b503d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86c68dd08f28b20571d674a3ed5b397235580692b289be47fbd0deccce925bab470dad81e8f53680804b91f2fc85263c3305779359f10a11d38c7983c6210c89
|
|
7
|
+
data.tar.gz: 932f1d4a1aec5959d8917fb0bb6982490556170a2783a5df5a88efcaec2d78ede5dbc4f1ee7e11b4cda43f216ff6da67744ff02bb70774af5e63df2e0296c381
|
data/Gemfile.lock
CHANGED
data/lib/avo/plugin_manager.rb
CHANGED
|
@@ -99,9 +99,12 @@ module Avo
|
|
|
99
99
|
|
|
100
100
|
# Guard against a plugin silently shadowing a core option or another
|
|
101
101
|
# plugin's namespace. Re-registering the same namespace with the same
|
|
102
|
-
# class is fine — boot runs more than once.
|
|
102
|
+
# class is fine — boot runs more than once. Only methods Avo::Configuration
|
|
103
|
+
# defines itself count: gems like amazing_print add helpers to every object
|
|
104
|
+
# (Kernel#ai), and shadowing those on the configuration is harmless.
|
|
103
105
|
existing = @configuration_namespaces[name]
|
|
104
|
-
if existing.nil? && Avo::Configuration.method_defined?(name)
|
|
106
|
+
if existing.nil? && Avo::Configuration.method_defined?(name) &&
|
|
107
|
+
Avo::Configuration.instance_method(name).owner == Avo::Configuration
|
|
105
108
|
raise ArgumentError, "Avo::Configuration already defines ##{name}; pick a different configuration namespace."
|
|
106
109
|
end
|
|
107
110
|
if !existing.nil? && existing != klass
|
data/lib/avo/version.rb
CHANGED