1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

5030 commits

Author SHA1 Message Date
nagai
ffcedd7950 * ext/tk/lib/tcltklib : bug fix
* ext/tk/lib/tk : bug fix and add Tcl/Tk extension support libraries


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 09:38:48 +00:00
nobu
73cf1d02ba * lib/pstore.rb (PStore#transaction): get rid of opening in write mode
when read only transaction.  [ruby-dev:23842]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 09:31:37 +00:00
gotoyuzo
7662d794fe * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): last modify is
rollbacked for future compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 04:50:33 +00:00
eban
0b6d266dae 2004-07-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 02:21:43 +00:00
gotoyuzo
0dc43217b1 * ext/openssl/ossl_cipher.c (ossl_cipher_encrypt, ossl_cipher_decrypt):
re-implemnt (the arguments for this method is ).

* ext/openssl/ossl_cipher.c (ossl_cipher_pkcs5_keyivgen): new method
  OpenSSL::Cipher::Cipher#pkcs5_keyivgen. it calls EVP_BytesToKey().

* ext/openssl/ossl_cipher.c (ossl_cipher_set_key_length): new method
  OpenSSL::Cipher::Cipher#key_len=.

* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): the type of
  argument is changed from integer to boolean.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 15:45:41 +00:00
gotoyuzo
22ab58c03c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add,
EVP_CIPHER_CTX_set_padding, EVP_CipherFinal_ex, EVP_CipherInit_ex,
  EVP_DigestFinal_ex and EVP_DigestInit_ex.

* ext/openssl/openssl_missing.c (EVP_CIPHER_CTX_copy): new function.

* ext/openssl/openssl_missing.h (EVP_DigestInit_ex, EVP_DigestFinal_ex,
  EVP_CipherInit_ex, EVP_CipherFinal_ex, HMAC_Init_ex): new macro for
  OpenSSL 0.9.6.

* ext/openssl/ossl_cipher.c (ossl_cipher_alloc, ossl_cipher_initialize,
  ossl_cipher_copy, ossl_cipher_reset, ossl_cipher_encrypt,
  ossl_cipher_decrypt, ossl_cipher_final, ossl_cipher_set_key,
  ossl_cipher_set_iv): replace all EVP_CipherInit and
  EVP_CipherFinal into EVP_CipherInit_ex and EVP_CipherFinal_ex.
  and EVP_CIPHER_CTX_init should only be called once.

* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): check for
  EVP_CIPHER_CTX_set_padding.

* ext/openssl/ossl_cipher.c (Init_ossl_cipher): Cipher#<< is deprecated.

* ext/openssl/ossl_digest.c: replace all EVP_DigestInit and
  EVP_DigestFinal into EVP_DigestInit_ex and EVP_DigestFinal_ex.
  and EVP_MD_CTX_init should only be called once.

* ext/openssl/ossl_digest.c (digest_final): should call
  EVP_MD_CTX_cleanup to avoid memory leak.

* ext/openssl/ossl_hmac.c (ossl_hmac_initialize): repalce HMAC_init
  into HMAC_init_ex. and HMAC_CTX_init is moved to ossl_hmac_alloc.

* ext/openssl/ossl_hmac.c (hmac_final): should call
  HMAC_CTX_cleanup to avoid memory leak.

* test/openssl/test_cipher.rb, test/openssl/test_digest.rb,
  test/openssl/test_hmac.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 10:48:43 +00:00
ocean
ba0756ca01 * test/ruby/test_file.rb (test_fnmatch): some tests for File.fnmatch
are added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 08:02:42 +00:00
nobu
d1ffc6ae53 * parse.y (primary): should not be NULL. [ruby-core:03098]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 02:39:38 +00:00
eban
77411b3577 2004-06-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 02:05:48 +00:00
why
24d2835e27 * ext/syck/rubyext.c (syck_emitter_new): set buffer after
Data_Wrap_Struct to avoid possible GC. [ruby-talk:104835]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-29 17:34:08 +00:00
eban
1b17df7bc1 2004-06-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-29 03:37:39 +00:00
nobu
ac3c46901c * eval.c (rb_eval_cmd, rb_thread_trap_eval): restore safe level.
* gc.c (define_final, run_final): preserve and restore safe level for
  finalizers.  [ruby-core:03058]

* signal.c (signal_exec, rb_trap_exit, trap): preserve and restore
  safe level for signal handlers.  [ruby-dev:23829]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-29 01:31:37 +00:00
nobu
63dedc7de4 * io.c (rb_io_popen): update the document for the first argument and
exceptions.

* process.c (rb_f_exec, rb_f_system): update the document for
  exceptions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-29 01:17:39 +00:00
nobu
c7558580f6 * ChangeLog: the patch posted by Jeff Mitchell.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-28 14:08:03 +00:00
nobu
6f9195ec91 * configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due to
DOSISH compilers.  [ruby-core:03107]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-28 05:58:13 +00:00
eban
711b9f9b4c 2004-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-27 15:43:28 +00:00
seki
a1162d2bf8 using "DRb.thread.join" instead of "gets"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-27 15:36:32 +00:00
nobu
0131ff249a 2004-06-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-27 15:29:12 +00:00
kou
ea88f84a77 * sample/rss/tdiary_plugin/rss-recent.rb: supported Hiki.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-27 13:40:47 +00:00
nobu
3d41f06e10 2004-06-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 06:39:32 +00:00
nobu
d4ae605240 * variable.c (rb_mod_class_variables): class variables are no longer
inherited.  [ruby-dev:23808]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 06:17:20 +00:00
nobu
11fa3bf8c7 * configure.in (TRY_LINK): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 06:10:52 +00:00
nobu
95084622ff * configure.in (TRY_LINK): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 03:47:10 +00:00
nobu
1f16f35849 * lib/mkmf.rb (libpathflag): should not quote here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 03:43:26 +00:00
nobu
4cf1e8654d * lib/mkmf.rb (libpathflag, find_header, dir_config): quote directory
names if necessary.  [ruby-talk:104505]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 02:07:30 +00:00
nobu
89b572762d * configure.in (aix): -b must come at the start of the command line,
and -e must not appear while testing libraries.  [ruby-talk:104501]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-26 02:05:54 +00:00
akr
500cd0d57d add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-25 22:59:01 +00:00
nobu
620cbfd466 * io.c (rb_fopen, rb_fdopen, rb_io_reopen): setvbuf() may return
positive value on failure.  [ruby-dev:23792]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-25 15:13:16 +00:00
michal
60d938063b bring back _stklen for DJGPP [ruby-core:3084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-25 09:08:55 +00:00
nobu
9aa6a033d2 * ext/iconv/extconf.rb: check stricter. [ruby-talk:104501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-25 06:33:11 +00:00
eban
be9dc49f1e * MANIFEST: add lib/net/.document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-25 02:11:08 +00:00
matz
2c7c9e82df * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname()
should give us packed address, not struct sockaddr.
  [ruby-core:03053]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 23:10:55 +00:00
usa
0f1db9d8a4 2004-06-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 17:05:27 +00:00
usa
9effc74508 * {bcc32,win32,wince}/setup.mak: remove RUBY_EXTERN lines when
including version.h. [ruby-talk:104456]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 17:02:11 +00:00
usa
2183b23803 * win32/setup.mak: remove RUBY_EXTERN lines when including version.h.
[ruby-talk:104456]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 16:59:05 +00:00
nobu
2f978ec25a * io.c (rb_io_fread): return already read data when system call is
interrupted.  [ruby-talk:97206]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 05:23:44 +00:00
eban
d7861f7446 2004-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-24 01:38:24 +00:00
shugo
97ebe521bf * version.h: added declarations of ruby_version,
ruby_release_date, ruby_platform.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 16:29:16 +00:00
dave
ac0ba927f3 Work around OSX strangneness with recvfrom on connection-oriented sockets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 13:23:55 +00:00
michal
3e1c383e45 io_seek()'s retval should be checked [ruby-core:03045]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 13:18:32 +00:00
michal
cdf40ecbd8 Fix indentation in time.c
Move stack-len info from main.c to gc.c


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 12:59:01 +00:00
matz
5199bf7529 * ext/zlib/zlib.c: 0xff should not shift 24 bits on 64 bit
platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 09:19:14 +00:00
shugo
77574f0fa2 * lib/net/imap.rb: added new option --ssl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-23 08:38:15 +00:00
dave
417f9ec4aa Fixed parsing of %r{} when generating source popup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 16:47:31 +00:00
eban
8aa7a96238 2004-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 15:23:14 +00:00
ocean
42f00af5e3 * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing
CR and LF. (doesn't depend on CR+LF) [ruby-dev:23694]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 15:21:03 +00:00
nobu
65e0e64656 * io.c (rb_io_initialize): should check fcntl result. [ruby-dev:23742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 15:00:36 +00:00
nobu
e99c018d87 * eval.c (return_jump, break_jump): raise unexpceted local jump
exception directly.  [ruby-dev:23740]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 14:59:25 +00:00
usa
a28006f959 * sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf.
* test/ruby/test_sprintf.rb (test_nan, test_inf): add tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 14:38:21 +00:00
suke
29904b93f4 * ext/win32ole/win32ole.c (OLE_FREE): should not call CoFreeUnuse-
dLibraries().

    * ext/win32ole/win32ole.c (ole_event_free): ditto.

    * ext/win32ole/win32ole.c (ole_hresult2msg): truncate error message
      before CR.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 12:22:01 +00:00