Project

webfeed

0.0
No commit activity in last 3 years
No release in over 3 years
Read feeds from all around the world and publish them within your website
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.7
~> 3.2.8
 Project Readme

Webfeed¶ ↑

This project uses MIT-LICENSE. It is created by Arash Karimzadeh @ <a href=‘www.ectual.com’>Tectual</a>.

Installation¶ ↑

In Rails 3, add following line to your Gemfile and run the bundle command.

gem "web_feed"

In Rails 2, add following line to your environment.rb file.

config.gem "web_feed"

Getting Started¶ ↑

There couple of generators. you can run something like rails g web_feed:install -h to see what they do

web_feed:install
web_feed:resource
web_feed:keyword
web_feed:news
web_feed:add_image

Running rails g web_feed:install -mvc will create all migrations, models, views, controllers and routings and a basic stylesheet file.

In case you want to rename the entities you can run this command:

rails g web_feed:install -r [RESOURCE_NAME] -n [NEWS_NAME] -k [KEYWORD_NAME] -mvc
rails g web_feed:install -r resource -n post -k keyword -mvc

Basic View¶ ↑

Add following line to your main layout to see the WebFeed pages with basic styling

<%= stylesheet_link_tag    "webfeed", :media => "all" %>

And add this line to see the what pages you have in WebFeed

<%= render 'layouts/webfeed' %>

Try It¶ ↑

After generating file and migrating rails db:migrate. Try to add some RSS resources such as http://feeds.gizmodo.com.au/GizmodoAustralia or http://techcrunch.com/feed/ and some keywords such as iphone, samsung and facebook. Then try to update resources from index page.

What’s Next?¶ ↑

TODO¶ ↑

  • More test cases

  • Improve parser to cover more cases

  • Adding a way to parse non-standard xml formats

Testing Specs¶ ↑

Start Guard by bundle exec guard.