mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] Use caller_locations
instead of splitting caller
Also limit caller ranges
a274b1af78
This commit is contained in:
parent
c639bacd45
commit
c032e2c225
4 changed files with 5 additions and 4 deletions
|
@ -874,7 +874,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
# You probably want to use one of the Enumerable methods instead.
|
||||
|
||||
def self.all
|
||||
warn "NOTE: Specification.all called from #{caller.first}" unless
|
||||
warn "NOTE: Specification.all called from #{caller(1, 1).first}" unless
|
||||
Gem::Deprecate.skip
|
||||
_all
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue