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

6907 Коммитов

Автор SHA1 Сообщение Дата
shugo 51e25545ae * lib/net/imap.rb (starttls): supported the STARTTLS command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-11 14:26:27 +00:00
seki 48a9b6170e set ERB#filename so that it is used when reporting syntax/runtime errors.
Tabs converted to spaces.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-11 13:18:59 +00:00
seki f610eab082 2005-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-11 13:18:56 +00:00
matz ef05021686 * array.c: protoize.
* eval.c (splat_value): simpler and consistent array conversion
  for argument splat.  [yarv-dev:599]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 13:34:53 +00:00
ocean 9207bf1041 2005-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 02:07:50 +00:00
ocean 6e88336c2d tiny ChangeLog fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 02:07:48 +00:00
nobu b3d2a8aaed * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of meta
characters in command line option.  fixed: [ruby-talk:155369]

* ext/iconv/iconv.c: protoized.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:45:36 +00:00
nobu f5451f4fca 2005-09-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:35:34 +00:00
nobu 7d41159212 * string.c (rb_str_times): make empty strings to keep taintness,
and a little improvement.  [ruby-dev:26900]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:35:31 +00:00
matz 40a77284e5 * merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD.  [ruby-dev:26984]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-08 06:00:56 +00:00
matz f1efc08bb1 * missing/strchr.c (strrchr): fixed a bug for detecting NUL in a
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@9100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-08 04:42:46 +00:00
matz b40d12a5f8 * missing/strchr.c (strrchr): fixed a bug in detecting NUL in a
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
2005-09-08 04:33:30 +00:00
ryan 51c919b387 Added .document file for lib/uri.
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-07 16:07:43 +00:00
ryan 7591606c52 2005-09-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 16:07:40 +00:00
gotoyuzo 23bde288c6 * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
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
2005-09-07 09:24:21 +00:00
gotoyuzo c4b83bb93f * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
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
2005-09-07 08:29:47 +00:00
gotoyuzo 9147e519ba * ext/openssl/ossl_asn1.c (asn1str_to_str): new function.
* 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
2005-09-07 07:40:55 +00:00
akr 5197f6773a * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
[ruby-dev:26967].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 03:58:39 +00:00
nobu 17a4e4b1ad * eval.c (rb_thread_switch): convert all exceptions to
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
2005-09-07 01:45:40 +00:00
ocean 8955a2d930 * win32/win32.[hc] (rb_w32_utime): constified.
* 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
2005-09-07 00:37:53 +00:00
nobu 757c6fa4c9 * lib/mkmf.rb (what_type?): guesstimate type.
* 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
2005-09-06 23:35:31 +00:00
nobu f6892cba23 * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
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-06 23:23:04 +00:00
nobu d302364b50 2005-09-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 23:22:57 +00:00
akr d5a2954d5e fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 06:18:41 +00:00
akr 535b2911cf add a test to parse files by ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 06:17:56 +00:00
akr e27c6fdd7e 2005-09-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 15:02:12 +00:00
akr fe13de2096 document a blocking behavior of IO#eof?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 15:02:10 +00:00
nobu 768e6c1328 * parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
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
2005-09-05 13:29:01 +00:00
matz df27d91fc4 * 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@9082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 08:40:27 +00:00
matz 48653d5ef0 * lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>
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
2005-09-05 08:29:52 +00:00
matz f5ac36f1a3 * 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@9078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 07:22:55 +00:00
gotoyuzo d2847d92cd * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
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-04 22:03:24 +00:00
gotoyuzo bc81591be4 2005-09-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-04 22:03:19 +00:00
aamine c75ba02566 2005-09-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-04 06:01:54 +00:00
aamine 9c16d334db * parse.y (f_arg): Ripper should not do semantic check. [ruby-dev:26948]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-04 06:01:51 +00:00
akr ed353ff1bb * lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descend
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-03 05:02:13 +00:00
akr 83cf0b613e 2005-09-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-03 05:02:10 +00:00
nobu cd5c822ac8 * lib: do not use __send__ to access private methods. [ruby-dev:26935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-02 14:53:02 +00:00
nobu c6cdbda54f 2005-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-02 14:51:23 +00:00
nobu 0c83f23272 * parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
fixed: [ruby-dev:26942]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-02 14:51:19 +00:00
matz c3f0592267 * eval.c (rb_call0): wrong condition for $SAFE restoration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 08:13:30 +00:00
nagai 804054e672 * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
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-01 05:15:19 +00:00
nagai f1755966cc 2005-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 05:15:16 +00:00
usa 7706418a4e * win32/Makefile.sub (OPTFLAGS): default global optimization to
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
2005-08-31 05:43:51 +00:00
ocean 76d6f560c9 * process.c (proc_detach, proc_setmaxgroups): missing argument type
declaration. (I recomment ANSI-style function)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-31 01:40:56 +00:00
nobu 8dcf7f931f * string.c (rb_str_scan): already String#scan behaves differently
regarding if block is given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 21:59:12 +00:00
matz 47bc0b9013 2005-08-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 15:35:21 +00:00
matz 69ba229546 * enum.c (enum_count): new method. [ruby-dev:26895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 15:35:18 +00:00
nobu 74433fd300 * array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:
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
2005-08-30 14:49:51 +00:00
nahi 87e8b14cc4 * lib/debug.rb: no need to restart at exit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 14:26:38 +00:00