Closed srghma closed 8 years ago
Hi, @BjornMelgaard, as you can see in fallback_context_proxy.rb:57, there is no call to any #load_adapter
method. Rather, the deprecation warning is probably for whatever code is being called as a DSL via the Docile library.
Does that help? Do you know what code is actually calling this deprecated #load_adapter
method?
I think this called from simplecov But why line from your gem? Maybe I disturb you in vain :confused:
Hi @BjornMelgaard -- yes, you've tracked down where it is coming from, inside SimpleCov. In your simplecov configuration, you are using Docile for the DSL as that is used by SimpleCov. So when you call the method #load_adapter
, the DEPRECATED message is being reported at the place it's called in the DSL, instead of where the DSL call is made
In other words, search your code for load_adapter
;)
I don't know if it's possible to improve this situation. But I will research of Docile could cause the Kernel.caller
to report the original call site instead
Closing this in favor of fixing in SimpleCov: https://github.com/colszowka/simplecov/issues/504