Граф коммитов

25302 Коммитов

Автор SHA1 Сообщение Дата
emboss 45706e70c9 * ext/openssl/ossl_x509name.c: Use the numerical representation of
unrecognized OIDs instead of the sn "UNDEF".

* test/openssl/test_x509name.rb: Add tests for the fixed behavior.

  Patch provided by Paul Kehrer, thanḱ you!
  [ruby-core:41769] [Feature #5787]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 04:19:33 +00:00
naruse 1a991ffebc * tool/merger.rb: don't abort, update first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 01:04:07 +00:00
emboss 460c8907c9 * ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString.
Thanks to Mantas Mikulenas for noticing and providing a patch!
  [ruby-core:42358] [Bug #5972]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 01:03:16 +00:00
svn 539d6ba2fa * 2012-02-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 00:29:31 +00:00
emboss aa3854e33d * ext/openssl/ossl_cipher.c: Add warning about key as IV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 00:29:26 +00:00
ayumin 89a2a10508 * error.c (exc_inspect): Fix typo. patch from Trent Ogren
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 11:13:40 +00:00
nobu 4a43f9203b * st.c: refactor packed entries using structs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 10:37:40 +00:00
nobu cf1a22fdf9 * st.c (st_update): table can be unpacked in the callback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:52:15 +00:00
nobu af01b0fb07 * ext/-test-/st/numhash/numhash.c (numhash_alloc): free st_table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:43:49 +00:00
svn d82aafd1b0 * 2012-02-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:29:27 +00:00
nobu 97c3c98762 * st.c (st_foreach): should not yield same pair when checking
after unpacking.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:29:20 +00:00
naruse b33dc193c8 * tool/merger.rb: abort if the working directory is dirty.
* tool/merger.rb: update the working directory after commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:55:56 +00:00
svn 730d3c566c * 2012-02-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-05 15:17:54 +00:00
naruse b346d7a69c * encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string
is ascii only string. [ruby-core:42354] [Bug #5968]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-05 15:17:50 +00:00
svn 546eeb5f4b * 2012-02-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-04 13:12:50 +00:00
kazu 40f4c9291b add ML ref
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-04 13:12:45 +00:00
drbrain 42ffb2ed15 * lib/webrick.rb: Moved proxy rewriting to WEBrick::HTTPProxy.
* lib/webrick/httpproxy.rb:  Add examples of creating a proxy server
  and response rewriting using HTTPProxy.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 23:17:24 +00:00
drbrain 30f0e97ef0 * ext/openssl/ossl_x509store.c: Add class documentation for
OpenSSL::X509::Store


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 22:54:10 +00:00
svn 3d14e356a8 * 2012-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 15:55:12 +00:00
kazu ca0bb51887 * test/net/http/test_https_proxy.rb
(HTTPSProxyTest#test_https_proxy_authentication):
  add workaround to avoid to hang up without openssl.
  see #5786

* test/resolv/test_dns.rb (TestResolvDNS#test_query_ipv4_address):
  ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 15:55:07 +00:00
kou ca77bce66d * lib/rexml/parsers/baseparser.rb: use meaningful name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:48:45 +00:00
kou 92cecf79b4 * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
fix the default xml namespace URI validation.
  Reported by Miho Hiramatsu. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:42:27 +00:00
akr 5525d82134 update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 11:51:25 +00:00
naruse 2a6ccf6c13 * io.c (argf_next_argv): reset ARGF.next_p on ARGV.replace.
r34409 breaks replacing ARGV.
  [ruby-dev:45160] [Bug #5952]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 08:52:55 +00:00
usa a267b9512a * test/net/http/test_http.rb (TestNetHTTPKeepAlive#*): remove debug
output.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 07:22:17 +00:00
mame 8107587039 * parse.y (debug_lines, coverage): set file path encoding for coverage
result.  [ruby-dev:44950]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 16:28:14 +00:00
svn 3b94b32dd9 * 2012-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 16:12:47 +00:00
knu 1f1196fae3 * lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just
call File.unlink and ignore ENOENT because existence check
  before unlinking does not help in terms of race condition.

* lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): My
  comment about thread safeness is obsolete.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 16:12:44 +00:00
nobu dc82e7e749 * test/ruby/test_argf.rb (test_readlines_twice_tty): removed incomplete test committed accidentally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 01:50:52 +00:00
nobu 01d54bc2c7 * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion
and patched by Zachary Scott.  [Bug #5947]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 00:50:17 +00:00
svn 25cd6d14e4 * 2012-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 21:39:04 +00:00
nobu 0470ce53c5 * io.c (argf_close): skip stdin, which should be readable again.
[ruby-dev:45160] [Bug #5952]
* io.c (argf_readlines): reinitialize after all read to be
  readable again.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 21:39:00 +00:00
nari a42cc41ba1 * configure.in (HEAP_ALIGN_LOG): HEAP_ALIGN_LOG should be page
size in OpenBSD. [ruby-core:42158][Bug #5901]

* gc.c : avoid to redefine.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 12:36:50 +00:00
nobu 487cc8b5ce * test/ruby/test_thread.rb (TestThreadGroup#test_thread_timer_and_interrupt): suppress interrupt message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 05:29:52 +00:00
nobu 8dd4353968 * test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid
in block form.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 05:27:27 +00:00
svn 95b2f4107e * 2012-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 21:47:40 +00:00
nobu ef84b7c678 * ext/dl/cptr.c (rb_dlptr_new2): remove unused variable.
* ext/iconv/iconv.c (get_iconv_opt_i): ditto.

	* ext/syck/token.c (Plain): fix types on LP64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 21:47:35 +00:00
nobu 72969cd348 * vm_eval.c (vm_call0): should pass block to enumerators. patched
by Kazuki Tsujimoto.  [ruby-dev:44961][Bug #5731]
* vm_eval.c (method_missing), vm_insnhelper.c (vm_call_method):
  ditto.  patched by satoshi shiba.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 10:08:23 +00:00
nobu cba57022b0 * test/readline/test_readline.rb (test_completion_encoding): test on more locales.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 05:37:28 +00:00
usa bfaba73ebb * file.c (append_fspath): need to set the encoding to result always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 03:31:58 +00:00
svn 44666293ff * 2012-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 01:39:57 +00:00
usa 5625355c9b * test/irb/test_completion.rb: skip if cannot load irb/completion
(maybe readline does not exist).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 01:39:52 +00:00
naruse 1971897890 Skip test if locale is not Japanese nor UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-29 14:24:05 +00:00
kanemoto b80154157a Updated these files to detect AIX 7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-29 13:50:18 +00:00
svn d5258cbe0f * 2012-01-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-29 03:18:16 +00:00
nobu f3dabacefb * ext/readline/readline.c (readline_attempted_completion_function):
respect encodings.  [Bug #5941]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-29 03:18:11 +00:00
shirosaki a65f6649dd * win32/win32.c (rb_w32_read): fix an issue that $stdin.read doesn't
terminate by CTRL-C on Windows.
  [ruby-dev:45149] [Bug #5812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-28 00:51:43 +00:00
shirosaki bb65920642 * test/ruby/test_thread.rb
(TestThreadGroup#test_thread_timer_and_interrupt): skip exit status
  assertion because we cannot get signal status on Windows.

* win32/win32.c (CreateChild): create process group to receive the
  signal by GenerateConsoleCtrlEvent().

* win32/win32.c (kill): use CTRL_BREAK_EVENT instead of CTRL_C_EVENT
  if a process group is specified. CTRL_C_EVENT signal cannot be
  generated for process groups for the specification.
  [ruby-dev:45149] [Bug #5812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-28 00:51:40 +00:00
shirosaki 494fd237f0 * thread_win32.c (rb_w32_wait_events_blocking): use
ruby_thread_from_native() instead of GET_THREAD() because
  GET_THREAD() doesn't always return the current thread and
  WaitForMultipleObjects() at rb_w32_read() doesn't return by
  Thread#kill. This fixes TestQueue#test_thr_kill failure on
  Windows.

* thread_win32.c (rb_w32_wait_events): use ruby_thread_from_native()
  instead of GET_THREAD() for consistency with the above change.

* thread_win32.c (rb_w32_sleep): ditto.

* thread_win32.c (rb_w32_Sleep): ditto.
  [ruby-dev:45149] [Bug #5812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-28 00:51:36 +00:00
shirosaki 11de7c034b * test/zlib/test_zlib.rb (TestZlibGzipReader#test_reader_wrap): set
binmode explicitly for fixing test error on Windows. This is consistent
  with r34243.
  [ruby-dev:45149] [Bug #5812]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-28 00:51:33 +00:00