Version bump, updated readme
This commit is contained in:
parent
e3cd3341b7
commit
5406d5e97c
23
README.md
23
README.md
@ -4,16 +4,21 @@
|
|||||||
```bash
|
```bash
|
||||||
gem install musicbrainz
|
gem install musicbrainz
|
||||||
```
|
```
|
||||||
|
or add this line to your Gemfile
|
||||||
|
```ruby
|
||||||
|
gem "musicbrainz"
|
||||||
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
```ruby
|
```ruby
|
||||||
require 'musicbrainz'
|
require "musicbrainz"
|
||||||
|
|
||||||
# Search for artists
|
# Search for artists
|
||||||
@suggestions = MusicBrainz::Artist.search('Jet')
|
@suggestions = MusicBrainz::Artist.search("Jet")
|
||||||
|
|
||||||
# Find artist by name or mbid
|
# Find artist by name or mbid
|
||||||
@foo_fighters = MusicBrainz::Artist.find_by_name('Foo Fighters')
|
@foo_fighters = MusicBrainz::Artist.find_by_name("Foo Fighters")
|
||||||
@kasabian = MusicBrainz::Artist.find('69b39eab-6577-46a4-a9f5-817839092033')
|
@kasabian = MusicBrainz::Artist.find("69b39eab-6577-46a4-a9f5-817839092033")
|
||||||
|
|
||||||
# Use them like ActiveRecord models
|
# Use them like ActiveRecord models
|
||||||
@empire_tracks = @kasabian.release_groups[8].releases.first.tracks
|
@empire_tracks = @kasabian.release_groups[8].releases.first.tracks
|
||||||
@ -71,6 +76,16 @@ MusicBrainz::Track
|
|||||||
@track.length
|
@track.length
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Testing
|
||||||
|
```bash
|
||||||
|
bundle rake spec
|
||||||
|
```
|
||||||
|
|
||||||
|
### Debug console
|
||||||
|
```bash
|
||||||
|
bundle rake console
|
||||||
|
```
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
* 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 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
module MusicBrainz
|
module MusicBrainz
|
||||||
VERSION = "0.6.0"
|
VERSION = "0.7.0"
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
require File.expand_path('../lib/version', __FILE__)
|
require File.expand_path('../lib/version', __FILE__)
|
||||||
|
|
||||||
Gem::Specification.new do |gem|
|
Gem::Specification.new do |gem|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user