From afa755fb9643f7d8b1b3dc06c4cacb99e0212af6 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Thu, 10 Apr 2014 14:56:43 +0000 Subject: [PATCH] this lib is not going to be used anymore --- plugins/community_hub/twitter-stream-listener/.bundle/install.log | 24 ------------------------ plugins/community_hub/twitter-stream-listener/Gemfile | 3 --- plugins/community_hub/twitter-stream-listener/Gemfile.lock | 37 ------------------------------------- plugins/community_hub/twitter-stream-listener/monitrc | 5 ----- plugins/community_hub/twitter-stream-listener/stop | 0 plugins/community_hub/twitter-stream-listener/stream.rb | 36 ------------------------------------ plugins/community_hub/twitter-stream-listener/stream_monitor | 16 ---------------- plugins/community_hub/twitter-stream-listener/vendor/cache/addressable-2.3.6.gem | Bin 98304 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/atomic-1.1.16.gem | Bin 16896 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/buftok-0.2.0.gem | Bin 8192 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/equalizer-0.0.9.gem | Bin 12288 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/faraday-0.9.0.gem | Bin 57344 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/http-0.5.0.gem | Bin 20992 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/http_parser.rb-0.6.0.gem | Bin 177664 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/json-1.8.1.gem | Bin 148992 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/memoizable-0.4.2.gem | Bin 13312 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/multipart-post-2.0.0.gem | Bin 11264 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/naught-1.0.0.gem | Bin 18432 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/simple_oauth-0.2.0.gem | Bin 11776 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/thread_safe-0.3.1.gem | Bin 117248 -> 0 bytes plugins/community_hub/twitter-stream-listener/vendor/cache/twitter-5.8.0.gem | Bin 501760 -> 0 bytes 21 files changed, 0 insertions(+), 121 deletions(-) delete mode 100644 plugins/community_hub/twitter-stream-listener/.bundle/install.log delete mode 100644 plugins/community_hub/twitter-stream-listener/Gemfile delete mode 100644 plugins/community_hub/twitter-stream-listener/Gemfile.lock delete mode 100755 plugins/community_hub/twitter-stream-listener/monitrc delete mode 100644 plugins/community_hub/twitter-stream-listener/stop delete mode 100644 plugins/community_hub/twitter-stream-listener/stream.rb delete mode 100755 plugins/community_hub/twitter-stream-listener/stream_monitor delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/addressable-2.3.6.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/atomic-1.1.16.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/buftok-0.2.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/equalizer-0.0.9.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/faraday-0.9.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/http-0.5.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/http_parser.rb-0.6.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/json-1.8.1.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/memoizable-0.4.2.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/multipart-post-2.0.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/naught-1.0.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/simple_oauth-0.2.0.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/thread_safe-0.3.1.gem delete mode 100644 plugins/community_hub/twitter-stream-listener/vendor/cache/twitter-5.8.0.gem diff --git a/plugins/community_hub/twitter-stream-listener/.bundle/install.log b/plugins/community_hub/twitter-stream-listener/.bundle/install.log deleted file mode 100644 index db28a66..0000000 --- a/plugins/community_hub/twitter-stream-listener/.bundle/install.log +++ /dev/null @@ -1,24 +0,0 @@ -# Logfile created on Tue Apr 01 15:04:11 -0300 2014 by logger.rb/1.2.6 -I, [2014-04-01T15:04:11.169252 #3872] INFO -- : 0: addressable (2.3.6) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/addressable-2.3.6.gemspec -I, [2014-04-01T15:04:15.337466 #3872] INFO -- : 0: atomic (1.1.16) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/atomic-1.1.16.gemspec -I, [2014-04-01T15:04:16.238529 #3872] INFO -- : 0: buftok (0.2.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/buftok-0.2.0.gemspec -I, [2014-04-01T15:04:17.506979 #3872] INFO -- : 0: cookiejar (0.3.2) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/cookiejar-0.3.2.gemspec -I, [2014-04-01T15:04:19.059662 #3872] INFO -- : 0: daemons (1.1.9) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/daemons-1.1.9.gemspec -I, [2014-04-01T15:04:32.866846 #3872] INFO -- : 0: eventmachine (1.0.3) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/eventmachine-1.0.3.gemspec -I, [2014-04-01T15:04:34.487840 #3872] INFO -- : 0: em-socksify (0.3.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/em-socksify-0.3.0.gemspec -I, [2014-04-01T15:04:37.910469 #3872] INFO -- : 0: http_parser.rb (0.6.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/http_parser.rb-0.6.0.gemspec -I, [2014-04-01T15:04:40.571077 #3872] INFO -- : 0: em-http-request (1.1.2) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/em-http-request-1.1.2.gemspec -I, [2014-04-01T15:04:41.537112 #3872] INFO -- : 0: simple_oauth (0.2.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/simple_oauth-0.2.0.gemspec -I, [2014-04-01T15:04:42.889153 #3872] INFO -- : 0: em-twitter (0.3.3) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/em-twitter-0.3.3.gemspec -I, [2014-04-01T15:04:43.925324 #3872] INFO -- : 0: equalizer (0.0.9) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/equalizer-0.0.9.gemspec -I, [2014-04-01T15:04:44.873338 #3872] INFO -- : 0: multipart-post (2.0.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/multipart-post-2.0.0.gemspec -I, [2014-04-01T15:04:47.163595 #3872] INFO -- : 0: faraday (0.9.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/faraday-0.9.0.gemspec -I, [2014-04-01T15:04:48.595897 #3872] INFO -- : 0: http (0.5.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/http-0.5.0.gemspec -I, [2014-04-01T15:04:48.596578 #3872] INFO -- : 0: json (1.8.1) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/json-1.8.1.gemspec -I, [2014-04-01T15:04:51.014435 #3872] INFO -- : 0: thread_safe (0.3.1) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/thread_safe-0.3.1.gemspec -I, [2014-04-01T15:04:52.128708 #3872] INFO -- : 0: memoizable (0.4.2) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/memoizable-0.4.2.gemspec -I, [2014-04-01T15:04:53.218012 #3872] INFO -- : 0: multi_json (1.9.2) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/multi_json-1.9.2.gemspec -I, [2014-04-01T15:04:54.541761 #3872] INFO -- : 0: naught (1.0.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/naught-1.0.0.gemspec -I, [2014-04-01T15:04:57.832182 #3872] INFO -- : 0: twitter (5.8.0) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/twitter-5.8.0.gemspec -I, [2014-04-01T15:04:59.365999 #3872] INFO -- : 0: tweetstream (2.6.1) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374/specifications/tweetstream-2.6.1.gemspec -I, [2014-04-01T15:04:59.366614 #3872] INFO -- : 0: bundler (1.5.1) from /home/80129498572/.rvm/gems/ruby-1.8.7-p374@global/specifications/bundler-1.5.1.gemspec diff --git a/plugins/community_hub/twitter-stream-listener/Gemfile b/plugins/community_hub/twitter-stream-listener/Gemfile deleted file mode 100644 index 6ab8219..0000000 --- a/plugins/community_hub/twitter-stream-listener/Gemfile +++ /dev/null @@ -1,3 +0,0 @@ -source 'http://rubygems.org' - -gem 'twitter' diff --git a/plugins/community_hub/twitter-stream-listener/Gemfile.lock b/plugins/community_hub/twitter-stream-listener/Gemfile.lock deleted file mode 100644 index 4ecb5b5..0000000 --- a/plugins/community_hub/twitter-stream-listener/Gemfile.lock +++ /dev/null @@ -1,37 +0,0 @@ -GEM - remote: http://rubygems.org/ - specs: - addressable (2.3.6) - atomic (1.1.16) - buftok (0.2.0) - equalizer (0.0.9) - faraday (0.9.0) - multipart-post (>= 1.2, < 3) - http (0.5.0) - http_parser.rb - http_parser.rb (0.6.0) - json (1.8.1) - memoizable (0.4.2) - thread_safe (~> 0.3, >= 0.3.1) - multipart-post (2.0.0) - naught (1.0.0) - simple_oauth (0.2.0) - thread_safe (0.3.1) - atomic (>= 1.1.7, < 2) - twitter (5.8.0) - addressable (~> 2.3) - buftok (~> 0.2.0) - equalizer (~> 0.0.9) - faraday (~> 0.9.0) - http (~> 0.5.0) - http_parser.rb (~> 0.6.0) - json (~> 1.8) - memoizable (~> 0.4.0) - naught (~> 1.0) - simple_oauth (~> 0.2.0) - -PLATFORMS - ruby - -DEPENDENCIES - twitter diff --git a/plugins/community_hub/twitter-stream-listener/monitrc b/plugins/community_hub/twitter-stream-listener/monitrc deleted file mode 100755 index 7d20211..0000000 --- a/plugins/community_hub/twitter-stream-listener/monitrc +++ /dev/null @@ -1,5 +0,0 @@ -set daemon 5 - -check process ruby with pidfile /var/run/twitter_stream.pid - start = "/home/93274300500/projetos/noosfero/plugins/community_hub/twitter-stream-listener/stream_monitor start" - stop = "/home/93274300500/projetos/noosfero/plugins/community_hub/twitter-stream-listener/stream_monitor stop" diff --git a/plugins/community_hub/twitter-stream-listener/stop b/plugins/community_hub/twitter-stream-listener/stop deleted file mode 100644 index e69de29..0000000 --- a/plugins/community_hub/twitter-stream-listener/stop +++ /dev/null diff --git a/plugins/community_hub/twitter-stream-listener/stream.rb b/plugins/community_hub/twitter-stream-listener/stream.rb deleted file mode 100644 index 6ad9880..0000000 --- a/plugins/community_hub/twitter-stream-listener/stream.rb +++ /dev/null @@ -1,36 +0,0 @@ - -require 'twitter' -require 'json' - -#client = Twitter::REST::Client.new do |config| - - -client = Twitter::Streaming::Client.new do |config| - config.consumer_key = ENV['TWITTER_CONSUMER_KEY'] - config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET'] - config.oauth_token = ENV['TWITTER_OAUTH_TOKEN'] - config.oauth_token_secret = ENV['TWITTER_OAUTH_TOKEN_SECRET'] -end - -topics = ["#nba"] - -client.filter(:track => topics.join(",")) do |object| - puts object.to_h.to_json if object.is_a?(Twitter::Tweet) -end - - - -#FACEBOOK - -#feed do participa -# precisa do access_token da comunidade participa.br -# com acesso a read_stream -# acessar https://developers.facebook.com/tools/explorer/ e Clicar no botão "Obter token de acesso" -# selecionar na aba Extended Permissions "read_stream" -#https://graph.facebook.com/me/feed?method=GET&format=json&suppress_http_code=1&access_token=ACCESS_TOKEN - -# imagem do usuário que postou: -# http://graph.facebook.com/517267866/picture?type=small -# http://graph.facebook.com/517267866/picture?type=normal -# http://graph.facebook.com/517267866/picture?type=large -# http://graph.facebook.com/517267866/picture?type=square diff --git a/plugins/community_hub/twitter-stream-listener/stream_monitor b/plugins/community_hub/twitter-stream-listener/stream_monitor deleted file mode 100755 index 235370d..0000000 --- a/plugins/community_hub/twitter-stream-listener/stream_monitor +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - STREAMEXEC=/home/93274300500/projetos/noosfero/plugins/community_hub/twitter-stream-listener/stream.rb - RUBY=/usr/bin/ruby - - case $1 in - start) - echo $$ > /var/run/twitter_stream.pid; - exec 2>&1 ruby ${STREAMEXEC} 1>/tmp/stream.out - ;; - stop) - kill `cat /var/run/twitter_stream.pid` ;; - *) - echo "usage: stream_monitor {start|stop}" ;; - esac - exit 0 - diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/addressable-2.3.6.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/addressable-2.3.6.gem deleted file mode 100644 index 254dec8..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/addressable-2.3.6.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/atomic-1.1.16.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/atomic-1.1.16.gem deleted file mode 100644 index b77515a..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/atomic-1.1.16.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/buftok-0.2.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/buftok-0.2.0.gem deleted file mode 100644 index 2c3d94b..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/buftok-0.2.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/equalizer-0.0.9.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/equalizer-0.0.9.gem deleted file mode 100644 index 2072c17..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/equalizer-0.0.9.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/faraday-0.9.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/faraday-0.9.0.gem deleted file mode 100644 index 0b00e52..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/faraday-0.9.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/http-0.5.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/http-0.5.0.gem deleted file mode 100644 index be46d7f..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/http-0.5.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/http_parser.rb-0.6.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/http_parser.rb-0.6.0.gem deleted file mode 100644 index 3d3d508..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/http_parser.rb-0.6.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/json-1.8.1.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/json-1.8.1.gem deleted file mode 100644 index d903086..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/json-1.8.1.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/memoizable-0.4.2.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/memoizable-0.4.2.gem deleted file mode 100644 index 41d1f5b..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/memoizable-0.4.2.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/multipart-post-2.0.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/multipart-post-2.0.0.gem deleted file mode 100644 index abfff3d..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/multipart-post-2.0.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/naught-1.0.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/naught-1.0.0.gem deleted file mode 100644 index f59502d..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/naught-1.0.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/simple_oauth-0.2.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/simple_oauth-0.2.0.gem deleted file mode 100644 index 5901361..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/simple_oauth-0.2.0.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/thread_safe-0.3.1.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/thread_safe-0.3.1.gem deleted file mode 100644 index 31b6ff5..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/thread_safe-0.3.1.gem and /dev/null differ diff --git a/plugins/community_hub/twitter-stream-listener/vendor/cache/twitter-5.8.0.gem b/plugins/community_hub/twitter-stream-listener/vendor/cache/twitter-5.8.0.gem deleted file mode 100644 index 585278c..0000000 Binary files a/plugins/community_hub/twitter-stream-listener/vendor/cache/twitter-5.8.0.gem and /dev/null differ -- libgit2 0.21.2