Slogger
Slogger copied to clipboard
Pinboard creating duplicate entries, twitter logger stopped working
Pinboard
I use the -s option, which should only log whatever that are newer since the last run. But I often see duplicated entries show up days after its initial logging, when there's a new item in Pinboard that triggered slogger.
It was working normal before, but recently (I'm not sure when, and as far as I can remember, I didn't make any changes to the slogger configuration) it will give the following error message after I run: slogger -s -o twitter
I did updated the Ruby gems multiple times using sudo gem update, and the twitter gem version is 5.1.1
Initializing Slogger v2.1 (2.1.0.6)... 18:08:00 TwitterLogger: Getting Twitter timeline for xiaoning_wang /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:74:in
get_tweets': undefined method
configure' for Twitter:Module (NoMethodError) from /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:237:inblock (2 levels) in do_log' from /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:262:in
try' from /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:237:inblock in do_log' from /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:235:in
each' from /Users/xiaoning/Dropbox/Apps/Slogger/plugins/twitterlogger.rb:235:indo_log' from /Users/xiaoning/Dropbox/Apps/Slogger/slogger.rb:257:in
block in run_plugins' from /Users/xiaoning/Dropbox/Apps/Slogger/slogger.rb:244:ineach' from /Users/xiaoning/Dropbox/Apps/Slogger/slogger.rb:244:in
run_plugins' from /Users/xiaoning/Dropbox/Apps/Slogger/slogger.rb:388:in<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from ./slogger:18:in
'
Anyone encountered similar problems? Any suggestion would be greatly appreciated! Thank you!
My Ruby version is 2.0.0
After I uninstalled the ruby gem twitter 5.1.1, leaving only 4.8.1, the twitter logger is working again. So it seems that the twitter logger does not working properly with the latest version of the twitter gem.
According to http://sferik.github.io/twitter/
oauth_token has been renamed to access_token and oauth_token_secret is now access_token_secret to conform to the terminology used in Twitter's developer documentation.
But I don't know what needs to be modified to accommodate this change.