lib/ps.rb in ps-0.0.4 vs lib/ps.rb in ps-0.0.5
- old
+ new
@@ -68,10 +68,10 @@
def PS *args
case args[0]
when Regexp
opts = args[1] || {}
procs = PS.all(opts)
- procs = procs.select {|proc| proc.command =~ args[0]}
+ procs = procs.command(args[0])
procs = procs.select {|proc| proc.pid != Process.pid} unless opts[:include_self]
procs
when Integer
PS.pid(*args).first
when Hash