Join GitHub today
Hundreds of repeated instances of "Gem::SourceIndex#add_spec is deprecated" #70
This small patch tracks what callers triggered what deprecation warnings and will warn once only per instance.
One of the problems here is that
Sample output from before:
This actually continues.
Sample output after:
I'd just like to note -- in as gracious and non-whiny a tone as is possible in an Internet comment -- that this patch is redundant with pull request 59, which gives a more concise and usable report on all deprecated calls, including duplicated ones, so you could take that incongruous "Gem::Deprecate.skip_during" wrapper code out of add_specs, and deal with deprecations inside the well-encapsulated Deprecated class.