rbtrace 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/rbtrace +4 -2
  2. data/rbtrace.gemspec +1 -1
  3. metadata +3 -3
data/bin/rbtrace CHANGED
@@ -75,7 +75,7 @@ class RBTracer
75
75
  # Returns nothing.
76
76
  def self.cleanup_queues
77
77
  if (pids = `ps ax -o pid`.split("\n").map{ |p| p.strip.to_i }).any?
78
- ipcs = `ipcs -q`.split("\n").grep(/^q/).map{ |line| line.strip.split[2] }
78
+ ipcs = `ipcs -q`.split("\n").grep(/^(q|0x)/).map{ |line| line[/(0x[a-f0-9]+)/,1] }
79
79
  ipcs.each do |ipci|
80
80
  next if ipci.match(/^0xf/)
81
81
 
@@ -364,7 +364,7 @@ class RBTracer
364
364
  opts = Trollop.options do
365
365
  version <<-EOS
366
366
  rbtrace: like strace, but for ruby code
367
- version 0.2.2
367
+ version 0.2.3
368
368
  (c) 2011 Aman Gupta (tmm1)
369
369
  http://github.com/tmm1/rbtrace
370
370
  EOS
@@ -374,6 +374,8 @@ rbtrace shows you method calls happening inside another ruby process in real tim
374
374
 
375
375
  to use rbtrace, simply `require "rbtrace"` in your ruby app.
376
376
 
377
+ for examples and more information, see http://github.com/tmm1/rbtrace
378
+
377
379
  Usage:
378
380
 
379
381
  rbtrace -p <PID> # trace the given process
data/rbtrace.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rbtrace'
3
- s.version = '0.2.2'
3
+ s.version = '0.2.3'
4
4
  s.homepage = 'http://github.com/tmm1/rbtrace'
5
5
 
6
6
  s.authors = "Aman Gupta"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtrace
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aman Gupta