Merge pull request #303 from timfel/master

Exclude Maglev bootstrap classes from caller_files
This commit is contained in:
Konstantin Haase 2011-06-16 01:57:27 -07:00
commit 1aaa9fb5ef
1 changed files with 3 additions and 2 deletions

View File

@ -1287,7 +1287,8 @@ module Sinatra
/rubygems\/custom_require\.rb$/, # rubygems require hacks
/active_support/, # active_support require hacks
/bundler(\/runtime)?\.rb/, # bundler require hacks
/<internal:/ # internal in ruby >= 1.9.2
/<internal:/, # internal in ruby >= 1.9.2
/src\/kernel\/bootstrap\/[A-Z]/ # maglev kernel files
]
# add rubinius (and hopefully other VM impls) ignore patterns ...
@ -1304,7 +1305,7 @@ module Sinatra
def caller_locations
cleaned_caller 2
end
private
# used for deprecation warnings
def warn(message)