summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-12-26* configure.in: enable -fPIE when checking -pie for fixingkosaki
OpenBSD build error. Patch by George Koehler. Thank you! [Bug #7606] [ruby-core:51082] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-26Add opts to prevent generating core filenaruse
Given path is a dummy executable file to set as $0, not to read its content. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25string.c: empty string is not invalidnobu
* string.c (rb_enc_cr_str_copy_for_substr): empty string is always valid or 7bit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25string.c: reduce duplicated codenobu
* string.c (rb_str_enumerate_lines, rb_str_chop): reduce duplicated code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25string.c: GC guardnobu
* string.c (rb_str_enumerate_chars): prevent shared copy from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25test_rubyoptions.rb: ARGFnobu
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): to read ARGV files is ARGF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25Fix argument for assert_in_out_err to fix test failurenaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25 * lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level= keiju
[Bug #6301] and fix irb command option: -- irb_debug_level for irb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* 2012-12-26svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25 * lib/irb/ruby-lex.rb: improve RubyLex performance for large fileskeiju
[Bug #5202]. Patch by ryanmelt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25 * lib/irb/output-method.rb: raise right exception whenkeiju
IRB::OutputMethod#print don't defined [Bug #6657]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* vm_trace.c (rb_threadptr_exec_event_hooks_and_pop_frame):ko1
pop a frame before JUMP_TAG() if exception occurred. This change fix bug of Ruby 1.9. [ruby-core:51128] [ruby-trunk - Bug #7624] * vm_core.h (EXEC_EVENT_HOOK_AND_POP_FRAME): add to use `rb_threadptr_exec_event_hooks_and_pop_frame()'. * vm.c (vm_exec): use EXEC_EVENT_HOOK_AND_POP_FRAME() while exception handling. While exception hadnling, if an exception is raised in hooks, need to pop current frame and raise this raised exception by hook. * test/ruby/test_settracefunc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25 * lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:keiju
raise exception when illegal RC_NAME_GENARATOR defined [Bug #6455]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25 * lib/irb/workspace.rb: define method to private on top-level irbkeiju
[Bug #5776]. Patch by davidbalbert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* ChangeLog: revert a part of r38595. 'iff' means 'if and only if', not typo.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* bignum.c, include/ruby/intern.h (rb_big_eql): exported.usa
* thread.c (recursive_check): object_id maybe a Bignum, not Fixnum on LLP64. see also r38493 and r38548. reported by Heesob Park at [ruby-core:51083] [Bug #7607], and patched by shirosaki at [ruby-core:51095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* vm_core.h, eval_intern.h (CHECK_STACK_OVERFLOW): moveko1
CHECK_STACK_OVERFLOW() to vm_core.h and rename to CHECK_VM_STACK_OVERFLOW(). This change is only move and rename. * tool/instruction.rb: catch up above changes. * vm.c, vm_insnhelper.c: ditto. * vm_insnhelper.c (vm_stackoverflow): add a function to unify raising vm stackoverflow exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25Add test for r38543 [Bug #7597] [ruby-dev:46786]naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25* vm_core.h (RUBY_VM_THREAD_VM_STACK_SIZE): change defaultko1
VM stack size (128 KB or 256 KB -> 512 KB or 1024 KB). This re-sizing corrects smaller value introduced at r38478. Newer value is same VM stack size of Ruby 1.9. [ruby-dev:46797] [ruby-trunk - Bug #7603] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25add empty line for style.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25error.c: rb_write_error_strnobu
* error.c (compile_err_append, compile_warn_print, warn_print): use rb_write_error_str() instead of writing to rb_stderr directly. * io.c (rb_write_error_str): a stopgap measure not to unblock GVL. warning from require seems to still have race condition errors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25Fix test to avoid failure from the order of Dir.foreachnaruse
The order of Dir.foreach, which is internally used in Pathname), is not stable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-25scoped constant op-assignmentnobu
* test/ripper/test_parser_events.rb (test_opassign): allow scoped constant op-assignment. [ruby-core:40154] [Bug #5449] * test/ripper/test_parser_events.rb (test_opassign_error): backref opassign is only error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24scoped constant op-assignmentnobu
* test/ripper/test_parser_events.rb (test_opassign_error): allow scoped constant op-assignment. [ruby-core:40154] [Bug #5449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24scoped constant op-assignmentnobu
* node.h (NODE_OP_CDECL), compile.c (iseq_compile_each), parse.y (stmt, arg): allow scoped constant op-assignment. [ruby-core:40154] [Bug #5449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24error.c: NameError::message _dumpnobu
* error.c (name_err_mesg_dump): adapt argument number. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24* 2012-12-25svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24error.c: VALUE to messagesnobu
* error.c (name_err_mesg_to_str, syserr_initialize): use VALUE to format messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-24test_argf.rb: duplicated testnobu
* test/ruby/test_argf.rb (TestArgf#test_lines): remove duplicated test whose content is test_bytes actually. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* error.c (rb_compile_error_append): fix typo.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* 2012-12-24svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* lib/net/http/generic_request.rb (Net::HTTPGenericRequest):naruse
set content-length to zero on empty post requests by Gregory Ostermayr <gregory.ostermayr@gmail.com> https://github.com/ruby/ruby/pull/201 fix GH-201 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* thread.c: rename methods:ko1
from Thread.async_interrupt_timing to Thread.handle_interrupt, from Thread.async_interrupted? to Thread.pending_interrupt?. Also rename option from `defer' to `never'. [ruby-core:51074] [ruby-trunk - Feature #6762] * vm_core.c, thread.c: rename functions and data structure `async_errinfo' to `pending_interrupt'. * thread.c: add global variables sym_immediate, sym_on_blocking and sym_never. * cont.c, process.c, vm.c, signal.c: ditto. * lib/sync.rb, lib/thread.rb: catch up this renaming. * test/ruby/test_thread.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23profiler.rb: concurrent-executionnobu
* lib/profiler.rb (Profiler__::PROFILE_PROC, print_profile): store profile data per threads for concurrent-execution. [ruby-core:22046] [Bug #1152] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23profiler.rb: Wrapper for BasicObjectnobu
* lib/profiler.rb (Profiler__::Wrapper): support calling singleton methods of an instance of BasicObject. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23profiler.rb: TracePointnobu
* lib/profiler.rb (Profiler__::PROFILE_PROC): use TracePoint. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* lib/erb.rb: typos for ERB::new linkzzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>zzak
[ruby-core:51084] [Bug #7608] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23goruby.c: IRB at endnobu
* goruby.c (goruby_options): start IRB after goruby initialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* lib/irb/ruby-lex.rb: Add handling for %i and %I quoting to irbzzak
Patch by flori [ruby-core:49550] [Bug #7392] [Github Issue #157] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23zlib.c: function namenobu
* ext/zlib/zlib.c (rb_gzreader_lines): fix function name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23marshal.c: rb_check_funcall_with_hooknobu
* vm_eval.c (rb_check_funcall_with_hook): rb_check_funcall with hook which is called before calling method_missing or target method. * marshal.c (w_object, r_object0): use rb_check_funcall_with_hook instead of respond_to? and call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23* re.c (rb_reg_eqq): doc: #=== is not a synonym for #=~, added examplezzak
[ruby-dev:46746] [Bug #7571] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23marshal.c: use RB_TYPE_Pnobu
* marshal.c (r_entry0): use RB_TYPE_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23thread.c: ignore result of blocking_region_beginnobu
* thread.c (BLOCKING_REGION): if fail_if_interrupted is false ignore the result of blocking_region_begin(), since it always is true in that case. suppress "uninitialized" warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-23 * lib/rubygems/commands/check_command.rb: Added --doctor and --dry-rundrbrain
options to clean up after failed uninstallation. * test/rubygems/test_gem_commands_check_command.rb: Test for above. * lib/rubygems/commands/push_command.rb: Allow pushes from RubyGems 2.0.0.preview3 * lib/rubygems/commands/update_command.rb: Use Gem.ruby_version * lib/rubygems/dependency.rb: Update style. * lib/rubygems/installer.rb: Ensure installed gem specifications will be useable. Refactor. * test/rubygems/test_gem_installer.rb: ditto. * lib/rubygems/validator.rb: Fixed bug with unreadable files. * lib/rubygems.rb: Fixed broken methods. * test/rubygems/test_gem.rb: Test for above. * test/rubygems/test_gem_commands_push_command.rb: Fixed overridden Gem.latest_rubygems_version git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22Deprecate #{lines,bytes,chars,codepoints} of IO-likes.knu
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints): Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF. [Feature #6670] * ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars) (strio_codepoints): Deprecate StringIO#{lines,bytes,chars,codepoints}. [Feature #6670] * ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes): Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22common.mk: srcs-extnobu
* common.mk (ext/dl/callback/callback.c): include in srcs-ext for snapshot. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22* lib/optparse.rb: Documentation for OptionParser to remove 'shadowedzzak
outer local variable' from example and make obvious ARGV with non-option arguments. Patch by Marcus Stollsteimer [ruby-core:47460] [Bug #6997] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e