Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Fixed rake kill[stonename] to work on ruby 1.9+.
Browse files Browse the repository at this point in the history
There is no grep on String, so call #lines first.
  • Loading branch information
zenspider committed Mar 26, 2015
1 parent 06a315d commit 8aefe20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rakelib/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ end
def kill_stone(stone, sig='')
stones = `$GEMSTONE/bin/gslist -clv`
puts stones
pids = stones.grep(/(Stone|cache)\s+#{stone}/) { |l| l.split[3] }
pids = stones.lines.grep(/(Stone|cache)\s+#{stone}/) { |l| l.split[3] }
if pids.empty?
puts "Nothing to kill for #{stone}"
else
Expand Down

0 comments on commit 8aefe20

Please sign in to comment.