ps_f 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/ps_f +5 -2
  2. metadata +3 -3
data/bin/ps_f CHANGED
@@ -48,8 +48,11 @@ def asm(tree, roots, pre_prefix, cmd_list, basename_only)
48
48
  pid, command = pid_cmd
49
49
 
50
50
  if basename_only
51
- head, tail = command.split('-', 2)
52
- command = File.basename(head) + (tail ? '-' + tail : '')
51
+ head, tail = command.split(/ -/, 2)
52
+ pos = head.rindex('/')
53
+ pos = pos ? pos + 1 : 0
54
+ command = head[pos..-1]
55
+ command += ' -' + tail if tail
53
56
  end
54
57
 
55
58
  cmd_list << [pid, pre_prefix + ' \_ ' + command]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ps_f
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel