Posted By: Aaron Patterson
Date: 2006-05-15 10:50
Summary: Net::DAAP::Client 0.2.0
Project: Net::DAAP::Client
I am proud to announce the release of Net::DAAP::Client version 0.2.0, the
iTunes client written in Ruby. This client lets you browse and download songs
from servers that implement DAAP, most notably iTunes, and mt-daapd.
= Net::DAAP::Client Release Notes
== 0.2.0
Net::DAAP::Client has a newer, extended interface. In addition to the song
list that the database already contained, there is now a list of artists and
a list of albums that you can access from the database. The artists contain
all of the albums associated with that artists, and each album has all the songs
for that album. Each artist contains all songs by that artist as well.
For example, to access all songs by one artist, one could do this:
db.artists.find { |a| a.name == 'Radiohead' }.songs.each { |s|
puts s.name
}
Or, to access all of Radiohead's albums, one could do this:
db.artists.find { |a| a.name == 'Radiohead' }.albums.each { |a|
puts a.name
}
An exhaustive example can be seen in the EXAMPLES file.
= CHANGES in 0.2.0
* Added artists and albums objects
* Added a logger
* Fixed some syntax issues
* Minor speed improvements
* Added and updated unit tests |
|