Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / RSS / cdesc-RSS.ri
Size: Mime:
U:RDoc::NormalModule[iI"RSS:EF@0o:RDoc::Markup::Document:@parts[/o;;[!S:RDoc::Markup::Heading:
leveli:	textI"RSS reading and writing;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph;[	I"SReally Simple Syndication (RSS) is a family of formats that describe 'feeds,' ;TI"Lspecially constructed XML documents that allow an interested person to ;TI"Rsubscribe and receive updates from a particular web service. This portion of ;TI"Jthe standard library provides tooling to read and create these feeds.;T@o;
;[I"SThe standard library supports RSS 0.91, 1.0, 2.0, and Atom, a related format. ;TI"FHere are some links to the standards documents for these formats:;T@o:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;
;[I"RSS;To;;;;[o;;0;[o;
;[I"60.9.1[http://www.rssboard.org/rss-0-9-1-netscape];To;;0;[o;
;[I"*1.0[http://web.resource.org/rss/1.0/];To;;0;[o;
;[I"32.0[http://www.rssboard.org/rss-specification];To;;0;[o;
;[I"-Atom[http://tools.ietf.org/html/rfc4287];T@S;	;
i;I"Consuming RSS;T@o;
;[I"RIf you'd like to read someone's RSS feed with your Ruby code, you've come to ;TI"Nthe right place. It's really easy to do this, but we'll need the help of ;TI"open-uri:;T@o:RDoc::Markup::Verbatim;[I"require 'rss'
;TI"require 'open-uri'
;TI"
;TI"8url = 'http://www.ruby-lang.org/en/feeds/news.rss'
;TI"open(url) do |rss|
;TI"%  feed = RSS::Parser.parse(rss)
;TI"+  puts "Title: #{feed.channel.title}"
;TI"!  feed.items.each do |item|
;TI"$    puts "Item: #{item.title}"
;TI"  end
;TI"	end
;T:@format0o;
;[
I"SAs you can see, the workhorse is RSS::Parser#parse, which takes the source of ;TI"Sthe feed and a parameter that performs validation on the feed. We get back an ;TI"Pobject that has all of the data from our feed, accessible through methods. ;TI"RThis example shows getting the title out of the channel element, and looping ;TI"through the list of items.;T@S;	;
i;I"Producing RSS;T@o;
;[I"OProducing our own RSS feeds is easy as well. Let's make a very basic feed:;T@o;;[I"require "rss"
;TI"
;TI".rss = RSS::Maker.make("atom") do |maker|
;TI"%  maker.channel.author = "matz"
;TI"-  maker.channel.updated = Time.now.to_s
;TI"J  maker.channel.about = "http://www.ruby-lang.org/en/feeds/news.rss"
;TI",  maker.channel.title = "Example Feed"
;TI"
;TI"&  maker.items.new_item do |item|
;TI"`    item.link = "http://www.ruby-lang.org/en/news/2010/12/25/ruby-1-9-2-p136-is-released/"
;TI"4    item.title = "Ruby 1.9.2-p136 is released"
;TI"&    item.updated = Time.now.to_s
;TI"  end
;TI"	end
;TI"
;TI"puts rss
;T;0o;
;[I"QAs you can see, this is a very Builder-like DSL. This code will spit out an ;TI"RAtom feed with one item. If we needed a second item, we'd make another block ;TI"6with maker.items.new_item and build a second one.;T@S;	;
i;I"Copyright;T@o;
;[I"<Copyright (c) 2003-2007 Kouhei Sutou <kou@cozmixng.org>;T@o;
;[I"KYou can redistribute it and/or modify it under the same terms as Ruby.;T@o;
;[I">There is an additional tutorial by the author of RSS at: ;TI"Nhttp://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.en;T:
@fileI"lib/rss.rb;T:0@omit_headings_from_table_of_contents_below0o;;[;I"lib/rss/0.9.rb;T;0o;;[;I"lib/rss/1.0.rb;T;0o;;[;I"lib/rss/2.0.rb;T;0o;;[;I"lib/rss/atom.rb;T;0o;;[;I"lib/rss/content.rb;T;0o;;[;I"lib/rss/content/1.0.rb;T;0o;;[;I"lib/rss/content/2.0.rb;T;0o;;[;I"lib/rss/converter.rb;T;0o;;[;I"lib/rss/dublincore.rb;T;0o;;[;I"lib/rss/dublincore/1.0.rb;T;0o;;[;I"lib/rss/dublincore/2.0.rb;T;0o;;[;I"lib/rss/dublincore/atom.rb;T;0o;;[;I"lib/rss/image.rb;T;0o;;[;I"lib/rss/itunes.rb;T;0o;;[;I"lib/rss/maker.rb;T;0o;;[;I"lib/rss/maker/0.9.rb;T;0o;;[;I"lib/rss/maker/1.0.rb;T;0o;;[;I"lib/rss/maker/2.0.rb;T;0o;;[;I"lib/rss/maker/atom.rb;T;0o;;[;I"lib/rss/maker/base.rb;T;0o;;[;I"lib/rss/maker/content.rb;T;0o;;[;I" lib/rss/maker/dublincore.rb;T;0o;;[;I"lib/rss/maker/entry.rb;T;0o;;[;I"lib/rss/maker/feed.rb;T;0o;;[;I"lib/rss/maker/image.rb;T;0o;;[;I"lib/rss/maker/itunes.rb;T;0o;;[;I"lib/rss/maker/slash.rb;T;0o;;[;I"!lib/rss/maker/syndication.rb;T;0o;;[;I"lib/rss/maker/taxonomy.rb;T;0o;;[;I"lib/rss/maker/trackback.rb;T;0o;;[;I"lib/rss/parser.rb;T;0o;;[;I"lib/rss/rexmlparser.rb;T;0o;;[;I"lib/rss/rss.rb;T;0o;;[;I"lib/rss/slash.rb;T;0o;;[;I"lib/rss/syndication.rb;T;0o;;[;I"lib/rss/taxonomy.rb;T;0o;;[;I"lib/rss/utils.rb;T;0o;;[;I"lib/rss/xml-stylesheet.rb;T;0o;;[;I"lib/rss/xml.rb;T;0o;;[;I"lib/rss/xmlparser.rb;T;0o;;[;I"lib/rss/xmlscanner.rb;T;0;0;0[[U:RDoc::Constant[iI"CONTENT_PREFIX;FI"RSS::CONTENT_PREFIX;F00o;;[o;
;[I".The prefix for the Content XML namespace.;T;@ƒ;0@ƒ@cRDoc::NormalModule0U;[iI"CONTENT_URI;FI"RSS::CONTENT_URI;F00o;;[o;
;[I"*The URI of the Content specification.;T;@ƒ;0@ƒ@@û0U;[iI"DC_PREFIX;FI"RSS::DC_PREFIX;F00o;;[o;
;[I"2The prefix for the Dublin Core XML namespace.;T;@;0@@@û0U;[iI"DC_URI;FI"RSS::DC_URI;F00o;;[o;
;[I".The URI of the Dublin Core specification.;T;@;0@@@û0U;[iI"DublincoreModel;FI"RSS::DublincoreModel;F0I"RSS::DublinCoreModel;Fo;;[o;
;[I"For backward compatibility;T;@;0@@@û0U;[iI"IMAGE_PREFIX;FI"RSS::IMAGE_PREFIX;F00o;;[o;
;[I",The prefix for the Image XML namespace.;T;@›;0@›@@û0U;[iI"IMAGE_URI;FI"RSS::IMAGE_URI;F00o;;[o;
;[I")The URI for the Image specification.;T;@›;0@›@@û0U;[iI"IMAGE_ELEMENTS;FI"RSS::IMAGE_ELEMENTS;F00o;;[o;
;[I"<This constant holds strings which contain the names of ;TI"1image elements, with the appropriate prefix.;T;@›;0@›@@û0U;[iI"ITUNES_PREFIX;FI"RSS::ITUNES_PREFIX;F00o;;[o;
;[I"-The prefix for the iTunes XML namespace.;T;@ž;0@ž@@û0U;[iI"ITUNES_URI;FI"RSS::ITUNES_URI;F00o;;[o;
;[I")The URI of the iTunes specification.;T;@ž;0@ž@@û0U;[iI"AVAILABLE_PARSER_LIBRARIES;FI"$RSS::AVAILABLE_PARSER_LIBRARIES;F00o;;[o;
;[I"5The list of all available libraries for parsing.;T;@Ñ;0@Ñ@@û0U;[iI"AVAILABLE_PARSERS;FI"RSS::AVAILABLE_PARSERS;F00o;;[o;
;[I"9The list of all available parsers, in constant form.;T;@Ñ;0@Ñ@@û0U;[iI"VERSION;FI"RSS::VERSION;F00o;;[o;
;[I"The current version of RSS;T;@×;0@×@@û0U;[iI"URI;FI"
RSS::URI;F00o;;[o;
;[I")The URI of the RSS 1.0 specification;T;@×;0@×@@û0U;[iI"SLASH_PREFIX;FI"RSS::SLASH_PREFIX;F00o;;[o;
;[I",The prefix for the Slash XML namespace.;T;@Ú;0@Ú@@û0U;[iI"SLASH_URI;FI"RSS::SLASH_URI;F00o;;[o;
;[I"(The URI of the Slash specification.;T;@Ú;0@Ú@@û0U;[iI"SY_PREFIX;FI"RSS::SY_PREFIX;F00o;;[o;
;[I"2The prefix for the Syndication XML namespace.;T;@Ý;0@Ý@@û0U;[iI"SY_URI;FI"RSS::SY_URI;F00o;;[o;
;[I".The URI of the Syndication specification.;T;@Ý;0@Ý@@û0U;[iI"TAXO_PREFIX;FI"RSS::TAXO_PREFIX;F00o;;[o;
;[I"/The prefix for the Taxonomy XML namespace.;T;@à;0@à@@û0U;[iI"
TAXO_URI;FI"RSS::TAXO_URI;F00o;;[o;
;[I"AThe URI for the specification of the Taxonomy XML namespace.;T;@à;0@à@@û0U;[iI"TAXO_ELEMENTS;FI"RSS::TAXO_ELEMENTS;F00o;;[o;
;[I"NThe listing of all the taxonomy elements, with the appropriate namespace.;T;@à;0@à@@û0[[[I"
class;T[[:public[[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[0@y@|@@}@€@ƒ@†@‰@Œ@@’@•@˜@›@ž@¡@¤@§@ª@­@°@³@¶@¹@¼@¿@Â@Å@È@Ë@Î@Ñ@Ô@×@Ú@Ý@àI"lib/rss/trackback.rb;T@ã@æ@é@ì@ï@ïcRDoc::TopLevel