aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss
Commit message (Collapse)AuthorAgeFilesLines
* rss: Accept empty text element as valid elementkou2017-05-031-1/+1
| | | | | | | | | | | Parser has been accepted it but XML serializer wasn't accepted. Reported by stefano frabetti. Thanks!!! [ruby-core:80965] [Bug #13531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add document for lib/rss/atom.rbkou2017-01-261-37/+222
| | | | | | | | | [fix GH-1520] Patch by Tsehau Chao. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.kou2016-09-181-6/+0
| | | | | | | | [Bug #12773][ruby-dev:49813] Reported by Kazuhiro NISHIYAMA. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stdlib: avoid extra calls to eliminate "\n" from Base64normal2016-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | We may use the '0' (zero) to avoid adding the line feed. Furthermore, the '*' (asterisk) modifier is not needed for a single-element arrays. * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String): eliminate chomp * lib/net/http.rb (connect): eliminate delete * lib/net/http/header.rb (basic_encode): ditto * lib/net/imap.rb (authenticate): eliminate gsub (self.encode_utf7): shorten delete arg * lib/net/smtp.rb (base64_encode): eliminate gsub * lib/open-uri.rb (OpenURI.open_http): eliminate delete * lib/rss/rss.rb: ditto * lib/securerandom.rb (base64): ditto (urlsafe_base64): eliminate delete! * lib/webrick/httpauth/digestauth.rb (split_param_value): eliminate chop * lib/webrick/httpproxy.rb (do_CONNECT): eliminate delete (setup_upstream_proxy_authentication): ditto [ruby-core:72666] [Feature #11938] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-1642-0/+42
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/syndication.rb: Add nodoc marker for #validate_sy_updatePeriod.hsbt2015-11-201-1/+1
| | | | | | [ci skip][fix GH-1105] Patch by @davydovanton git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rss.rb: don't substitute, just searchnobu2015-09-051-1/+1
| | | | | | | * lib/rss/rss.rb (Time#w3cdtf): don't substitute, just search zeros at EOS. [ruby-core:70667] [Bug #11509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rss.rb: fix usec widthnobu2015-09-051-1/+1
| | | | | | | * lib/rss/rss.rb (Time#w3cdtf): fix zero-trimmed width of fraction digits. [ruby-core:70667] [Bug #11509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Restore date field.akr2014-06-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.force_zone!): New private method.akr2014-05-041-1/+1
| | | | | | | | | | | | | (Time.make_time): Use Time.force_zone!. (Time.strptime): Ditto. (Time.rfc2822): Ditto. (Time.xmlschema): Ditto. * lib/rss/rss.rb (Time.w3cdtf): Use Time.force_zone!. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (make_time): Produce fixed-offset time object ifakr2014-05-031-1/+1
| | | | | | | | | | | | appropriate. (Time.strptime): Use d[:zone] instead of d[:offset]. * lib/rss/rss.rb (Time.w3cdtf): Produce fixed-offset time object if appropriate. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb: fix typo by @windwiny [fix GH-506]hsbt2014-01-191-1/+1
| | | | | | | | | | | | | | * lib/net/http.rb: ditto * lib/rexml/attribute.rb: ditto * lib/rexml/element.rb: ditto * lib/rexml/source.rb: ditto * lib/rexml/streamlistener.rb: ditto * lib/rss/xmlparser.rb: ditto * lib/rubygems/commands/generate_index_command.rb: ditto * lib/shell.rb: ditto * lib/uri/common.rb:ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.9.3: [DOC] Fix typos by @dvsureshzzak2013-12-221-1/+1
| | | | | | | | | | [Fixes GH-485] https://github.com/ruby/ruby/pull/485 * ext/openssl/ossl_config.c: ditto * lib/rss/utils.rb, lib/time.rb: ditto * test/ruby/envutil.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/{rake,rdoc,rss}/*, test/rexml/test_listener.rb: [DOC] Fix typoszzak2013-12-221-1/+1
| | | | | | | by @dvsuresh [Fixes GH-486] https://github.com/ruby/ruby/pull/486 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]zzak2013-11-098-2/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: [DOC] document Time#w3cdtf by @steveklabnikzzak2013-11-091-0/+15
| | | | | | | [Bug #8821] ありがとうかににく git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnikzzak2013-08-191-28/+23
| | | | | | | [ruby-core:56705] [Bug #8798] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoczzak2013-08-191-1/+2
| | | | | | | Patch by Steve Klabnik [ruby-core:56708] [Bug #8799] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/trackback.rb: [DOC] Hide RSS::Trackback from rdoczzak2013-08-091-1/+3
| | | | | | | Patch by Steve Klabnik [Bug #8755] [ruby-core:56456] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rexmlparser.rb: Remove needless REXML version check.kou2013-08-091-5/+0
| | | | | | | | | Both RSS Parser and REXML are bundled in Ruby. RSS Parser can always use the latest REXML. [Bug #8754] [ruby-core:56454] Patch by Steve Klabnik. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/utils.rb: [DOC] RSS::Utils by Steve Klabnik [Bug #8745]zzak2013-08-061-2/+90
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/1.0.rb: [DOC] Document RSS110 by Steve Klabnik [Bug #8740]zzak2013-08-061-0/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]zzak2013-08-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740zzak2013-08-052-1/+32
| | | | | | | * lib/rss/atom.rb: [DOC] Typo in rdoc by Steve Klabnik git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]zzak2013-08-041-0/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/atom.rb (RSS::Atom::Entry): Fix indent of document comment.kou2013-04-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb (RSS::Maker): Fix indent of document comment.kou2013-04-261-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/atom.rb: Documentation for RSS::Atom based on a patch byzzak2013-04-262-1/+108
| | | | | | | | Michael Denomy * lib/rss/maker.rb: Documentation for RSS::Maker also by @mdenomy git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: Use symbols instead of strings formarcandre2012-11-162-11/+11
| | | | | | | | | | | | | | | | | | | | {const_,instance_variable_}{get,set}. [#7161] * lib/drb/drb.rb: ditto. * lib/ipaddr.rb: ditto. * lib/irb/workspace.rb: ditto. * lib/monitor.rb: ditto. * lib/rss/maker/base.rb: ditto. * lib/rss/rss.rb: ditto. * lib/xmlrpc/parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r37326 "remove string literal concatenation"nobu2012-10-251-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove string literal concatenationnobu2012-10-251-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/lib/pathname.rb, ext/tk/lib/multi-tk.rb,ktsj2011-11-052-6/+6
| | | | | | | | | | | | | ext/tk/sample/demos-en/widget, lib/benchmark.rb, lib/irb/cmd/fork.rb, lib/mkmf.rb, lib/net/ftp.rb, lib/net/smtp.rb, lib/open3.rb, lib/pstore.rb, lib/rexml/element.rb, lib/rexml/light/node.rb, lib/rinda/tuplespace.rb, lib/rss/maker/base.rb, lib/rss/maker/entry.rb, lib/scanf.rb, lib/set.rb, lib/shell.rb, lib/shell/command-processor.rb, lib/shell/process-controller.rb, lib/shell/system-command.rb, lib/uri/common.rb: remove unused block arguments to avoid creating Proc objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: revert r31635-r31638 and untabify with expand(1).nobu2011-05-193-76/+76
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: Convert tabs to spaces for ruby files perdrbrain2011-05-183-79/+79
| | | | | | | | | http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style Patch by Steve Klabnik [Ruby 1.9 - Bug #4730] Patch by Jason Dew [Ruby 1.9 - Feature #4718] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/atom.rb (module RSS): Document URIs. Patch by Mark Turner.drbrain2011-05-122-0/+38
| | | | | | | | | [Ruby 1.9 - #4671] * lib/rss/rss.rb (module RSS): Document exception classes. Patch by Mark Turner. [Ruby 1.9 - #4671] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/*.rb: Remove unused variable warnings.marcandre2010-11-085-9/+5
| | | | | | Patch by Run Paint [ruby-core:30991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix previous commit.naruse2010-04-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:kou2010-01-121-5/+42
| | | | | | | accept any time format in maker. [ruby-core:26923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bugkou2009-08-241-1/+1
| | | | | | | | that RSS Maker doesn't accept 'false' as guid's isPermaLink. Reported by Joe Holt. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: addkou2009-06-271-0/+8
| | | | | | | item.guid.permanent_link? and item.guid.permanent_link=. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: rss: 0.2.5 -> 0.2.7.kou2009-06-271-1/+1
| | | | | | | * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb: add nil check.kou2009-05-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Imagekou2009-05-164-11/+28
| | | | | | | element causes parse error even if ignore_unknown_element mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker.rb, lib/rss/maker/0.9.rb,kou2009-05-162-0/+5
| | | | | | | test/test_maker_*.rb: add RSS::Maker.supported? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/content/*, lib/rss/dublincore/*: fix circular require.kou2009-05-165-5/+0
| | | | | | | | * test/test_maker_atom_feed.rb, test/test_maker_atom_entry.rb: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:kou2009-05-161-6/+0
| | | | | | | remove needless codes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/entry.rb: fix a typo.kou2009-05-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,kou2009-05-161-0/+1
| | | | | | | | test/test_maker_atom_feed.rb: fix duplicated dc:date. Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,kou2009-05-163-0/+22
| | | | | | | | | test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb: RSS 1.0 and Atom feed maker treat maker.channel.language as maker.channel.dc_language. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION): 0.2.5 -> 0.2.6.kou2009-05-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e