lib/tapp/util.rb in tapp-1.4.1 vs lib/tapp/util.rb in tapp-1.5.0.rc
- old
+ new
@@ -1,11 +1,13 @@
+require 'tapp'
+
module Tapp
module Util
module_function
def report_called
inner, outer = caller.partition {|line|
- line.include?('/lib/tapp')
+ line =~ %r(/lib/tapp/(?!turnip))
}
method_quoted = inner.last.split(':in').last.strip
puts "#{method_quoted} in #{outer.first}"