##Description Simple Dashing widget (and associated job) to display BBC News Stories.
##Dependencies nokogiri
Add it to dashing's gemfile:
gem 'nokogiri'
and run bundle install
.
##Usage To use this widget, copy news.html, news.coffee, and news.scss into the /widgets/news directory. Put the news.rb file in your /jobs folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="news" data-view="News"></div>
</li>
I'm receiving the following error when trying to run this on CentOS (though it worked fine on Ubuntu) with Ruby version 1.9.3-p327:
news.rb:3:in `initialize': uninitialized constant BbcNews::Net (NameError)