after 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/ChangeLog +3 -0
  2. data/VERSION +1 -1
  3. data/bin/after +3 -2
  4. data/lib/after.rb +1 -1
  5. metadata +1 -1
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.8.4
2
+ add -ls as an alias for -l
3
+
1
4
  0.8.3
2
5
  fix -p functionality
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.3
1
+ 0.8.4
data/bin/after CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0
4
4
  puts 'after: the command to run things after an external process terminates'
5
- puts 'syntax: after [-q] [-l | --list] ([-p (pid1 | pid1,pid2,pid3)] | "command string to match") command to run after it and its args'
5
+ puts 'syntax: after [-q] [-l | --list | -ls] ([-p (pid1 | pid1,pid2,pid3)] | "command string to match") command to run after it and its args'
6
6
  puts ' -q : quiet mode (don\'t show output for when process ends)'
7
7
  puts ' --list : only list matches, don\'t actually wait for them'
8
8
  puts " \"command string to match\" like ruby.exe or irb : match all processes by name and arguments"
@@ -14,7 +14,8 @@ if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0
14
14
  puts 'after ruby "ls -l" # same'
15
15
  puts 'after -l # list all running processes'
16
16
  puts 'after -l ruby # list all running processes that have ruby in their executable name or arguments'
17
- puts "after irb \"ls | grep l\" # complex command to run after irb terminates (runs $ ls | grep l)"
17
+ puts 'after -ls ruby # same as above'
18
+ puts "after irb \"ls | grep l\" # complex command to run after irb terminates (runs $ ls | grep l)"
18
19
  puts "after -p 3704 ls # run ls after process with PID 3704 terminates"
19
20
  puts "after -q -p 3704 ls # run ls after PID 3704 terminates, don't output anything except the output of ls"
20
21
  puts "after -p 3704,4804 ls # run ls after PIDS 3704, 4804 both terminate"
@@ -59,7 +59,7 @@ class After
59
59
 
60
60
  $DISPLAY_ALL = false
61
61
  # TODO real command line parsing, yikes for this stuff!
62
- if ARGV[0].in? ['-l', '--list']
62
+ if ARGV[0].in? ['-l', '--list', '-ls']
63
63
  ARGV.shift
64
64
  $DISPLAY_ALL = true
65
65
  query = ARGV.shift || ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: after
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: