File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def create_additions_warning
96
96
end
97
97
98
98
class << self
99
- def deprecation_warning ( message , uplevel = 4 ) # :nodoc:
99
+ def deprecation_warning ( message , uplevel = 3 ) # :nodoc:
100
100
gem_root = File . expand_path ( "../../../" , __FILE__ ) + "/"
101
101
caller_locations ( uplevel , 10 ) . each do |frame |
102
102
if frame . path . nil? || frame . path . start_with? ( gem_root ) || frame . path . end_with? ( "/truffle/cext_ruby.rb" , ".c" )
@@ -107,9 +107,9 @@ def deprecation_warning(message, uplevel = 4) # :nodoc:
107
107
end
108
108
109
109
if RUBY_VERSION >= "3.0"
110
- warn ( message , uplevel : uplevel - 1 , category : :deprecated )
110
+ warn ( message , uplevel : uplevel , category : :deprecated )
111
111
else
112
- warn ( message , uplevel : uplevel - 1 )
112
+ warn ( message , uplevel : uplevel )
113
113
end
114
114
end
115
115
You can’t perform that action at this time.
0 commit comments