summaryrefslogtreecommitdiff
path: root/test/ruby
AgeCommit message (Collapse)Author
2012-10-16Merge r37148 from ruby_1_8_7.knu
* error.c (name_err_to_s): we need not infect msg. * test/ruby/test_exception.rb (TestException#test_exception_to_s_should_not_propagate_untrustedness): test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-26Forward port r34151 from ruby_1_8_7.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@34379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-26* string.c (rb_str_partition, rb_str_rpartition)nobu
(rb_str_start_with, rb_str_end_with): preserve the last match data. [ruby-core:39671] [Bug #5351] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-17Backport r23730; fixes #2462.knu
* numeric.c (flo_cmp): Infinity is greater than any bignum number. [ruby-dev:38672] * bignum.c (rb_big_cmp): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-03* array.c (ary_reject_bang): should not remove elements which arenobu
not yielded. [Bug #2545] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01* array.c (rb_ary_reject_bang, rb_ary_delete_if): rejectednobu
elements should be removed. fixed [Bug #2545] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-18backported r31286 from trunkusa
* numeric.c (ruby_float_step): wrong loop condition. fixes [ruby-core:35753], reported by Joey Zhou. * test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753): test above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-18* error.c (exc_to_s): untainted strings can be tainted viashyouhei
Exception#to_s, which enables attackers to overwrite sane strings. Reported by: Yusuke Endoh <mame at tsg.ne.jp>. * error.c (name_err_to_s): ditto. * test/ruby/test_exception.rb (TestException::test_to_s_taintness_propagation): Test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-17* array.c (rb_ary_sort_by_bang): Add Array#sort_by!.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 * eval.c (rb_add_threadswitch_hook): wrapper for unofficial APIsnobu
in Mac OS X port. the use of them is strongly discouraged. * eval.c (rb_remove_threadswitch_hook): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29* file.c (file_expand_path): home directory must be absolute.nobu
[ruby-core:31537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29* file.c (file_expand_path): should check if could find user.nobu
[ruby-core:31538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15* bignum.c (rb_big2dbl), test/ruby/test_bignum.rb (test_to_f): A negative ↵mrkn
Bignum out of Float range should be converted to -Infinity. [ruby-core:30492] [Bug #3362] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07* regexp.c (re_compile_pattern): allow zero times match fornaruse
non-greedy range repeatation. [ruby-core:30613] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-10backport pack and unpack tests from Ruby 1.9.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-10* regex.c (read_special): get rid of overrun.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19* file.c (rb_file_s_extname): skip last directory separators.nobu
[ruby-core:29627] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19* eval.c (search_required): expand home relative path first.nobu
[ruby-core:29610] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* test/ruby/test_thread.rb (TestThreadGroup#test_uninitialized):nobu
typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-25Add tests for Kernel#singleton_class.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-10* eval.c (rb_f_loop): Return an enumerator if no block is given.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18* pack.c (pack_unpack): call PACK_ITEM_ADJUST for 'Q'.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07This even fails.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05* test/ruby/test_array.rb (TestArray#test_splat): Add test casesknu
where splat fails in when clause. ref [Bug #2468] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01* eval.c (proc_invoke): reverted r25975. [ruby-dev:39931]nobu
[ruby-dev:40059] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01* test/ruby/test_super.rb (TestSuper#test_define_method): modifiednobu
expected result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25fix commit miss. [ruby-core:27794]naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25* test/ruby/test_string.rb (test_split): add tests.naruse
patched by Hugh Sasse [ruby-core:27794] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12revert r26305.kou
* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb: accept any time format in maker. [ruby-core:26923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12merge r26304.kou
* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb: accept any time format in maker. [ruby-core:26923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12* test/ruby/envutil.rb (EnvUtil#rubybin): fake also rbconfig.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-08* io.c (io_fwrite): preserve errno. [ruby-core:27425]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-31* string.c: Add instance methods to Symbol: succ, next, <=>,knu
casecmp, =~, [], slice, length, size, empty?, match, upcase, downcase, capitalize and swapcase. [backport from 1.9] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-28 * test/ruby/test_marshal.rb: added tests for taintness propagation.nahi
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-24* test/ruby/test_settracefunc.rb: removed the influence of other tests.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23* parse.y (args): splat other than direct array literal.nobu
[ruby-dev:39771] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23* eval.c (rb_load): initialize orig_func. [ruby-core:27296]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23* test/ruby/test_thread.rb: removed not-backported features.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23* test/ruby/test_thread.rb (test_priority): removed not-guaranteed result.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04* marshal.c (marshal_load): should set taintness. [ruby-dev:39723]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-02* eval.c (proc_invoke): unbound block created by define_methodnobu
cannot call super. [ruby-core:26984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25* test/ruby/test_array.rb (TestArray#test_splat): Add tests for aknu
recently introduced bug in array splatting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-23* eval.c (rb_method_missing): adjusted format and argument number.nobu
* eval.c (rb_call): fixed for super in cached method. [ruby-dev:39757] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06* eval.c (call_trace_func): remove the trace hook if any exceptionnobu
raised. [ruby-list:46515] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06* test/ruby/test_settracefunc.rb: skip thread events.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05Merged r22308. [ruby-dev:39637]naruse
* hash.c (rb_hash): always return a fixnum value because a return value of rb_hash may be used as a hash value itself and bignums have no unique VALUE. * test/ruby/test_hash.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05* gc.c (rb_obj_id): a Fixnum which is beyond signed longnaruse
was converted to a Bignum in calculating its hash. [ruby-dev:39637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05* parse.y (args): use splat_array.naruse
fix: when *foo doesn't splat. [ruby-list:46517] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27* string.c (rb_str_inspect): get rid of adding garbage to shortnobu
UTF-8 string. [ruby-dev:39550] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e