From fb8571d462d232fecc0969cee7459d887681ae17 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Fri, 11 Apr 2014 19:56:10 +0000 Subject: [PATCH] com erro, irei reverter para ver se é erro no código --- plugins/community_hub/lib/community_hub_plugin/hub.rb | 8 +++++--- plugins/community_hub/tweeter_stream/.gitignore | 39 --------------------------------------- plugins/community_hub/tweeter_stream/nbproject/private/private.xml | 4 ---- plugins/community_hub/tweeter_stream/noosfero.rb | 2 +- plugins/community_hub/views/content_viewer/hub.rhtml | 2 +- 5 files changed, 7 insertions(+), 48 deletions(-) delete mode 100755 plugins/community_hub/tweeter_stream/.gitignore delete mode 100644 plugins/community_hub/tweeter_stream/nbproject/private/private.xml diff --git a/plugins/community_hub/lib/community_hub_plugin/hub.rb b/plugins/community_hub/lib/community_hub_plugin/hub.rb index d34eba7..cfd50b8 100644 --- a/plugins/community_hub/lib/community_hub_plugin/hub.rb +++ b/plugins/community_hub/lib/community_hub_plugin/hub.rb @@ -6,9 +6,6 @@ class CommunityHubPlugin::Hub < Folder settings_items :promoted_users, :type => Array, :default => [] settings_items :pinned_posts, :type => Array, :default => [] - def initialize(my_var) - raise "ola".inspect - end def self.icon_name(article = nil) 'community-hub' @@ -29,5 +26,10 @@ class CommunityHubPlugin::Hub < Folder def view_page "content_viewer/hub.rhtml" end + + + def start_twitter_service.self + #Twurl::Stream.run('popcorntime,time4popcorn,nba', '/root/.twurlrc') + end end \ No newline at end of file diff --git a/plugins/community_hub/tweeter_stream/.gitignore b/plugins/community_hub/tweeter_stream/.gitignore deleted file mode 100755 index 4fdc515..0000000 --- a/plugins/community_hub/tweeter_stream/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -*.gem -*.rbc -*.sw[a-p] -*.tmproj -*.tmproject -*.un~ -*~ -.Spotlight-V100 -.Trashes -._* -.bundle -.config -.directory -.elc -.emacs.desktop -.emacs.desktop.lock -.redcar -.yardoc -Desktop.ini -Gemfile.lock -Icon? -InstalledFiles -Session.vim -\#*\# -_yardoc -auto-save-list -coverage -doc -lib/bundler/man -pkg -pkg/* -rdoc -spec/reports -test/tmp -test/version_tmp -tmp -tmtags -tramp -/nbproject/private/ \ No newline at end of file diff --git a/plugins/community_hub/tweeter_stream/nbproject/private/private.xml b/plugins/community_hub/tweeter_stream/nbproject/private/private.xml deleted file mode 100644 index 4750962..0000000 --- a/plugins/community_hub/tweeter_stream/nbproject/private/private.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/plugins/community_hub/tweeter_stream/noosfero.rb b/plugins/community_hub/tweeter_stream/noosfero.rb index ca9ed68..d71aa7a 100755 --- a/plugins/community_hub/tweeter_stream/noosfero.rb +++ b/plugins/community_hub/tweeter_stream/noosfero.rb @@ -3,4 +3,4 @@ require 'rubygems' # if you use RubyGems require File.dirname(__FILE__) + '/lib/twurl' -Twurl::Stream.run('popcorntime,time4popcorn', '/root/.twurlrc') +Twurl::Stream.run('popcorntime,time4popcorn,nba', '/root/.twurlrc') diff --git a/plugins/community_hub/views/content_viewer/hub.rhtml b/plugins/community_hub/views/content_viewer/hub.rhtml index f415c9e..1c6ad7c 100644 --- a/plugins/community_hub/views/content_viewer/hub.rhtml +++ b/plugins/community_hub/views/content_viewer/hub.rhtml @@ -1,6 +1,6 @@ <% extend CommunityHubPlugin::HubHelper %> -<%# CommunityHubPlugin::Hub.start_service %> +<%# CommunityHubPlugin::Hub.start_twitter_service %>
-- libgit2 0.21.2