Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update twitter gem dependency to ~> 4.0

  • Loading branch information...
commit da00aec5f3a4b2a1fe3740c91dcd88937a8905e3 1 parent 9a8be61
@sferik sferik authored
View
4 lib/tweetstream/client.rb
@@ -10,7 +10,7 @@ module TweetStream
#
# Basic usage of the library is to call one of the provided
# methods and provide a block that will perform actions on
- # a yielded Twitter::Status. For example:
+ # a yielded Twitter::Tweet. For example:
#
# TweetStream::Client.new.track('fail') do |status|
# puts "[#{status.user.screen_name}] #{status.text}"
@@ -458,7 +458,7 @@ def respond_to(hash, callbacks, &block)
elsif hash[:event]
invoke_callback(callbacks[hash[:event].to_s], hash)
elsif hash[:text] && hash[:user]
- @last_status = Twitter::Status.new(hash)
+ @last_status = Twitter::Tweet.new(hash)
yield_message_to(callbacks['timeline_status'], @last_status)
yield_message_to(block, @last_status) if block_given?
View
4 spec/tweetstream/client_spec.rb
@@ -52,9 +52,9 @@
@client.track('abc','def')
end
- it 'yields a Twitter::Status' do
+ it 'yields a Twitter::Tweet' do
@stream.should_receive(:each).and_yield(sample_tweets[0].to_json)
- @client.track('abc'){|s| s.should be_kind_of(Twitter::Status)}
+ @client.track('abc'){|s| s.should be_kind_of(Twitter::Tweet)}
end
it 'yields the client if a block with arity 2 is given' do
View
2  tweetstream.gemspec
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.homepage = 'http://github.com/intridea/tweetstream'
s.add_dependency 'em-twitter', '~> 0.1'
- s.add_dependency 'twitter', '~> 3.2'
+ s.add_dependency 'twitter', '~> 4.0'
s.add_dependency 'daemons', '~> 1.1'
s.add_dependency 'multi_json', '~> 1.3'
s.add_dependency 'em-http-request', '~> 1.0.2'
Please sign in to comment.
Something went wrong with that request. Please try again.