Sha256: b54a2dfa61c233f1bd34c0ec0fad8767512b8c0d328288a347514c7fd05b88c5

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

require 'rubygems'
require 'tweetstream'
require 'growl'

tracks = 'yankees'
puts "Starting a GrowlTweet to track: #{tracks}"

TweetStream.configure do |config|
  config.consumer_key = 'abcdefghijklmnopqrstuvwxyz'
  config.consumer_secret = '0123456789'
  config.oauth_token = 'abcdefghijklmnopqrstuvwxyz'
  config.oauth_token_secret = '0123456789'
  config.auth_method = :oauth
end

TweetStream::Daemon.new('tracker').track(tracks) do |status|
  Growl.notify status.text, :title => status.user.screen_name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tweetstream-1.1.5 examples/growl_daemon.rb
tweetstream-1.1.4 examples/growl_daemon.rb
tweetstream-1.1.3 examples/growl_daemon.rb
tweetstream-1.1.2 examples/growl_daemon.rb