play/play — pull request #167 by joeyw (2012-05-12 15:51:04+00:00)
Title: Replace poller with events

Ode to #97.

Looking to get feedback on this implementation of our previously ill fated replacement.

This time around `script/itunes-hook` listens for itunes events and simple prints to stdout that the `song_changed`.

When booting up Play starts up `script/itunes-hook` with PTY and creates a new thread to watch for the song change events. These are picked up and an update is pushed out when they happen.

The hook application comes precompiled and ready to go.

The `rake hook:compile` task has been added to compile the hook application and the source is in `src`.

Okay, go.