Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 48 lines (35 sloc) 1.276 kB
41dbbb5 @zedtux Initial commit
authored
1 # Urss [![Build Status](https://secure.travis-ci.org/zedtux/urss.png)](http://travis-ci.org/zedtux/urss) [![Dependency Status](https://gemnasium.com/zedtux/urss.png)](http://gemnasium.com/zedtux/urss)
2
3 URSS or Ultra RSS is another ruby library to parse Feed RSS that has been created because there was no existing one that support multiple media:content or media:thumbnail.
4
5 ## Installation
6
7 Add this line to your application's Gemfile:
8
9 gem 'urss'
10
11 And then execute:
12
13 $ bundle
14
15 Or install it yourself as:
16
17 $ gem install urss
18
19 ## Usage
20
21 ````ruby
22 rss = Urss.at("http://www.ruby-lang.org/en/feeds/news.rss")
23 rss.title
24 #=> "Ruby News"
25 rss.url
26 #=> "http://www.ruby-lang.org/en/feeds/news.rss/"
27 rss.description
28 #=> "The latest news from Ruby-Lang.org."
29 rss.updated_at
30 #=> ""
31 rss.entries.size
32 #=> 10
33 rss.entries.first.title
34 #=> "Ruby 1.9.3-p194 is released"
35 rss.entries.first.created_at
36 #=> "Fri, 20 Apr 2012 03:19:04 GMT"
37 rss.entries.first.url
38 #=> "http://www.ruby-lang.org/en/news/2012/04/20/ruby-1-9-3-p194-is-released/"
39 ````
40
41 ## Contributing
42
43 1. Fork it
44 2. Create your feature branch (`git checkout -b my-new-feature`)
45 3. Commit your changes (`git commit -am 'Added some feature'`)
46 4. Push to the branch (`git push origin my-new-feature`)
47 5. Create new Pull Request
Something went wrong with that request. Please try again.