lib/stack_tracy.rb in stack_tracy-0.1.2 vs lib/stack_tracy.rb in stack_tracy-0.1.3

- old
+ new

@@ -104,11 +104,15 @@ elsif path && path.match(/\.csv$/) raise Error, "Could not locate StackTracy file at #{file}" end if File.exists?(index) - Launchy.open("file://#{index}") + if RbConfig::CONFIG["host_os"].match(/(mswin|mingw)/) # I know, don't say it! + `start file://#{index}` + else + Launchy.open("file://#{index}") + end nil else raise Error, "Could not locate StackTracy file" end end @@ -147,9 +151,10 @@ end end end def process?(event_info, only) + return false if "#{event_info.object}" == "StackTracy" return true if only.empty? only.any?{|x| event_info.matches?(x)} end def ui(file) \ No newline at end of file