diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9f8a9e5..02210e7 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,7 +1,7 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHelper def get_plugins - plugins = Dir.glob("/home/psy/code/stomp/trunk/bernardboard/app/views/griditems/plugins/**") + plugins = Dir.glob("app/views/griditems/plugins/**") plugins.each_with_index do |item, i| if item =~ /.*plugins\/(.+)/ plugins[i] = $1.capitalize @@ -11,7 +11,7 @@ def get_plugins end def get_javascript - javascript = Dir.glob("/home/psy/code/stomp/trunk/bernardboard/public/javascripts/*.js") + javascript = Dir.glob("public/javascripts/*.js") javascript.each_with_index do |item, i| if item =~/.*javascripts\/(.+)/ javascript[i] = $1 diff --git a/app/helpers/griditems_helper.rb b/app/helpers/griditems_helper.rb index b76d094..f460d60 100644 --- a/app/helpers/griditems_helper.rb +++ b/app/helpers/griditems_helper.rb @@ -63,16 +63,4 @@ def get_remote_file(remote_server, file) end end - def get_feed(path) - require 'rss/1.0' - require 'rss/2.0' - - content = "" - open(path) do |p| - content = p.read - end - - return RSS::Parser.parse(content, false) - end - end diff --git a/log/development.log b/log/development.log index 4c32252..b391987 100644 --- a/log/development.log +++ b/log/development.log @@ -258511,3 +258511,995 @@ Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-06 Rendered griditems/plugins/twitter/_twitter (922.0ms) Rendered griditems/_item (926.2ms) Completed in 935ms (View: 932, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Twitter] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:01:04) [GET] + Griditem Load (92.8ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (17.3ms) SELECT * FROM `boards`  + Board Columns (1.6ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (268.2ms) +Completed in 473ms (View: 353, DB: 112) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:01:09) [POST] + Parameters: {"type"=>"Twitter", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/twitter/_formfor_twitter (4.2ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:01:12) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (3.7ms) +Completed in 14ms (View: 11, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:01:25) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (undefined method `get_feed' for #) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb.tmp: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + app/views/griditems/plugins/feed/_feed.html.erb.tmp:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (59.1ms) +Rendered rescues/_request_and_response (42.7ms) +Rendering rescues/layout (internal_server_error) + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:07:11) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.9ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (178.0ms) +Completed in 214ms (View: 205, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:07:16) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.3ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:07:30) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"slashdot", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (1183.0ms) +Rendered griditems/_item (1191.9ms) +Completed in 1206ms (View: 1203, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:27:51) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (9.0ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (24.9ms) +Completed in 73ms (View: 55, DB: 10) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:27:56) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.2ms) +Completed in 83ms (View: 79, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:28:10) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (706.6ms) +Rendered griditems/_item (713.2ms) +Completed in 726ms (View: 722, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:28:39) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.2ms) +Completed in 32ms (View: 23, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:28:44) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (3.8ms) +Completed in 14ms (View: 11, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:28:57) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (608.1ms) +Rendered griditems/_item (615.2ms) +Completed in 627ms (View: 624, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:29:20) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.3ms) +Completed in 33ms (View: 23, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:29:24) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (46.9ms) +Rendered rescues/_request_and_response (14.3ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:31:53) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.2ms) +Completed in 33ms (View: 23, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:31:57) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (45.6ms) +Rendered rescues/_request_and_response (10.2ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:32:00) [POST] + Parameters: {"type"=>"Image", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/image/_formfor_image (24.2ms) +Completed in 36ms (View: 33, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:32:02) [POST] + Parameters: {"type"=>"Calendar", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/calendar/_formfor_calendar (26.0ms) +Completed in 37ms (View: 34, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:32:03) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (47.0ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:32:05) [POST] + Parameters: {"type"=>"Gauge", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/gauge/_formfor_gauge (7.2ms) +Completed in 19ms (View: 16, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:32:06) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (47.1ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:34:35) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.4ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.2ms) +Completed in 33ms (View: 23, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:34:39) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (46.9ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:34:42) [POST] + Parameters: {"type"=>"Calendar", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/calendar/_formfor_calendar (2.6ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:34:43) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (47.4ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:35:05) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.0ms) +Completed in 30ms (View: 21, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:09) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (47.3ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:13) [POST] + Parameters: {"type"=>"Calendar", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/calendar/_formfor_calendar (2.6ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:14) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} + +Errno::ENOENT (No such file or directory - /home/psy/code/bernardplugin/app/views/griditems/plugins/feed/_formfor_feed.html.erb.tmp): + app/controllers/griditems_controller.rb:107:in `__instance_exec0' + app/controllers/griditems_controller.rb:105:in `render_form' + +Rendered rescues/_trace (119.7ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:35:48) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (418.4ms) +Completed in 493ms (View: 483, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:53) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.1ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:56) [POST] + Parameters: {"type"=>"Calendar", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/calendar/_formfor_calendar (3.8ms) +Completed in 14ms (View: 11, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:57) [POST] + Parameters: {"type"=>"Gauge", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/gauge/_formfor_gauge (4.4ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:35:58) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.8ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:36:00) [POST] + Parameters: {"type"=>"Calendar", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/calendar/_formfor_calendar (2.7ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:36:01) [POST] + Parameters: {"type"=>"Nagios", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/nagios/_formfor_nagios (4.5ms) +Completed in 16ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:36:02) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.6ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:55:01) [GET] + Griditem Load (0.5ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.9ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (178.4ms) +Completed in 214ms (View: 205, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:55:08) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.2ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:55:22) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (726.2ms) +Rendered griditems/_item (799.9ms) +Completed in 814ms (View: 810, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:55:29) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.2ms) +Completed in 31ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:55:34) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.7ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:57:12) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.6ms) +Completed in 31ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:57:19) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.6ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 15:57:35) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (682.4ms) +Rendered griditems/_item (683.8ms) +Completed in 696ms (View: 692, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:57:53) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.2ms) +Completed in 30ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:57:59) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.9ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:59:07) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + +ActionView::TemplateError (undefined method `javacsript_tag' for #) on line #5 of app/views/griditems/index.html.erb: +2: +3: +4: <% javascripts = get_javascript %> +5: <%= javacsript_tag "alert('#{javascripts}')" %> +6: <% javascripts.each do |javascript| %> +7: <%= javascript_include_tag "#{javascript}" %> +8: <% end %> + + app/views/griditems/index.html.erb:5 + app/controllers/griditems_controller.rb:10:in `index' + +Rendered rescues/_trace (113.5ms) +Rendered rescues/_request_and_response (1.8ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:59:17) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.4ms) +Completed in 39ms (View: 30, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 15:59:30) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (177.9ms) +Completed in 214ms (View: 204, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 15:59:45) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.1ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:00:34) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.7ms) +Completed in 32ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:00:49) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.7ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:02:41) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (174.3ms) +Completed in 209ms (View: 200, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:02:58) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.3ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:03:20) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (172.8ms) +Completed in 208ms (View: 198, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:03:45) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.2ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:03:59) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (731.9ms) +Rendered griditems/_item (738.3ms) +Completed in 753ms (View: 749, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:05:52) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.2ms) +Completed in 31ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:06:02) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.8ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:14) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (135.8ms) +Rendered rescues/_request_and_response (1.9ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:18) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (60.2ms) +Rendered rescues/_request_and_response (0.4ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:18) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (61.6ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:19) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (61.4ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:19) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (138.1ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:06:38) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (687.6ms) +Rendered griditems/_item (689.0ms) +Completed in 701ms (View: 698, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:07:05) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.1ms) +Completed in 31ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:07:11) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.8ms) +Completed in 70ms (View: 6, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:14:19) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.7ms) +Completed in 32ms (View: 23, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:14:26) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.8ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:14:38) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"foo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (980.8ms) +Rendered griditems/_item (982.4ms) +Completed in 994ms (View: 991, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:14:57) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.1ms) +Completed in 31ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:15:05) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (3.2ms) +Completed in 9ms (View: 6, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:15:52) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.5ms) +Completed in 50ms (View: 38, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:15:57) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.7ms) +Completed in 12ms (View: 8, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:16:07) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"foo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (1046.2ms) +Rendered griditems/_item (1047.9ms) +Completed in 1153ms (View: 1145, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:16:35) [GET] + Griditem Load (0.4ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.8ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (172.5ms) +Completed in 207ms (View: 198, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:16:41) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (4.3ms) +Completed in 15ms (View: 12, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:16:52) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"foo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (671.5ms) +Rendered griditems/_item (677.7ms) +Completed in 692ms (View: 688, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:17:07) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.1ms) +Completed in 30ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:17:12) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.8ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:17:35) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"foo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashsdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (133.7ms) +Rendered rescues/_request_and_response (1.9ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:17:38) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"foo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashsdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} + +ActionView::TemplateError (404 Feed not found error: FeedBurner cannot locate this feed URI.) on line #1 of app/views/griditems/plugins/feed/_feed.html.erb: +1: <% feed = get_feed(@parameters["url"])%> +2: +3:
+4:
+ + /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' + /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' + /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' + /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' + /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' + /usr/lib/ruby/1.8/open-uri.rb:518:in `open' + /usr/lib/ruby/1.8/open-uri.rb:30:in `open' + app/views/griditems/plugins/feed/_feed.html.erb:1 + app/views/griditems/_item.html.erb:8 + app/controllers/griditems_controller.rb:26:in `__instance_exec0' + app/controllers/griditems_controller.rb:24:in `create_grid_item' + +Rendered rescues/_trace (63.1ms) +Rendered rescues/_request_and_response (0.5ms) +Rendering rescues/layout (internal_server_error) + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:17:42) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (16.5ms) +Completed in 33ms (View: 23, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:17:47) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.7ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:18:10) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"http://rss.slashsdot.org", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (670.4ms) +Rendered griditems/_item (671.8ms) +Completed in 684ms (View: 680, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:19:01) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.4ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.4ms) +Completed in 31ms (View: 22, DB: 2) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:19:06) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.7ms) +Completed in 9ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#index (for 87.224.77.66 at 2010-10-11 16:19:19) [GET] + Griditem Load (0.3ms) SELECT * FROM `griditems`  +Rendering template within layouts/griditems +Rendering griditems/index + Board Load (0.3ms) SELECT * FROM `boards`  + Board Columns (0.7ms) SHOW FIELDS FROM `boards` +Rendered griditems/_boards (15.4ms) +Completed in 32ms (View: 22, DB: 1) | 200 OK [http://dev3.pinetecltd.net/griditems] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#render_form (for 87.224.77.66 at 2010-10-11 16:19:24) [POST] + Parameters: {"type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE="} +Rendered griditems/plugins/feed/_formfor_feed (2.7ms) +Completed in 8ms (View: 5, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/render_form] + SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 + + +Processing GriditemsController#create_grid_item (for 87.224.77.66 at 2010-10-11 16:19:38) [POST] + Parameters: {"update_grid_item"=>"Update", "title"=>"moo", "type"=>"Feed", "authenticity_token"=>"mwXaD0vx/lGLaZ6lX0fJD+2JxlTnNnOTjPAfZeQn7TE=", "url"=>"http://rss.slashdot.org/slashdot/slashdot", "height"=>"200", "refresh_rate"=>"0", "create_grid_item"=>"Create", "width"=>"200"} +Rendered griditems/plugins/feed/_feed (685.9ms) +Rendered griditems/_item (687.3ms) +Completed in 699ms (View: 695, DB: 0) | 200 OK [http://dev3.pinetecltd.net/griditems/create_grid_item?type=Feed] diff --git a/public/javascripts/bernard.js b/public/javascripts/bernard.js index 1994702..589feb0 100644 --- a/public/javascripts/bernard.js +++ b/public/javascripts/bernard.js @@ -1,8 +1,6 @@ var popup = 0; //show popup = false var gaugeArray = new Object; var lastTarget = ""; //last clicked item -//var currentFeed = 0 -//var feedSize = 0 //Gauge plugin google.load('visualization', '1', {packages:['gauge']}); @@ -266,51 +264,6 @@ function positionItem(item, x, y){ jQuery(i).offset({top : y, left : x }) } -//Resize feed and twitter plugin text -function resizeText(container, currentFeed){ - var max = 12; - jQuery('#feed-description' + currentFeed).wrapInner('
'); - var dheight = jQuery(container).height() - jQuery('#feed-header' + currentFeed).height(); - var cheight = jQuery("#fontfit" + currentFeed).height(); - var fsize = ((jQuery('#feed-description' + currentFeed).css("font-size")).slice(0,-2))*1; - while(cheightdheight-jQuery(container).css("borderWidth").slice(0,-2)*2 || fsize>max && fsize > 1) { - fsize-=1; - jQuery('#feed-description' + currentFeed).css("font-size",fsize+"px"); - cheight = jQuery("#fontfit"+ currentFeed).height(); - } -} - -function update_feed(size){ - jQuery('#feed0').show(); - var feedSize = size; - var currentFeed = 0; - var container = null - var interval = setInterval(function(){ - jQuery('.feed').hide(); - jQuery('#feed' + currentFeed).show(); - container = jQuery('#feed' + currentFeed).parent().parent(); - //This deals with the sudden descruction of the dom object - //Implemented to handle delete from rightclick menu - if(jQuery(container).attr("id") == null){ - clearInterval(interval); - } - else{ - resizeText(container, currentFeed); - } - if(currentFeed < feedSize -1){ - currentFeed++; - } - else{ - currentFeed = 0; - } - }, 10000); -} - function update_twitterfeed(size){ jQuery('#twitterfeed0').show(); var feedSize = size; diff --git a/vendor/plugins/feed/MIT-LICENSE b/vendor/plugins/feed/MIT-LICENSE new file mode 100644 index 0000000..ec4ddd4 --- /dev/null +++ b/vendor/plugins/feed/MIT-LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2010 [name of plugin creator] + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/plugins/feed/README b/vendor/plugins/feed/README new file mode 100644 index 0000000..b5edf81 --- /dev/null +++ b/vendor/plugins/feed/README @@ -0,0 +1,13 @@ +Feed +==== + +Introduction goes here. + + +Example +======= + +Example goes here. + + +Copyright (c) 2010 [name of plugin creator], released under the MIT license diff --git a/vendor/plugins/feed/Rakefile b/vendor/plugins/feed/Rakefile new file mode 100644 index 0000000..9252428 --- /dev/null +++ b/vendor/plugins/feed/Rakefile @@ -0,0 +1,23 @@ +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +desc 'Default: run unit tests.' +task :default => :test + +desc 'Test the feed plugin.' +Rake::TestTask.new(:test) do |t| + t.libs << 'lib' + t.libs << 'test' + t.pattern = 'test/**/*_test.rb' + t.verbose = true +end + +desc 'Generate documentation for the feed plugin.' +Rake::RDocTask.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Feed' + rdoc.options << '--line-numbers' << '--inline-source' + rdoc.rdoc_files.include('README') + rdoc.rdoc_files.include('lib/**/*.rb') +end diff --git a/vendor/plugins/feed/init.rb b/vendor/plugins/feed/init.rb new file mode 100644 index 0000000..1778dae --- /dev/null +++ b/vendor/plugins/feed/init.rb @@ -0,0 +1 @@ +ActionView::Base.send :include, Feed diff --git a/vendor/plugins/feed/install.rb b/vendor/plugins/feed/install.rb new file mode 100644 index 0000000..f7732d3 --- /dev/null +++ b/vendor/plugins/feed/install.rb @@ -0,0 +1 @@ +# Install hook code here diff --git a/vendor/plugins/feed/lib/feed.rb b/vendor/plugins/feed/lib/feed.rb new file mode 100644 index 0000000..986010b --- /dev/null +++ b/vendor/plugins/feed/lib/feed.rb @@ -0,0 +1,12 @@ +module Feed + require 'rss/1.0' + require 'rss/2.0' + + def get_feed(path) + content = "" + open(path) do |p| + content = p.read + end + return RSS::Parser.parse(content, false) + end +end diff --git a/vendor/plugins/feed/lib/javascripts/feed.js b/vendor/plugins/feed/lib/javascripts/feed.js new file mode 100644 index 0000000..bec029a --- /dev/null +++ b/vendor/plugins/feed/lib/javascripts/feed.js @@ -0,0 +1,55 @@ +/* Feed plugin javascript functions + Pieter Loubser + October 2010 + Version 0.8 +*/ + +var lastTarget = ""; + +//Update feed item periodically. +// - currently hardcoded at 10s. +function update_feed(size){ + jQuery('#feed0').show(); + var feedSize = size; + var currentFeed = 0; + var container = null; + var interval = setInterval(function(){ + jQuery('.feed').hide(); + jQuery('#feed' + currentFeed).show(); + container = jQuery('#feed' + currentFeed).parent().parent(); + //This deals with the sudden descruction of the item container + //Implemented to handle delete from rightclick menu + if(jQuery(container).attr("id") == null){ + clearInterval(interval); + } + else{ + resizeText(container, currentFeed); + } + + if(currentFeed < feedSize -1){ + currentFeed++; + } + else{ + currentFeed = 0; + } + }, 10000); +} + +//Resize feed story text to fit in container +function resizeText(container, currentFeed){ + var max = 12; //Default max font size. Might change. #Issue 6 + jQuery('#feed-description' + currentFeed).wrapInner('
'); + var dheight = jQuery(container).height() - jQuery('#feed-header' + currentFeed).height(); + var cheight = jQuery("#fontfit" + currentFeed).height(); + var fsize = ((jQuery('#feed-description' + currentFeed).css("font-size")).slice(0,-2))*1; + while(cheightdheight-jQuery(container).css("borderWidth").slice(0,-2)*2 || fsize>max && fsize > 1) { + fsize-=1; + jQuery('#feed-description' + currentFeed).css("font-size",fsize+"px"); + cheight = jQuery("#fontfit"+ currentFeed).height(); + } +} diff --git a/vendor/plugins/feed/lib/views/_feed.html.erb b/vendor/plugins/feed/lib/views/_feed.html.erb new file mode 100644 index 0000000..eb00979 --- /dev/null +++ b/vendor/plugins/feed/lib/views/_feed.html.erb @@ -0,0 +1,23 @@ +<% feed = get_feed(@parameters["url"])%> + +
+
+ <%= @parameters["title"] %> +
+ + <% feed.items.each_with_index do |topic,i| %> + + <% end %> +
+ +<%= javascript_tag "update_feed(#{feed.items.size})"%> + diff --git a/vendor/plugins/feed/lib/views/_formfor_feed.html.erb b/vendor/plugins/feed/lib/views/_formfor_feed.html.erb new file mode 100644 index 0000000..90a8fc3 --- /dev/null +++ b/vendor/plugins/feed/lib/views/_formfor_feed.html.erb @@ -0,0 +1,9 @@ +<% form_remote_tag :html => { :action => url_for(:controller => "griditems", :action =>"create_grid_item"), :id => "form_for"} do %> + Title : <%= text_field_tag "title" %>
+ Width : <%= text_field_tag "width", "", :size=>4%>
+ Height: <%= text_field_tag "height", "", :size=>4%>
+ RSS url: <%= text_field_tag "url", "", :size=>24 %>
+ <%= hidden_field_tag "refresh_rate", "0" %> + <%= submit_to_remote "create_grid_item", "Create", :url => {:action => "create_grid_item", :type => type}, :html => {:class => "create"} %>
+ <%= submit_to_remote "update_grid_item", "Update", :url => {:action => "update_grid_item", :type => type}, :html => {:class => "update"} %> +<% end %> diff --git a/vendor/plugins/feed/tasks/.feed_tasks.rake.swp b/vendor/plugins/feed/tasks/.feed_tasks.rake.swp new file mode 100644 index 0000000..75a49a5 Binary files /dev/null and b/vendor/plugins/feed/tasks/.feed_tasks.rake.swp differ diff --git a/vendor/plugins/feed/tasks/feed_tasks.rake b/vendor/plugins/feed/tasks/feed_tasks.rake new file mode 100644 index 0000000..8b11250 --- /dev/null +++ b/vendor/plugins/feed/tasks/feed_tasks.rake @@ -0,0 +1,12 @@ +namespace :feed do + desc "Sync plugin files with Bernard-Board" + task :sync do + a = system "rsync -ruv vendor/plugins/feed/lib/views/* app/views/griditems/plugins/feed" + a = system "rsync -ruv vendor/plugins/feed/lib/javascripts/* public/javascripts" + if a == true + system "echo '\n\nSync was successful!'" + else + system "echo '\n\nSync failed!" + end + end +end diff --git a/vendor/plugins/feed/test/feed_test.rb b/vendor/plugins/feed/test/feed_test.rb new file mode 100644 index 0000000..4dab9ad --- /dev/null +++ b/vendor/plugins/feed/test/feed_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class FeedTest < ActiveSupport::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end diff --git a/vendor/plugins/feed/test/test_helper.rb b/vendor/plugins/feed/test/test_helper.rb new file mode 100644 index 0000000..cf148b8 --- /dev/null +++ b/vendor/plugins/feed/test/test_helper.rb @@ -0,0 +1,3 @@ +require 'rubygems' +require 'active_support' +require 'active_support/test_case' \ No newline at end of file diff --git a/vendor/plugins/feed/uninstall.rb b/vendor/plugins/feed/uninstall.rb new file mode 100644 index 0000000..9738333 --- /dev/null +++ b/vendor/plugins/feed/uninstall.rb @@ -0,0 +1 @@ +# Uninstall hook code here