xiami gem

Build Status Code Climate Coverage Status Gem Version Dependency Status

retrieve songs from xiami.com

Installation

Add this line to your application's Gemfile:

gem 'xiami'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xiami

Usage

Xiami::Song.new 42951
=> #<Xiami::Song:0x007f8f35c43b48 @id="42951", @name="我爱台妹", @album=#<Xiami::Album:0x007f8f35c63560 @id="3488", @name="Wake Up", @cover_url="http://img.xiami.net/images/album/img24/724/34881343112513_3.jpg">, @artist=#<Xiami::Artist:0x007f8f35c79cc0 @id="724", @name="MC HotDog;张震岳">, @temporary_url="http://m5.file.xiami.com/724/724/3488/42951_28196_l.mp3?auth_key=77abde259cd6566a5c4222b4cca7331c-1416441600-0-null">

Credits

Contributing

  1. Fork it ( https://github.com/forresty/xiami/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Changelog

0.1.0 / 2014-12-17

  • new Song.fetch method, will return nil when failed