aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * lib/test/unit.rb, bin/testrb, test/runner.rb: revert r28655, whichmame2010-07-161-1/+1
| | | | | | broke test-all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): run tests only whennobu2010-07-161-1/+1
| | | | | | | | | any tests have not run. * bin/testrb, test/runner.rb: use Test::Unit.start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regexec.c (onig_search): don't skip non-ANYCHARs whennaruse2010-07-151-0/+5
| | | | | | | | .* fails to match. This causes to fail matching ANYCHAR_STAR with LOOK_BEHIND. This fix is workaround and disable the optimization. [ruby-dev:41851] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/markup/attribute_manager.rb: fixing ri output when specialtenderlove2010-07-141-0/+16
| | | | | | | characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512] * test/rdoc/test_attribute_manager.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (guess_local_offset): use the UTC offset of an older date onakr2010-07-141-1/+6
| | | | | | | 64bit time_t environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (localtime_with_gmtoff_zone): renamed fromakr2010-07-141-0/+5
| | | | | | | | | | localtime_with_gmtoff and return the timezone abbreviation name. (guess_local_offset): return the isdst and timezone abbreviation name. (localtimew): use the returned isdst and timezone abbreviation name. [ruby-core:31275] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (frame_func_id), vm_eval.c (rb_iterate),nobu2010-07-141-0/+21
| | | | | | | | | vm_insnhelper.c (vm_yield_with_cfunc): as the name of a C-level block, use the current method ID at the creation point. [ruby-dev:41852] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_ri_driver.rb (test_formatter): add a test. amame2010-07-111-0/+4
| | | | | | patch from caleb clausen in [ruby-core:31182]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (find_time_t): 24:00 should be the beginning of the nextakr2010-07-091-0/+17
| | | | | | | day even if the leap second, 23:59:60, exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/emitter.rb (initialize): line_width istenderlove2010-07-081-0/+5
| | | | | | | a valid option passed to the emitter. * test/psych/test_psych.rb: corresponding tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/emitter.c (line_width, set_line_width): preferred line maytenderlove2010-07-081-0/+6
| | | | | | | | be set on the emitter. * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto * test/psych/test_emitter.rb: corresponding tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb (push): adding versiontenderlove2010-07-071-0/+20
| | | | | | | and header emit options. * test/psych/test_psych.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/emitter.rb: sending emit options totenderlove2010-07-072-0/+30
| | | | | | | | | | YAML emitter. [ruby-core:28318] * ext/psych/emitter.c: updating documentation about emit options * ext/psych/lib/psych/core_ext.rb: ditto * ext/psych/lib/psych.rb (dump): passing emit options to emitter. * ext/psych/lib/psych/nodes/node.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime_with_timespec): support %:z and %::z.akr2010-07-071-2/+19
| | | | | | | [ruby-dev:41841] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb: provide workaround for gem activation. Currently,mame2010-07-071-1/+1
| | | | | | | | | | gem activation does not work by default. Now it can be worked around by requiring "rubygems" first. [ruby-core:29486] a patch from Evan Phoenix in [ruby-core:31096]. * lib/rubygems.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_method_boundp): respond_to?(:protected_method,knu2010-07-071-3/+11
| | | | | | | | true) should return true. Pointed out by Marc-Andre Lafortune. [ruby-dev:41837] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_raise): add invalid header tonobu2010-07-071-0/+18
| | | | | | | exceptions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/scalar_scanner.rb (parse_time): dealing withtenderlove2010-07-061-4/+4
| | | | | | | | negative partial hour time zones. [ruby-core:31064] * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto * test/psych/visitors/test_to_ruby.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io_m17n.rb (test_textmode_paragraph_nonasciicompat): shouldusa2010-07-061-0/+14
| | | | | | | | | | match the modes of both end of pipe as text mode. * test/ruby/test_io_m17n.rb (test_binmode_paragraph_nonasciicompat): new test for binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/psych/visitors/test_to_ruby.rb (test_time): time test musttenderlove2010-07-061-1/+3
| | | | | | respect non-whole timezone. Thanks akr! [ruby-core:31061] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to commit the assert_match()tenderlove2010-07-051-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (handler): add a more helpful error messagetenderlove2010-07-051-0/+9
| | | | | | | when calling import_symbol or import_function without calling dlload. Thanks nobu! [ruby-core:30996] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb (format_time): nanosecondstenderlove2010-07-051-3/+3
| | | | | | | require more digits when dumping. Thanks akr! [ruby-core:31047] * test/psych/visitors/test_to_ruby.rb: adjusting tests for nanoseconds git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_method_boundp): Return false for protectedknu2010-07-051-0/+58
| | | | | | | methods when called from Kernel#respond_to?. [ruby-dev:40461] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_syntax.rb: split test_syntax from test_system.rb.akr2010-07-042-19/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_syntax): unified with test_syntax2.akr2010-07-041-29/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_syntax2): moved from sample/test.rbakr2010-07-041-0/+27
| | | | | | | [ruby-dev:41721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (swallow, prepare_getline_args, rb_io_getline_1): fix fornobu2010-07-041-0/+13
| | | | | | | | paragraph mode reading in non-ascii-compatible encoding. [ruby-dev:41803] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* portability fix.akr2010-07-031-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine tests.akr2010-07-031-9/+60
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): add two new constants ↵mrkn2010-07-032-0/+16
| | | | | | | | BigDecimal::INFINITY and BigDecimal::NAN. * ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.exp): modify the behaviors for infinity arguments as same as Math.exp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb(visit_Psych_Nodes_Scalar):tenderlove2010-07-031-0/+17
| | | | | | | | | | | | | | teaching Psych to deserialize DateTime objects. [Bug #1390] * ext/psych/lib/psych/visitors/yaml_tree.rb(visit_DateTime): added a method for serializing DateTime objects. * ext/psych/lib/psych/scalar_scanner.rb(parse_time): add method for parsing times objects from a string. * test/psych/test_date_time.rb: tests for dumping DateTime objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_Time): usetenderlove2010-07-032-7/+7
| | | | | | Time#nsec to accurately serialize time objects. [ruby-core:29233] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_module.rb (test_attr_inherited_visibility): more discussion ↵nobu2010-07-021-1/+2
| | | | | | needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2010-07-011-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil#invoke_ruby): integrated withnobu2010-07-011-86/+44
| | | | | | runexec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb (test_script_from_stdin): by usingnobu2010-06-291-4/+11
| | | | | | | | a pipe, get rid of not-well-defined behavior after the child process terminated in pty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (is_ruby64): checksuke2010-06-291-1/+1
| | | | | | | ruby binary is mswin64 or mingw64. [ruby-dev:41756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_require.rb (test_require_with_unc): test for r28473.usa2010-06-291-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_rdoc.rb: change to bin-mode to write directly.tarui2010-06-282-0/+2
| | | | | | | | reported at http://rubyforge.org/tracker/index.php?func=detail&aid=28249&group_id=627&atid=2472 * test/rdoc/test_rdoc_markup_pre_process.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/gemutilities.rb: check ENV['make'] for make_command.tarui2010-06-283-12/+6
| | | | | | | | | * test/rubygems/test_gem_ext_configure_builder.rb: use gemutilities' make_command. * test/rubygems/test_gem_ext_ext_conf_builder.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_ri_driver.rb (TestRDocRIDriver#test_formatter):mame2010-06-281-3/+6
| | | | | | fix a test accordingly to r28455. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): checksuke2010-06-281-19/+3
| | | | | | | | that Ruby is 32bit or 64bit binary in order to get correct offset value. [ruby-dev:41741] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h, io.c: reverted r21709.nobu2010-06-271-0/+24
| | | | | | | | * ruby.c (load_file_internal): nothing to read if EOF reached while reading shebang. [ruby-core:30910] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil#invoke_ruby): no needs to copy thenobu2010-06-261-1/+1
| | | | | | | original ENV, since it's done in spawn automatically. [ruby-dev:41733] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): checksuke2010-06-251-1/+22
| | | | | | | | that OS is Windows 32bit or Windows 64bit in order to get correct offset value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/func.rb (call): don't overwrite original argumentstarui2010-06-251-0/+12
| | | | | | | | to defend from GC. * test/dl/test_func.rb (test_string): add test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Fixing a bug that prevented CSV from parsingjeg22010-06-251-0/+16
| | | | | | | | all multi-line fields correctly. Patch by Rob Biedenham. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err):nobu2010-06-251-0/+1
| | | | | | return the exit status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil#invoke_ruby): change thenobu2010-06-251-12/+5
| | | | | | environment of spawned process only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e