Ruby MPD client

Yet another ruby mpd client.

This gem is for my own usage (practicing my programming skills). But I would be glad to know if you found it useful.

Installation

gem 'ruby-mpd-client'

Usage

It does not do much

require 'ruby-mpd-client'

MPD::Commands::SetVolume.new(host: 'localhost') # :host can be ommited
                        .execute(75)
MPD::Commands::Next.new.execute

#
# to use one connection
#
conn = MPD::Connection.new(host: 'localhost', port: 6600)
conn.connect
MPD::Commands::Next.new(connection: conn).execute
MPD::Commands::Pause.new(connection: conn).execute

For available commands see lib/mpd/commands.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Nondv/ruby-mpd-client.

License

The gem is available as open source under the terms of the MIT License.