wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 8415245c088d031800349cdaa5299e129422c640
parent 57aa8d0fd95cad1f61efcd4a1961e50c67373ef3
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Mon, 11 Sep 2006 05:30:18 -0700

[project @ 1cd0a0660b0810489cfe994c26fe1c9059782b4a]

[project @ 61]
add wmiish - wrapper for IRB

Diffstat:
Rakefile | 4++--
wmiirc | 2+-
wmiish | 31+++++++++++++++++++++++++++++++
3 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/Rakefile b/Rakefile @@ -12,12 +12,12 @@ task :web do end Rake::RDocTask.new(:doc) do |t| - t.rdoc_files.include('wmiirc', '*.rb') + t.rdoc_files.include('wmii*', '*.rb') t.rdoc_dir = 'doc' t.main = 'Wmii' end Rake::PackageTask.new('snk_wmiirc', :noversion) do |p| p.need_tar_gz = true - p.package_files.include('COPYING', 'wmiirc', '*.rb', 'ruby-ixp/**/*', 'doc/**/*') + p.package_files.include('COPYING', 'wmii*', '*.rb', 'ruby-ixp/**/*', 'doc/**/*') end diff --git a/wmiirc b/wmiirc @@ -1,5 +1,5 @@ #!/usr/bin/ruby -w -# wmii-3 configuration, written in Ruby. +# Ruby-based configuration file for wmii-3. =begin Copyright 2006 Suraj N. Kurapati diff --git a/wmiish b/wmiish @@ -0,0 +1,31 @@ +#!/usr/bin/ruby +# This is an interactive Ruby shell for wmiirc. +# - Access & manipulate wmii via the *W* constant. +# - Press the TAB key for command completion. +=begin + Copyright 2006 Suraj N. Kurapati + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +=end + +require 'rdoc/usage' +RDoc::usage_no_exit + +require 'wm' +W = Wmii.new + +require 'irb' +require 'irb/completion' +IRB.start __FILE__