1
0
Fork 0

Version bump, updated readme

This commit is contained in:
Gregory Eremin 2012-07-09 02:45:54 +04:00
parent e3cd3341b7
commit 5406d5e97c
3 changed files with 21 additions and 5 deletions

View File

@ -4,16 +4,21 @@
```bash
gem install musicbrainz
```
or add this line to your Gemfile
```ruby
gem "musicbrainz"
```
### Usage
```ruby
require 'musicbrainz'
require "musicbrainz"
# Search for artists
@suggestions = MusicBrainz::Artist.search('Jet')
@suggestions = MusicBrainz::Artist.search("Jet")
# Find artist by name or mbid
@foo_fighters = MusicBrainz::Artist.find_by_name('Foo Fighters')
@kasabian = MusicBrainz::Artist.find('69b39eab-6577-46a4-a9f5-817839092033')
@foo_fighters = MusicBrainz::Artist.find_by_name("Foo Fighters")
@kasabian = MusicBrainz::Artist.find("69b39eab-6577-46a4-a9f5-817839092033")
# Use them like ActiveRecord models
@empire_tracks = @kasabian.release_groups[8].releases.first.tracks
@ -71,6 +76,16 @@ MusicBrainz::Track
@track.length
```
### Testing
```bash
bundle rake spec
```
### Debug console
```bash
bundle rake console
```
### Contributing
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

View File

@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
module MusicBrainz
VERSION = "0.6.0"
VERSION = "0.7.0"
end

View File

@ -1,4 +1,5 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/version', __FILE__)
Gem::Specification.new do |gem|