version 0.7.1, added better error checking for non-existent C source

This commit is contained in:
John Mair 2011-03-16 02:50:36 +13:00
parent e1d2372e07
commit de3871001f
2 changed files with 2 additions and 2 deletions

View File

@ -557,7 +557,7 @@ e.g: show-method hello_method
# Try to find source for C methods using MethodInfo (if possible)
if Pry.has_pry_doc && meth.source_location.nil?
info = Pry::MethodInfo.info_for(meth)
if !info
if !info || !info.source
output.puts "Cannot find source for C method: #{meth_name}"
next
end

View File

@ -1,3 +1,3 @@
class Pry
VERSION = "0.7.0"
VERSION = "0.7.1"
end