commit f978e7d63c94f83f3febcf103ba76d4b4ece3a5a
parent ca23379523afb0558929bde8e49fc771273d40d7
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Mon, 18 Sep 2006 12:30:35 -0700
[project @ 5a5dfbc65514f2d7ef657ba57e59f5464b0df4b3]
[project @ 106]
rm explicit PID from log msgs... they already included
fix warning about $irb var
Diffstat:
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/HISTORY b/HISTORY
@@ -5,6 +5,7 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc
* Added View#empty? and Area#empty? methods.
* change_tag_from_menu now returns the chosen tag.
+* Included Ruby-IXP 1.0.1 release.
= 2006-09-16
diff --git a/wmiirc b/wmiirc
@@ -23,7 +23,7 @@ require 'logger'
LOG = Logger.new(__FILE__ + '.log', 5)
-LOG.info($$) {"starting"}
+LOG.info "starting"
begin
load File.join(File.dirname(__FILE__), 'wmiirc-config.rb')
@@ -31,11 +31,11 @@ begin
rescue => e
LOG.error e
- LOG.info($$) {"recovering from error"}
+ LOG.info "recovering from above error"
retry
rescue Exception => e
LOG.fatal e
end
-LOG.info($$) {"stopping"}
+LOG.info "stopping"
diff --git a/wmiirc-config.rb b/wmiirc-config.rb
@@ -434,7 +434,7 @@ begin
case type.to_sym
when :Start
if arg == __FILE__
- LOG.info($$) {"another instance is starting"}
+ LOG.info "another instance is starting"
exit
end
diff --git a/wmiish b/wmiish
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/ruby -w
# This is an interactive Ruby shell for wmii.
# - Press the TAB key for command completion.
@@ -30,7 +30,7 @@ require 'irb/completion'
module IRB
# Starts IRB within the context of the given object.
def IRB.start_session aContextObj
- IRB.setup __FILE__ unless $irb
+ IRB.setup __FILE__ unless defined? $irb
ws = WorkSpace.new(aContextObj)