From 67fa336fb97a89735ae66e8a92c8aa7f8d84de02 Mon Sep 17 00:00:00 2001 From: Andrew Cantino Date: Tue, 23 Sep 2014 21:59:48 -0700 Subject: [PATCH] fix twitter bug --- Gemfile | 2 +- bin/threaded.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 68ca8c1c..36d5c345 100644 --- a/Gemfile +++ b/Gemfile @@ -31,6 +31,7 @@ gem 'protected_attributes', '~>1.0.8' # This must be loaded before some other ge gem 'ace-rails-ap', '~> 2.0.1' gem 'bootstrap-kaminari-views', '~> 0.0.3' gem 'bundler', '>= 1.5.0' +gem 'twitter', '~> 5.8.0' # needs to be loaded before cantino-twitter-stream. gem 'cantino-twitter-stream', github: 'cantino/twitter-stream', branch: 'master' gem 'coffee-rails', '~> 4.0.0' gem 'daemons', '~> 1.1.9' @@ -64,7 +65,6 @@ gem 'sass-rails', '~> 4.0.0' gem 'select2-rails', '~> 3.5.4' gem 'spectrum-rails' gem 'therubyracer', '~> 0.12.1' -gem 'twitter', '~> 5.8.0' gem 'typhoeus', '~> 0.6.3' gem 'uglifier', '>= 1.3.0' diff --git a/bin/threaded.rb b/bin/threaded.rb index 40f83e20..cc73467c 100644 --- a/bin/threaded.rb +++ b/bin/threaded.rb @@ -1,6 +1,9 @@ require 'thread' require 'huginn_scheduler' +STDOUT.sync = true +STDERR.sync = true + def stop puts 'Exiting...' @scheduler.stop