summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* merge revision(s) 21432:shyouhei2009-02-231-0/+4
| | | | | | | | | * lib/erb.rb (PercentScanner): remove PercentScanner. fixed % after %> bug. [ruby-dev:37751] [Bug #997] * test/erb/test_erb.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 21066:shyouhei2009-02-201-0/+23
| | | | | | | | | | * lib/optparse.rb (OptionParser::List#summarize): gives priority to latter switches. [ruby-dev:36692] * lib/optparse.rb (OptionParser#summarize): do not append unnecessary line terminator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 20580:shyouhei2009-02-191-0/+40
| | | | | | | | * pack.c (pack_pack): fixed length for odd length string. [ruby-dev:37283] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 20276:20279:shyouhei2009-02-161-10/+12
| | | | | | | | | * test/rinda/test_rinda.rb: fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h. * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 20245,20247:shyouhei2009-02-131-0/+4
| | | | | | | | * lib/logger.rb (ProgName): fixed for svn, based on a patch from Nobuhiro IMAI at [ruby-dev:37108]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 20121:shyouhei2009-02-051-1/+2
| | | | | | | | | | | * lib/rexml/entity.rb (unnormalized): do not call document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. backported from trunk. * test/rexml/test_document.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 19774:shyouhei2009-02-031-0/+132
| | | | | | | | | * lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558) [ruby-dev:36631] * test/net/pop/test_pop.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@22000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 19339:shyouhei2009-01-242-0/+86
| | | | | | | | | | | | * lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?". (Vector#eqn?): removed. Defined by mistake. Fixes [ruby-dev:36294]. Reported by weda <weda AT issp.u-tokyo.ac.jp> and an anonymous user. * test/matrix/test_matrix.rb: added. * test/matrix/test_vector.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@21753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 19320,19322:shyouhei2009-01-231-0/+65
| | | | | | | | | | | | | * lib/rexml/document.rb: limit entity expansion. Thanks, Luka Treiber, Mitja Kolsek, and Michael Koziarski. backported from trunk r19033, r19317, r19318. * lib/rexml/entity.rb: ditto. * test/rexml/test_document.rb: ditto. * NEWS: added an entry for REXML. * lib/rexml/document.rb: fixed typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@21742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 19078,20097:shyouhei2009-01-221-0/+6
| | | | | | | | | | | | | * gc.c (rb_mark_set): new function to mark keys. * marshal.c (struct dump_arg, struct load_arg): added wrappers to mark data entries. backport from trunk r13527,r13528,r13961,r16533. [ruby-dev:36082] * marshal.c (marshal_load): arg.data is no longer a VALUE but a st_table, and freed in load_ensure. pointed out by pegacorn. [ruby-dev:37008] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@21729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17842:shyouhei2008-07-101-0/+34
| | | | | | | | | | | * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of FIXNUM_MAX to make it possible to convert to double accurately. It assumes FLT_RADIX is 2. fix RubyForge bug #14102. backported from 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17617:shyouhei2008-06-291-0/+21
| | | | | | | * time.c (time_timeval): fix rounding negative float. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 16763:shyouhei2008-06-242-0/+388
| | | | | | | | | | * lib/erb.rb (ERB::Compiler::TrimScanner#explicit_trim_line): Fix without strscan problems. [ruby_core:17028]. * test/erb/test_erb.rb (TestERBCoreWOStrScan): Add test class for without strscan. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 16082:shyouhei2008-06-151-0/+8
| | | | | | | | | | | | * lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit; merged from 1.9. * lib/yaml.rb (quick_emit): use combination of object_id and hash to identify repeated object references, since GC will reuse memory of objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698]; merged from 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 15645:15647:shyouhei2008-06-151-0/+8
| | | | | | | * bignum.c (big2str_find_n1): check integer overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 15541,15545,15558:shyouhei2008-06-151-0/+12
| | | | | | | | * parse.y (yycompile): clear ruby_eval_tree_begin too before parse. * parse.y (yycompile): clear ruby_eval_tree_begin if parse failed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 13699:13704:shyouhei2008-06-071-0/+20
| | | | | | | | | * marshal.c (r_bytes0): refined length check. [ruby-dev:32059] * marshal.c (r_bytes0): check if source has enough data. [ruby-dev:32054] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@16903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/filehandler.rb: should normalize pathgotoyuzo2008-05-205-11/+129
| | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@16495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 15677:shyouhei2008-03-031-0/+59
| | | | | | | | | | | | * lib/webrick/httpservlet/filehandler.rb: should normalize path 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@15678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,shyouhei2007-12-024-10/+51
| | | | | | | | test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured declaring XML namespaces. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@14091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/thread/thread.c (lock_mutex): should take care of threadsshyouhei2007-09-161-0/+38
| | | | | | | | | | | not waiting any longer; there cases of a thread raising exceptions. [ ruby-Bugs-11901 ] * test/thread/test_thread.rb (test_mutex_exception_handling): test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13459 ↵shyouhei2007-09-162-0/+65
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepshyouhei2007-09-071-1/+4
| | | | | | | comment lines first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_delete_key): delete the entry without calling block.shyouhei2007-08-221-0/+564
| | | | | | | | | * hash.c (rb_hash_shift): should consider iter_lev too. * hash.c (delete_if_i): use rb_hash_delete_key() so that the block isn't called twice. [ruby-core:11556] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rinda/tuplespace.rb: fix Rinda::TupleSpace keeper thread bug.shyouhei2007-08-221-0/+14
| | | | | | | | the thread is started too early. [ruby-talk:264062] * test/rinda/test_rinda.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):shyouhei2007-06-142-3/+4
| | | | | | | get rid of invoking shell. [ruby-dev:30942] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (mnew): call of super via a method object should work again.shyouhei2007-05-261-0/+11
| | | | | | | | | | | [ruby-talk:248647], Thanks Calamitas. * test/ruby/test_method.rb (TestMethod::test_method_super): test for above fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge -c 12126shyouhei2007-05-221-0/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merge -r 12066:12069shyouhei2007-03-161-0/+67
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge changes between r11913 and r11943 from ruby_1_8.knu2007-02-282-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@11944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_iterate): need to PUSH_ITER in proper order.matz2007-01-311-0/+12
| | | | | | | | | | [ruby-core:10125] * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): add new test. [ruby-core:10125] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (strscan_do_scan): should set kcode option before ↵aamine2007-01-101-0/+13
| | | | | | | | | | | match. [ruby-dev:29914] * test/strscan/test_stringscanner.rb: test it. * re.c: export kcode_set_option and kcode_reset_option (with "rb_" prefix). * intern.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge RDoc updates from matzruby 11502, 11503, 11504drbrain2007-01-071-2/+115
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge 11443, 11444 and 11445 from trunk.drbrain2006-12-311-0/+148
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]shugo2006-11-041-0/+11
| | | | | | | (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.usa2006-10-311-0/+17
| | | | | | | | | fixed: [ruby-list:42928] * test/ruby/test_super.rb: add tests to check above bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest, test/digest/test_digest.rb: Merge from trunk:knu2006-10-251-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce versioning in Digest::Base API, and prefix C constants with RUBY_ and C type names with rb_ to avoid name clash in writing extensions. - Introduce Digest::Class and Digest::Instance for ease of implementing subclasses and add-ons. - Digest::Instance module requires and assumes that any instance be resettable and clonable. An instance method #new() is added so digest instances work just like digest classes. - The constructor does no longer take an initial string to feed; digest() and hexdigest() now do, instead. This allows digest classes to take their own hashing parameters. - Make some changes to digest() and hexdigest() class methods, which now take extra arguments, which are passed through to the constructor in an internal call. - Add #digest_length/size/length() and #block_length(), - Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256, SHA384 and SHA512, hoping this module would make a decent example of a digest subclass written in Ruby. - Rip BubbleBabble support out of the base class and have a separate module named digest/bubblebabble. - Remove RD documents in favor of newly written and embedded RDoc documentation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prependnobu2006-10-121-6/+23
| | | | | | | | | | | | | base directory to load path. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should use the given File-like interface, but not File directly. * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement File-like methods correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/optparse/test_getopts.rb: changed the class name of test casenobu2006-10-031-1/+1
| | | | | | | to get rid of conflict with test_optparse.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/optparse/test_getopts.rb: added short and long tests.nobu2006-09-261-2/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2006-09-261-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use assert_same instead of assert_equal.akr2006-09-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): newgotoyuzo2006-09-081-0/+31
| | | | | | | | | method to parse multiple cookies per Set-Cookie header. Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>. [ruby-core:08802] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr2006-07-311-1/+5
| | | | | | | | setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improvegotoyuzo2006-07-311-0/+58
| | | | | | | for the value of IPv6 address in the Host: header field. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* restore (wrongly) removed testsaamine2006-07-261-3/+74
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: sync with HEAD (rev 1.132).aamine2006-07-261-80/+36
| | | | | | | | | | * lib/net/http.rb (Net::HTTP#post, request_post, request): should set Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: sync with HEAD (rev 1.25).aamine2006-07-261-0/+71
| | | | | | | * ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't compare struct sockaddr directly.akr2006-07-241-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_unix.rb: disabled on cygwin.akr2006-07-231-1/+1
| | | | | | | reported by Kouhei Yanagita. [ruby-dev:29080] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e