aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 2012-08-08svn2012-08-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (method_clone): Added documentation. Patch by Robin Dupret.drbrain2012-08-072-2/+19
| | | | | | | Fixes #152 on github. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (Init_readline): rl_catch_signals=0 returnsnaruse2012-08-072-0/+9
| | | | | | | back. Without this, on FreeBSD9 and readline 6.2 irb can't catch ^C. [Bug #5423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_exec.c, insns.def (leave): solve problems onko12012-08-076-18/+42
| | | | | | | | | | | | | OPT_CALL_THREADED_CODE. Catch up finish frame structure on OPT_CALL_THREADED_CODE. * vm_core.h: add rb_thread_t#retval for temporary space on OPT_CALL_THREADED_CODE. * vm.c (th_init): clear rb_thread_t#retval as Qundef. * vm_dump.c (rb_vmdebug_debug_print_pre): fix debug print format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (TestRequire#test_require_twice): added.usa2012-08-072-0/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_redefine_opt_method): use RCLASS_ORIGIN to avoidshugo2012-08-073-2/+32
| | | | | | SEGV when a module-prepended class is refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file_exhaustive.rbusa2012-08-072-1/+13
| | | | | | | | (TestFileExhaustive#test_expand_path*): refactoring. split the method into some chunks of the same kind of tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test String#each_line when separator is longer than string.tenderlove2012-08-071-0/+7
| | | | | | Thanks Charles Nutter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method in instance_evalnobu2012-08-066-23/+61
| | | | | | | | | | | | * class.c (rb_special_singleton_class_of): utility function. * vm_eval.c (eval_under): special deal for class variable scope with instance_eval. * vm_eval.c (rb_obj_instance_eval, rb_obj_instance_exec): allow method definition in instance_eval of special constants. [ruby-core:28324] [Bug #2788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-07svn2012-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* variable.c: split CVAR_LOOKUPnobu2012-08-062-21/+32
| | | | | | | * variable.c (CVAR_LOOKUP): split into helper functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_exception.rb: split testsnobu2012-08-061-4/+26
| | | | | | | | * test/ruby/test_exception.rb (test_exception, test_else): split huge tests into simple tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_exception.rb: use local variablesnobu2012-08-061-17/+17
| | | | | | | | * test/ruby/test_exception.rb (test_exception, test_else): use local variables instead unnecessary global variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c: check exceptional condition firstnobu2012-08-061-5/+3
| | | | | | | * vm_eval.c (vm_call_super): check exceptional condition first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.localesuke2012-08-062-11/+21
| | | | | | | | | to pass some assertion. Thanks to Hiroshi Shirosaki. [ruby-core:46873][Bug #6814] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h, class.c, eval.c, insns.def: find the appropriateshugo2012-08-066-4/+110
| | | | | | | receiver for super called in instance_eval. If such a receiver is not found, raise NoMethodError. [ruby-dev:39772] [Bug #2402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h, eval.c, vm_insnhelper.c: fix typo.shugo2012-08-064-23/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c: remove dead codenobu2012-08-062-5/+4
| | | | | | | | * vm_eval.c (vm_call_super): since cfp->klass is always class or iclass, no search from method entry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* insns.def: use klass in cfpnobu2012-08-063-1/+24
| | | | | | | | * insns.def (defined): now should use klass in the current control frame to search superclass, not me->klass. reported by naruse. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/etc/test_etc.rb (TestEtc#test_getpwuid): `s' is never set to nil.usa2012-08-062-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * syslog/test_syslog_logger.rb: miss.usa2012-08-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/syslog/test_syslog_logger.rb: skip unless Syslog module isusa2012-08-062-2/+11
| | | | | | | available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bigdecimal.c: fix format specifiernobu2012-08-052-1/+5
| | | | | | | * ext/bigdecimal/bigdecimal.c (BigMath_s_log): fix format specifier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: suppress unused variable warningsnobu2012-08-051-0/+2
| | | | | | | | * io.c (pipe_open): suppress warnings agains variable which are used when spawnv is available but fork is not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.h: rb_num2ulong_inlinenobu2012-08-052-2/+14
| | | | | | | | | * include/ruby/ruby.h (NUM2ULONG): optimize by inline as well as NUM2LONG, and cast to unsigned long explicitly for the platforms where SIZEOF_VALUE is larger than SIZEOF_LONG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-06svn2012-08-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.h: fix castnobu2012-08-052-1/+5
| | | | | | | * include/ruby/ruby.h (NUM2SSIZET): fix type to cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add referencesnari2012-08-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c : if ENABLE_VM_OBJSPACE is 1, rest_sweep is not defined.nari2012-08-052-3/+6
| | | | | | remove unused declarations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: just move functions and so on. I don't touch any internalnari2012-08-052-1827/+1858
| | | | | | implementation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_etc.rb: remove implicit assumptionnobu2012-08-051-5/+12
| | | | | | | | | | * test/etc/test_etc.rb (TestEtc#test_getpwuid): remove implicit assumption, that getpwuid() would return the first entry in the order of getpw(), for shared UID. apparently it is not true on MacOS X 10.8. [ruby-core:46975][Bug #6831] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: use gcc-4.2 prior to clang, gcc, and cc if exist fornaruse2012-08-052-1/+6
| | | | | | the use of Snow Leopard's old clang. see also r36594, r36610, r36611. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* uncommented some teststadf2012-08-041-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added a commenttadf2012-08-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-05svn2012-08-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_{core,strftime}.c: [ruby-core:46990].tadf2012-08-043-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: use inline functions instead of macros, and close upnari2012-08-042-176/+274
| | | | | | related codes for the profiler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_mark_children): use gc_mark_ptr instead of markingnari2012-08-042-5/+6
| | | | | | a object directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_alias.rb (test_super_in_aliased_module_method):shugo2012-08-042-0/+30
| | | | | | add a test case for [ruby-dev:46028], which fails in 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c: no recvnobu2012-08-034-26/+14
| | | | | | | | * vm_insnhelper.c (vm_search_normal_superclass): no longer needs receiver, klass is always unique in the ancestors now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_super.rb: renamenobu2012-08-031-1/+1
| | | | | | | | * test/ruby/test_super.rb (TestSuper#test_double_include2): rename to get rid of redefinition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-04svn2012-08-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (invokesuper): reverted r36612 so that super in anshugo2012-08-033-2/+48
| | | | | | aliased method will not call the same method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (invokesuper): don't skip the same class. instead, useshugo2012-08-033-6/+35
| | | | | | | rb_method_entry_get_with_omod() to avoid infinite loop when super is used with refinements. [ruby-core:30450] [Bug #3351] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use default compilers for non-darwinnobu2012-08-032-4/+10
| | | | | | | | * configure.in: use clang prior to gcc only when self-compiling on darwin. search default compilers on other platforms. [Bug #6816] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: move RUBY_MINGW32 after AC_PROG_CC.naruse2012-08-032-3/+11
| | | | | | | | RUBY_MINGW32 uses AC_TRY_CPP and it sets CC and CPP. [Bug #6816] * configure.in: don't use AC_PROG_CC in AS_CASE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: reduce duplicationnobu2012-08-031-5/+5
| | | | | | | * lib/un.rb (httpd): reduce duplicated code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: DocumentRootnobu2012-08-031-2/+3
| | | | | | | * lib/un.rb (httpd): document root is mandatory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* runner.rb: no installed gemsnobu2012-08-032-0/+6
| | | | | | | | * test/runner.rb: get rid of loading previously installed gems. [ruby-dev:46025] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2012-08-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e