aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * bin/testrb: Use only Test::Unit::AutoRunner in test-unit gemkou2012-11-033-8/+17
| | | | | | | | | compatible API to be available by both test/unit bundled in Ruby and test-unit gem. * lib/test/unit.rb (Test::Unit::AutoRunner): Move codes from testrb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_parse.c (parse_eu): should capture apostrophe too.tadf2012-11-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_parse.c (date__parse): revised the tight parser.tadf2012-11-032-5/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/xmldecl.rb (REXML::XMLDecl#content): Add missing \Akou2012-11-032-1/+6
| | | | | | | and \z. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/output.rb (REXML::Output#initialize): Use normalizedkou2012-11-032-1/+6
| | | | | | | encoding name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/output.rb (REXML::Output): Don't output BOM in middlekou2012-11-033-0/+30
| | | | | | | | of the output string. * test/rexml/test_document.rb: Add a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: Add an item about REXML::Document#write.kou2012-11-032-0/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Fix tests that expect encoding namekou2012-11-032-6/+9
| | | | | | | isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (Dir#glob):zzak2012-11-032-5/+13
| | | | | | | | | Documentation for pattern section, backslash subsection Patch by Eric Bouchut [ruby-core#48528] [Bug #7230] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r37439 and r37441kou2012-11-034-32/+9
| | | | | | | | | | | | | | | | | r37439: * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encoding module because XMLDecl doesn't convert encoding. This causes removing XML encoding name normalization (encoding.upcase). Encoding name in XML declaration is what user specifies. I think this is reasonable change. * test/rexml/test_xml_declaration.rb: Add tests for the above change. r37441: * test/rexml/test_core.rb (Tester#test_ticket_88): Follow the change that encoding name in XML declaration isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2012-11-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (IO#new):zzak2012-11-031-0/+6
| | | | | | | | Documentation for IO#open modes and formatting [ruby-core#48052] [Bug #7179] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (IO#new):zzak2012-11-031-18/+19
| | | | | | | | Documentation for IO#open modes and formatting [ruby-core#48052] [Bug #7179] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding.rb (EncodingTester#test_in_different_out):kou2012-11-032-2/+9
| | | | | | | | Fix a test that expects encoding in XML declaration is changed by Output's encoding. It is dropped feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_core.rb (Tester#test_ticket_88): Follow thekou2012-11-032-2/+7
| | | | | | | change that encoding name in XML declaration isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Document encodingkou2012-11-034-15/+35
| | | | | | | | | | | | option. Now different encoding between XML file's encoding and XML declaration's encodiong is support. [Feature #4872] (work in progress) * lib/rexml/xmldecl.rb (REXML::XMLDecl#write): Always use XMLDecl's encoding. * test/rexml/test_document.rb: Update tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encodingkou2012-11-033-7/+25
| | | | | | | | | | | module because XMLDecl doesn't convert encoding. This causes removing XML encoding name normalization (encoding.upcase). Encoding name in XML declaration is what user specifies. I think this is reasonable change. * test/rexml/test_xml_declaration.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_equal): fix not to make invalid pointers whenglass2012-11-032-3/+11
| | | | | | | self and other are resized to same size in #== of their elements. [ruby-dev:46373] [Feature #6177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_xml_declaration.rb (TestXmlDeclaration#test_*):kou2012-11-032-3/+9
| | | | | | | Remove needless prefix from test names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_xml_declaration_parent_child.rb: Rename to ...kou2012-11-032-0/+5
| | | | | | | * test/rexml/test_xml_declaration.rb: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_delete): Correct grammarzzak2012-11-032-2/+8
| | | | | | | | Patch by Glenn Oppegard [Fixes #208 Github] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add a news about GC::Profiler.raw_data.nari2012-11-032-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add a news about rb_newobj_of() and NEWOBJ_OF().nari2012-11-032-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (f_current_dirname): add the new method for Kernel.nari2012-11-034-0/+37
| | | | | | | | | | | | This method almotst same as File.dirname(__FILE__). One different behavior is it returns nil when __FILE__ returns nil. [Feature #3346] * NEWS: ditto * test/ruby/test_method.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_refinement.rb (test_new_method_by_send,shugo2012-11-032-0/+37
| | | | | | | | | | | test_new_method_by_method_object): add tests for Kernel#send and Kernel#method with refinements. * test/ruby/test_refinement.rb (test_symbol_to_proc): add a test calling a proc created by Symbol#to_proc outside the scope where a refinement is closed over. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c: rewrite all catch pointsnobu2012-11-024-20/+60
| | | | | | | | | * vm.c (rb_vm_rewrite_ep_in_errinfo): rewrite all catch points in errinfo, not only the topmost frame. based on the patch by ktsj (Kazuki Tsujimoto) in [ruby-dev:45656]. [Bug #6460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-03svn2012-11-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: add explanation about how performace is improved in r37420.glass2012-11-021-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: timestamp_filenobu2012-11-022-3/+6
| | | | | | | | * lib/mkmf.rb (MakeMakefile#timestamp_file): remove @ which looks like configure variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: timestamp_filenobu2012-11-022-1/+6
| | | | | | | | * lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a special character of NMAKE and BSD make. [Bug #7265] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (_run_parallel): Delete status line before showingsorah2012-11-022-4/+17
| | | | | | | | | results. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250] * lib/test/unit.rb (_run_parallel): Fix strange result when disabled retrying. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_mod_to_s): Module#{to_s,inspect}, when invoked onshugo2012-11-024-1/+55
| | | | | | | | | | | | | a refinement, returns a string in the format #<refinement:C@M>, where C is a refined class and M is a module at which the refinemet is defined. * eval.c (rb_mod_refine): store information on a refinement for the above change. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (rb_vm_bugreport): Because of many log directories,sorah2012-11-022-6/+12
| | | | | | making directory lists readable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (rb_vm_bugreport): add ~/Library/Logs/DiagnosticReportsmrkn2012-11-022-3/+9
| | | | | | in the locations list of crash reports. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: added a missed spaceglass2012-11-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (recursive_equal): performance improvement.glass2012-11-022-3/+24
| | | | | | [ruby-dev:45412] [Feature #6177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-02svn2012-11-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_to_proc, sym_call): A Proc created by Symbol#to_procshugo2012-11-025-24/+87
| | | | | | | | | | | | | should close over the current refinements. [ruby-dev:46345] [Bug #7261] * vm_eval.c (rb_call0, rb_search_method_entry, rb_funcall_passing_block_with_refinements): add a new argument `refinements' for the above changes. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: main.define_methodnobu2012-11-014-1/+52
| | | | | | | | * proc.c (top_define_method): new method, main.define_method. [ruby-core:45715] [Feature #6609] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: fix messagenobu2012-11-012-2/+6
| | | | | | | | * eval.c (top_include): fix a warning message, main is not a class or module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warning: 'val' may be used uninitialized in this functionnaruse2012-11-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: timestamp_filenobu2012-11-012-1/+6
| | | | | | | | * lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU make special character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_process.rb: use never existing filenobu2012-11-012-1/+6
| | | | | | | | * test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure): use never existing file in the current temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb: add feature to tag preview/rc.naruse2012-11-012-9/+34
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: fix for if config["libdir"] is nil.naruse2012-11-012-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: fix wrong regexp for releasing preview.naruse2012-11-012-3/+11
| | | | | | | patched by mame. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add a news about objspace,ko12012-11-012-0/+9
| | | | | | | | ObjectSpace.reachable_objects_from. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_new),mrkn2012-11-013-1/+21
| | | | | | | test/bigdecimal/test_bigdecimal.rb: Fix exception message of BigDecimal constructor with a Float. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_add),mrkn2012-11-013-15/+40
| | | | | | | | test/bigdecimal/test_bigdecimal.rb: need to specify precision for converting Rational and Float. [ruby-core:48045] [Bug #7176] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: Revert r37404. My ubuntu box hasmame2012-11-012-1/+6
| | | | | | | actually the directory named "/nonexistent"... Sorry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e