Permalink
Commits on Dec 7, 2009
  1. tags branches/ruby_1_9_1@26040 as v1_9_1_376

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_1_376@26041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 7, 2009
  2. increments RUBY_PATCHLEVEL for the previous commit.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 7, 2009
  3. * 2009-12-07

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Dec 7, 2009
  4. * string.c (rb_str_justify): CVE-2009-4124.

      Fixes a bug reported by 
      Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London;
      Patch by nobu.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 7, 2009
Commits on Dec 5, 2009
  1. * lib/irb/extend-command.rb (IRB::ExtendCommandBundle::def_extend_com…

    …mand):
    
      extension commands with optional parameters have been broken because of
      a spec change of UnboundMethod#arity.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  2. * lib/irb/extend-command.rb (IRB::ExtendCommandBundle::def_extend_com…

    …mand):
    
      gives eval a source location for readability of backtrace.
    
    * lib/irb/extend-command.rb (IRB::ContextExtender::def_extend_command):
      ditto
    
    * lib/irb/extend-command.rb (IRB::MethodExtender::def_pre_proc):
      ditto
    
    * lib/irb/extend-command.rb (IRB::MethodExtender::def_post_proc):
      ditto
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  3. merges r24227 from trunk into ruby_1_9_1.

    --
     * lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  4. merges r24253 from trunk into ruby_1_9_1.

    --
    	* win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
    	  mean to call runtime's open() if textmode.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  5. merges r25092 from trunk into ruby_1_9_1.

    --
    * win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
      replace MSVCRT's access().
      [ruby-core:25761]
    
    * file.c (eaccess): workaround for recent MSVCRT is no longer needed.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  6. merges r25133 from trunk into ruby_1_9_1. c.f. [ruby-dev:39819]

    --
    * win32/wini32.c (LK_ERR): with overlapped I/O, LockFileEx() returns
      ERROR_IO_PENDING if the file is locked.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  7. merges r25883 from trunk into ruby_1_9_1. fixes a backpor task #2168.

    --
    * enc/trans/newline.trans (fun_so_universal_newline): generate \n
      after \r\n detection instead of just after \r.
      [ruby-list:45988] [ruby-core:25881] [ruby-core:26788]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  8. merges r25967, r25968 and r25969 from trunk into ruby_1_9_1. fixes a …

    …backport task #2099.
    
    --
    * parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable level
      for the case of syntax errors in method name or argument inside
      do block.   [ruby-core:26961]
    --
    * parse.y (dyna_push_gen): use rb_node_newnode() for ripper.
      [ruby-core:26961]
    --
    * parse.y (dyna_push_gen, dyna_pop_gen): no needs to save both of
      args and vars.  [ruby-core:26961]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  9. merges r25405 from trunk into ruby_1_9_1. fixes the backport task #2233.

    --
    * parse.y (method_call): dispatch symbols.  a patch from Andy Keep in
      [ruby-core:26169].  [ruby-core:26165]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  10. merges r25404 from trunk into ruby_1_9_1. fixes the backport task #2232.

    --
    * parse.y (mlhs_basic): fixed handling splat in middle of mlhs.  a
      patch from Andy Keep in [ruby-core:26163]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  11. merges r25351 from trunk into ruby_1_9_1. fixes the backport task #2214.

    --
    * parse.y (rb_intern3): check symbol table overflow.
      [ruby-core:26092]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  12. merges r25300 from trunk into ruby_1_9_1.

    --
    * ext/gdbm/gdbm.c (fgdbm_select): fixed rdoc.  a patch from Justin
      Collins in [ruby-core:26050].
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  13. merges r24620 from trunk into ruby_1_9_1. fixes the backport task #1976.

    --
    * lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists.
      [ruby-dev:39153]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  14. merges r25402 from trunk into ruby_1_9_1. fixes the backport task #1921.

    --
    * parse.y (parser_here_document): dispatch delayed heredoc
      contents.  based on a patch from Andy Keep in [ruby-core:24855].
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  15. merges r21903 from trunk into ruby_1_9_1. fixes the backport task #1063.

    --
    	* win32/win32.c (rb_w32_write): limit write size to 32KB if the file
    	  seems to be console.  [ruby-core:21613]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  16. merges r25209 from trunk into ruby_1_9_1.

    --
    * parse.y (bv_decls, bvar): fix for block variables.
      [ruby-dev:39423]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  17. merges r25193 from trunk into ruby_1_9_1.

    --
    * test/ripper/dummyparser.rb (DummyParser): improvement by Magnus
      Holm in [ruby-core:25884].
      * remove scanner events which simply returned the first argument.
      * all parser events are now automatically generated.
      * simplify blocks.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  18. merges r25187 from trunk into ruby_1_9_1.

    --
    * parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
      NODE to track local variable assignment.
    
    * parse.y (lvar_defined_gen, assignable_gen): enable local
      variable check.  [ruby-core:24923]
    
    * parse.y (validate): use value only.
    
    * test/ripper/test_parser_events.rb (test_local_variables): tests
      based on a patch from Magnus Holm in [ruby-core:25885].
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  19. merges r25180 from trunk into ruby_1_9_1.

    --
    * thread.c (ruby_suppress_tracing): get rid of clobbering by
      longjmp.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
  20. merges r25353 and r25362 from trunk into ruby_1_9_1.

    --
    * lib/csv.rb (CSV#read_to_char): set encoding and verify data
      which read from io before encode it to @encoding.
    
    * lib/csv.rb (CSV#raw_encoding): add to get @io's encoding.
    
    * lib/csv.rb (CSV#read_io): add to read string and set @io's
      encoding.
    --
    * lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the io
      doesn't have encoding.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Dec 5, 2009
Commits on Nov 27, 2009
  1. merges r25134 from trunk into ruby_1_9_1.

    --
    * dln.c (aix_loaderror): needs format string.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  2. merges r25127 from trunk into ruby_1_9_1.

    --
    * stringio/stringio.c (strio_read): set ASCII-8BIT encoding
      when length argument is given.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  3. merges r25122 from trunk into ruby_1_9_1.

    --
    * lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspect
      method.  [ruby-core:25804]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  4. merges r25095 from trunk into ruby_1_9_1.

    --
    * iseq.c (compile_string): rename to parse_string(), because
      this function only parse String to NODE.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  5. merges r25067 from trunk into ruby_1_9_1 and added a test for it.

    --
    * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn
      [ruby-core:25740]
    --
    * test/test_mathn.rb (TestMathn): new test case.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  6. merges r25041 from trunk into ruby_1_9_1.

    --
    * eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  7. merges r25029 from trunk into ruby_1_9_1.

    --
    * ext/bigdecimal/lib/bigdecimal/{ludcmp,math}.rb: depend on
      bigdecimal.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  8. merges r25023 from trunk into ruby_1_9_1.

    --
    * tool/instruction.rb (make_insn_operand_optimized): fixed typo.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  9. merges r25017 from trunk into ruby_1_9_1 and a test for it.

    --
    * ossl_config.c (ossl_config_add_value_m, ossl_config_set_section): Check if frozen (or untrusted for $SECURE >= 4) [ruby-core:18377]
    --
    * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  10. merges r25012 from trunk into ruby_1_9_1.

    --
    * lib/cgi/cookie.rb: fixed indent.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009
  11. merges r25010 from trunk into ruby_1_9_1 and adds tests for it.

    --
    * struct.c (rb_struct_equal, rb_struct_eql): Handle comparison of recursive structures [ruby-core:24759]
    
    * range.c (range_eq, range_eql):  ditto for ranges
    --
    test for r25010
    * test/ruby/test_struct.rb (TestStruct#test_comparison_when_recursive):
      new test.
    * test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
      new test.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui committed Nov 27, 2009