Commit graph

7022 commits

Author SHA1 Message Date
usa
9e52e250f8 * test/ruby/test_signal.rb (test_exit_action): skip the test using
fork on fork-less platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 13:42:15 +00:00
nagai
2f13fea889 * ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
TkDialogObj#name raises an exception. [ruby-talk:156109]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 02:41:17 +00:00
seki
7cc7f90498 (Rinda::TemplateEntry::initialize): pull up method. Tabs converted to spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 16:43:57 +00:00
matz
efa8c3e0d9 * version.h: updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 15:22:58 +00:00
matz
8aa4048e5c * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
readpartial.  [ruby-talk:127641]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 15:21:31 +00:00
nobu
14e256f4b1 * dir.c (ruby_glob): glob function not using ruby exception system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 13:41:02 +00:00
eban
7282f8e785 * 2005-09-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 17:07:35 +00:00
aamine
6db56d9a50 * lib/net/https.rb: backported from trunk, rev 1.3. [ruby-dev:25673] (again), [ruby-dev:26617] (again), [ruby-dev:27062]
* ext/openssl/lib/net/https.rb: removed.
* ext/openssl/lib/net/protocols.rb: removed.
* lib/net/http.rb: #use_ssl?, #use_ssl are moved from net/https.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 16:27:01 +00:00
nahi
5d0bf56235 * lib/logger.rb (Logger): added formatter accessor to logger for
dictating the way in which the logger should format the messages it
          displays.  Thanks to Nicholas Seckar (cf. [ruby-talk:153391]) and
          Daniel Berger.

        * lib/logger.rb (Logger): added VERSION constant.

        * lib/logger.rb: removed document for LogDevice. It is an
          implementation detail and is not a public interface.

        * test/logger/test_logger.rb: added tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 13:13:41 +00:00
nobu
9a7b502846 * eval.c (BEGIN_CALLARGS): pop halfly pushed status.
fixed: [ruby-dev:26881]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 12:47:43 +00:00
nobu
901d345ff2 * 2005-09-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 12:10:46 +00:00
aamine
e99c067d8e * lib/net/http.rb: backported from trunk, rev 1.128. [ruby-dev:25673] [ruby-dev:26617]
* lib/net/protocol.rb: backported from trunk, rev 1.78.
* lib/net/protocol.rb: new method #old_open to support net/smtp and net/pop.
* lib/net/smtp.rb: use #old_open.
* lib/net/pop.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 07:27:18 +00:00
why
bf20e3b82e * lib/yaml.rb: reworking YAML::Stream to use the new
emitter.

* lib/yaml/stream.rb: ditto.

* lib/yaml/rubytypes.rb: added Object#yaml_new.

* lib/yaml/tag.rb: the tag_subclasses? method now
  shows up in the class.  allow taguri to be set using an accessor.
  continue support of Object#to_yaml_type.

* ext/syck/rubyext.c: new emitter code.  yaml_new and yaml_initialize
  get called, should they be present.  consolidated all the diaspora of internal
  node types into the family below YAML::Syck::Node -- Map,
  Seq, Scalar -- all of whom are SyckNode structs pointing to
  Ruby data.  moved Object#yaml_new into the node_import and made it the
  default behavior.  the target_class is always called wih yaml_new, prepended
  a parameter, which is the klass.  loaded nodes through GenericResolver show their style.
  new Resolver#tagurize converts type ids to taguris.

* ext/syck/implicit.re: were 'y' and 'n' seriously omitted??

* ext/syck/emitter.c: renovated emitter, walks the tree in advance.
  consolidated redundant block_styles struct into
  the scalar_style struct.  (this means loaded nodes can now
  be sent back to emitter and preserve at least its very basic
  formatting.)

* ext/syck/gram.c: headless documents of any kind allowed.

* ext/syck/node.c: new syck_replace_str methods and syck_empty_*
  methods for rewriting node contents, while keeping the ID
  and other setup info.  added syck_seq_assign.

* ext/syck/syck.h: reflect block_styles and new node functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 03:58:34 +00:00
(no author)
dc1a4aec41 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 03:58:34 +00:00
why
176a7ab72a * lib/yaml.rb: reworking YAML::Stream to use the new
emitter.

* lib/yaml/stream.rb: ditto.

* lib/yaml/rubytypes.rb: added Object#yaml_new.

* lib/yaml/tag.rb: the tag_subclasses? method now
  shows up in the class.  allow taguri to be set using an accessor.
  continue support of Object#to_yaml_type.

* ext/syck/rubyext.c: new emitter code.  yaml_new and yaml_initialize
  get called, should they be present.  consolidated all the diaspora of internal
  node types into the family below YAML::Syck::Node -- Map,
  Seq, Scalar -- all of whom are SyckNode structs pointing to
  Ruby data.  moved Object#yaml_new into the node_import and made it the
  default behavior.  the target_class is always called wih yaml_new, prepended
  a parameter, which is the klass.  loaded nodes through GenericResolver show their style.
  new Resolver#tagurize converts type ids to taguris.

* ext/syck/implicit.re: were 'y' and 'n' seriously omitted??

* ext/syck/emitter.c: renovated emitter, walks the tree in advance.
  consolidated redundant block_styles struct into
  the scalar_style struct.  (this means loaded nodes can now
  be sent back to emitter and preserve at least its very basic
  formatting.)

* ext/syck/gram.c: headless documents of any kind allowed.

* ext/syck/node.c: new syck_replace_str methods and syck_empty_*
  methods for rewriting node contents, while keeping the ID
  and other setup info.  added syck_seq_assign.

* ext/syck/syck.h: reflect block_styles and new node functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-13 03:58:33 +00:00
gotoyuzo
19dbb4c3c1 * test/openssl/test_pkcs7.rb (test_enveloped): skip this test
to avoid a bug of PKCS7_enctypt() (only if ext/openssl is
  compiled with OpenSSL-0.9.7d or earlier versions).
  http://www.mail-archive.com/openssl-dev@openssl.org/msg17376.html


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-12 11:55:25 +00:00
matz
f18b418982 * test/dbm/test_dbm.rb: remove locking test, which may not be
supported on some platforms.  [ruby-dev:27030]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-12 09:31:40 +00:00
matz
27a4ca932d * ext/dl/dl.c (rb_io_to_ptr): merged a patch for DragonFly BSD
from Takahiro Kambe <taca@back-street.net>.  [ruby-dev:27023]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-12 01:51:57 +00:00
matz
c1e995c39a 2005-09-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-12 01:51:55 +00:00
seki
03ce8fe924 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/branches/ruby_1_8@9121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-11 13:18:59 +00:00
seki
a211caf936 2005-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-11 13:18:56 +00:00
ocean
b4c0ce8821 tiny ChangeLog fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 02:07:48 +00:00
gotoyuzo
d6f7df8db3 * 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. the following code is a sample of loading a key using
  OpenSC PKCS #11 module.

        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/branches/ruby_1_8@9116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 01:19:38 +00:00
gotoyuzo
1a5d15fd08 these files were forgotten in last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 01:17:00 +00:00
gotoyuzo
748cc76f92 * 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/branches/ruby_1_8@9114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 01:11:16 +00:00
gotoyuzo
5c1d0e3eb4 * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): assume that
the argument is a DER string if Base64 decoding failed.

* ext/openssl/ossl_ns_pki.c (ossl_spki_to_der): new method.

* test/openssl/test_ns_spki.rb: add new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 01:08:21 +00:00
(no author)
a4164e5949 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 01:08:21 +00:00
gotoyuzo
580d8dca40 * ext/openssl/lib/digest.rb: added SHA224, SHA256, SHA384 and SHA512.
these features are enabled if this library is compiled with
  OpenSSL 0.9.8 or later.

* test/openssl/test_digest.rb: add test for new digests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 00:57:20 +00:00
gotoyuzo
2ec654a1a0 * ext/openssl/ossl.c (ossl_raise): should use ERR_peek_last_error
to get last error on the current thread. And should report
  errors are on the stack while OpenSSL.debug is true.

* ext/openssl/ossl.c (ossl_get_errors): new method for debugging
  this library.

* 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.

* 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 failed.

* test/openssl/test_x509store.rb: add test for errors.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 00:54:31 +00:00
gotoyuzo
6d77710327 2005-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-10 00:54:24 +00:00
matz
2ca6c3a16a * eval.c (rb_call0): prohibit calling tainted method (>2) when
$SAFE == 0.

* sprintf.c (rb_f_sprintf): warn "too many argument" on verbose
  mode (-v/-w); backported from 1.9.  [ruby-dev:26963]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 13:15:16 +00:00
nobu
ad5b3bac0f * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of meta
characters in command line option.  fixed: [ruby-talk:155369]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:45:54 +00:00
nobu
bf50186080 2005-09-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:35:34 +00:00
nobu
64285c5990 * 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/branches/ruby_1_8@9104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-09 07:35:31 +00:00
matz
7b4486c877 * merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD.  [ruby-dev:26984]

* object.c (rb_mod_cvar_get, rb_mod_cvar_set): document fix from
  sheepman <sheepman@sheepman.sakura.ne.jp>; a bug in visibility
  description.  [ruby-dev:26965]

* sprintf.c (rb_f_sprintf): warn "too many argument" on verbose
  mode (-v/-w); backported from 1.9.  [ruby-dev:26963]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-08 05:59:43 +00:00
matz
ac0a38e8cf 2005-09-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-08 05:59:35 +00:00
akr
f32584cea1 * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
[ruby-dev:26967].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 03:58:39 +00:00
nobu
9e23e9a078 * 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/branches/ruby_1_8@9092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 01:45:40 +00:00
nobu
e9e21c9c80 * 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/branches/ruby_1_8@9090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 23:35:31 +00:00
nobu
c0af1a72a1 * 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/branches/ruby_1_8@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 23:23:04 +00:00
nobu
cca72f1d09 2005-09-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-06 23:22:57 +00:00
akr
307d277bbc 2005-09-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 15:02:12 +00:00
akr
d97f060c6a document a blocking behavior of IO#eof?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 15:02:10 +00:00
matz
71c9c41281 * lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>
merged to allow recursive inspect (and to_s) for OpenStruct.
  [ruby-core:05532]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 08:26:50 +00:00
matz
fe5473f27c * lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>
merged to allow recursive inspect (and to_s) for OpenStruct.
  [ruby-core:05532]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-05 08:10:23 +00:00
gotoyuzo
260231d3f6 * 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/branches/ruby_1_8@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-04 22:03:24 +00:00
gotoyuzo
924e4929fe 2005-09-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-04 22:03:19 +00:00
nobu
f42208b70c * lib: do not use __send__ to access private methods. [ruby-dev:26935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-02 14:53:02 +00:00
keiju
b6a9db5005 * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.
[ruby-dev:26872], [ruby-dev: 26920]

* 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/branches/ruby_1_8@9068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 18:30:46 +00:00
keiju
848bea8794 2005-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 18:30:38 +00:00