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
9696 end
9797
9898 class << self
99- def deprecation_warning ( message , uplevel = 4 ) # :nodoc:
99+ def deprecation_warning ( message , uplevel = 3 ) # :nodoc:
100100 gem_root = File . expand_path ( "../../../" , __FILE__ ) + "/"
101101 caller_locations ( uplevel , 10 ) . each do |frame |
102102 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:
107107 end
108108
109109 if RUBY_VERSION >= "3.0"
110- warn ( message , uplevel : uplevel - 1 , category : :deprecated )
110+ warn ( message , uplevel : uplevel , category : :deprecated )
111111 else
112- warn ( message , uplevel : uplevel - 1 )
112+ warn ( message , uplevel : uplevel )
113113 end
114114 end
115115
You can’t perform that action at this time.
0 commit comments