aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/webrick/httpservlet/filehandler.rb: should normalize pathgotoyuzo2008-05-183-22/+44
| | | | | | | | | | | | | | | | | | name in path_info to prevent script disclosure vulnerability on DOSISH filesystems. (fix: CVE-2008-1891) Note: NTFS/FAT filesystem should not be published by the platforms other than Windows. Pathname interpretation (including short filename) is less than perfect. * lib/webrick/httpservlet/abstract.rb (WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri): should escape the value of Location: header. * lib/webrick/httpservlet/cgi_runner.rb: accept interpreter command line arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (once): use Object#object_id instead of Symbol#to_i.akr2008-05-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): operator assignment "a += b rescue c" should bematz2008-05-081-1/+1
| | | | | | | parsed as "a += (b rescue c)" just like normal assignment. [ruby-talk:301000] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, ext/extmk.rb, lib/mkmf.rb: use absolute path for RUBYOPT.nobu2008-05-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, ext/extmk.rb, lib/mkmf.rb: removed RUBYOPT.nobu2008-05-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getoptlong.rb: use $stderr instead of $deferr.akr2008-05-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: This patch from Brian Candler adds a FailEOF mode whichjeg22008-05-011-0/+7
| | | | | | | | | can be activated to have net/telnet raise EOFError exceptions when the remote connection is closed. The default behavior remains unchanged though. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [ruby-dev:34497] ERB::Util#url_encode bug fix. Reported by rubikitch.seki2008-04-301-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Fixing a bug where line endings would not be properlyjeg22008-04-301-3/+10
| | | | | | | | | escaped when the two character ending was broken up into separate TCP packets. Issue reported and patched by Brian Candler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.popen3w): removed.akr2008-04-261-42/+15
| | | | | | | (Open3.popen3): notice wait_thr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 2.0.0 r56.drbrain2008-04-2612-408/+716
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* describe about waiting a child process.akr2008-04-261-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* describe :pid thread variable.akr2008-04-261-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb: double fork is replaced by spawn with Process.detach.akr2008-04-261-29/+48
| | | | | | | | (Open3.popen3w): new method to access the thread returned by Process.detach. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/descriptions.rb: fixed wrong class nestings.usa2008-04-231-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Returnknu2008-04-231-5/+7
| | | | | | | an enumerator if no block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): shouldmatz2008-04-221-2/+2
| | | | | | | check method names by symbols, not by strings. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]kou2008-04-151-2/+7
| | | | | | | * test/xmlrpc/test_cookie.rb: add a test for the above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb, lib/net/smtp.rb, lib/net/pop.rb: update URLs of Japanese ↵kazu2008-04-153-3/+3
| | | | | | documents. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb (require_relative): move require_relative frommatz2008-04-121-11/+0
| | | | | | | | lib/require_relative.rb. [ruby-core:16356] * lib/require_relative.rb: removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.1.1 r1701.drbrain2008-04-1118-844/+137
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/store.rb (YAML::load): modified to support emptymatz2008-04-112-3/+24
| | | | | | database. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb (PStore::dump, PStore::load): allow subclassmatz2008-04-102-5/+18
| | | | | | | | | overriding. [ruby-dev:34305] * lib/yaml/store.rb (YAML::Store::marshal_dump_supports_canonical_option?): add a method to support faster PStore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb: replaced by Hongli Lai's faster version.matz2008-04-101-75/+203
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/generator.rb: removed obsolete library. [ruby-core:16233]matz2008-04-101-385/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb: remove Math first before overwriting by CMath.matz2008-04-081-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trivial change.tadf2008-04-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/complex.rb depends lib/cmath.rb.tadf2008-04-051-224/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: new.tadf2008-04-053-0/+231
| | | | | | | | | | | | * lib/complex.rb: depends lib/cmath.rb. * lib/rational.rb: added rdiv. * complex.c: removed some math functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.drbrain2008-04-044-5/+7
| | | | | | | | | | | * lib/rdoc/generator/html.rb: ditto. * lib/rdoc/options.rb: Fix shadowed variable warning. * lib/webrick/httprequest.rb: Fix redefined method warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails andmatz2008-04-031-0/+2
| | | | | | @n_bytes as well. [ruby-core:16144] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RubyGems 1.1.0drbrain2008-03-3146-2076/+2883
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::Config.default_config_hash): requiresnobu2008-03-311-0/+1
| | | | | | | win32/resolv to use Win32::Resolv. [ruby-dev:34138] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert git backfire in r15860; sorrymatz2008-03-302-64/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_dup): should copy is_lambda attribute as well.matz2008-03-302-0/+64
| | | | | | [ruby-talk:296244] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (f_lcm): removed.tadf2008-03-272-64/+0
| | | | | | | | | | | | * rational.c (rb_lcm, rb_gcdlcm): added. * lib/complex.rb (gcd, lcm, gcdlcm): removed. * lib/rational.rb (gcd, lcm, gcdlcm): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Applied Laurent's patch to testcase.rb to fix symbol method namesryan2008-03-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.nobu2008-03-211-1/+1
| | | | | | | | | | | | [ruby-dev:29945], [ruby-dev:34095] * lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased name too for cygwin. [ruby-dev:29945] * lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ipaddr.rb: Say that I am the current maintainer.knu2008-03-213-0/+11
| | | | | | | | | | | * lib/set.rb: Ditto. * lib/shellwords.rb: Ditto. * ext/syslog/syslog.txt: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* both complex and rational are now builtin classes.tadf2008-03-163-1040/+117
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::Cookie::initialize): performance patch frommatz2008-03-141-6/+11
| | | | | | Makoto Kuwata <kwa@kuwata-lab.com> in [ruby-dev:34048]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/cmd/help.rb: should be updated for new ri structure.matz2008-03-123-6/+15
| | | | | | | | | | | | | | | | | [ruby-core:15825] * lib/rdoc/ri/driver.rb (RDoc::initialize): allow options to be optional. * lib/rdoc/ri/driver.rb (RDoc::class_cache): map_dirs may be empty. * lib/rdoc/ri/driver.rb (RDoc::get_info_for): revive get_info_for method. maybe broken. * lib/rdoc/ri/util.rb (RDoc::initialize): should not use RiError no more. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Restore missing line to RDoc::Generator#params. Patch by Lincoln Stoll.drbrain2008-03-091-7/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by Lincoln Stolldrbrain2008-03-093-4/+8
| | | | | | | | | | | <lstoll at lstoll.net> * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by Lincoln Stoll <lstoll at lstoll.net> * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: rdoc added. [ruby-Patches-9762]nobu2008-03-071-2/+121
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb: require 'continuation' to implement "restart"matz2008-03-051-4/+5
| | | | | | | | | | | | | | | command. [ruby-dev:33992] * lib/debug.rb (Context::debug_command): remove local variable shadowing to shut up warnings. [ruby-dev:33992] * lib/debug.rb (Context::display_list): ditto. * lib/debug.rb (Context::resume): ditto. * lib/debug.rb (Context::get_thread): no longer use #index for Hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb (IRB::Irb::eval_input): SyntaxError should not bematz2008-03-042-2/+5
| | | | | | | | | considered as IRB bug. [ruby-dev:33991] * lib/irb/workspace.rb (IRB::WorkSpace::filter_backtrace): should filter 'irb.rb' as well for context mode 2 and 3. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/filehandler.rb: should normalize pathgotoyuzo2008-03-031-2/+19
| | | | | | | | | | | | separators in path_info to prevent directory traversal attacks on DOSISH platforms. reported by Digital Security Research Group [DSECRG-08-026]. * lib/webrick/httpservlet/filehandler.rb: pathnames which have not to be published should be checked case-insensitively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (recursive_collect): do not alwaysnobu2008-03-011-2/+3
| | | | | | | include all test_*.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): use ASCII-8BITakr2008-02-281-5/+7
| | | | | | | for charset unspecified non-text data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e