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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d6f2b4d07a39008938535b29f465d6eb8ec21b484931d83bac4474defc365e2
4
- data.tar.gz: 2bcd9362b6324e2f8ad620c83e166ce67bf26fdddd2a6bed7932b7efd430be84
3
+ metadata.gz: 81d127e8a613717364c7e10b3bbf49802976232424d09c27aba2ada3b04ca369
4
+ data.tar.gz: db0176a477fadb34142c3ac5d479c48b5276bef56a47ff35182f8869027b503d
5
5
  SHA512:
6
- metadata.gz: bbe422943913f5203cd886d22162af383cbb45211747bfcebca3103b5d770a9fa1aaf3814367a2cd2197415dacd0556ccd869af6cf2324d8d603c33f62158ed2
7
- data.tar.gz: 68bd5e7d90941719d367b93a64d65daf4c4f2a982ae3d8b0b5d11915925e527d9f76ce15228a7313efd32c288f930027544b35a3217e86f3e2a8d50b23403561
6
+ metadata.gz: 86c68dd08f28b20571d674a3ed5b397235580692b289be47fbd0deccce925bab470dad81e8f53680804b91f2fc85263c3305779359f10a11d38c7983c6210c89
7
+ data.tar.gz: 932f1d4a1aec5959d8917fb0bb6982490556170a2783a5df5a88efcaec2d78ede5dbc4f1ee7e11b4cda43f216ff6da67744ff02bb70774af5e63df2e0296c381
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (4.1.8)
4
+ avo (4.1.9)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "4.1.8" unless const_defined?(:VERSION)
2
+ VERSION = "4.1.9" unless const_defined?(:VERSION)
3
3
  end
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.1.8
4
+ version: 4.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin