aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * missing/strchr.c (strrchr): fixed a bug in detecting NUL in amatz2005-09-081-1/+3
| | | | | | | | | | | | string. [ruby-dev:26985] * string.c (rb_str_times): should taint empty strings as well. * object.c (Init_Object): make class_variable_{get,set} public. [ruby-dev:26965] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added .document file for lib/uri.ryan2005-09-073-2/+29
| | | | | | | | Added mathew's patches to test_ftp.rb Fixed a minor typo in getoptlong.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-08ryan2005-09-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):gotoyuzo2005-09-071-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | OpenSSL::Engine.by_id calls given block before calling ENGINE_init (block parameter is the return value of this method itself). this functionality is useful to load dynamic shared engines. require "openssl" pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e| e.ctrl_cmd("SO_PATH", "/usr/lib/opensc/engine_pkcs11.so") e.ctrl_cmd("LIST_ADD", "1") e.ctrl_cmd("LOAD") } pkcs11.ctrl_cmd("PIN", "secret") key = pkcs11.load_private_key * ext/openssl/ossl_engine.c (ossl_engine_ctrl_cmd): new method OpenSSL::Engine#ctrl_cmd. it wraps ENGINE_ctrl_cmd_string. * ext/openssl/ossl_engine.c (ossl_engine_get_cmds): new method OpenSSL::Engine#cmds. it returms engine command definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):gotoyuzo2005-09-071-3/+58
| | | | | | | | | | | | | | | | | | | | | | | | OpenSSL::Engine.by_id calls given block before calling ENGINE_init (block parameter is the return value of this method itself). this functionality is useful to load dynamic shared engines. require "openssl" pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e| e.ctrl_cmd("SO_PATH", "/usr/lib/opensc/engine_pkcs11.so") e.ctrl_cmd("LIST_ADD", "1") e.ctrl_cmd("LOAD") } pkcs11.ctrl_cmd("PIN", "secret") key = pkcs11.load_private_key * ext/openssl/ossl_engine.c (ossl_engine_ctrl_cmd): new method OpenSSL::Engine#ctrl_cmd. it wraps ENGINE_ctrl_cmd_string. * ext/openssl/ossl_engine.c (ossl_engine_get_cmds): new method OpenSSL::Engine#cmds. it returms engine command definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c (asn1str_to_str): new function.gotoyuzo2005-09-076-17/+329
| | | | | | | | | | | | | | * ext/openssl/ossl_pkcs7.c: new class OpenSSL::PKCS7::RecipientInfo. this class wraps PKCS7_RECIP_INFO struct. * ext/openssl/ossl_pkcs7.c: OpenSSL::PKCS7::Signer is renamed to OpenSSL::PKCS7::SignerInfo. ("Signer" remains as an alias of SignerInfo.) * test/openssl/test_pkcs7.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: abolish mod === tempfile to avoid a problemakr2005-09-072-2/+7
| | | | | | | [ruby-dev:26967]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_thread_switch): convert all exceptions tonobu2005-09-072-0/+12
| | | | | | | | | | SystemExit. fixed: [ruby-core:05724] * eval.c (rb_thread_terminated): show backtrace before propagate exceptions to main thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.[hc] (rb_w32_utime): constified.ocean2005-09-073-19/+25
| | | | | | | | | | * win32/win32.h (rb_w32_stat): added prototype. * win32/win32.[hc] (rb_w32_argv_size,rb_w32_join_argv,rb_w32_aspawn): changed `char *const *' to `const char *const *'. (constify string) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): guesstimate type.nobu2005-09-064-3/+78
| | | | | | | | * ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be char*. fixed: [ruby-core:05470] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not loadnobu2005-09-067-14/+23
| | | | | | | | | | | | | | | extension libraries. * bignum.c (bignew_1, bigadd): K&R style argument actually can't be defined as char. * missing/vsnprintf.c: ANSI compiler supports const keyword. * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h but no 64bit integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-07nobu2005-09-061-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix.akr2005-09-061-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test to parse files by ripper.akr2005-09-061-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-06akr2005-09-051-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document a blocking behavior of IO#eof?.akr2005-09-051-2/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might benobu2005-09-054-5/+44
| | | | | | | | | nothing. fixed: [ruby-dev:26952] * ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: a patch from nornagon <nornagon@gmail.com>matz2005-09-056-19/+75
| | | | | | | | | | | merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>matz2005-09-054-28/+47
| | | | | | | | | | | | | | | merged to allow recursive inspect (and to_s) for OpenStruct. [ruby-core:05532] * lib/observer.rb: a patch from nornagon <nornagon@gmail.com> merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: a patch from nornagon <nornagon@gmail.com>matz2005-09-051-1/+1
| | | | | | | | | | | merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):gotoyuzo2005-09-042-1/+6
| | | | | | | should clear data from the buffer which already been output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-05gotoyuzo2005-09-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-04aamine2005-09-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_arg): Ripper should not do semantic check. [ruby-dev:26948]aamine2005-09-042-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descendakr2005-09-032-18/+35
| | | | | | | | didn't yield "." (Pathname#ascend): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-03akr2005-09-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: do not use __send__ to access private methods. [ruby-dev:26935]nobu2005-09-0215-41/+47
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-02nobu2005-09-021-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.nobu2005-09-022-8/+23
| | | | | | | fixed: [ruby-dev:26942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): wrong condition for $SAFE restoration.matz2005-09-012-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn'tnagai2005-09-013-3/+31
| | | | | | | | | | work (gives wrong order of arguments). * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace to support '-namespace' option of 'interp invokehidden' command on Tcl8.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-09-01nagai2005-09-011-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (OPTFLAGS): default global optimization tousa2005-08-312-4/+6
| | | | | | | disabled for all VC++ versions. fixed: [ruby-dev:26897] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_detach, proc_setmaxgroups): missing argument typeocean2005-08-312-7/+10
| | | | | | | declaration. (I recomment ANSI-style function) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_scan): already String#scan behaves differentlynobu2005-08-302-2/+5
| | | | | | | regarding if block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-08-31matz2005-08-301-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_count): new method. [ruby-dev:26895]matz2005-08-302-0/+66
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:nobu2005-08-3010-32/+73
| | | | | | | | | let enumerable methods return Enumerator. [ruby-dev:26924] * intern.h (RETURN_ENUMERATOR): utility macro for enumerable methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/debug.rb: no need to restart at exit.nahi2005-08-302-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.nobu2005-08-302-19/+26
| | | | | | | | | | * lib/mkmf.rb (link_command, cc_command, cpp_command): expand variables at once, and quote hdrdir. fixed: [ruby-core:05680] * lib/mkmf.rb (libpathflag): quote paths. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_rescue2): intialization miss. fixed: [ruby-dev:26917]nobu2005-08-302-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/md5/md5ossl.h, ext/digest/rmd160/rmd160ossl.h,gotoyuzo2005-08-304-1/+11
| | | | | | | | ext/digest/sha1/sha1ossl.h: include <stddef.h> to avoid error in compilation with OpenSSL-0.9.8. [ruby-list:41068] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: bug fix. [ruby-dev: 26920]keiju2005-08-302-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/ssl.rb (SSLConfig#accept) sorry, self[:verbose] is inner class's ↵ocean2005-08-302-6/+1
| | | | | | | | | method. so reverted... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/ssl.rb (SSLConfig#accept) fixed "Undefined method verbose"ocean2005-08-302-1/+6
| | | | | | | [ruby-Bugs:1701] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2005-08-30matz2005-08-301-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_send): do not call private methods if the receivermatz2005-08-305-4/+21
| | | | | | | is specified. [ruby-talk:153672] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/usage.rb: supress warning.ocean2005-08-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]ocean2005-08-292-15/+29
| | | | | | | | * lib/rdoc/usage.rb: support the case when non-ruby code exists before shebang. (this is needed when ri.bat is executed on windows) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-292-7/+14
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e