Chciałem zrobić małego klienta BT z ładnym webui i chciałem do tego użyć Ruby. Mam bibliotekę RubyTorren, ale żaden z programów przykładowych nie chciał mi ściągnąć przykładowego pliku (Eclipse CDT). Ma ktoś może jakiś lepszy przykład niż te ze strony projektu, albo propozycje libów do BT do innych języków??

require 'rubytorrent'
bt = RubyTorrent::BitTorrent.new('http://build.eclipse.org/technology/phoenix/torrents/cpp/eclipse-cpp-galileo-SR1-linux-gtk.tar.gz.torrent')
thread = Thread.new do
  while true
    puts "#{bt.percent_completed}% completed"
    sleep 5
  end
end
bt.on_event(self, :added_peer) { puts "Mamy peera" }
bt.on_event(self, :received_block) { puts "Odebrano" }
bt.on_event(self, :complete) {
	puts "done!"
	thread.kill
}
thread.join