Commit 3bdcadea51dc23c7095f7fdc2c7f3890d708d766
1 parent
a8f2b1b7
Exists in
master
twitter activated
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
lib/community_hub_plugin/hub.rb
@@ -34,13 +34,13 @@ class CommunityHubPlugin::Hub < Folder | @@ -34,13 +34,13 @@ class CommunityHubPlugin::Hub < Folder | ||
34 | end | 34 | end |
35 | 35 | ||
36 | def self.twitter_service(hub, action) | 36 | def self.twitter_service(hub, action) |
37 | -# author_id = 54 | ||
38 | -# if action==:start | ||
39 | -# thread = Thread.new { | ||
40 | -# Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') | ||
41 | -# } unless@@twitter_thread_started | ||
42 | -# @@twitter_thread_started = true | ||
43 | -# end | 37 | + author_id = 54 |
38 | + if action==:start | ||
39 | + thread = Thread.new { | ||
40 | + Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') | ||
41 | + } unless@@twitter_thread_started | ||
42 | + @@twitter_thread_started = true | ||
43 | + end | ||
44 | end | 44 | end |
45 | 45 | ||
46 | def self.facebook_service(hub, action) | 46 | def self.facebook_service(hub, action) |
tweeter_stream/lib/twurl/stream.rb
@@ -6,7 +6,7 @@ module Twurl | @@ -6,7 +6,7 @@ module Twurl | ||
6 | PATH_PATTERN = /^\/\w+/ | 6 | PATH_PATTERN = /^\/\w+/ |
7 | PROTOCOL_PATTERN = /^\w+:\/\// | 7 | PROTOCOL_PATTERN = /^\w+:\/\// |
8 | README = File.dirname(__FILE__) + '/../../README' | 8 | README = File.dirname(__FILE__) + '/../../README' |
9 | - @output ||= STDOUT | 9 | + @output ||= STDOUT |
10 | class NoPathFound < Exception | 10 | class NoPathFound < Exception |
11 | end | 11 | end |
12 | 12 |