summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * object.c (Init_Object), constant.h, variable.cmame2010-10-261-0/+20
| | | | | | | | | | (rb_mod_private_constant, rb_mod_public_constant, set_const_visibility, rb_const_get_0): add Module#public_constant and private_constant. [ruby-dev:39685][ruby-core:32698] * test/ruby/test_module.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_rotate!): fix expected message.nobu2010-10-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vsnprintf.c (BSD_vfprintf): prec digits fractal part should benobu2010-10-241-0/+4
| | | | | | appended to 0 if prec is given. [ruby-dev:42453] #3979 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_define_method): defined method is run with the defaultnobu2010-10-241-1/+0
| | | | | | | public visibility regardless the visibility context of definition. [ruby-core:30638] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb (test_segv_test): follow up thenobu2010-10-231-2/+2
| | | | | | change at r29556. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb: $extmk should be true for test/runner.nobu2010-10-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (TestIO#pipe): get rid of deadlock on pipe.nobu2010-10-202-454/+600
| | | | | | | | a patch from Tomoyuki Chikanaga at [ruby-dev:42435]. #3970 * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): reject 0x1.p+0. [ruby-dev:42432] #3966naruse2010-10-201-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vsnprintf.c (BSD_vfprintf): print floating point on "%#a".naruse2010-10-201-2/+7
| | | | | | [ruby-dev:42431] Bug#3965 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vsnprintf.c (BSD_vfprintf): clear ALT flag for %a.naruse2010-10-191-0/+2
| | | | | | [ruby-core:32841] [ruby-core:32848] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_sprintf.rb: fix ML ref. [ruby-core:32848]nobu2010-10-191-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vsnprintf.c (BSD_vfprintf): fix over-count of field size.nobu2010-10-191-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vsnprintf.c (BSD_vfprintf): use HEXPREFIX flag for prefix of %a.nobu2010-10-181-0/+8
| | | | | | [ruby-core:32841] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r29527. [ruby-dev:42419]naruse2010-10-181-6/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_class_init): Defineknu2010-10-181-0/+6
| | | | | | Digest::Class.new(). [Feature #3954] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): Add native size option ! to q and Q.naruse2010-10-181-2/+6
| | | | | | | | [ruby-dev:42375] * pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix wrong test.naruse2010-10-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (BSD_vfprintf): wrong padding arround prefix andnaruse2010-10-181-0/+7
| | | | | | floating point with %a. [ruby-dev:42403] Bug #3956 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_define_{class,module}_id_under): register to benobu2010-10-171-0/+4
| | | | | | marked, which probably are defined and used internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* sprintf.c (rb_str_format): fix: sprintf with hex format and"naruse2010-10-152-9/+7
| | | | | | | This reverts commit a160986d90cf90a86e01d60eddb04ffe0e584c36. Revert wrong commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): fix: sprintf with hex format andnaruse2010-10-152-7/+9
| | | | | | precision includes wrong dots. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): fix more than one modifiers appear in thenaruse2010-10-151-0/+2
| | | | | | | | format string. [ruby-core:32793] * pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/win32ole/test_folderitem2_invokeverb.rb: refactoring.suke2010-10-141-47/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): support endian modifiers: < and >.naruse2010-10-141-61/+74
| | | | | | | | [ruby-dev:42376] Feature #3491 * pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (reg_get_val): expand environment in suke2010-10-141-0/+6
| | | | | | | the pathname. [Bug #3907] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (ruby_float_step): fix Numeric#step with infinity unitnaruse2010-10-132-4/+17
| | | | | | doesn't works well. [ruby-core:32779] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibytexibbar2010-10-131-0/+1
| | | | | | string. Thanks nobu and tDiary dev members. [Bug #3909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* move a non-combinational test.akr2010-10-132-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix style for ruby-mode.el.naruse2010-10-131-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean warnings.naruse2010-10-121-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix test; escape a backslash.naruse2010-10-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_concat): use unsigned int for GB18030.naruse2010-10-121-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ungetc): use unsigned int for GB18030.naruse2010-10-121-0/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_putc): support multibyte characters.naruse2010-10-121-0/+10
| | | | | | [ruby-core:30697] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_chr): a codepoint of Ruby M17N must be 32bitnaruse2010-10-121-0/+1
| | | | | | | unsigned int; GB18030 uses MSB. Also note that OnigCodePoint is defined as uisigned int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): set the encoding of Errno::*#messagenaruse2010-10-111-0/+4
| | | | | | as locale. [ruby-dev:42358] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_reset_event_flags, exec_event_hooks): ignorenobu2010-10-091-0/+12
| | | | | | | | | | | hooks marked as removed. * thread.c (thread_exec_event_hooks): remove hooks to be removed. * thread.c (rb_threadptr_remove_event_hook, rb_remove_event_hook): defer removing hooks if running the hooks. [ruby-dev:42350] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic#hostname): new method.akr2010-10-061-0/+10
| | | | | | | | | | | | | | (URI::Generic#hostname=): ditto. * lib/open-uri.rb: use URI#hostname * lib/net/http.rb: ditto. [ruby-core:32056] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): write_mutex might have been destroyednobu2010-10-061-0/+29
| | | | | | | | already in finalization phase, as the order of finalizers is not guaranteed. rb_mutex_t should be used in place of Mutex object in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (regexp): dregexp has literal string only at the headnobu2010-10-041-0/+2
| | | | | | and successors are array. [ruby-core:32682] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/bn.rb (Integer#to_bn): OpenSSL::BN.newnaruse2010-10-041-0/+5
| | | | | | | accepts only Strings, so call Integer#to_s(16). 16 is for an optimization. [ruby-dev:42336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Change creating shortcut verb to 'Link' [Bug #3339]arton2010-10-031-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/win32ole/test_thread.rb: add for win32ole with Thread.suke2010-10-021-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/webrick/test_httpproxy.rb (TestWEBrickHTTPProxy::test_upstream_proxy):shyouhei2010-10-011-0/+1
| | | | | | | My machine fails this test at this line, saying 503 service unavailable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_getenv): should return NULL if specified nameusa2010-09-301-0/+1
| | | | | | | is empty. a patch from Heesob Park at [ruby-core:32650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI.encode_www_form): change treatment ofnaruse2010-09-301-0/+15
| | | | | | | | undefined value in given array as latest internet draft for application/www-form-urlencoded. http://tools.ietf.org/html/draft-hoehrmann-urlencoded-01 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb (TestRubyOptions::test_script_from_stdin):shyouhei2010-09-291-10/+14
| | | | | | | As usual, PTY is not always available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_save_limit):mrkn2010-09-291-0/+2
| | | | | | | | return the result of a block. * test/bigdecimal/test_bigdecimal.rb (test_save_limit): add a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_save_rounding_mode):mrkn2010-09-291-0/+4
| | | | | | | | | | return the result of a block. * test/bigdecimal/test_bigdecimal.rb (test_save_rounding_mode): add a test for the above change. * test/bigdecimal/test_bigdecimal.rb (test_save_exception_mode): add a test for the return value of BigDecimal.save_exception_mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_https.rb: As always, localhost is notshyouhei2010-09-271-1/+11
| | | | | | | | | | guaranteed to be resolved as 127.0.0.1. But a SSL certificate needs a socket to listen on a specific address where a CN resolves to. On situations where localhost is not 127.0.0.1, these tests are not possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e