summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2008-06-15merge revision(s) 16082:shyouhei
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15merge revision(s) 15645:15647:shyouhei
* bignum.c (big2str_find_n1): check integer overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15merge revision(s) 15541, 15545, 15558:shyouhei
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07merge revision(s) 13699:13704:shyouhei
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20* lib/webrick/httpservlet/filehandler.rb: should normalize pathgotoyuzo
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/branches/ruby_1_8_5@16495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-03merge revision(s) 15677:shyouhei
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@15680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-07 * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepshyouhei
comment lines first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 * hash.c (rb_hash_delete_key): delete the entry without calling block.shyouhei
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 * lib/rinda/tuplespace.rb: fix Rinda::TupleSpace keeper thread bug.shyouhei
the thread is started too early. [ruby-talk:264062] * test/rinda/test_rinda.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-26* eval.c (mnew): call of super via a method object should work again.shyouhei
[ruby-talk:248647], Thanks Calamitas. * test/ruby/test_method.rb (TestMethod::test_method_super): test for above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-13* test/fileutils/fileasserts.rb: Fix wrong error message.shyouhei
* lib/fileutils.rb (FileUtils::mv): Type Error; should utilize Strings instead of Symbols here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@12060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31* removed svn:keywords for compatibility.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@11599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31* test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr
setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31* lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improvegotoyuzo
for the value of IPv6 address in the Host: header field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26restore (wrongly) removed testsaamine
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26* lib/net/http.rb: sync with HEAD (rev 1.132).aamine
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-26* ext/strscan/strscan.c: sync with HEAD (rev 1.25).aamine
* ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-24don't compare struct sockaddr directly.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-23* test/socket/test_unix.rb: disabled on cygwin.akr
reported by Kouhei Yanagita. [ruby-dev:29080] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-18* test/ruby/test_float.rb (TestFloat::test_strtod): update test tomatz
conform strtod change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-01add a note for cygwin empty UDP packet problem.akr
This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-01* test/socket/test_nonblock.rb: add timeout to send/receiveakr
an empty UDP packet. [ruby-dev:28820] This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-28* test/socket/test_unix.rb: test_seqpacket_pair removed.akr
[ruby-dev:28846] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21use fork to isolate rlimit effect.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20* test/rss/test_parser.rb: split parser tests into ...kou
* test/rss/test_parser_1.0.rb: ... RSS 1.0 parsing tests and ... * test/rss/test_parser_2.0.rb: ... RSS 2.0 parsing tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20*** empty log message ***gotoyuzo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20* ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.gotoyuzo
* ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method OpenSSL::Cipher.ciphers. it returns all the cipher names. * ext/openssl/lib/openssl/cipher.rb: - add constants AES128, AES192, AES256. [ruby-dev:28610] - reimplement without eval() * ext/openssl/lib/openssl/digest.rb: reimplement without eval(). * test/openssl/test_cipher.rb, test_digest: fix about reimplemented features. * sample/openssl/cipher.rb: rewrite all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18* test/rss/test_image.rb: shared name space configuration.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18* lib/rss/rss.rb: improved ignore_unknown_elementkou
handling. RSS::NotExpectedTagError provides tag URI. * lib/rss/parser.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/content.rb: ditto. * lib/rss/dublincore.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * test/rss/rss-assertions.rb: checked URI of not expected tag too. * test/rss/test_parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18* lib/rss/rss.rb: fixed typo: except -> expectkou
* lib/rss/parser.rb: ditto. * test/rss/rss-assertions.rb: ditto. * test/rss/test_parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-18* lib/rss/rss.rb: RSS::Element#calc_indent became to be deprecated.kou
* lib/rss/0.9.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * test/rss/test_1.0.rb: removed RSS::Element.indent_size tests. * test/rss/test_2.0.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* ext/socket/socket.c (bsock_recv_nonblock): new methodakr
BasicSocket#recv_nonblock. (udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock. IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock. (unix_recvfrom_nonblock): removed. UNIXSocket#is removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/pathname.rb: backport from 1.9.akr
(Kernel#Pathname): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss/rss.rb (Hash#merge, Enumerable#sort_by): removed.kou
* lib/rss/rss.rb (RSS::RootElementMixin#to_xml): added. [ruby-talk:197284] We can convert RSS version easily like the following: rss10 = RSS::Parser.parse(File.read("1.0.rdf")) File.open("2.0.rss", "w") {|f| f.print(rss10.to_xml("2.0"))} * test/rss/test_1.0.rb: added #to_xml test. * test/rss/test_2.0.rb: ditto. * test/rss/rss-testcase.rb: added some helper methods that generates sample RSS 2.0. * sample/rss/convert.rb: added a sample script to convert RSS format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss/rss.rb (Kernel#funcall): removed.kou
* lib/rss/parser.rb (Kernel.URI): removed. * lib/rss/maker/: supported xxx.new_yyy do |yyy| yyy.zzz = zzz ... end style and this style became the style of the recommendation. Old style yyy = xxx.new_yyy yyy.zzz = zzz ... is supported too but this style isn't recommended. [ruby-talk:197284] * test/rss/test_*maker*.rb: used new recommended style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/rss.rb: added backward compatibility codes. * lib/rss/parser.rb: ditto. * test/rss/test_parser.rb: ditto. * test/rss/test_2.0.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/rss.rb: improved type conversion. * 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/branches/ruby_1_8@10298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* test/rss/test_2.0.rb: added RSS 2.0 tests. * 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/branches/ruby_1_8@10296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/parser.rb: added entity handling type predicate. * 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/branches/ruby_1_8@10295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/: use #__send__ instead of #send. * test/rss/: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* test/rss/test_taxonomy.rb: use #reject directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS 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/branches/ruby_1_8@10291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/rss.rb: fixed a indentation bug. * 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/branches/ruby_1_8@10290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/1.0.rb: added convenience method 'resources'. * 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/branches/ruby_1_8@10289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/taxonomy.rb: implemented taxonomy module. * test/rss/test_taxonomy.rb: added tests for taxonomy support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou
* lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6. * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15add RLIMIT_NOFILE testakr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15give dummy argument for Process.getrlimit and rescue TypeError.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-07getsockname returns "" on MacOS Xakr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e