Ruby MPD client
Yet another ruby mpd client.
It does not really provide you some object model for interacting with MPD. Mostly it's just collection of MPD commands with different names.
MPD::Connection wrapper over
MPD::ServerResponse - string
with some useful methods,
MPD::Playlist - verypoor abstraction over song list
MPD::Commands module that contains all implemented commands.
See on rubydoc.
require 'ruby-mpd-client' ::::.(host: 'localhost') # :host can be ommited .execute(75) ::::.. # # to use one connection # conn = ::.(host: 'localhost', port: 6600) conn.connect conn.gets # first MPD response is always "OK <version>\n" ::::.(connection: conn). ::::.(connection: conn).
For available commands see
MPD::Comands subclasses on
I guess your contribution would be a some command implementation or some models
MPD::Song. Feel free to create pull requests,
issues or contact me.
The gem is available as open source under the terms of the MIT License.