summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of metanobu2005-09-092-198/+35
| | | | | | | | | characters in command line option. fixed: [ruby-talk:155369] * ext/iconv/iconv.c: protoized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merged a patch from Takahiro Kambe <taca@back-street.net> tomatz2005-09-082-3/+1
| | | | | | | support DragonFly BSD. [ruby-dev:26984] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9103 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: http://svn.ruby-lang.org/repos/ruby/trunk@9095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c (asn1str_to_str): new function.gotoyuzo2005-09-074-17/+168
| | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@9094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): guesstimate type.nobu2005-09-062-2/+17
| | | | | | | | * ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be char*. fixed: [ruby-core:05470] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not loadnobu2005-09-061-7/+1
| | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might benobu2005-09-052-0/+32
| | | | | | | | | nothing. fixed: [ruby-dev:26952] * ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: a patch from nornagon <nornagon@gmail.com>matz2005-09-053-4/+4
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@9082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):gotoyuzo2005-09-041-1/+1
| | | | | | | should clear data from the buffer which already been output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn'tnagai2005-09-012-3/+22
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@9062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/md5/md5ossl.h, ext/digest/rmd160/rmd160ossl.h,gotoyuzo2005-08-303-0/+3
| | | | | | | | ext/digest/sha1/sha1ossl.h: include <stddef.h> to avoid error in compilation with OpenSSL-0.9.8. [ruby-list:41068] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c ({curses,window}_clrtoeol): added. suggestedocean2005-08-272-16/+43
| | | | | | | | | | | | by Reyn Vlietstra. * ext/curses/curses.c: chtype in curses is not `char', rahter `long'. [ruby-Bugs:2298] * ext/curses/view.rb: String =~ String is deprecated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: supress warnings. (win32)ocean2005-08-251-2/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/digest.rb: added SHA224, SHA256, SHA384 and SHA512.gotoyuzo2005-08-221-2/+7
| | | | | | | | these features are enabled if this library is compiled with OpenSSL 0.9.8 or later. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decodegotoyuzo2005-08-224-7/+40
| | | | | | | | | | | | | | | | | | | | | | | | | the argument as a string. * ext/openssl/ossl_ns_pki.c (ossl_spki_to_der): new method. * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): should set @time to avoid warning. * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths, X509_STORE_add_cert, X509_STORE_add_crl): should raise error if wrapped functions fails. * ext/openssl/ossl_ssl.c (ossl_sslctx_set_ciphers): fix error message. * ext/openssl/ossl_x509req.c (ossl_x509req_set_attributes): get rid of unused variable. * test/openssl/test_ns_spki.rb: add new file. * test/openssl/test_x509store.rb: add test for error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refactoringsuke2005-08-201-9/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test script to check WIN32OLE can invoke InvokeVerb of FolderItem2suke2005-08-201-0/+70
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: ensure that symbol_to_option is private_class_methodnaruse2005-08-171-20/+9
| | | | | | | | and all other methods are module_function fixed: [ruby-dev:26808] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add WIN32OLE_VARIANT class.suke2005-08-131-77/+260
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add WIN32OLE_VARIANT classsuke2005-08-132-0/+75
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_set_string): disallow nil.nobu2005-08-131-8/+6
| | | | | | | http://www.rubyist.net/~nobu/t/20050811.html#c05 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: Kconv.kconv is now alias of Kconv.convnaruse2005-08-121-56/+4
| | | | | | | * ext/nkf/lib/kconv.rb: remove nkf dependend symbols fomr SYMBOL_TO_OPTION git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (WIN32OLE_EVENT#on_event): should setsuke2005-08-122-8/+81
| | | | | | | only one event handler. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c: keep holding string after closed.nobu2005-08-111-8/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys().nagai2005-08-106-10/+73
| | | | | | | | | | * ext/tk/lib/tk/itemconfig.rb: fix bug on handling __item_ruby2val_optkeys(). * ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys(). * ext/tk/lib/tkextlib/blt/component.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: remove dangerous 'rb_jump_tag's.nagai2005-08-0932-38/+465
| | | | | | | | | | | | | | | | | | | * ext/tk/lib/tk.rb: add __val2ruby_optkeys and __ruby2val_optkeys to help to convert option values between ruby and tcl. * ext/tk/lib/tk/itemconfig.rb: add __item_val2ruby_optkeys and __item_ruby2val_optkeys to help to convert option values between ruby and tcl. * ext/tk/lib/tk/radiobutton.rb: use __ruby2val_optkeys for 'variable' option (for the reason of backward compatibility). * ext/tk/lib/tk/composite.rb: clarify the arguments of super(). * ext/tk/lib/tk/spinbox.rb: ditto. * ext/tk/lib/tk/text.rb: ditto. * ext/tk/lib/tk/validation.rb: ditto. * ext/tk/lib/tkextlib/*: support to treat tkvariable-type configure options. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: restored some DUMPsocean2005-08-081-10/+14
| | | | | | | | * ext/tk/tcltklib.c (ip_ruby_cmd): moved rb_ary_new2 because this raises exception if argc < 3. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl.c (ossl_raise): should use ERR_peek_last_errorgotoyuzo2005-08-071-2/+22
| | | | | | | | | | | to get last error on the current thread. And should report if errors are on the stack while OpenSSL.debug is true. * ext/openssl/ossl.c (ossl_get_errors): new method for debugging this library. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: combined tcl_protect and tcl_check_result.ocean2005-08-061-257/+78
| | | | | | | [ruby-dev:26753] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/{tk.rb,tk/itemconfig.rb}: configure createsocean2005-08-067-14/+219
| | | | | | | | | | | | | | | TkVariable if key name is 'variable' or 'textvariable' by default. [ruby-dev:26749] * ext/tk/lib/tk/{label,radiobutton}.rb: removed its own {variable,textvariable} function. * ext/tk/lib/tk/variable.rb: retains backward conpatibility. (written by Hidetoshi NAGAI) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: rectoring - tcl_protect.ocean2005-08-051-52/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: refactoring - extracted status check as function.ocean2005-08-051-248/+127
| | | | | | | (tcl_check_result) ... previous commit is actually "extracted protect call" git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: refactoring - extracted status check as function. ↵ocean2005-08-051-142/+56
| | | | | | (tcl_protect) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: fixed memory leak when tk_funcall raisedocean2005-08-051-40/+17
| | | | | | | | exception. (copies argv into heap in tk_funcall instead of caller) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: refactoring - extract ruby string <->ocean2005-08-041-206/+72
| | | | | | | tcl object conversion as get_str_from_obj and get_obj_from_str. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * extmk.rb (extmake): needs to be wrapped in an Array.nobu2005-08-041-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: cannot compile for Tcl7.6/Tk4.2.nagai2005-08-047-20/+238
| | | | | | | | | | | | | | | * ext/tk/tcltklib.c: add nativethread consistency check. * ext/tk/stubs.c: ditto. * ext/tk/lib/tk.rb: forgot to define TclTkIp.encoding and encoding= when Tcl is 7.6 or 8.0. * ext/tk/lib/tk/wm.rb: support to make some methods as options of root or toplevel widget. [ruby-talk:150336] * ext/tk/lib/tk/root.rb: ditto. * ext/tk/lib/tk/toplevel.rb: ditto. * ext/tk/lib/tkextlib/SUPPRT_STATUS: update RELEASE_DATE git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverted. [ruby-dev:26726]ocean2005-08-042-6/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* just fixed indentation.ocean2005-08-041-28/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/tile/demo.rb: followed previous changes.ocean2005-08-0420-59/+118
| | | | | | | | | | | | | * ext/tk/lib/tkextlib/tile/t*.rb: aliased class names starting with 'T' to non 'T' ones. (ie. Tk::Tile::TButton -> Tk::Tile::Button) [ruby-dev:26724] * ext/tk/lib/tkextlib/tile.rb: ditto. (autoload support) (Written by Hidetoshi NAGAI) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/tile/demo.rb: fixed: Tk::Tile::TProgressbar isocean2005-08-042-36/+155
| | | | | | | | | | | | supported on tile 0.6 or later, not tile 0.5. * ext/tk/sample/tkextlib/tile/demo.rb: updated scales demo to use Tk::Tile::TProgressbar for tile 0.6 or later. * ext/tk/sample/tkextlib/tile/demo.rb: set some TkVariable default values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): should not modify $mflags for eachnobu2005-08-031-2/+5
| | | | | | | extentions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/variable.rb: TkVariable#trace didn't work onocean2005-08-032-26/+67
| | | | | | | | TkVariable retrived from TkVariable.new_hash.ref. [ruby-dev:26721] (written by Hidetoshi NAGAI) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (ruby_connect): revert [ruby-talk:111654]matz2005-08-021-5/+0
| | | | | | | changes at 2004-09-07. [ruby-dev:26656] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tile/treeview.rb: Tk::Tile::Treeview#headingconfigureocean2005-08-023-85/+145
| | | | | | | | | | is now working and more. [ruby-dev:26716] * ext/tk/sample/tkextlib/tile/demo.rb: use Tk::Tile::Treeview#headingconfigure instead of direct Tk.tk_call. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tile/tprogressbar.rb: Tk::Tile::TProgressbar#startocean2005-08-023-6/+14
| | | | | | | | | | takes optional argument `interval'. * ext/tk/sample/tkextlib/tile/demo.rb: emulate Tk::Tile::TProgressbar with Tk::Tile::TProgress in tile 0.4. (repeating buttons demo) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkextlib/tile/demo.rb: added repeating buttons demo.ocean2005-08-023-8/+159
| | | | | | | * ext/tk/sample/tkextlib/tile/repeater.tcl: ditto. (new file) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: use Tcl_[GS]etVar2Ex instead ofocean2005-08-021-430/+113
| | | | | | | | | | | | Tcl_Obj[GS]etVar2. (avoid Tcl_NewStringObj on supported platforms) * ext/tk/tcltklib.c: use ip_{get,set,unset}_variable2_core from ip_{get,set,unset}_variable. * ext/tk/tcltklib.c: replaced Tcl_Panic with rb_bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/tile.rb: fixed autoload for Treeview.ocean2005-08-014-10/+68
| | | | | | | | | | | * ext/tk/lib/tkextlib/tile/treeview.rb: replaced `ary2tk_list(items)' with `*items'. * ext/tk/sample/tkextlib/tile: added treeview demo. (tile 0.5 or later is needed) [ruby-dev:26668] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: refactoring - replaced rb_ivar_defined &ocean2005-08-011-41/+11
| | | | | | | rb_ivar_get with single rb_attr_get call. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e