diff options
author | pushmatrix <daniel.beauchamp@gmail.com> | 2014-05-30 14:59:26 -0400 |
---|---|---|
committer | pushmatrix <daniel.beauchamp@gmail.com> | 2014-05-30 14:59:26 -0400 |
commit | 391a2701f60868817f79a091afbbec24041a0814 (patch) | |
tree | 0551dfa499613ca575f255bb7442b398e484db25 | |
parent | 9ee7f9edfb5cc213e0890d9dc248f0ffb7de6798 (diff) |
Updated to latest twitter gem.
-rw-r--r-- | templates/project/Gemfile | 2 | ||||
-rw-r--r-- | templates/project/jobs/twitter.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/project/Gemfile b/templates/project/Gemfile index 3c7e7a9..1235b37 100644 --- a/templates/project/Gemfile +++ b/templates/project/Gemfile @@ -3,4 +3,4 @@ source 'https://rubygems.org' gem 'dashing' ## Remove this if you don't need a twitter widget. -gem 'twitter', '>= 5.0.0'
\ No newline at end of file +gem 'twitter', '>= 5.9.0'
\ No newline at end of file diff --git a/templates/project/jobs/twitter.rb b/templates/project/jobs/twitter.rb index 26228bc..7b2bd6f 100644 --- a/templates/project/jobs/twitter.rb +++ b/templates/project/jobs/twitter.rb @@ -6,8 +6,8 @@ require 'twitter' twitter = Twitter::REST::Client.new do |config| config.consumer_key = 'YOUR_CONSUMER_KEY' config.consumer_secret = 'YOUR_CONSUMER_SECRET' - config.oauth_token = 'YOUR_OAUTH_TOKEN' - config.oauth_token_secret = 'YOUR_OAUTH_SECRET' + config.access_token = 'YOUR_OAUTH_TOKEN' + config.access_token_secret = 'YOUR_OAUTH_SECRET' end search_term = URI::encode('#todayilearned') |