Version bump, updated readme
This commit is contained in:
parent
e3cd3341b7
commit
5406d5e97c
23
README.md
23
README.md
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
module MusicBrainz
|
||||
VERSION = "0.6.0"
|
||||
VERSION = "0.7.0"
|
||||
end
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
require File.expand_path('../lib/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
|
|
Loading…
Reference in New Issue