= discogs

* http://discogs.rubyforge.org

== DESCRIPTION:

API Wrapper for discogs.org
http://www.discogs.com/help/api

== FEATURES/PROBLEMS:

* API wrapper for:
- releases
- artists
- labels
- search
* with class wrappers for:
- contributors
- genres
- styles
- images
- tracks
- formats

And a bin util

== SYNOPSIS:

The first time discogs tries to make an api call, it will look for a YAML file '~/.discogs' or 'RAILS_ROOT/config/discogs.yml'.
If it doesn't exist, it will be created, and will need editing. Paste your discogs api key in place of 'CHANGE ME'.

artist = Discogs::Artist.new('Broken Social Scene')
puts "
Artist: #artistartist.name
Members: #artistartist.members
Images: #artistartist.images
URLs: #artistartist.urls
Releases: #r.title }
"

release = Discogs::Release.new('188365')
puts "
Title: #releaserelease.title
Labels: #releaserelease.labels
Format: #releaserelease.formats
Status: #releaserelease.discog_status
Genres: #releaserelease.genres
Styles: #releaserelease.styles
Country: #releaserelease.country
ReleaseDate: #releaserelease.released
Tracks #releaserelease.tracks
Images: #releaserelease.images
Extras: #')
"

label = Discogs::Label.new(ARGV[0])
puts "
Name: #labellabel.name
Images: #labellabel.images
Contact: #labellabel.contact_info
Profile: #labellabel.profile
URLs: #labellabel.urls
Parent: #labellabel.parent
SubLabels: #labellabel.sublabels
Releases: #labellabel.releases
"

== REQUIREMENTS:

- rubygems
- hpricot

== INSTALL:

sudo gem install discogs

== LICENSE:

(The MIT License)

Copyright (c) 2008 Josh Stephenson

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.