onis 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/onis +2 -2
  2. data/lib/onis/base.rb +3 -1
  3. data/onis.gemspec +1 -1
  4. metadata +1 -1
data/bin/onis CHANGED
@@ -58,8 +58,8 @@ else
58
58
  print format % %w|PID COMMAND|
59
59
  puts "-" * 60
60
60
  psax.each_line do |line|
61
- next unless line =~ /^\d+/
62
- pid = line.slice!(/^\d+ /).strip
61
+ next unless line =~ /\d+ /
62
+ pid = line.strip!.slice!(/\d+ /).strip
63
63
  next if pid == Process.pid.to_s
64
64
  pfp = Onis::Base.path_for_pid(pid)
65
65
  next if !File.file?(pfp)
data/lib/onis/base.rb CHANGED
@@ -4,7 +4,9 @@ require 'fileutils'
4
4
  module Onis
5
5
  module Base
6
6
  def self.drop_pid(pid = Process.pid)
7
- path_for_pid(pid).tap {|pfp| FileUtils.touch(pfp)}
7
+ pfp = path_for_pid(pid)
8
+ FileUtils.touch(pfp)
9
+ pfp
8
10
  end
9
11
 
10
12
  def self.path_for_pid(pid)
data/onis.gemspec CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'onis'
6
- s.version = '0.1.1'
6
+ s.version = '0.1.2'
7
7
  s.date = '2009-10-27'
8
8
 
9
9
  s.description = "Live ObjectSpace introspection"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany