aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix typoskazu2013-03-134-14/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* class.c: from the origin classnobu2013-03-133-6/+21
| | | | | | | * class.c (rb_obj_singleton_methods): collect methods from the origin class. [ruby-core:53207] [Bug #8044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_method.c: overrid flag of prepending methodnobu2013-03-133-1/+20
| | | | | | | | * vm_method.c (rb_export_method): directly override the flag of method defined in prepending class too, not adding zsuper entry. [ruby-core:53106] [Bug #8005] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* assertions.rb: private flagnobu2013-03-131-1/+7
| | | | | | | * lib/test/unit/assertions.rb (assert_respond_to): accept optional include-private flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix for old shellsnobu2013-03-132-35/+43
| | | | | | | | | * configure.in (rm, shvar_to_cpp, unexpand_shvar): local is not available on old shells. * configure.in (shvar_to_cpp): escape quotes for old shells. [Bug #7959] [Bug #8071] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_file_exhaustive.rb: fix abolute rootnobu2013-03-131-1/+1
| | | | | | | * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string): fix abolute root path for dosish platforms. [ruby-core:53354] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): remove Module#used, which has beenshugo2013-03-132-1/+5
| | | | | | introduced in Ruby 2.0 by mistake. [Bug #7916] [ruby-core:52719] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbuninstall.rb: fix for symlink to directorynobu2013-03-131-1/+1
| | | | | | | * tool/rbuninstall.rb: fix for symlink to directory by removing trailing slash which let File.symlink? return false. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-13svn2013-03-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: Fix typodrbrain2013-03-122-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* required keyword argumentsnobu2013-03-127-13/+121
| | | | | | | | | | | | * compile.c (iseq_set_arguments, iseq_compile_each): support required keyword arguments. [ruby-core:51454] [Feature #7701] * iseq.c (rb_iseq_parameters): ditto. * parse.y (f_kw, f_block_kw): ditto. this syntax is still experimental, the notation may change. * vm_core.h (rb_iseq_struct): ditto. * vm_insnhelper.c (vm_callee_setup_keyword_arg): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * date_core.c: clearly specify operator precedence.takano322013-03-122-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def: fix condition.takano322013-03-122-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c: fix dangling if, else-if and else.takano322013-03-122-6/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/commands/setup_command.rb: Don't delete non-rubygemsdrbrain2013-03-1112-152/+82
| | | | | | | | | | | | | | | | | | | | | | files when installing RubyGems. * test/rubygems/test_gem_commands_setup_command.rb: Test for the above. * lib/rubygems/ext/ext_conf_builder.rb: Use full path to siteconf.rb in case the extconf.rb changes directories (like memcached does). * lib/rubygems/package.rb: Remove double slash from path. * test/rubygems/test_gem_package.rb: Test for the above. * test/rubygems/test_gem_package_old.rb: ditto. * lib/rubygems/source.rb: Revert automatic HTTPS upgrade * lib/rubygems/spec_fetcher.rb: ditto. * test/rubygems/test_gem_remote_fetcher.rb: ditto. * test/rubygems/test_gem_source.rb: ditto. * test/rubygems/test_gem_spec_fetcher.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-12svn2013-03-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: Added Net::SMTP#rset method to implement the SMTPdrbrain2013-03-114-0/+42
| | | | | | | | | RSET command. [ruby-trunk - Feature #5373] * NEWS: ditto. * test/net/smtp/test_smtp.rb: Test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv-replace.rb (TCPSocket#initialize): resolve the 3rdakr2013-03-112-1/+8
| | | | | | | | | | argument only if non-nil value is given. [ruby-dev:47150] [ruby-trunk - Bug #8054] reported and analyzed by mrkn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mkmf/test_config.rb (TestMkmf): fix superclass mismatch.nobu2013-03-112-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mkmf/base.rb: class name conflict.usa2013-03-112-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_with_index): try to convert given offset tonaruse2013-03-113-0/+19
| | | | | | integer. fix bug introduced in r39594. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil.with_default_external): add fornaruse2013-03-113-20/+51
| | | | | | | | | | changing Encoding.default_external without warnings. * test/ruby/envutil.rb (EnvUtil.with_default_internal): ditto. * test/ruby/test_io_m17n.rb: use above with_default_external. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (extract_binmode): raise error even if binmode and textmodenaruse2013-03-113-3/+15
| | | | | | don't conflict. [Bug #5918] [ruby-core:42199] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gen_dummy_probes.rbnobu2013-03-112-8/+7
| | | | | | | | * tool/gen_dummy_probes.rb: remove empty lines and compact. * tool/gen_dummy_probes.rb: allow arbitrary number of arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge Onigmo d4bad41e16e3eccd97ccce6f1f96712e557c4518.naruse2013-03-113-4/+13
| | | | | | | fix lookbehind assertion fails with /m mode enabled. [Bug #8023] fix \Z matches where it shouldn't. [Bug #8001] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: defer use of instance variablenobu2013-03-113-4/+37
| | | | | | | * lib/mkmf.rb (MakeMakefile#dir_config, MakeMakefile#_libdir_basename): defer use of instance variable until needed. [Bug #8074] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_file_exhaustive.rb: others homenobu2013-03-111-2/+7
| | | | | | | * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string): add assertions for other user's home directory path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-03-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog reformatting and append ticket number.kosaki2013-03-101-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/thread.rb (Queue#push): return self.kosaki2013-03-103-0/+35
| | | | | | | | * lib/thread.rb (Queue#clear): ditto. * lib/thread.rb (SizedQueue#push): ditto. * test/thread/test_queue.rb: add tests for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/change_maker.rb (#diff2index): check Encoding::BINARY.kosaki2013-03-102-1/+8
| | | | | | BASERUBY may still be 1.8.x. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39711 ↵headius2013-03-101-3/+3
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS (Mutex#owned?): no longer experimental.kosaki2013-03-102-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):nobu2013-03-101-3/+3
| | | | | | enable generic test on all platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix a typo in r39680.nagachika2013-03-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-11svn2013-03-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: remove duplicated entry in r39696.nagachika2013-03-101-7/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Expand home directory when used in dir_stringluislavena2013-03-103-4/+52
| | | | | | | | * win32/file.c (rb_file_expand_path_internal): Expand home directory when used as second parameter (dir_string). [ruby-core:53168] [Bug #8034] * test/ruby/test_file_exhaustive.rb: add test to verify. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext_conf_builder.rb: use intermediate destdir alwaysnobu2013-03-102-1/+15
| | | | | | | | | * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): it is impossible to predict which file will be installed to where, by the arguments, so use intermediate destination directory always. [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: edited rdoc.tadf2013-03-103-2/+19
| | | | | | | * rational.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (setup_communication_pipe): remove unused function.kosaki2013-03-102-26/+5
| | | | | | it was unintentionally added r39683. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-03-100-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/gen_ruby_tapset.rb: add tapset generator.kosaki2013-03-102-0/+109
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * probes.d (symbol-create): change argument name `string' tokosaki2013-03-102-3/+8
| | | | | | `str'. `string' is a keyword for systemtap. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-03-100-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * probes.d: added argument namekosaki2013-03-102-20/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/thread/test_queue.rb (TestQueue#test_thr_kill): reducekosaki2013-03-102-2/+15
| | | | | | | | | | | | | iterations from 2000 to 250. When running on uniprocessor systems, every th.kill needs TIME_QUANTUM_USEC time (i.e. 100msec on posix systems). Because, "r.read 1" is 3 steps operations that 1) release GVL 2) read 3) acquire gvl and (1) invoke context switch to main thread. and then, main thread's th.kill resume (1), but not (2). Thus read interrupt need TIME_QUANTUM_USEC. Then maximum iteration is 30sec/100msec = 300. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_update_max_fd): use ATOMIC_CAS because this functionkosaki2013-03-102-1/+11
| | | | | | is used from timer thread too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (ARRAY_SIZE): new.kosaki2013-03-102-9/+42
| | | | | | | | | | | | * thread_pthread.c (gvl_acquire_common): use low priority notification for avoiding timer thread interval confusion. If we use timer_thread_pipe[1], every gvl_yield() request one more gvl_yield(). It lead to thread starvation. [Bug #7999] [ruby-core:53095] * thread_pthread.c (rb_reserved_fd_p): adds timer_thread_pipe_low to reserved fds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (rb_thread_wakeup_timer_thread_fd): add fdkosaki2013-03-102-30/+56
| | | | | | | | | | | | | argument and remove hardcoded dependency of timer_thread_pipe[1]. * thread_pthread.c (consume_communication_pipe): add fd argument. * thread_pthread.c (close_communication_pipe): ditto. * thread_pthread.c (timer_thread_sleep): adjust the above changes. * thread_pthread.c (setup_communication_pipe_internal): factor out pipe initialize logic. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e