aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* vm_core.h: flip_cnt in rb_iseq_tnobu2013-01-085-4/+17
| | | | | | | | | * vm_core.h (rb_iseq_t): move flip_cnt from struct iseq_compile_data, because it has same life span as enclosing iseq. [Bug #7671] [ruby-core:51296] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix wrong English in ChangeLogmrkn2013-01-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README (install): note about distclean-ext.nobu2013-01-081-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-08svn2013-01-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-01-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal):mrkn2013-01-073-0/+17
| | | | | | | | | | add RB_GC_GUARD to prevent the immediate object is GCed too early. This patch was made by Yusuke Endoh. [Bug #7044] [ruby-core:47632] * test/bigdecimal/test_bigdecimal.rb: add a reproduction test for the issue [Bug #7044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (Init_eval_method): main.public and main.privateshugo2013-01-074-17/+29
| | | | | | | | | | should be private. * proc.c (Init_Proc): main.define_method should be private. * test/ruby/test_module.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_eval): main.include should be private.shugo2013-01-073-1/+29
| | | | | | | | | [ruby-core:51293] [Bug #7670] * test/ruby/test_module.rb (test_top_include_is_private): a new test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: remove description about `require "refinement"'.shugo2013-01-072-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (Init_eval): enable Refinements by default.shugo2013-01-075-35/+35
| | | | | | | | | | | | | [ruby-core:51286] [Bug #7667] * eval.c (rb_mod_refine, top_using): show a warning when Module#refine or main.using is called at the first time. * ext/refinement/*: removed the extension library "refinement". * test/ruby/test_refinement.rb: fix for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RUBY_EVENT_SPECIFIED_LINE): make it special.ko12013-01-073-3/+17
| | | | | | | | | | | | This flag is not contained by RUBY_EVENT_TRACEPOINT_ALL. This event is experimental one. It is possible to remove/rename flag name after 2.0.1. * vm_trace.c (get_event_id): return :line if SPECIFIED_LINE was occurred. `:specified_line' never been returned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_syntax.rb: assert_not_labelnobu2013-01-071-1/+1
| | | | | | | * test/ruby/test_syntax.rb (TestSyntax#assert_not_label): need to eval in the current binding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: bare kwrest_marknobu2013-01-073-0/+17
| | | | | | | * parse.y (f_kwrest): allow bare kwrest_mark as valid syntax. its semantics is still undefined. [Bug #7662] [ruby-core:51269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: duplicated kwrest namenobu2013-01-073-0/+57
| | | | | | * parse.y (f_kwrest): reject duplicated kwrest argument name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: assert_syntax_errornobu2013-01-071-0/+24
| | | | | | | * test/ruby/envutil.rb (Test::Unit::Assertions#assert_syntax_error): new assertion for syntax error and error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: optional fnamenobu2013-01-072-4/+12
| | | | | | | * test/ruby/envutil.rb (Test::Unit::Assertions#assert_valid_syntax): make fname optional for inline source. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c (rb_threadptr_exec_event_hooks_orig): pop tag beforeko12013-01-073-1/+32
| | | | | | | | | | | | JUMP_TAG() if frame is `finish' frame. Without this patch, there is an inconsistency between control frame stack and tags stack. [Bug #7668] * test/ruby/test_settracefunc.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk (fake, yes-fake, no-make): these dependeciesusa2013-01-074-10/+18
| | | | | | | | | are not platform dependent. * win32/Makefile.sub ($(arch)-fake.rb): workaround. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c: keyrest should not overwrite rest argnobu2013-01-073-7/+36
| | | | | | | | * vm_insnhelper.c (vm_callee_setup_arg_complex, vm_yield_setup_block_args): set keyrest hash after making rest array, so that the last element will not be overwritten. [ruby-core:51278] [Bug #7665] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: adjust indent.nobu2013-01-071-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-07svn2013-01-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add a NEWS entry about RubyVM.ko12013-01-072-1/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-01-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefie.sub: Fix build with VC.yugui2013-01-062-1/+6
| | | | | | Patch by Charlie Savage. Fixes [ruby-core:51261] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_io.c: add a test for [ruby-dev:46834].yugui2013-01-064-5/+30
| | | | | | | | | | * io.c (rb_cloexec_fcntl_dupfd) Use an emulation with dup(2) when fcntl(2) and/or F_DUPFD is unavailable. Suggested by akr. * configure.in (HAVE_FCNTL): NativeClient does not provide fcntl(2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/modules_and_classes.rdoc: Fixed typo.drbrain2013-01-062-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-01-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/modules_and_classes.rdoc: Added singleton classesdrbrain2013-01-052-0/+50
| | | | | | | documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/abstract.rb (WEBrick::HTTPServlet): Typo inzzak2013-01-052-1/+6
| | | | | | | example. Patch by shlensky [Fixes #232 on github] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-06svn2013-01-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http/generic_request.rb:naruse2013-01-052-1/+15
| | | | | | | | Amazon ECA API and GTE/1.3 disallow requests whose host has port number if its port number equlas to default port number of the scheme. [Bug #7650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warningsnaruse2013-01-051-5/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/modules_and_classes.rdoc: Improved description of methodsdrbrain2013-01-052-2/+12
| | | | | | | on a module or class as suggested by Tobias Buhlmann git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_enumerate_lines): fix invalid byte sequence errorglass2013-01-053-3/+17
| | | | | | | | | | when a separator is passed. The patch is from yoshidam (Yoshida Masato). [Bug #7646] [ruby-dev:46827] * test/ruby/test_string.rb: a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: check stdout and stderrnobu2013-01-052-10/+19
| | | | | | | | * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): check stdout and stderr both. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-01-050-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/modules_and_classes.rdoc: Added documentation of syntaxdrbrain2013-01-053-30/+297
| | | | | | | | | for Modules and Classes. * doc/syntax/methods.rdoc: Moved some text to the Modules and Classes syntax document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/methods.rdoc: Added return values and scope sections,drbrain2013-01-042-13/+119
| | | | | | | | slightly modified from the original patch. Fixes #227 from github by Dave Brown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_fcntl_dupfd): improve #ifdef condition.kosaki2013-01-042-3/+8
| | | | | | * io.c (rb_maygvl_fd_fix_cloexec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/commands/cleanup_command.rb: Clean all possible gemsdrbrain2013-01-043-50/+120
| | | | | | | | | using multiple passes. Fixes RubyGems bug #422. Refactored for maintainability. * test/rubygems/test_gem_commands_cleanup_command.rb: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-05svn2013-01-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (vm_xrealloc): add a few comment why we avoid realloc(ptr,0).kosaki2013-01-042-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-01-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (RBCONFIG): Moved from common.mk in order to use theyugui2013-01-044-1/+9
| | | | | | | | variable in Makefile.in. * win32/Makefie.sub (RBCONFIG): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (run, parse): Use BTESTRUBY instead of MINIRUBY to handleyugui2013-01-042-4/+9
| | | | | | cross-compiling cases, e.g. NativeClient. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (yes-btest): btest depends on also $(arch)-fake.rb andyugui2013-01-044-3/+18
| | | | | | | | | | | rbconfig.rb on building for NativeClient. * Makefile.in (fake): Avoid generating $(arch)-fake.rb unless cross compiling. * configure.in (CROSS_COMPILING): New substitution. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/doctor.rb: Process directories in order in case thedrbrain2013-01-048-22/+36
| | | | | | | | | | | | | | | | | | | | filesystem doesn't. [ruby-trunk - Bug #7618] Process specifications before other directories in case of bugs. * test/rubygems/test_gem_doctor.rb: Test for above. * lib/rubygems.rb: Updated version. * test/rubygems/test_require.rb: Fixed double require of benchmark.rb. RubyGems bug #420. * test/rubygems/test_gem_commands_check_command.rb: Fixed unused variable warnings. * test/rubygems/test_gem_commands_query_command.rb: ditto * test/rubygems/test_gem_installer.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDocdrbrain2013-01-0416-52/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bug #164 * test/rdoc/test_rdoc_cross_reference.rb: Test for above. * lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165 * test/rdoc/test_rdoc_parser_changelog.rb: Test for above. * lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete characters at byte 1024. [ruby-trunk - Bug #6393] Fixed handling of -E. [ruby-trunk - Bug #6392] * test/rdoc/test_rdoc_options.rb: Test for above. * test/rdoc/test_rdoc_parser.rb: ditto. * test/rdoc/test_rdoc_parser_c.rb: ditto. * test/rdoc/test_rdoc_parser_changelog.rb: ditto. * test/rdoc/test_rdoc_parser_markdown.rb: ditto. * test/rdoc/test_rdoc_parser_rd.rb: ditto. * test/rdoc/test_rdoc_rdoc.rb: ditto. * lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list. RDoc bug #167 * test/rdoc/test_rdoc_tom_doc.rb: Test for above. * lib/rdoc.rb: Update version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.zzak2013-01-042-3/+9
| | | | | | | Patch by Vladimir Andrijevik [Github Fixes #230] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typo in ChangeLogzzak2013-01-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e