From d90f9c3e364fc90fa7f79225ea7c54289372241f Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Fri, 11 Apr 2014 20:01:55 +0000 Subject: [PATCH] Revert "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, 48 insertions(+), 7 deletions(-) create mode 100755 plugins/community_hub/tweeter_stream/.gitignore create 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 cfd50b8..d34eba7 100644 --- a/plugins/community_hub/lib/community_hub_plugin/hub.rb +++ b/plugins/community_hub/lib/community_hub_plugin/hub.rb @@ -6,6 +6,9 @@ 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' @@ -26,10 +29,5 @@ 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 new file mode 100755 index 0000000..4fdc515 --- /dev/null +++ b/plugins/community_hub/tweeter_stream/.gitignore @@ -0,0 +1,39 @@ +*.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 new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/plugins/community_hub/tweeter_stream/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/plugins/community_hub/tweeter_stream/noosfero.rb b/plugins/community_hub/tweeter_stream/noosfero.rb index d71aa7a..ca9ed68 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,nba', '/root/.twurlrc') +Twurl::Stream.run('popcorntime,time4popcorn', '/root/.twurlrc') diff --git a/plugins/community_hub/views/content_viewer/hub.rhtml b/plugins/community_hub/views/content_viewer/hub.rhtml index 1c6ad7c..f415c9e 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_twitter_service %> +<%# CommunityHubPlugin::Hub.start_service %>
-- libgit2 0.21.2