Sha256: 687afbeca636174aa237c52217144687e3f8a272bfed8cb8bc5b335e1e2d3bef

Contents?: true

Size: 888 Bytes

Versions: 9

Compression:

Stored size: 888 Bytes

Contents

# Kagu

Ruby API to manage iTunes tracks and playlists.

## Installation

Just add this into your `Gemfile`:

    gem 'kagu'

Then, just run `bundle install`.

## Examples

### Displaying all tracks artist

    library = Kagu::Library.new

    library.tracks.each do |track|
      puts track.artist
    end

### Displaying all playlists and its tracks count

    library = Kagu::Library.new

    library.playlists.each do |playlist|
      puts "#{playlist.name}: #{playlist.tracks.count}"
    end

### Creating a playlist

    library = Kagu::Library.new

    tracks = library.tracks.select { |track| track.genre == 'Drum & Bass' && track.added_at > 1.week.ago }
    library.playlists.create(name: 'Recent - D&B', tracks: tracks)

## Executing test suite

This project is fully tested with [Rspec 3](http://github.com/rspec/rspec).
Just run `bundle exec rake` (after a `bundle install`).

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kagu-0.3.3 README.mdown
kagu-0.3.2 README.mdown
kagu-0.3.1 README.mdown
kagu-0.3.0 README.mdown
kagu-0.2.4 README.mdown
kagu-0.2.3 README.mdown
kagu-0.2.2 README.mdown
kagu-0.2.1 README.mdown
kagu-0.2.0 README.mdown