Sha256: ef5891912e434e09ab5d5dcb9b4332323fed261f93ee8cf16dcb9f5cd235d26f
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
Gem Name: Govfeed Author: Matthew Grigajtis Website: http://www.matthewgrigajtis.com This Gem is meant to be a collection of Government, political, and Economic RSS\Atom feeds that are very easy to pull and parse. Since I couldn't find a RSS parsing Gem that worked well under Ruby 1.9.2, I decided to use Curb and Hricot. These two gems are required dependencies. I tried to include all RSS\Atom feeds for Canada and the United States, but not all provinces\states have feeds. I hope to add many more in the future. Usage is very simple. Include the Gem in whatever project you are using. Get getFeedList function will return the Hash array of feeds that are currently available. The getFeed(:fee_name, # of feeds to display) function will display a simple HTML output of the feed with class names in the Divs so you can add your own styling. The second parameter to the function is optional. If left out, it will display all feeds. Here are the feeds currently available: :us_federal United States Federal Government :us_al Alabama :us_az Arizona :us_ca California :us_de Delaware :us_ga Georgia :us_hi Hawaii :us_il Illinois :us_in Indiana :us_ks Kansas :us_ky Kentucky :us_la Louisiana :us_me Maine :us_md Maryland :us_ma Massachusetts :us_mi Michigan :us_mo Missouri :us_nj New Jersey :us_nm New Mexico :us_ny New York :us_nc North Carolina :us_nd North Dakota :us_oh Ohio :us_ok Oklahoma :us_pa Pennsylvania :us_ri Rhode Island :us_sd South Dakota :us_tn Tennessee :us_tx Texas :us_va Virginia :us_vt Vermont :us_wa Washington :us_wv West Virginia :us_wi Wisconsin :cato The Cato Institute Think Tank :heritage The Heritage Foundation Think Tank :mises The Ludwig von Mises School of Economic Thought :ca_federal The Canadian Federal Government :ca_ab Alberta :ca_bc British Columbia :ca_mn Manitoba :ca_nb New Brunswick :ca_ns Novia Scotia :ca_on Ontario :ca_pe Prince Edward Island :ca_sk Seskatchawan
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govfeed-0.0.2 | README |