summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * array.c (rb_ary_to_ary): do not use #respond_to? to detectmatz2009-10-2911-39/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to_ary. Just call. [ruby-core:23738] * eval.c (rb_check_funcall): new function with method existence check. returns Qundef when the method does not exist. * enumerator.c (enumerator_rewind): just call method, using rb_check_funcall(). [ruby-core:23738] * error.c (exc_equal): ditto. * object.c (convert_type): ditto. * error.c (rb_name_err_mesg_new): export function. * eval.c (make_exception): ditto. * io.c (pop_last_hash): return early when the last argument is nil. * io.c (rb_io_puts): treat T_STRING specially for small optimization. * vm_eval.c (raise_method_missing): skip method call if possible using rb_method_basic_definition_p(). * vm_eval.c (method_missing): ditto. * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_debug): test suites changed to ignore exceptions caused by just-call policy. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): call rb_filesystem_encoding().naruse2009-10-282-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (Init_IO): rb_default_rs should be US-ASCII.naruse2009-10-282-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-10-29svn2009-10-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb : Compilation failure on AIX.kanemoto2009-10-282-1/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_find): fixed rdoc formatting.nobu2009-10-281-6/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (get_filesystem_encoding): removed.naruse2009-10-284-26/+51
| | | | | | | | | | | | | | | | | * encoding.c (rb_locale_encindex): added. * encoding.c (rb_filesystem_encindex): added. * encoding.c (rb_filesystem_encindex): add an alias 'filesystem'. [ruby-dev:39574] * encoding.c (enc_find): add rdoc about special aliases. * gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem'). * gem_prelude.rb (Gem.set_paths): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Previous commit is for [ruby-core:25959]naruse2009-10-281-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb (Gem.set_home):naruse2009-10-282-1/+10
| | | | | | | | | force_encoding(Encoding.filesystem_encoding) [ruby-dev:39546] * gem_prelude.rb (Gem.set_paths): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (get_filesystem_encoding):naruse2009-10-282-0/+24
| | | | | | | add Encoding.filesystem_encoding [ruby-dev:39546] also see [ruby-core:25959] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (etc_each_group): fixed typo.nobu2009-10-282-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: rdoc for <=>, casecmpmarcandre2009-10-286-9/+11
| | | | | | | | | | | | * bignum.c: rdoc for <=> * file.c: ditto * time.c: ditto * compar.c: rdoc git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_setup_method): should push call frame beforematz2009-10-282-10/+32
| | | | | | | | | | | | raising exception, to put the Ruby-defined method name in the error message. [ruby-core:26333] * vm_insnhelper.c (VM_CALLEE_SETUP_ARG): macro modified. * vm_insnhelper.c (vm_yield_setup_args): modified for new VM_CALLEE_SETUP_ARG macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-10-28svn2009-10-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#initialize): sets @binary to true.shugo2009-10-282-3/+28
| | | | | | | | | | | | | * lib/net/ftp.rb (Net::FTP#binary=): sends a TYPE command only when logged in. [ruby-dev:39548] * lib/net/ftp.rb (Net::FTP#send_type_command): new private method which sends an appropriate TYPE command according to the value of @binary. * lib/net/ftp.rb (Net::FTP#login): calls send_type_command instead of binary=. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#initialize): @sock = nil.naruse2009-10-272-1/+9
| | | | | | | * lib/net/ftp.rb (Net::FTP#binary=): send command only when socket is open. [ruby-dev:39548] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (Init_stringio): added read_nonblock andnobu2009-10-273-1/+46
| | | | | | | write_nonblock aliases. [ruby-dev:39551] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_data_type): typed.nobu2009-10-272-15/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.nagai2009-10-272-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (chopped_length): get rid of unexpected exception.nobu2009-10-273-11/+7
| | | | | | | see [ruby-core:26336]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.h (SET_MACHINE_STACK_END): use __i386.akr2009-10-272-1/+8
| | | | | | | | | Some compiler may not define __i386__. Solaris 64-bit Developer's Guide: http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (getbinaryfile, list): call to_s to convertshugo2009-10-272-2/+7
| | | | | | | a Pathname instance into a string. [ruby-core:26237] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add commit log of r25499kazu2009-10-271-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,nobu2009-10-272-4/+9
| | | | | | | and explicit size qualifiers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (SET_MACHINE_STACK_END): add x86_64 version by nobu.naruse2009-10-272-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: typo. this commit fixed [ruby-core:26166]usa2009-10-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_exec.c (DECL_SC_REG): use __clang__.naruse2009-10-272-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rbnobu2009-10-262-1/+5
| | | | | | | on some platforms. [ruby-core:26332] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: mistake on operation. sorry.nagai2009-10-261-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2009-10-261-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * ↵kazu2009-10-262-6/+54
| | | | | | test/ripper/test_filter.rb: add more tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (garbage_collect_with_gvl): do not garbage_collect whenmatz2009-10-262-0/+6
| | | | | | dont_gc flag turned on. [ruby-core:26327] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compilednagai2009-10-264-2/+40
| | | | | | | | with old ruby 1.8.x. * ext/tk/tkutil/tkutil.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (invoke_block_from_c): return Qnil when its iseq isnaruse2009-10-262-1/+8
| | | | | | SPECIAL CONST. [ruby-core:26335] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.naruse2009-10-262-2/+7
| | | | | | LLVM/clang defines __GNUC__ but doesn't have __asm__.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): added RUBY_SITEARCH to usenobu2009-10-264-3/+10
| | | | | | | different name from RUBY_ARCH. [ruby-core:26324] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_cmp): Array#<=> returns nil when comparison failsmarcandre2009-10-262-2/+8
| | | | | | [ruby-core:26316] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (default_proc_arity_check): new support function.matz2009-10-262-7/+22
| | | | | | | * hash.c (rb_hash_initialize): should do arity check as #default_proc=. [ruby-core:26281] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * man/*.1: suppressed warnings.nobu2009-10-265-60/+59
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/remote-tk.rb: typo fixed.nagai2009-10-262-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (usage): -T and -W descriptions updated. seemame2009-10-263-4/+11
| | | | | | | | [ruby-dev:39539] * man/ruby.1: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fwrite): adjust stdio file position after direct write onnobu2009-10-263-2/+22
| | | | | | | BSDish platforms. [ruby-core:26300] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (dlhandle_sym): fixed an invalid local variablenobu2009-10-252-4/+9
| | | | | | | declaration. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_cntl): F_DUPFD is platform dependent.nobu2009-10-252-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid localnobu2009-10-252-1/+6
| | | | | | | variable declaration. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_handle.rb: svn:eol-style.nobu2009-10-250-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-252-0/+16
| | | | | | * test/dl/test_handle.rb (test_NEXT) testing the NEXT handle git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles cantenderlove2009-10-252-0/+45
| | | | | | be enabled and disabled for closure on GC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-252-0/+27
| | | | | | * test/dl/test_handle.rb (**) testing to_i and initialize git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove2009-10-252-3/+40
| | | | | | * test/dl/test_handle.rb (**) testing sym behavior git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e