Skip to content

Commit

Permalink
set :secure option true for twitter_oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Apr 3, 2013
1 parent 605e85c commit 512f4cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/earthquake/core.rb
Expand Up @@ -65,6 +65,7 @@ def default_config
consumer_key: consumer['key'],
consumer_secret: consumer['secret'],
api_version: '1.1',
secure: true,
output_interval: 1,
history_size: 1000,
api: { :host => 'userstream.twitter.com', :path => '/2/user.json', :ssl => true },
Expand Down
2 changes: 1 addition & 1 deletion lib/earthquake/twitter.rb
Expand Up @@ -5,7 +5,7 @@ module Twitter
end

init do
@twitter = TwitterOAuth::Client.new(config.slice(:consumer_key, :consumer_secret, :token, :secret, :api_version))
@twitter = TwitterOAuth::Client.new(config.slice(:consumer_key, :consumer_secret, :token, :secret, :api_version, :secure))

output do |item|
next if item["text"].nil? || item["_disable_cache"]
Expand Down

0 comments on commit 512f4cc

Please sign in to comment.