Files | Admin

Notes:

Release Name: daapclient-0.2.2

Notes: = Net::DAAP::Client Release Notes == 0.2.2 This release of Net::DAAP::Client (the ruby itunes client) has a few important improvements. First, a new method called "connect_db" has been added to Net::DAAP::Client. This method will automatically connect to a server and yield every database to the block. Here's an example: Net::DAAP::Client.new('localhost').connect_db { |db| db.songs.each { |song| puts song } } A 'save' method has been added to Net::DAAP::Song to make it easier to save that song. The save method comes up with a name to save the song for you. For example, to save every song in the database you could do this: Net::DAAP::Client.new('localhost').connect_db { |db| db.songs.each { |song| song.save } } The final new addition is 'net/daap/speed_hacks'. iTunes uses HTTP as its transport, and ruby's net/http is slow when downloading large files. Be very careful when requiring this library as it overrides a method in the built in net/http library. Just require the library and you will get a significant speed increase.


Changes: = Net::DAAP::Client Changelog == 0.2.2 * Added Net::DAAP::Song#save which will automatically save files for you * Added Net::DAAP::Client#connect_db which will automatically yield a database * Added a new example for downloading songs * Added 'net/daap/speed_hacks' for improving Net::HTTP speed * Fixed a couple warnings