Changeset 5555
- Timestamp:
- 01/26/08 19:08:36 (5 years ago)
- Location:
- lang/ruby/net-irc/trunk
- Files:
-
- 3 modified
-
README (modified) (2 diffs)
-
examples/lig.rb (modified) (2 diffs)
-
test/net-irc_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/net-irc/trunk/README
r5524 r5555 16 16 === Gem Installation 17 17 18 gem install net irc18 gem install net-irc 19 19 20 20 … … 23 23 24 24 == Synopsis 25 26 27 == IRC Gateways 28 29 There are some gateways connecting to webservices. 30 31 * Lingr 32 * Twitter 33 * Wasser 34 35 If you want to run it, type following: 36 37 Lingr: 38 $ ruby -rubygems -e 'exec("ruby", Gem.searcher.find("net/irc").full_gem_path+"/examples/lig.rb")' 39 40 Twitter: 41 $ ruby -rubygems -e 'exec("ruby", Gem.searcher.find("net/irc").full_gem_path+"/examples/tig.rb")' 42 43 Wasser: 44 $ ruby -rubygems -e 'exec("ruby", Gem.searcher.find("net/irc").full_gem_path+"/examples/wig.rb")' 25 45 26 46 -
lang/ruby/net-irc/trunk/examples/lig.rb
r5536 r5555 7 7 8 8 # http://svn.lingr.com/api/toolkits/ruby/infoteria/api_client.rb 9 require 'api_client' 9 begin 10 require "api_client" 11 rescue LoadError 12 require "net/http" 13 File.open("api_client.rb", "w") do |f| 14 f.puts Net::HTTP.get("http://svn.lingr.com/api/toolkits/ruby/infoteria/api_client.rb") 15 end 16 require "api_client" 17 end 10 18 11 19 require "net/irc" … … 182 190 }) 183 191 184 Net::IRC::Server.new("localhost", 16669, LingrIrcGateway, { 185 :api_key => @config["api_key"] 186 }).start 192 Net::IRC::Server.new("localhost", 16669, LingrIrcGateway, @config).start 187 193 -
lang/ruby/net-irc/trunk/test/net-irc_test.rb
r5544 r5555 12 12 assert_equal "001", welcome 13 13 assert_equal "RPL_WELCOME", Net::IRC::COMMANDS[welcome] 14 assert_equal Net::IRC::Constants::RPL_WELCOME, welcome 14 15 end 15 16
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)