Skip to content

Commit

Permalink
Filtering Java source from backtrace when Thor is executed within JRuby.
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Dec 3, 2011
1 parent 21a9822 commit 33490a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/task.rb
Expand Up @@ -87,7 +87,7 @@ def local_method?(instance, name)
end

def sans_backtrace(backtrace, caller) #:nodoc:
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP }
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) }
saned -= caller
end

Expand Down

0 comments on commit 33490a5

Please sign in to comment.