summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-03-17* properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39533: [Backport #7991]nagachika
* lib/rubygems/available_set.rb: Undent for style * lib/rubygems/dependency_installer.rb: Pick latest prerelease gem to install. Fixes RubyGems bug #468. * test/rubygems/test_gem_dependency_installer.rb: Test for the above. * lib/rubygems/dependency_installer.rb: Don't display "Done installing documentation" if documentation will not be installed. * lib/rubygems/rdoc.rb: ditto * lib/rubygems/dependency_list.rb: Use Array#concat for Ruby 1.x performance. * lib/rubygems/installer.rb: Use formatted program name when comparing executables. RubyGems pull request #471 * test/rubygems/test_gem_installer.rb: Test for the above. * lib/rubygems/package.rb: Use more explicit feature check to work around JRuby bug #552 * lib/rubygems/ssl_certs/GeoTrust_Global_CA.pem: Added GeoTrust root certificate. * test/rubygems/test_gem_source_list.rb: Use "example" instead of real hostname git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39590,39592: [Backport #7991]nagachika
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden. [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39579: [Backport #7991]nagachika
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): fix for unusal cases again. install to a temporary directory once and move instaled files to the destination directory, if it is same as the current directory. [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39560,39562,39572: [Backport #7991]nagachika
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.hack_for_obsolete_sytle_gems): remove circular dependencies for old style gems which locate extconf.rb on the toplevel. [ruby-core:53059] [ruby-trunk - Bug #7698] (Gem::Ext::ExtConfBuilder.hack_for_obsolete_style_gems): remove * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.hack_for_obsolete_style_gems): remove circular dependencies in install-so too. [ruby-core:52882] [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39559: [Backport #7991]nagachika
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): use RUBYOPT instead of -r option, and revert some tests. [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39558: [Backport #7991]nagachika
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): revert use of temporary directory for build, to work some buggy extconf.rb which cannot build outside the source directory. [ruby-core:53056] [Bug #7698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17* properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-17merge revision(s) 39542,39545: [Backport #7991]nagachika
* lib/rubygems/ext/builder.rb: Fix incompatibilities when installing extensions. Patch by Nobu. [ruby-trunk - Bug #7968] [ruby-trunk - Bug #7971] * lib/rubygems/ext/ext_conf_builder.rb: ditto. * lib/rubygems/installer.rb: ditto. * test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above. * test/rubygems/test_gem_installer.rb: ditto. * lib/rubygems/commands/sources_command.rb: Prefer HTTPS over HTTP. * lib/rubygems/defaults.rb: ditto * lib/rubygems/dependency_resolver.rb: Ditto. * lib/rubygems/source.rb: ditto. * lib/rubygems/spec_fetcher.rb: ditto. * lib/rubygems/specification.rb: ditto. * lib/rubygems/test_utilities.rb: ditto. * test/rubygems/test_gem.rb: Test for the above. * test/rubygems/test_gem_commands_sources_command.rb: ditto. * test/rubygems/test_gem_dependency_resolver_api_set.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. [ruby-trunk - Bug #7698] [ruby-trunk - Bug #7971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-11merge revision(s) 39688: [Backport #8065]nagachika
* test/thread/test_queue.rb (TestQueue#test_thr_kill): reduce 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/branches/ruby_2_0_0@39728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-11merge revision(s) 39679,39682,39683,39685,39686,39694: [Backport #7999]nagachika
* thread_pthread.c (set_nonblock): new helper function for set O_NONBLOCK. * thread_pthread.c (rb_thread_create_timer_thread): set O_NONBLOCK to timer_thread_pipe[0] too. * thread_pthread.c (consume_communication_pipe): retry when read returned CCP_READ_BUFF_SIZE. * thread_pthread.c (rb_thread_create_timer_thread): factor out creating communication pipe logic into separate function. * thread_pthread.c (setup_communication_pipe): new helper function. * thread_pthread.c (set_nonblock): moves a definition before setup_communication_pipe. * thread_pthread.c (rb_thread_wakeup_timer_thread_fd): add fd 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. * thread_pthread.c (ARRAY_SIZE): new. * 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. * process.c (setup_communication_pipe): remove unused function. it was unintentionally added r39683. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-11merge revision(s) 39680,39681: [Backport #8063]nagachika
* thread_pthread.c (USE_SLEEPY_TIMER_THREAD): use more accurate ifdef condtions. * thread_pthread.c (timer_thread_sleep): use poll() instead of select(). select doesn't work if timer_thread_pipe[0] is greater than FD_SETSIZE. * thread_pthread.c (USE_SLEEPY_TIMER_THREAD): add a dependency against poll. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39506,39514: [Backport #7959]nagachika
* configure.in (unexpand_shvar): get rid of non-portable shell behavior on OpenBSD, so no extra quotes. [Bug #7959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39504: [Backport #7942]nagachika
* parse.y (IS_LABEL_POSSIBLE): allow labels for keyword arguments just after method definition without a parenthesis. [ruby-core:52820] [Bug #7942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39501,39502:nagachika
* error.c: clarify a document of SignalException. Process.kill() doesn't have any guarantee when signal will be delivered. [Bug #7951] [ruby-core:52864] * error.c: clarify reason for sleep in SignalException example git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39495: [Backport #7954]nagachika
* string.c (str_byte_substr): don't set coderange if it's not known. [Bug #7954] [ruby-dev:47108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39492: [Backport #6807]nagachika
* common.mk (realclean-local): miniprelude.c is made by srcs, so it should not removed by distclean but by realclean. [Bug #6807] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39489,39490: [Backport #7950]nagachika
* enc/depend (ARFLAGS): VisualC++ linker does not allow spaces between output option and the output file name. [Bug #7950] * enc/depend (RANLIB): set default command to do nothing, or make the entire line a label on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39484,39485: [Backport #7952]nagachika
* thread.c: Document Thread::new, clean up ::fork and mention calling super if subclassing Thread git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-10merge revision(s) 39481: [Backport #7941]nagachika
* configure.in (unexpand_shvar): Use the numeric comparison operator instead of '==' which is a ksh extention. [Bug #7941] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39475: [Backport #7868]nagachika
* ext/date/date_core.c: [ruby-core:52303] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39466,39470: [Backport #7935]nagachika
* random.c (rb_random_ulong_limited): limit is inclusive, but generic rand method should return a number less than it, so increase for the difference. [ruby-core:52779] [Bug #7935] * test/ruby/test_array.rb (test_sample_random): remove adjustment for the bug fixed by r39466. [ruby-core:52779] [Bug #7935] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39376: [Backport #7903]nagachika
* random.c (rb_random_ulong_limited): fix error message for negative value. [ruby-dev:47061] [Bug #7903] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39461:nagachika
* thread.c: Document ThreadGroup::Default git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39451: [Backport #7925]nagachika
* vm_insnhelper.c (vm_call_method): block level control frame does not have method entry, so obtain the method entry from method top-level control frame to be compared with refined method entry. [ruby-core:52750] [Bug #7925] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39445,39447:nagachika
* signal.c (sigsegv): suppress unused result warning. Because write(2) is marked __warn_unused_result__ on Linux glibc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39444,39446: [Backport #7922]nagachika
* compile.c (iseq_set_arguments): no keyword check if any keyword rest argument exists, even unnamed. [ruby-core:52744] [Bug #7922] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39431:nagachika
test_backtrace.rb: test Thread#backtrace_locations with range git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39425:nagachika
merger.rb: runnable * tool/merger.rb: make runnable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39424:nagachika
merger.rb: suppress warnings * tool/merger.rb (version_up, tag, default_merge_branch): suppress syntax warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39418:nagachika
* array.c: Document #<=> return values and formatting * bignum.c: ditto * file.c: ditto * object.c: ditto * numeric.c: ditto * rational.c: ditto * string.c: ditto * time.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39417: [Backport #7904]nagachika
test_process.rb: fix test * test/ruby/test_process.rb (assert_fail_too_long_path): get rid of syntax error on sh, increase command line size until it exceeds the limit. [Bug #7904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39415:nagachika
* array.c (rb_ary_diff, rb_ary_and, rb_ary_or): Document return order [RubySpec #7803] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39414:nagachika
* object.c (rb_obj_comp): Documenting Object#<=> return values Patch by Stefan Rusterholz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39413: [Backport #7911]nagachika
* dir.c (file_s_fnmatch, fnmatch_brace): encoding-incompatible pattern and string do not match, instead of exception. [ruby-dev:47069] [Bug #7911] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39372,39383: [Backport #7912]nagachika
* test/test_rbconfig.rb (TestRbConfig): skip user defined values by configuration options. [Bug #7902] * test/test_rbconfig.rb (TestRbConfig): fix r39372. It must see RbConfig::CONFIG instead of CONFIG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39388:nagachika
* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit): fix a typo in comment in r39384. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39375:nagachika
test_process.rb: fix parameters * test/ruby/test_process.rb (test_{,a}spawn_too_long_path): fix missing parameters in r38934. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39369:nagachika
* numeric.c: Examples and formatting for Numeric and Float Based on a patch by Zach Morek and Oren K of newhaven.rb [Github documenting-ruby/ruby#5] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39365:nagachika
* doc/globals.rdoc: Document what setting $DEBUG does. * doc/globals.rdoc: Added pointer to $-d for full documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39364:nagachika
* doc/globals.rdoc: Document what setting $VERBOSE does. [Bug #7899] * doc/globals.rdoc: Added pointer to $-w and $-v for full documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39359:nagachika
Add test for [Backport #7896] [ruby-core:52607] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39354,39356,39382: [Backport #5014]nagachika
* signal.c (sigsegv): avoid to use async signal unsafe functions when nested sigsegv is happen. [Bug #5014] [ruby-dev:44082] * signal.c (check_stack_overflow): extract duplicated code and get rid of declaration-after-statement. [Bug #5014] * signal.c (ruby_abort): fix typo in r39354 [Bug #5014] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39353: [Backport #8057]nagachika
* file.c (rb_group_member): added an error check. SUS says, getgroups(small_value) may return EINVAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39352,39360:nagachika
* file.c (RB_MAX_GROUPS): moved to * internal.h (RB_MAX_GROUPS): here. * file.c (rb_group_member): use RB_MAX_GROUPS instead of RUBY_GROUP_MAX. They are the same. * process.c (RB_MAX_GROUPS): moved to git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-09merge revision(s) 39351:nagachika
* file.c (access_internal): removed. * file.c (rb_file_readable_real): use access() instead of access_internal(). * file.c (rb_file_writable_real): ditto. * file.c (rb_file_executable_real): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-06merge revision(s) 39297: [Backport #8032]nagachika
mkconfig.rb: clear exec_prefix * tool/mkconfig.rb: clear exec_prefix which may differ from prefix, before expanding rubyarchdir to remove prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-04merge revision(s) 39358:nagachika
* tool/merger.rb: add interaction when only ChangeLog is modified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-04merge revision(s) 39349,39374: [Backport #7886]nagachika
* file.c (rb_group_member): get rid of NGROUPS dependency. [Bug #7886] [ruby-core:52537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-04merge revision(s) 39329: [Backport #8011]nagachika
enumerator.c: suppress warnings * enumerator.c (lazy_zip_arrays_func, lazy_zip_func, lazy_take_func), (lazy_drop_func, lazy_drop_while_func): suppress uninitialized instance vriable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e