Slogger needs a specific version of the twitter gem
My favorite script for Day One, Slogger, is working again.
I had an issue with the twitter ruby gem.
When I ran the ./slogger script from the command line, I got an error. Here is the error log:
22:45:03 TwitterLogger: Getting Twitter timeline for /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterloggerrb:74:in `get_tweets': undefined method `configure' for Twitter:Module (NoMethodError) from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterloggerrb:237:in `block (2 levels) in do_log' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterlogger.rb:262:in `try' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterloggerrb:237:in `block in do_log' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterlogger.rb:235:in `each' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/plugins/twitterloggerrb:235:in `do_log' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/slogger.rb:257:in `block in run_plugins' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/sloggerrb:244:in `each' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/slogger.rb:244:in `run_plugins' from /Volumes/Macintosh HD/Users/simon/Dropbox/scripts/Slogger/sloggerrb:388:in `<top (required)>' from /Users/master/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/master/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_requirerb:55:in `require' from ./slogger:18:in `<main>'
But as I found out I was not alone with this issue. Others had this issue, too. And as you can see, there is a solution. You have to install a specific version of the twitter gem. The version must be 4.8.1.
First check the version of your twitter gem:
Then delete the twitter gem:
If you have multiple version of the gem, select "All versions".
Now install install version 4.8.1 of the twitter gem:
gem install twitter -v 4.8.1
Slogger should work again now.
from [#ff0000]bin - The Bin in Hex http://ift.tt/IW8mV5
via IFTTT