Changeset 5838

Show
Ignore:
Timestamp:
01/30/08 07:09:55 (5 years ago)
Author:
cho45
Message:

lang/ruby/misc/tig.rb:

Add run code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/tig.rb

    r5837 r5838  
    4747because NAMES list can't send @ leading nick (it interpreted op.) 
    4848 
     49=end 
    4950 
    50 =end 
     51require "rubygems" 
     52require "net/irc" 
     53require "rbconfig" 
     54 
     55ruby = "#{Config::CONFIG["bindir"]}/#{Config::CONFIG["RUBY_INSTALL_NAME"]}" 
     56path = Gem.searcher.find("net/irc").full_gem_path + "/examples" 
     57exec(ruby, "#{path}/tig.rb", *ARGV) 
     58