Skip to content
Ruby wrapper for the MusicBrainz XML Web Service Version 2
Branch: master
Clone or download
Robin Tweedie
Latest commit 77a9266 Feb 10, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib move http stubbing out of spec helper Feb 10, 2013
spec add dev gems, and exclude them from travis Feb 10, 2013
.gitignore sort gitignore Feb 10, 2013
.rspec trim fat Feb 10, 2013
.travis.yml guess I have to call it something else Feb 10, 2013
Gemfile guess I have to call it something else Feb 10, 2013
README.markdown travis bling Feb 10, 2013
musicbrainz-ruby.gemspec trim fat Feb 10, 2013

README.markdown

MusicBrainz-ruby Build Status

O hai, I HTTParty'd ur web service. No offence, RBrainz gem.

This gem currently only supports the lookup, browse and search GET requests.

Returns Mashes of the metadata tag from MusicBrainz's XML responses.

Install

gem install musicbrainz-ruby

or in a Gemfile

gem 'musicbrainz-ruby', :require => 'musicbrainz'

Examples

require 'musicbrainz'
brainz = MusicBrainz::Client.new(:username => 'username',
                                 :password => 'password')

# Find an artist by id, include artist relations
brainz.artist(:mbid => '45d15468-2918-4da4-870b-d6b880504f77', :inc => 'artist-rels')
# Search for artists with the query 'Diplo'
brainz.artist(:query => 'Diplo')

MIT License

(c) Robin Tweedie 2011

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.