Commits on Mar 26, 2012
  1. Make rb_range_beg_len handle index past end of length when range is n…

    …ot exclusive
    
    This handles an edge case in Array#values_at:
    
    [0,1,2,3,4,5].values_at 4..5
    [0,1,2,3,4,5].values_at 4..6
    [0,1,2,3,4,5].values_at 4..7
    
    Previously, the second and third case would include a nil
    at the end of the array.
    
    It is important to note that this change is only triggered
    when the err parameter is set to 0 or 2, since there are
    cases (i.e. Array#fill) where we do not want to adjust the
    range.
    committed Mar 26, 2012
Commits on Mar 25, 2012
  1. @nurse

    * string.c (tr_setup_table): fix multiple non latin argument for

      non latin (over 256 characters) tr-like methods.
      [ruby-core:43371] [Bug #6167]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 25, 2012
Commits on Mar 24, 2012
  1. @shugo

    * enumerator (lazy_initialize): set the instance variable "receiver"

      to include the receiver to the return value of inspect on a lazy
      enumerator directly created by Enumerator::Lazy.new.
    
    * enumerator (RETURN_LAZY): don't set the instance variable "receiver".
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    shugo committed Mar 24, 2012
  2. * 2012-03-25

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 24, 2012
  3. @shugo

    * enumerator (enumerator_inspect): include the original receiver and

      method name of Enumerator::Lazy in the result of inspect.
      [ruby-core:43345] [Bug #6159]
    
    * enumerator (InitVM_Enumerator): don't use rb_define_alias for
      some methods such as collect in order to make rb_frame_this_func()
      return the correct method names.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    shugo committed Mar 24, 2012
  4. * 2012-03-24

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 24, 2012
  5. @nobu

    * time.c (time_init_1): Time.new will accept seconds as string or

      int.  [ruby-core:43569][Bug #6193]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 24, 2012
Commits on Mar 23, 2012
  1. transcode.c (documentation for str_encode): Explain

      that transcoding to the same encoding is a no-op
      (i.e. no exceptions, no replacements,...).
      [ruby-core:43557][Bug #6190]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Mar 23, 2012
  2. @nobu

    * bignum.c (rb_str_to_inum): must be ASCII compatible encoding as

      well as String#hex and String#oct.  [ruby-core:43566][Bug #6192]
    * string.c (rb_must_asciicompat): check if ASCII compatible.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 23, 2012
  3. @nobu

    * test/ruby/test_io.rb (try_fdopen): more GCable.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 23, 2012
  4. @nobu

    * file.c (rb_file_s_basename): rb_enc_asciicompat() evaluates the arg…

    …ument multiple times.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 23, 2012
  5. @nurse

    Refix Bug #6094: use unsigned long integer literal.

    * ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
      [Bug #6094]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 23, 2012
  6. @nurse

    Revert "* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument ty…

    …pe."
    
    This reverts commit r35102.
    It breaks tests on FreeBSD.
    
      6) Failure:
    test_new_with_exponent(OpenSSL::TestPKeyRSA)
    [/usr/home/chkbuild/build/ruby-trunk/20120323T010301Z/ruby/test/openssl/test_pkey_rsa.rb:59]:
    <3> expected but was
    <12884901891>.
    
      7) Failure:
    test_new_exponent_default(OpenSSL::TestPKeyRSA)
    [/usr/home/chkbuild/build/ruby-trunk/20120323T010301Z/ruby/test/openssl/test_pkey_rsa.rb:52]:
    <65537> expected but was
    <281479271743489>.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 23, 2012
  7. @nobu

    * configure.in (Makefile): get rid of confliction with -j.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 23, 2012
Commits on Mar 22, 2012
  1. * 2012-03-23

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 22, 2012
  2. @nurse

    Revert "* configure.in (Makefile): get rid of confliction with -j."

    This reverts commit r35104 because it breaks build on FreeBSD.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 22, 2012
  3. @nobu

    * transcode.c (str_encode_bang, encoded_dup): if nothing was

      transcoded, just set encoding but leave coderange unchanged as
      forcee_encoding.  [ruby-core:43557][Bug #6190]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  4. @shirosaki

    * io.c (static int io_fflush): add the definition.

      Use it in set_binary_mode_with_seek_cur().
    
    * io.c (set_binary_mode_with_seek_cur): refactoring to split the
      content into io_unread(). Fix the possibility of buffer overflow.
    
    * io.c (io_unread): add new implementation for Windows. Previous one
      caused invalid cursor position using IO#pos with OS text mode. New
      one fixes the bug.
    
    * test/ruby/test_io_m17n.rb
      (TestIO_M17N#test_pos_dont_move_cursor_position): add a test for
      above bug.
      [ruby-core:43497] [Bug #6179]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    shirosaki committed Mar 22, 2012
  5. @nobu

    * include/ruby/win32.h (fstati64): fix macro conflicts.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  6. @nobu

    * win32/win32.c (rb_w32_fstat, rb_w32_fstati64): convert FILETIME

      to time_t directly, not to be affected by TZ unnecessarily.
    * win32/win32.c (unixtime_to_filetime): convert time_t to FILETIME
      simply.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  7. @nobu

    * test/ruby/test_m17n.rb (test_env): show failed values.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  8. @nobu

    * regint.h (BITS_IN_ROOM, BS_ROOM, BS_BIT): suppress warnings.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  9. @nobu

    * configure.in (Makefile): add missing test.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  10. @nobu

    * configure.in (Makefile): check with svn info, since svn 1.7 doesn't

      have .svn under descendent directories.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  11. @nobu

    * configure.in (Makefile): get rid of confliction with -j.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  12. @nobu

    TRY_LINK needs EXEEXT

    * lib/mkmf.rb (TRY_LINK): need EXEEXT for cross-compiling.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  13. @nobu

    * ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.

      [Bug #6094]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  14. @nobu

    workaround for mingw

    * lib/mkmf.rb (try_link0, try_compile, try_cpp): check if the target
      file get created actually.  workaround for the case that the exit
      status of a cygwin program seems lost on mingw.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  15. @nobu

    remove conftest files

    * lib/mkmf.rb (try_constant): remove conftest files.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 22, 2012
  16. * 2012-03-22

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 22, 2012
  17. @unak

    * test/ruby/test_io.rb (TestIO#test_pos_with_getc): updated.

      see [ruby-core:43550]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Mar 22, 2012
Commits on Mar 21, 2012
  1. @nurse

    * regcomp.c: Merge Onigmo 3d855b30d574536d3ae600260208c6624ae4791c.

      [Bug#6143] [Bug#6144] [Bug#6145]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 21, 2012
  2. * 2012-03-21

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 21, 2012
  3. @unak

    * test/ruby/test_io.rb (TestIO#test_pos_with_getc): added.

      see [Bug #6179][ruby-core:43518]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Mar 21, 2012