From 318b1a54622b6af6070c019bd452129f96b5eaa6 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Wed, 7 Mar 2012 16:29:59 +0100 Subject: [PATCH] deprecate RUBY_IGNORE_CALLERS, fixes #444 --- lib/sinatra/base.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 2b62ba99..25797b73 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -1466,8 +1466,11 @@ module Sinatra /src\/kernel\/bootstrap\/[A-Z]/ # maglev kernel files ] - # add rubinius (and hopefully other VM impls) ignore patterns ... - CALLERS_TO_IGNORE.concat(RUBY_IGNORE_CALLERS) if defined?(RUBY_IGNORE_CALLERS) + # contrary to what the comment said previously, rubinius never supported this + if defined?(RUBY_IGNORE_CALLERS) + warn "RUBY_IGNORE_CALLERS is deprecated and will no longer be supported by Sinatra 2.0" + CALLERS_TO_IGNORE.concat(RUBY_IGNORE_CALLERS) + end # Like Kernel#caller but excluding certain magic entries and without # line / method information; the resulting array contains filenames only.