Created
February 8, 2010 15:27
-
-
Save onodes/298234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'socket' | |
| require 'githubcommit.rb' | |
| github = GitAtom2.new | |
| #p github | |
| data = github.check | |
| #p data | |
| puts 'test' | |
| begin | |
| sock = TCPSocket.open("localhost",6668) | |
| rescue | |
| puts "TCPSocket.open failed :#$!\n" | |
| else | |
| sock.write("PASS hogehoge\r\n") | |
| sock.write ("NICK prelocant\r\n") | |
| sock.write ("USER prelocant prelocant prelocant :prelocant\r\n") | |
| sock.write ("JOIN #apt-get\r\n") | |
| data.each{|commit| | |
| # p commit | |
| sock.write ("NOTICE #LOCAL-students@ircnet :#{commit}\r\n") | |
| } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment