= Retort

rtorrent xmlrpc wrapper written in ruby (1.9). Designed to decouple the
xmlrpc interface from the underlying ruby objects.

== Basic usage

Update your Gemfile with this and do a bundle install:

  gem 'retort'

To get a list of all torrents:

  require 'retort'
  Retort::Service.configure {|config| config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'}
  torrents  = Retort::Torrent.all
  torrent   = torrents.first

  files     = torrent.files
  file      = files.first

  file.set_priority(Retort::File::PRIORITY_HIGH) # sets the priority
  torrent.commit_priorities # this is supposed to be an expensive call

== Contributions

To fetch & test the library for development, do:

  $ git clone https://github.com/mcmorgan/retort
  $ cd retort
  $ bundle
  $ bundle exec rspec spec

If you want to contribute, please:

  * Fork the project.
  * Make your feature addition or bug fix.
  * Add tests for it. This is important so I don't break it in a future version unintentionally.
  * Send me a pull request on Github.

== Copyright

Copyright (c) 2010-2011 Marcel Morgan. See LICENSE for details.

= Retort

rtorrent xmlrpc wrapper written in ruby (1.9). Designed to decouple the
xmlrpc interface from the underlying ruby objects.

== Basic usage

Update your Gemfile with this and do a bundle install:

  gem 'retort'

To get a list of all torrents:

  require 'retort'
  Retort::Service.configure do |config| 
    config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'
  end
  torrents  = Retort::Torrent.all
  torrent   = torrents.first

  files     = torrent.files
  file      = files.first

  file.set_priority(Retort::File::PRIORITY_HIGH) # sets the priority
  torrent.commit_priorities # this is supposed to be an expensive call

== Contributions

To fetch & test the library for development, do:

  $ git clone https://github.com/mcmorgan/retort
  $ cd retort
  $ bundle
  $ bundle exec rspec spec

If you want to contribute, please:

  * Fork the project.
  * Make your feature addition or bug fix.
  * Add tests for it. This is important so I don't break it in a future version unintentionally.
  * Send me a pull request on Github.

== Copyright

Copyright (c) 2010-2011 Marcel Morgan. See LICENSE for details.

Split configuration over multiple lines
Split configuration over multiple lines