summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-14* Fix wrong class name.hsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14* object.c: Improve documentation for Integer conversion.hsbt
[ruby-core:71661][Bug #11736][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14* lib/logger.rb: Improve Logger.new option documentation.hsbt
[Feature #12803][ruby-core:77467] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14optparse.rb: hyphenizenobu
* lib/optparse.rb (make_switch, parse_in_order): unify underscores to hyphens. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14* 2016-10-14svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-14webrick: use monotonic clock for timeoutsnormal
The monotonic clock is immune to system time changes and a better option for implementing timing comparisons. * lib/webrick/utils.rb (TimeoutHandler): use monotonic clock (watch): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13io.c: copy_stream to duplex IOnobu
* io.c (copy_stream_body): use IO to write to copy to duplex IO. http://twitter.com/knu/status/786505317974585344 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13NEWS: [Feature #11818] [ci skip]nobu
* NEWS: add Hash#compact and Hash#compact!. [Feature #11818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13hash.c: add compact and compact! methodsnobu
* hash.c (rb_hash_compact, rb_hash_compact_bang): Removes nil values from the original hash, to port Active Support behavior. [Feature #11818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13unstable sort [ci skip]nobu
* array.c (rb_ary_sort_bang, rb_ary_sort, rb_ary_sort_by_bang): [DOC] describe that sort may not be stable. * enum.c (enum_sort, enum_sort_by): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13Fix tests depending on sort stabilitynobu
* test/rexml/xpath/test_text.rb (test_ancestors): Array#sort may not be stable. [ruby-core:76088] [Bug #12509] * test/rss/test_maker_{0.9,1.0,2.0}.rb (test_items): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-13doc/extension.rdoc: wording fix w.r.t. volatile vs RB_GC_GUARDnormal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12test_array.rb: do not assume stable sortnobu
* test/ruby/test_array.rb (test_sort_bang_with_freeze): make a clone to copy a <=> singleton method, instead of dup. which element will be called is not predictable. [ruby-core:76088] [Bug #12509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12better assertionnobu
* test/rexml/xpath/test_text.rb (test_ancestors): use assert_kind_of for better assertion message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12Fix similar typos [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12Fix typo [ci skip]kazu
Replace "You can defined hooked variables" with "You can define hooked variables" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12fix a typo [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12fix warning: assigned but unused variablekazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12* 2016-10-13svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12do not need to downcase twicekazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12* ruby.c (open_load_file): revert r56385. it introduced incompatibilityusa
about `DATA.binmode?`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12ruby.c: fix macrosnobu
* ruby.c (open_load_file): FILE_ALT_SEPARATOR and EXEEXT are config.status variables, not available in config.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-12* tool/downloader.rb: Removed verification of gem certification.hsbt
Because signed gem is not working on rubygems ecosystem. * tool/gem-unpack.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11Test URI.find_proxy using env argument.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11forgot to replace two occurences of ENV.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11* 2016-10-12svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11`\s` includes `\t`kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11bootstraptest/runner.rb: first line in the sourcenobu
* bootstraptest/runner.rb (pretty): remove empty line at the beginning only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11io.c: fix typonobu
* io.c (prep_io): fix typo of struct member name. [ruby-core:77550] [Bug #12829] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11Add an optional argument, env, to URI.find_proxy.akr
* lib/uri/generic.rb (URI.find_proxy): Add an optional argument, env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11pp prints a multiple lines string prettier.akr
* lib/pp.rb (String#pretty_print): Defined to print a string as multiple lines. [ruby-core:76800] [Feature#12664] proposed by Petr Chalupa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11* 2016-10-11svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-11Ruby 2.4.0 will not have rb_cFixnum and rb_cBignum is removed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10ruby.c: bind fd before waitingnobu
* ruby.c (open_load_file): bind the open fd to an IO instance before waiting FIFO, not to leak the fd if interrupted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10test_require.rb: use assert_separatelynobu
* test/ruby/test_require.rb (test_loading_fifo_threading_raise): use assert_separately. * test/ruby/test_require.rb (test_loading_fifo_threading_success): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10ruby.c: compare with EXEEXTnobu
* ruby.c (open_load_file): compare with EXEEXT instead of hard coded name, and do not match with mere EXEEXT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10ruby.c: open in binary mode to loadnobu
* ruby.c (open_load_file): open in binary mode if available, as parser deals with EOLs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10* 2016-10-10svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-10io.c: reduce isatty on Cygwin [ci skip]nobu
* io.c (prep_io): reduce isatty call (and its system call) on Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-09replace Fixnum with Integer in rdoc [ci skip]nobu
* array.c, class.c: Fixed documentation where Fixnum was referred directly to use Integer, as Fixnum and Bignum are now unified into Integer and direct usage is deprecated. [Fix GH-1459] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-09vm_insnhelper.c: update assertion [ci skip]nobu
* vm_insnhelper.c (callable_class_p): update assertion as callable class may be T_MODULE or I_ICLASS which refines a module since r56213. [Feature #12534] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-09vm_method.c: update assertion [ci skip]nobu
* vm_method.c (prepare_callable_method_entry): update assertion as defined_class may be T_MODULE not only I_ICLASS since r56213. [Feature #12534] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-09* 2016-10-09svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-09vm_core.h: stringify in VM_ASSERTnobu
* vm_core.h (VM_ASSERT): stringify expr here before expansion in RUBY_ASSERT_WHEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-08memory_status.c: Win32 APInobu
* ext/-test-/memory_status/memory_status.c (read_status): use Win32 GetProcessMemoryInfo API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-08memory_status.c: system callnobu
* ext/-test-/memory_status/memory_status.c: get memory sizes by mach task_info system call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-08* 2016-10-08svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-08logger: fix monthly log rotate with DSTnobu
* lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log rotate when DST is applied during a month of 31 days. [Fix GH-1458] With DST the month of october can actually last more than 31 days. It can last 31 days plus 1 hour. So during october, `t` used to be equal to "2016-10-31 23:00:00" instead of "2016-11-01 00:00:00". This was then normalized to "2016-10-01 00:00:00" which lead every single line of log during october to rotate the log file. This fix ensure that next_rotate_time(now, 'monthly') always return the first day of next month in every situation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-07gc.c: fix GC_PROFILE_DETAIL_MEMORYnobu
* gc.c (gc_prof_setup_new_record): fix the condition to get rusage. * gc.c (gc_profile_dump_major_reason): remove undefined flags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-07ext/win32ole/*.c, ext/win32ole/win32ole.h: use RB_INT2FIX instead ofsuke
INT2FIX, and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e