aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * NEWS: Be more precise about singleton_class.ancestors changemarcandre2013-03-301-1/+2
| | | | | | [Feature #8035] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/file.c (code_page): use cp1252 instead of cp20127 as US-ASCII.usa2013-03-292-3/+9
| | | | | | | | fix [ruby-core:53079] [Bug #7996] reported and patched by mmeltner (Michael Meltner). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-30svn2013-03-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (wrename): use MoveFileExW instead of MoveFileW,usa2013-03-292-10/+9
| | | | | | | | | | because the latter fails on cross device file move of some environments. fix [ruby-core:53492] [Bug #8109] reported by mitchellh (Mitchell Hashimoto) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread.c: Mutex#synchronize no block paramsnobu2013-03-293-1/+12
| | | | | | | | * thread.c (rb_mutex_synchronize_m): yield no block params. patch by splattael (Peter Suschlik) in [ruby-core:53773] [Bug #8097]. fix GH-266. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: configurationsnobu2013-03-291-0/+1
| | | | | | * win32/Makefile.sub (prog): needs to update configurations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compliant is an adjectivekazu2013-03-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: get rid of IOError when skipped while iterationnobu2013-03-293-5/+17
| | | | | | | | | | * io.c (argf_next_argv): set init flag if succeeded to forward, after skipping. * io.c (argf_block_call_i, argf_block_call): no more forwarding if forwarded after skipping. [ruby-list:49185] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: get rid of IOError when skipped while iterationnobu2013-03-293-14/+79
| | | | | | | | | * io.c (argf_close): deal with init flag. * io.c (argf_block_call_i, argf_block_call): forward next file if skipped while iteration, to get rid of IOError. [ruby-list:49185] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: no CFLAGS in CXXFLAGSnobu2013-03-292-2/+8
| | | | | | | * lib/mkmf.rb (configuration): not include all CFLAGS in CXXFLAGS, to use different set than C for C++. [ruby-core:45273] [Bug #6504] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby/io.h: get rid of conflict on AIXnobu2013-03-292-0/+8
| | | | | | | | * include/ruby/io.h: undef POSIX compliants names on AIX, which are no longer needed. patch suggested by edelsohn (David Edelsohn) in [ruby-core:53815]. [Bug #8174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* code cleanup by @vipulnsward [GH fixes #267]hsbt2013-03-293-4/+1
| | | | | | | | | | * lib/cgi/core.rb: change each to each_value * ext/bigdecimal/lib/bigdecimal/{jacobian,math}.rb: remove unused variables from bigdecimal lib git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_num2ull): Cast double to unsigned LONG_LONG viaakr2013-03-282-1/+10
| | | | | | | | | | | LONG_LONG instead of double to unsigned LONG_LONG directly. This is a challenge to fix a test_num2ull(TestNum2int) failure (NUM2ULL(-1.0) should be "18446744073709551615" but was "0") on Mac OS X with 32bit clang. http://a.mrkn.jp/~mrkn/chkbuild/mountain_lion/ruby-trunk-m32-o0/log/20130328T191100Z.diff.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-29svn2013-03-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: force refererence in MAIN_DOES_NOTHINGnobu2013-03-282-2/+14
| | | | | | | * lib/mkmf.rb (MAIN_DOES_NOTHING): ensure symbols for tests to be preserved. [ruby-core:53745] [Bug #8169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb: Test Windows platform by detecting LoadError whenakr2013-03-282-2/+8
| | | | | | | | | require 'win32/resolv' suggested by Nobuyoshi Nakada [ruby-core:53389]. [ruby-core:53388] [Feature #8090] Reported by Charles Nutter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby/io.h: get rid of conflict on AIXnobu2013-03-282-0/+13
| | | | | | | * include/ruby/io.h: rename SVR3,4 member names as POSIX compliants, to get rid of conflict on AIX. [ruby-core:53765] [Bug #8174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: rb_thread_alive_p macronobu2013-03-281-5/+1
| | | | | | | * ext/tk/tcltklib.c (rb_thread_alive_p): turn into a macro, so that same code is generated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-03-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/-ext-/num2int/test_num2int.rb: extractakr2013-03-282-17/+30
| | | | | | | | assert_num2i_success_internal and assert_num2i_error_internal and provide assertion messages as "NUM2XXX(NNN)". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-03-280-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tcltklib.c: suppress warningsnobu2013-03-281-10/+25
| | | | | | | | * ext/tk/tcltklib.c (lib_eventloop_core, lib_thread_callback), (ip_rbUpdateCommand, ip_rb_threadUpdateCommand, lib_toUTF8_core), (ip_invoke_core): remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/tk/tcltklib.c: adjust nestingnobu2013-03-282-77/+21
| | | | | | | | | | | | | | | * ext/tk/extconf.rb: check for rb_thread_alive_p and rb_thread_check_trap_pending. * ext/tk/tcltklib.c (rb_thread_alive_p, rb_thread_check_trap_pending): define substitutions if not available. * ext/tk/tcltklib.c (lib_eventloop_core, lib_eventloop_ensure), (lib_thread_callback, ip_rbUpdateCommand, ip_rbVwaitCommand), (ip_rbTkWaitCommand, call_queue_handler, eval_queue_handler), (invoke_queue_handler): adjust nesting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: Delete redundant inclusions caused byakr2013-03-275-37/+13
| | | | | | | | | | | | | | AC_INCLUDES_DEFAULT in defines.h. * include/ruby/defines.h: Ditto. * include/ruby/ruby.h: Ditto. * include/ruby/st.h: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/defines.h: Fix a compilation error on NetBSD,akr2013-03-272-0/+42
| | | | | | | | | | "type of formal parameter 1 is incomplete" for the rb_thread_wait_for invocation in rb_file_flock, by including header files as AC_INCLUDES_DEFAULT of autoconf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-28svn2013-03-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-03-272-62/+62
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (LONG_MIN_MINUS_ONE_IS_LESS_THAN): New macro.akr2013-03-273-4/+36
| | | | | | | | | | | | | | | | | (LLONG_MIN_MINUS_ONE_IS_LESS_THAN): Ditto. (rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN. (rb_num2ulong): Ditto. (rb_num2ll): Use LLONG_MIN_MINUS_ONE_IS_LESS_THAN. (rb_num2ull): Ditto. * test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Test the value converted into a Float if Float can represent the value exactly. (asert_num2i_error): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/-ext-/num2int/test_num2int.rb (asert_num2i_success): Newakr2013-03-272-169/+80
| | | | | | | | | utility method. (asert_num2i_error): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (num_exact): use to_r method only if to_int method isakr2013-03-273-1/+10
| | | | | | | | | available. [ruby-core:53764] [Bug #8173] reported by Hiro Asari. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: SIGNEDNESS_OF_TIME_Tnobu2013-03-271-0/+1
| | | | | | | * win32/Makefile.sub (config.h): add SIGNEDNESS_OF_TIME_T for TIMET_MAX and TIMET_MIN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_pthread.c: poll.h is already includednobu2013-03-271-3/+0
| | | | | | | * thread_pthread.c (poll.h): already included in ruby/io.h from thread.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gmake.mk: order test-all and test-knownbugnobu2013-03-271-0/+3
| | | | | | | * defs/gmake.mk (test-all, test-ruby): depends on test-knownbug if check is given or with test-knownbug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/-ext-/num2int/test_num2int.rb (test_num2ll): test LLONG_MIN,akr2013-03-272-2/+7
| | | | | | | | not LONG_MIN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (TIMET_MAX_PLUS_ONE): definition simplified.akr2013-03-272-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: force refererence in MAIN_DOES_NOTHINGnobu2013-03-262-6/+17
| | | | | | | * lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests to be preserved. [ruby-core:53745] [Bug #8169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gmake.mk: no test-knownbug if unnecessarynobu2013-03-261-2/+1
| | | | | | | * defs/gmake.mk (test-all): no needs to depend on test-knownbug always. it is included in TEST_TARGETS if it is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: use SIGNEDNESS_OF_TIME_Tnobu2013-03-263-6/+21
| | | | | | | | | * configure.in (RUBY_REPLACE_TYPE): define SIGNEDNESS_OF_type same as check_signedness of mkmf.rb. * internal.h (TIMET_MAX, TIMET_MIN, TIMET_MAX_PLUS_ONE): use SIGNEDNESS_OF_TIME_T. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_syntax.rb: fix test errornobu2013-03-261-1/+1
| | | | | | | * test/ruby/test_syntax.rb (test_syntax): escape interpolation to use the value passed by ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typokazu2013-03-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trailing spacekazu2013-03-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (TIMET_MAX_PLUS_ONE): Defined.akr2013-03-263-8/+22
| | | | | | | | * thread.c (double2timeval): Saturate out-of-range values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trailing tabkazu2013-03-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-03-27svn2013-03-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix indentkazu2013-03-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/psych/test_*.rb: use require_relative to require local libraryxibbar2013-03-2637-37/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: Define TIMET_MAX and TIMET_MIN here.akr2013-03-266-10/+15
| | | | | | | | | | | | | | * time.c: Remove TIMET_MAX and TIMET_MIN definitions. * thread.c: Ditto. * thread_pthread.c: Remove TIMET_MAX definition. * thread_win32.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/minitest/test_*.rb: use require_relative to require local libraryxibbar2013-03-262-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sockaddr_len): return the shortest length forakr2013-03-262-1/+6
| | | | | | | unknown socket address. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dtrace/test_*.rb: use require_relative to require local libraryxibbar2013-03-2611-11/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e