aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss
Commit message (Collapse)AuthorAgeFilesLines
* * lib/rss/rss.rb: 0.1.8 -> 0.1.9.kou2007-08-132-7/+4
| | | | | | | | | | * test/rss/test_version.rb: followed the above change. * lib/rss/parser.rb: fixed a bug that handles unintended elements. Thanks to Takuo Yonezawa. [ruby-list:43841] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, sample/rss, test/rss:kou2007-08-0521-707/+1284
| | | | | | | | | - 0.1.7 -> 0.1.8. - supported <itunes:XXX>. - reverted backward incompatibility API changes introduced 0.1.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/image.rb, test/rss/test_image.rb: fixed Image modulekou2007-05-071-1/+1
| | | | | | | namespace URI. reported by Dmitry Borodaenko. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss:kou2007-03-1730-1966/+4029
| | | | | | | | | - supported Atom. - bumped version 0.1.6 to 0.1.7. * sample/rss/convert.rb: added new sample. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightseskou2007-02-122-1/+9
| | | | | | | | | -> dc_rights_list. dc_rightses still exists for backward compatibility. [ruby-core:8350] * test/rss/test_maker_dc.rb: added tests for dc_rights_list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):kou2007-02-111-0/+4
| | | | | | | kept backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::ListenerMixin::start_else_element): usedkou2007-02-111-1/+1
| | | | | | | const_defined? instead of constants.include?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, lib/rss/parser.rb: followed current Rubykou2007-02-062-3/+3
| | | | | | | specification. [ruby-dev:30274] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, lib/rss/parser.rb: removed needless code forkou2007-02-062-42/+1
| | | | | | | backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-313-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: added backward compatibility codes.kou2005-11-252-2/+22
| | | | | | | | | | | | * lib/rss/parser.rb: ditto. * test/rss/test_parser.rb: ditto. * test/rss/test_2.0.rb: ditto. * test/rss/test_content.rb: use #__send__ instead of #funcall for no private method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: improved type conversion.kou2005-11-256-114/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss/1.0.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * test/rss/test_2.0.rb: added type conversion tests. * test/rss/test_accessor.rb: ditto. * test/rss/test_to_s.rb: ditto. * test/rss/test_syndication.rb: ditto. * test/rss/test_setup_maker_2.0.rb: ditto. * test/rss/test_setup_maker_1.0.rb: ditto. * test/rss/test_setup_maker_0.9.rb: ditto. * test/rss/test_maker_sy.rb: ditto. * test/rss/test_maker_image.rb: ditto. * test/rss/test_maker_2.0.rb: ditto. * test/rss/test_maker_0.9.rb: ditto. * test/rss/test_image.rb: ditto. * test/rss/test_maker_1.0.rb: use assert instead of assert_equal. * test/rss/rss-assertions.rb: improved type conversion assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/image.rb: added Image prefix.kou2005-11-252-4/+16
| | | | | | | * lib/rss/maker/image.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_2.0.rb: added RSS 2.0 tests.kou2005-11-251-0/+19
| | | | | | | | | * test/rss/rss-assertions.rb: extended XML stylesheet assertion. * lib/rss/0.9.rb: added initialize method. * test/rss/test_1.0.rb: cleanup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb: added entity handling type predicate.kou2005-11-234-19/+56
| | | | | | | | | | | | | * lib/rss/rexmlparser.rb: ditto. * lib/rss/xmlparser.rb: ditto. * lib/rss/xmlscanner.rb: ditto. * lib/rss/xmlscanner.rb: more robust entity handling. * test/rss/test_parser.rb: added an entity handling test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/: use #__send__ instead of #send.kou2005-11-239-29/+29
| | | | | | | * test/rss/: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/taxonomy.rb: changed class or module prefix tokou2005-11-232-34/+34
| | | | | | | | Taxonomy from Taxo. * lib/rss/maker/taxonomy.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSSkou2005-11-236-9/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Maker. * lib/rss/taxonomy.rb: supported RSS Maker. * lib/rss/maker.rb: added taxonomy module support. * lib/rss/rss.rb: adjusted to other element API. * lib/rss/1.0.rb: adjusted to other element API but backward compatibility is reserved. * lib/rss/0.9.rb: ditto. * test/rss/test_maker_taxo.rb: added test case for taxonomy module for RSS Maker. * test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic. * test/rss/test_setup_maker_1.0.rb: added backward compatibility test. * test/rss/test_setup_maker_0.9.rb: ditto. * test/rss/test_setup_maker_2.0.rb: ditto. * test/rss/rss-testcase.rb: added convenience method for setting up taxo:topic. * test/rss/rss-assertions.rb: added assertion for taxo:topic. * sample/rss/blend.rb: followed new API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: fixed a indentation bug.kou2005-11-232-3/+8
| | | | | | | | * lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug. * test/rss/test_taxonomy.rb: added a #to_s test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb: added convenience method 'resources'.kou2005-11-172-3/+20
| | | | | | | | | * lib/rss/taxonomy.rb: ditto. * test/rss/rss-assertions.rb: added test for 'resources'. * test/rss/test_taxonomy.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/taxonomy.rb: implemented taxonomy module.kou2005-11-171-15/+181
| | | | | | | * test/rss/test_taxonomy.rb: added tests for taxonomy support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb: added rdf:Bag.kou2005-11-171-28/+73
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb : removed needless argument 'prefix'.kou2005-11-172-4/+2
| | | | | | | * lib/rss/parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/trackback.rb: added TrackBack prefix.kou2005-11-152-13/+31
| | | | | | | * lib/rss/maker/trackback.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6.kou2005-11-151-1/+1
| | | | | | | * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,nobu2005-10-221-1/+1
| | | | | | | | | | | | ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb, lib/rss/parser.rb, test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb, test/ruby/test_eval.rb, test/socket/test_socket.rb, test/socket/test_udp.rb: Object#fcall was renamed as Object#funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixedkou2005-09-161-1/+5
| | | | | | | | | | strange RSS::Maker::Item#max_size behavior. Thanks to Kazuhiko <kazuhiko@fdiary.net>. * test/rss/test_maker_1.0.rb (RSS::TestMaker10#test_items): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: a patch from nornagon <nornagon@gmail.com>matz2005-09-051-1/+1
| | | | | | | | | | | merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: do not use __send__ to access private methods. [ruby-dev:26935]nobu2005-09-028-17/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb (RSS::RDF::Channel#setup_maker_attributes):kou2005-08-114-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | removed self. * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#<=>): use #date instead of @date. (RSS::Maker::Base::self.def_array_element): added #size. * lib/rss/maker/1.0.rb (RSS::Maker::RSS10::Channel#to_rss, RSS::Maker::RSS10::Items::Item#to_rss): cleared dc_dates set upped by using #date. * lib/rss/maker/dublincore.rb (RSS::Maker::ChannelBase, RSS::Maker::ItemsBase::ItemBase): fixed opposite alias. * test/rss/test_setup_maker_1.0.rb (RSS::TestSetupMaker10::test_setup_maker_items_sort): added some tests for RSS::Maker::ItemsBase#do_sort. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: moved copyright description to lib/rss.rb.kou2005-07-221-7/+0
| | | | | | | | | | | | | | | | * lib/rss.rb: added for convenience. * sample/rss/re_read.rb: added #to_s sample. * sample/rss/blend.rb: use 'require "rss"' instead of 'require "rss/*"'. * sample/rss/list_description.rb: ditto. * sample/rss/rss_recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: ditto. * sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTPkou2005-07-221-1/+31
| | | | | | | | | | URI and local file path too. * test/rss/test_parser.rb (RSS::TestParser#test_parse): test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.kou2005-07-082-3/+3
| | | | | | | | | | | | | | | * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto. * lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category): domain attribute of <category> is optional. Thanks to Chris Lee <clee@kde.org>. * test/rss/test_parser.rb (RSS::TestParser#test_category20): adjusted test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.kou2005-04-131-3/+7
| | | | | | | | * lib/rss/rss.rb (RSS::Element#converter): fixed converter transmission bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/dublincore.rb: _really_ supported multiple Dublinkou2005-04-071-1/+3
| | | | | | | | | | | | | Core items. * test/rss/rss-assertions.rb (assert_multiple_dublin_core): added an assertion for testing multiple Dublin Core items. * test/rss/test_maker_dc.rb (test_rss10_multiple): added a test for making multiple Dublin Core items. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/*: refactored.kou2005-04-0511-141/+141
| | | | | | | | - gave a name to 'x'. - undef_method -> remove_method for avoiding a warning in ruby 1.6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/dublincore.rb: supported multiple DublinCore items.kou2005-04-059-86/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss/parser.rb: added class name registry for complex model elements. (ex. have childlen elements, have some attributes and a child element and so on.) * lib/rss/maker/base.rb: added default current_element implementation. * lib/rss/maker/dublincore.rb: supported multiple DublinCore items. * lib/rss/maker/image.rb: supproted new DublinCore API. * lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need): moved to RSS::Utils. * lib/rss/utils.rb (RSS::Utils.new_with_value_if_need): moved from RSS::TrackBackUtils. * lib/rss/maker/image.rb: fixed invalid argument of add_need_initialize_variable bug. * lib/rss/maker/trackback.rb: ditto. * lib/rss/rss.rb (Hash#merge): added for ruby 1.6. * lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil for date value. * test/test_dublincore.rb: added tests for plural accessor and multiple DublinCore items. * test/test_setup_maker_1.0.rb: fixed swapped actual and expected values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb: @@setter -> @@setters.kou2005-03-319-25/+25
| | | | | | | | | | | | | | | | | | | | | | * lib/rss/parser.rb (RSS::BaseListener.register_uri) (RSS::BaseListener.uri_registered?) (RSS::BaseListener.install_get_text_element): swapped the first argument and the second argument. * lib/rss/taxonomy.rb: swapped the first argument and the second argument for RSS::BaseListener.install_get_text_element. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * lib/rss/dublincore.rb: ditto. * lib/rss/parser.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/content.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rbkou2005-03-311-2/+2
| | | | | | | | (RSS::BaseListener.install_setter) (RSS::BaseListener.register_uri): changed fallback way. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb (RSS::ListenerMixin::tag_end):kou2005-02-141-1/+2
| | | | | | | fixed invalid namespace handling bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): addedkou2005-02-133-0/+6
| | | | | | | | | | convenient methods. * lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto. * lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto. * test/rss/: added tests for the convenient methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss: supported Image module.kou2005-02-039-8/+381
| | | | | | | http://web.resource.org/rss/1.0/modules/image/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::Element#convert): added.kou2005-02-025-66/+74
| | | | | | | | | | * lib/rss/rss.rb: convert -> need_convert. * lib/rss/1.0.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/2.0.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.2 -> 0.1.3.kou2005-01-152-49/+66
| | | | | | | * lib/rss/rss.rb: accept inheritance. [ruby-talk:126104] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: removed empty lines from output.kou2004-12-041-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.1 -> 0.1.2kou2004-12-043-8/+34
| | | | | | | * lib/rss/rss.rb: #item=/#set_item and so on are obsolete. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::Element#tag): not use block_given? forkou2004-11-285-14/+14
| | | | | | | | | working with ruby 1.6 again. * lib/rss/{0.9,2.0,trackback}.rb, lib/rss/maker/base.rb: undef -> remove_method for working with ruby 1.6 again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::NotSetError): added.kou2004-11-285-72/+94
| | | | | | | | | | | * lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise RSS::NotSetError if required values of maker.channel are not set. * test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS Maker raises or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: addedkou2004-11-277-14/+186
| | | | | | | | | | | #setup_maker. * test/rss/test_setup_maker_*.rb: added tests for #setup_maker. * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported output item size limitation. * sample/rss/blend.rb: added sample for RSS Maker. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/0.9.rb: supported RSS::Maker.make("0.91"). Now,kou2004-11-271-0/+1
| | | | | | | | | "0.9" is just alias of "0.91." * test/rss/test_maker_0.9.rb: make("0.9") -> maker("0.91"). * test/rss/test_to_s.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e