aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * enc/unicode/case-folding.rb, casefold.h: Used only first elementduerst2016-02-163-13/+20
| | | | | | | | (rather than all) of target in CaseUnfold_11 array. (with Kimihito Matsui) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* numeric.c: fix segfaultnobu2016-02-163-1/+16
| | | | | | | * numeric.c (compare_with_zero): fix variable name, rb_cmperr requires VALUEs but not an ID. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dir.c: Dir.empty?nobu2016-02-164-0/+109
| | | | | | | * dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the argument is the name of an empty directory. [Feature #10121] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: drive letter in without_destdirnobu2016-02-162-1/+7
| | | | | | | | | * tool/rbinstall.rb (without_destdir): just strip a drive letter which is prepended by with_destdir. pointed out by @DavidEGrayson. https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_plus): simply use LONG2NUM() instead of wronglynaruse2016-02-153-13/+15
| | | | | | | | complex overflow case. * insns.def (opt_sub): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: drive letter in without_destdirnobu2016-02-152-2/+9
| | | | | | | | | * tool/rbinstall.rb (without_destdir): compare with the destdir after stripping a drive letter, on dosish platforms. pointed out by @DavidEGrayson. https://github.com/ruby/ruby/commit/d0cf23b#commitcomment-16100407 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-16svn2016-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: short circuit by resultnobu2016-02-151-0/+1
| | | | | | | | * parse.y (parse_ident): short circuit by result, as only tIDENTIFIER can be a local variable, but tFID and tCONSTANT not. fix up r53834. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: kwarg to method with same name variablenobu2016-02-153-1/+14
| | | | | | | | * parse.y (parse_ident): allow keyword arguments just after a method where the same name local variable is defined. [ruby-core:73816] [Bug#12073] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: simplify local ID conditionnobu2016-02-151-6/+9
| | | | | | | | * parse.y (tokenize_ident, parse_ident): ident in tokenize_ident() can be a local id only when called from parse_ident(), but never from parse_gvar() and parse_atmark(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/unicode/case-folding.rb: Added debugging optionduerst2016-02-152-3/+21
| | | | | | | (with Kimihito Matsui) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: micro optimizationnobu2016-02-152-3/+4
| | | | | | | | * bignum.c (rb_big_uminus, bigsub_int): use BIGNUM_NEGATE. * internal.h (BIGNUM_NEGATE): simplify negation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use particlar macrosnobu2016-02-151-9/+9
| | | | | | * bignum.c: use particlar macros for positive/negative conditions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/resolv.rb: invert the conditionnobu2016-02-151-3/+4
| | | | | | | * ext/win32/lib/win32/resolv.rb: invert the condition to return immediately in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/resolv.rb: check pointer sizenobu2016-02-151-5/+7
| | | | | | | * ext/win32/lib/win32/resolv.rb: check pointer size first, NT if it is larger than 4 as Windows 9X are 32-bit mode only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid ruby-mode.el bugnobu2016-02-152-2/+2
| | | | | | | * ext/win32/lib/win32/{resolv,resolv9x}.rb: get rid of ruby-mode.el of Emacs 24. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-15svn2016-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* split win32/resolv9x.rbnobu2016-02-152-257/+259
| | | | | | | * ext/win32/lib/win32/resolv9x.rb: split code for Windows 9x from resolv.rb. now it is rarely used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_cgi_util.rb: test_cgi_unescapeHTML_invalidnobu2016-02-141-0/+4
| | | | | | | * test/cgi/test_cgi_util.rb (test_cgi_unescapeHTML_invalid): test for invalid escaped HTML, borrowed from rubyspec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_exception.rb: fix commit missnobu2016-02-141-3/+0
| | | | | | | * test/ruby/test_exception.rb: remove duplicate method. fix commit miss at r53819. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: Do not modify caller stringsnobu2016-02-142-3/+9
| | | | | | | | * lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to be modified, in append_{cpp,c,ld}flags respectively. [Fix GH-1246] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-14svn2016-02-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* not overwrite causenobu2016-02-143-6/+72
| | | | | | | * eval.c (setup_exception): set the cause only if it is explicitly given or not set yet. [Bug #12068] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_invert): [DOC] more examples.akr2016-02-132-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* CIDR in no_proxynobu2016-02-133-3/+25
| | | | | | | * lib/uri/generic.rb (URI::Generic#find_proxy): support CIDR in no_proxy. [ruby-core:73769] [Feature#12062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* no_proxy with whitespaces and leading dotsnobu2016-02-133-1/+11
| | | | | | | | | | | | | | | | | * lib/uri/generic.rb (find_proxy): exclude white-spaces and allow for a leading dot in the domain name in no_proxy. [ruby-core:54542] [Feature #8317] The previous implementation wouldn't allow for white-spaces nor a leading dot in the domain name. The latter is described in the wget documentation as a valid case. By being more strict on the characters, which are counted to a domainname, we allow for white-spaces. Also, a possible leading dot will be handled gracefully. [Fix GH-285] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/uri/test_generic.rb: split test_find_proxynobu2016-02-131-5/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-13svn2016-02-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* domainname no_proxy assertionsnobu2016-02-131-0/+4
| | | | | | | * test/uri/test_generic.rb (test_find_proxy): assertions for no_proxy of domainname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* drbtest.rb: make command an arraynobu2016-02-121-4/+3
| | | | | | | * test/drb/drbtest.rb (DRbService): make @@ruby an array to be consistent with r35424. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* error.c: fix doc [ci skip]nobu2016-02-122-2/+8
| | | | | | | | * error.c (name_err_initialize, nometh_err_initialize): [DOC] fix argument positions. optional parameters except for the message are placed at the last. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* net/ftp.rb: NullSocket#closed?nobu2016-02-123-0/+17
| | | | | | | * net/ftp.rb: add NullSocket#closed? to fix closing not opened connection. [Fix GH-1232] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-12svn2016-02-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update re.c [ci skip]nobu2016-02-122-1/+6
| | | | | | | * re.c (rb_reg_initialize_m): [DOC] fix missing right bracket. [Fix GH-1243] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix universal binarynobu2016-02-112-7/+42
| | | | | | | | * configure.in (RUBY_CHECK_SIZEOF, RUBY_DEFINT): fix for types which are conditionally available depending on architectures when universal binary, e.g., __int128. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: use quadrigraphsnobu2016-02-111-1/+1
| | | | | | | * configure.in (RUBY_DEFINT): use quadrigraphs instead of bare hash signs not to comment out closing parenthesis. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_DEFINT): use Parameter Expansion.naruse2016-02-102-15/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix r53801: the argument should remove UNSIGNEDnaruse2016-02-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-11svn2016-02-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (int128_t): don't check HAVE_XXX (for examplenaruse2016-02-102-7/+7
| | | | | | | | HAVE___INT128) because RUBY_CHECK_SIZEOF() don't define it for config.h and use of $ac_cv_sizeof___int128 alternates the check. (and don't need to define because users shouldn't know that) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: remove unnecessary qualifiernobu2016-02-101-0/+20
| | | | | | | * configure.in (RUBY_DEFINT): remove unnecessary unsigned qualifier from preprocessing symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ARFLAGS needs a spacenobu2016-02-101-1/+1
| | | | | | | | * configure.in (ARFLAGS): needs a trailing space to separate from the target library name, whereas VC linker flag must not separate from its argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: unique namesnobu2016-02-101-4/+15
| | | | | | | * configure.in (RUBY_CHECK_SIZEOF): make variable names unique with rbcv_sizeof_ prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check ar D flagnobu2016-02-103-1/+12
| | | | | | | * configure.in (ARFLAGS): check if deterministic mode flag is effective, which is on by default on Ubuntu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-02-10svn2016-02-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add example for Method#parameters from [ruby-core:19759]naruse2016-02-091-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: fixup r53791nobu2016-02-091-1/+0
| | | | | | | * ruby.c (DEFAULT_FEATURES): debug features are no longer set since r53791. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (dump_option): fix a typo.kazu2016-02-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: available list from enumnobu2016-02-091-2/+8
| | | | | | | * ruby.c (feature_option, debug_option, dump_option): build available list in warning messages from enum lists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: EACH_DUMPSnobu2016-02-091-18/+14
| | | | | | * ruby.c (EACH_DUMPS): define the list of dumping feature names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e