After not finding any good solution to connect my ruby code to a BitTorrent protocol I have implemented a Ruby wrapper for the Transmission RPC API:
- http://rubygems.org/gems/transmission_api
It is a very simple version that works for my needs.
Of course it has a very big dependency of a Transmission client running for it, but I think it is a dependency you want to have due it is a very stable and very updated bittorrent client.
I recommend to set up a headless transmission daemon