1
0
Fork 0

Fixed readme

This commit is contained in:
Gregory Eremin 2011-09-13 15:00:33 +04:00
parent 4bb639d853
commit ccba134aac
3 changed files with 29 additions and 31 deletions

View File

@ -7,9 +7,7 @@
=== Usage === Usage
require 'musicbrainz' require 'musicbrainz'
@kasabian = MusicBrainz::Artist.find('69b39eab-6577-46a4-a9f5-817839092033')
@kasabian = MusicBrainzArtist.find('69b39eab-6577-46a4-a9f5-817839092033')
@empire_tracks = @kasabian.release_groups[8].releases.first.tracks @empire_tracks = @kasabian.release_groups[8].releases.first.tracks
=== Future === Future
@ -20,41 +18,41 @@ It should work all like ActiveRecord models.
MusicBrainzArtist MusicBrainzArtist
MusicBrainzArtist.find(mbid) @artist = MusicBrainz::Artist.find(mbid)
MusicBrainzArtist.id @artist.id
MusicBrainzArtist.type @artist.type
MusicBrainzArtist.name @artist.name
MusicBrainzArtist.country @artist.country
MusicBrainzArtist.date_begin @artist.date_begin
MusicBrainzArtist.date_end @artist.date_end
MusicBrainzArtist.release_groups @artist.release_groups
MusicBrainzReleaseGroup MusicBrainzReleaseGroup
MusicBrainzReleaseGroup.find(mbid) @release_group = MusicBrainz::ReleaseGroup.find(mbid)
MusicBrainzReleaseGroup.id @release_group.id
MusicBrainzReleaseGroup.type @release_group.type
MusicBrainzReleaseGroup.title @release_group.title
MusicBrainzReleaseGroup.first_release_date @release_group.first_release_date
MusicBrainzReleaseGroup.releases @release_group.releases
MusicBrainzRelease MusicBrainzRelease
MusicBrainzRelease.find(mbid) @release = MusicBrainz::Release.find(mbid)
MusicBrainzRelease.id @release.id
MusicBrainzRelease.title @release.title
MusicBrainzRelease.status @release.status
MusicBrainzRelease.date @release.date
MusicBrainzRelease.country @release.country
MusicBrainzRelease.tracks @release.tracks
MusicBrainzTrack MusicBrainzTrack
MusicBrainzTrack.find(mbid) @track = MusicBrainz::Track.find(mbid)
MusicBrainzTrack.position @track.position
MusicBrainzTrack.recording_id @track.recording_id
MusicBrainzTrack.title @track.title
MusicBrainzTrack.length @track.length
=== Contributing === Contributing

View File

@ -1 +1 @@
0.3.0 0.3.1

View File

@ -5,7 +5,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{musicbrainz} s.name = %q{musicbrainz}
s.version = "0.3.0" s.version = "0.3.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Gregory Eremin}] s.authors = [%q{Gregory Eremin}]