Permalink
Browse files

deprecate RUBY_IGNORE_CALLERS, fixes #444

  • Loading branch information...
1 parent 414b9d5 commit 318b1a54622b6af6070c019bd452129f96b5eaa6 @rkh rkh committed Mar 7, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/sinatra/base.rb
View
@@ -1466,8 +1466,11 @@ def synchronize(&block)
/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.

0 comments on commit 318b1a5

Please sign in to comment.