intridea/tweetstream — pull request #98 by choxi (2012-08-09 22:25:31+00:00)
Title: client.enhance_your_calm block never gets called

In the example code below, `on_enhance_your_calm` never gets called even when that's the response Twitter is sending. Instead, `on_error` gets called with a nil `message`.

```ruby
TweetStream.configure do |config|
config.username = ENV["TWITTER_HANDLE"]
config.password = ENV["TWITTER_PASSWORD"]
config.auth_method = :basic
end

client = TweetStream::Client.new

client.on_enhance_your_calm do
puts "Enhance Your Calm"
end

client.on_error do |message|
puts "Error: #{message}"
end

client.track(hashtag) do |tweet|
puts tweet.inspect
end
```