Permalink
Switch branches/tags
Commits on Dec 12, 2016
  1. string.c: fix method name in rdoc [ci skip]

    nobu committed Dec 12, 2016
    * string.c (rb_str_equal): [DOC] fix fallback method name. the
      peer's == method will be used, not ===.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. test for Symbol#match? [Feature #12898]

    nobu committed Dec 12, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. test_m17n.rb: escape

    nobu committed Dec 12, 2016
    * test/ruby/test_m17n.rb (test_regexp_ascii_none): escape regexp
      meta characters.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. String#match? and Symbol#match?

    nobu committed Dec 12, 2016
    * string.c (rb_str_match_m_p): inverse of Regexp#match?.  based on
      the patch by Herwin Weststrate <herwin@snt.utwente.nl>.
      [Fix GH-1483] [Feature #12898]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. * 2016-12-12

    matzbot committed Dec 12, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. re.c: char boundary

    nobu committed Dec 12, 2016
    * re.c (rb_reg_match_m_p): consider char boundary.  rb_str_subpos
      does not adjust to the boundary if len == 0.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 11, 2016
  1. parse.y: zero codepoints

    nobu committed Dec 11, 2016
    * parse.y (parser_tokadd_utf8): relax restriction to allow zero or
      more codepoints.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. fix Zlib.gzip/gunzip document

    nurse committed Dec 11, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 10, 2016
  1. Updated documentation examples for Hash#value?

    nurse committed Dec 10, 2016
    The same code is used for has_value? and value?, but according to
    http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/43765
    has_value is deprecated. Use the non-deprecated syntax in the examples.
    by Herwin Weststrate <herwin@snt.utwente.nl>
    fix ruby#1491
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. Add missing :nodoc: comment

    nurse committed Dec 10, 2016
    We were missing a `:nodoc:` magic comment that was making automated tools show
    that this method was missing documentation, when it really didn't need to be
    documented.
    by Devon Estes <devon.c.estes@gmail.com>
    ruby#1482 fix GH-1482
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. * 2016-12-11

    matzbot committed Dec 10, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. Merge Onigmo 6.0.0

    nurse committed Dec 10, 2016
    * https://github.com/k-takata/Onigmo/blob/Onigmo-6.0.0/HISTORY
    * fix for ruby 2.4: k-takata/Onigmo#78
    * suppress warning: k-takata/Onigmo#79
    * include/ruby/oniguruma.h: include onigmo.h.
    * template/encdb.h.tmpl: ignore duplicated definition of EUC-CN in
      enc/euc_kr.c. It is defined in enc/gb2313.c with CRuby macro.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. bigdecimal: version 1.3.0.pre.2

    mrkn committed Dec 10, 2016
    Import bigdecimal version 1.3.0.pre.2.  The full commit log is here:
    
      ruby/bigdecimal@v1.3.0.pre...v1.3.0.pre.2
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. stringio.c: chomp CR

    nobu committed Dec 10, 2016
    * ext/stringio/stringio.c (strio_getline): chomp CR not only LF,
      as well as String#chomp.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. zlib.c: replace with substring

    nobu committed Dec 10, 2016
    * ext/zlib/zlib.c (zstream_discard_input): replace with unread
      portion substring, not modifying the input buffer directly.
      [ruby-core:78567] [Bug #13021]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  8. openssl: import v2.0.1

    rhenium committed Dec 10, 2016
    Import Ruby/OpenSSL 2.0.1. The full commit history since 2.0.0 (imported
    at r56946) can be found at:
    
      ruby/openssl@v2.0.0...v2.0.1
    
    This release contains only bug fixes. Note, the first two commits since
    v2.0.0 are already imported at r56953 to make Travis and RubyCI green.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  9. bigdecimal: import version 1.3.0.pre

    mrkn committed Dec 10, 2016
    Import bigdecimal version 1.3.0.pre.  The full commit log of this
    changes can be found at:
    
        ruby/bigdecimal@5c43a9e...v1.3.0.pre
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  10. Fix grammer [ci skip]

    nobu committed Dec 10, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  11. internal.h: change the default rounding mode to half-up

    mrkn committed Dec 10, 2016
    * internal.h (ROUND_DEFAULT): changed to RUBY_NUM_ROUND_HALF_UP.
      [Bug #12958] [ruby-core:78204]
    
    * test/ruby/test_integer.rb: fix assertions for the above change.
    
    * test/ruby/test_rational.rb: ditto.
    
    * test/test_mathn.rb: ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  12. Fix document of gunzip and gzip [ci skip]

    znz committed Dec 10, 2016
    - fix a typo (`GzipReadr` -> `GzipReader`)
    - `Zlib::GzipReader.new` does not take block
    - fix encoding
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 9, 2016
  1. * 2016-12-10

    matzbot committed Dec 9, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. Zlib.gzip and Zlib.gunzip [Feature #13020]

    nurse committed Dec 9, 2016
    Encode and Decode gzip data without creating files.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. Suppress warning: this use of "defined" may not be portable

    nurse committed Dec 9, 2016
    Use of defined() in macro expansion is considered non portable.
    https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01577.html
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. ruby.h: add prefix

    nobu committed Dec 9, 2016
    * include/ruby/ruby.h (RB_TEST, RB_NIL_P): prefix RB to get rid of
      name conflicts with other headers.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. Adjust indent [ci skip]

    nobu committed Dec 9, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. * 2016-12-09

    matzbot committed Dec 9, 2016
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. remove core#hash_merge_ary

    nobu committed Dec 9, 2016
    * compile.c (compile_array_): remove m_core_hash_merge_ary which
      seems unreachable, and wrong number of arguments.
    
    * vm.c (m_core_hash_merge_ary): removed because it is never used.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 8, 2016
  1. compile.c: static_literal_value

    nobu committed Dec 8, 2016
    * compile.c (static_literal_value): separate getter from predicate
      function.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. extension.rdoc: add ANYARGS to method definitions

    znz committed Dec 8, 2016
    * doc/extension.rdoc (rb_define_method, rb_define_singleton_method,
      rb_define_private_method, rb_define_protected_method,
      rb_define_module_function, rb_define_global_function): set ANYARGS
      as arguments to their underlying functions.
    
    [ci skip]
    Patch by: Dmitry Gritsay <unseductable@gmail.com>
    [Fix GH-1473]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. ruby-lex.rb: fix for label

    nobu committed Dec 8, 2016
    * lib/irb/ruby-lex.rb (identify_identifier): treat identifier just
      followed by a colon as a lable.  this is not a precise solution
      but enough for the time being.  [ruby-core:78526] [Bug #13012]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. test/unit.rb: fix -n option

    nobu committed Dec 8, 2016
    * test/lib/test/unit.rb (non_options): turn name patterns into
      Regexps.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. compile.c: optimize literal nodes

    nobu committed Dec 8, 2016
    * compile.c (static_literal_node_p): optimize literal nodes for
      true, false, and nil, which are static literals in specific
      nodes but not in NODE_LIT.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. vm.c: check type of hash to merge

    nobu committed Dec 8, 2016
    * vm.c (core_hash_merge): check the type of the target hash to
      merge.  [ruby-core:78536] [Bug #13015]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. vm_insnhelper.c: zsuper in refinements

    nobu committed Dec 8, 2016
    * vm_insnhelper.c (vm_call_zsuper): prevent infinite recursion
      zsuper in refinements.  [ruby-core:77161] [Bug #12729]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  8. parse.y: ripper generic input

    nobu committed Dec 8, 2016
    * parse.y (ripper_initialize): allow generic input as source, if
      it has #gets method.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e