fanart_tv¶ ↑
<img src=“https://travis-ci.org/egze/fanart_tv.png?branch=master” alt=“Build Status” />
A ruby wrapper for fanart.tv API. fanart.tv
Installation¶ ↑
gem install fanart_tv
or add this line to your Gemfile
gem "fanart_tv"
Configuration¶ ↑
FanartTv.configure do |c| # Application identity (required) c.app_name = "Your App Name" c.app_version = "1.0" c.contact = "Your email, or website" # Cache config (optional) c.cache_path = "/tmp/musicbrainz-cache" c.perform_caching = true c.api_key = "Your API key for fanart.tv" end
Usage¶ ↑
require "fanart_tv" # Search for artist by musicbrainz_id @evanescence = FanartTv::Artist.find("f4a31f0a-51dd-4fa7-986d-3095c40c5ed9")
Api¶ ↑
FanartTv::Artist¶ ↑
@artist = FanartTv::Artist.find(musicbrainz_id)
Contributing to fanart_tv¶ ↑
-
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 issue tracker to make sure someone already hasn’t requested it and/or contributed it.
-
Fork the project.
-
Start a feature/bugfix branch.
-
Commit and push until you are happy with your contribution.
-
Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.