summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * tool/enc-unicode.rb: parse range notation of UnicodeData.txt.naruse2009-10-081-0/+1
| | | | | | | | * enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src: follow above change. [ruby-dev:39444] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator::public_api): take snapshot ofmatz2009-10-061-0/+22
| | | | | | | | | | | | public method at the beginning time. * lib/delegate.rb (SimpleDelegator#initialize): use Delegator.public_api since public_method might be added after initialization. [ruby-dev:39383] * lib/delegate.rb (DelegateClass): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (struct {dump,load}_arg): manage with dfree, insteadnobu2009-10-041-0/+41
| | | | | | | | of using local variable which may be moved by context switch. [ruby-dev:39425] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wrap by a module.akr2009-10-041-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem_installer.rb (test_build_extensions_extconf_bad):nobu2009-10-041-1/+1
| | | | | | | escaped meta charater. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/gemutilities.rb (setup): use ENV["RUBY"] beforenobu2009-10-041-0/+9
| | | | | | | installation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem.rb (TestGem#test_self_find_files): "."nobu2009-10-041-1/+5
| | | | | | | is no longer included in $LOAD_PATH. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add assertion message.akr2009-10-041-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems: use require_relative.nobu2009-10-0367-80/+70
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/contrib/test_ftp.rb: moved.nobu2009-10-031-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake: get rid of name collision.nobu2009-10-033-15/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake: get rid of name collision.nobu2009-10-0327-38/+38
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/test_package_task.rb (Rake::TestPackageTask),nobu2009-10-031-2/+2
| | | | | | | | (Rake::TestGemPackageTask): get rid of name collision with rubygems. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (bv_decls, bvar): fix for block variables.nobu2009-10-031-0/+10
| | | | | | | [ruby-dev:39423] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion.nobu2009-10-031-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/dummyparser.rb: suppress redefinition warnings.nobu2009-10-031-7/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_add_method_def): no redefinition warning onnobu2009-10-032-1/+17
| | | | | | | undef. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_f_integer): now Integer() takes optional basematz2009-10-031-0/+13
| | | | | | | | | | argument. base will be ignored for non string values. suggested by Sam Carr at RubyFoo Lounge at London. * test/ruby/test_integer.rb (TestInteger#test_Integer): test updated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rake: updated to rake code to rake-0.8.7 source code base.nobu2009-10-0251-0/+4240
| | | | | | | | * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line): respace dependencies too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/dummyparser.rb (DummyParser): improvement by Magnusnobu2009-10-022-448/+51
| | | | | | | | | | Holm in [ruby-core:25884]. * remove scanner events which simply returned the first argument. * all parser events are now automatically generated. * simplify blocks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_slice_before): take a pattern if no block given.akr2009-10-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID bynobu2009-10-022-25/+116
| | | | | | | | | | | | | | | NODE to track local variable assignment. * parse.y (lvar_defined_gen, assignable_gen): enable local variable check. [ruby-core:24923] * parse.y (validate): use value only. * test/ripper/test_parser_events.rb (test_local_variables): tests based on a patch from Magnus Holm in [ruby-core:25885]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_add_method_def): show the location wherenobu2009-09-302-0/+8
| | | | | | | overwritten method was defined. [ruby-dev:39400] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Escape as \x{XXXX} other than Unicode chars.naruse2009-09-291-2/+2
| | | | | | | * string.c (rb_str_inspect): escape as \x{XXXX} when the encoding is other than Unicode. [ruby-dev:39388] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_class.rb (test_method_redefinition): commit miss.nobu2009-09-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_{class,module}.rb (test_method_redefinition): includenobu2009-09-292-2/+32
| | | | | | | warned line number. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_{class,module}.rb (test_method_redefinition): refined.nobu2009-09-293-20/+71
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_module.rb: suppress warnings.nobu2009-09-291-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_add_method_def): nothing to do if old method hadnobu2009-09-291-0/+8
| | | | | | | same definition. [ruby-dev:39397] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_class.rb (test_module_function): tests for warnings.nobu2009-09-291-0/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refine tests arround String#inspect.naruse2009-09-291-35/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_inspect): dump as \uXXXX when thenaruse2009-09-291-24/+33
| | | | | | string is in Unicode. [ruby-dev:39388] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25129 ↵matz2009-09-281-0/+3
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stringio/stringio.c (strio_read): set ASCII-8BIT encodingnaruse2009-09-281-1/+4
| | | | | | when length argument is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspectakr2009-09-271-0/+13
| | | | | | | method. [ruby-core:25804] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (missing_wrap): reverted.nobu2009-09-251-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (mnew): fix for instance method of Module, BasicObjectnobu2009-09-251-2/+13
| | | | | | | | | and subclass of a class which overrides respond_to_missing?. based on a patch from Nikolai Lugovoi <nlugovoi AT gmail.com> in [ruby-core:25748]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (mnew): generate method object that wraps method_missing,matz2009-09-241-0/+33
| | | | | | | | | when #respond_to_missing? is defined. * test/ruby/test_object.rb (test_respond_to_missing): add test suites for #respond_to_missing? changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) isnobu2009-09-231-1/+2
| | | | | | | PI/2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assign_in_cond): also should warn assignment to dvar innobu2009-09-231-2/+22
| | | | | | | conditional. [ruby-dev:39363] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_upto): keep first width. [ruby-dev:39361]nobu2009-09-232-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_chunk): new method Enumerable#chunk.akr2009-09-221-0/+70
| | | | | | | | * enum.c (enum_slice_before): new method Enumerable#slice_before. [ruby-dev:38392] [ruby-dev:39240] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (GetVpValue): support conversion fromnobu2009-09-211-0/+4
| | | | | | | Rational. [ruby-core:25697] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_binding): allow proc from method. [ruby-core:25589]nobu2009-09-211-0/+1
| | | | | | | * vm.c (collect_local_variables_in_env): block iseq can be NULL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/lib/bigdecimal/math.rb (sin, cos, atan, exp, log):nobu2009-09-201-0/+77
| | | | | | | | improved precision and performance. based on a patch from Makoto Yamashita in [ruby-core:25600] and [ruby-core:25602]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (GlobPathValue), file.c (rb_get_path_check): path namesnobu2009-09-192-0/+19
| | | | | | | must be ASCII compatible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_object0): entry regexp object before its encodingnobu2009-09-181-0/+8
| | | | | | | name. [ruby-core:25625] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()nobu2009-09-181-0/+8
| | | | | | | on op_asgn was inversed. [ruby-core:25629] [Bug #2050] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: fixed indent by splitting methods.nobu2009-09-181-55/+75
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: add a test for [ruby-dev:39345]kazu2009-09-171-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e