intridea/tweetstream — Issue #58: NoMethodError
Author: sscomw
Created: 2011-12-23 08:56:53+00:00
State: open

Hi.
Thanks for this TweetStream.

I have one issue. I tried a following sample code:

-------------------------
require 'rubygems'
require 'tweetstream'

TweetStream.configure do |config|
config.consumer_key = 'my_consumer_key'
config.consumer_secret = 'my_consumer_secret'
config.oauth_token = 'my_token'
config.oauth_token_secret = 'my_token_secret'
config.auth_method = :oauth
config.parser = :yajl
end

TweetStream::Client.new.sample do |status|
puts "#{status.text}"
end
-------------------------

Then I always got a following message and I cannot get streams:
undefined method `configure' for TweetStream:Module (NoMethodError)

How can I use??

thanks.

My Environment:
MacOSX(Lion), ruby 1.8.7, tweetstream-1.1.3, yajl-1.1.0