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

1195 Коммитов

Автор SHA1 Сообщение Дата
knu b700e189bd * ext/syslog/syslog.c: Merge from rough. Turn Syslog into a
module keeping backward compatibility intact.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 12:13:30 +00:00
nobu 959a99078e commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 10:46:48 +00:00
nobu 0778120490 * sample/test.rb (system): test with scripts under the source
directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 10:43:13 +00:00
eban 7974acf6c5 2002-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 09:20:05 +00:00
matz 6d47b8a9cc * eval.c (method_inspect): should not dump core for unbound
singleton methods.

* object.c (rb_mod_to_s): better description.

* hash.c (env_select): should path the assoc list.

* process.c (rb_syswait): thread kludge; should be fixed to
  support native thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 09:16:25 +00:00
nobu aaa30fd040 * lib/shell.rb (Shell::expand_path): relative to @cwd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-25 04:35:12 +00:00
knu 3dc9d269e2 * ext/digest/*/*.h: Merge from rough.
- Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-24 08:25:09 +00:00
knu d9479e72a6 Merge from rough.
- Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-24 08:20:50 +00:00
nahi 018c5191bf Refactoring. Added Context#format_frame to format a frame, used by up/down
command and Context#display_frames.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-23 09:40:58 +00:00
aamine d80b8cd59e modify typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 12:54:11 +00:00
akr 56438ac66d fix filename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 12:43:05 +00:00
aamine d3b66ccf45 * lib/net/protocol.rb: set read_timeout dynamically.
* lib/net/http.rb: @@newimpl is always true in the main trunk.
* lib/net/http.rb: HTTP.port -> default_port
* lib/net/http.rb: HTTPResponse.read_response_status -> read_status_line


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 12:10:58 +00:00
nobu 9093e4a4a5 2002-02-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 11:24:56 +00:00
usa 9ca5b918eb * win32/config.status.in: set LIBRUBY_SO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 10:59:46 +00:00
matz 088d04d88e * bignum.c (get2comp): need to specify to carry or not.
* io.c (rb_io_inspect): embed path info.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 10:28:47 +00:00
akr 9ce7325615 * prettyprint.rb: FillGroup implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 02:31:46 +00:00
usa 5024bd594d * ext/extmk.rb.in (create_makefile): remove unnecessary -L option from
LIBS macro.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-21 12:42:32 +00:00
eban ce9ce9ad63 2002-02-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-21 10:21:09 +00:00
matz a08cea360d * pack.c (pack_pack): wrong # comment treatment.
* pack.c (pack_unpack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-21 07:15:06 +00:00
nobu 7f97e8948d 2002-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-20 06:45:07 +00:00
nobu 0eb1a2ff6d * intern.h: prototypes; rb_io_addstr(), rb_io_printf(),
rb_io_print(), rb_io_puts()

* io.c (rb_io_addstr): make extern.

* io.c (rb_io_printf): ditto.

* io.c (rb_io_print): ditto.

* io.c (rb_io_puts): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-20 06:35:37 +00:00
usa 4fd111f0c1 * io.c (rb_io_close): return Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-20 04:42:49 +00:00
matz c46468d773 * hash.c (rb_any_cmp): should handle Qundef in keys.
* eval.c (remove_method): should not remove a empty method to
  implement "undef".

* eval.c (rb_eval): should allow singleton class def for
  true/false/nil.

* parse.y (str_extend): backslash escape was done wrong.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-20 04:31:50 +00:00
nobu dc7f9c1f89 Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 13:16:23 +00:00
aamine 19f7f6ea12 aamine
* lib/net/protocol.rb: rename Protocol.port to default_port.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.
* lib/net/protocol.rb: rename BufferedSocket class to InternetMessageIO.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.
* lib/net/protocol.rb: rename InternetMessageIO#write_pendstr to write_message.
* lib/net/smtp.rb: ditto.
* lib/net/protocol.rb: new method InternetMessageIO#through_message.
* lib/net/smtp.rb: ditto.
* lib/net/protocol.rb: rename InternetMessageIO#read_pendstr to read_message_to.
* lib/net/pop.rb: ditto.
* lib/net/protocol.rb: rename InternetMessageIO#read_pendlist to each_list_item
* lib/net/pop.rb: ditto.
* lib/net/protocol.rb: Now block size is 1024.
* lib/net/smtp.rb: new methods SMTP#esmtp? and #esmtp=.
* lib/net/http.rb: Using singleton method syntax instead of singleton class clause, to avoid behavior change of class variables in ruby 1.7.
* lib/net/http.rb: HTTPResponse class does not inherit from Net::Response.
* lib/net/http.rb: devide HTTP#connecting into {begin,end}_transport.
* lib/net/http.rb: unused class Accumulator removed.
* lib/net/http.rb: Net::HTTP reads response. not HTTPRequest.
* lib/net/http.rb: proxy related class-instance-variables are not initialized correctly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 12:33:52 +00:00
nobu c1bfef9494 * file.c (path_check_1): do not fail on world writable *parent*
directories too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 08:13:26 +00:00
matz 9eae31d569 * file.c (path_check_1): do not warn on world writable *parent*
directories.

* class.c (rb_include_module): should preserve ancestor order in
  the included class/module.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 07:47:07 +00:00
matz 87dfb89d2e file.c (path_check_1): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 06:50:22 +00:00
matz e60deb1555 * file.c (path_check_1): should check directory sticky bits.
* process.c (security): need not to warn twice.

* marshal.c (r_object): complete restoration before calling
  r_regist().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 06:43:58 +00:00
matz 87bf8b1dc3 * parse.y (yylex): operators in the "op" rule should make
lex_state EXPR_ARG on EXPR_FNAME and EXPR_DOT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 05:39:06 +00:00
matz d1ca5e6d6a * eval.c (rb_eval_string_wrap): should hide the toplevel local
variable bindings by PUSH_SCOPE().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 04:49:27 +00:00
eban 1a7929a969 * regex.c: fix prototypes of xmalloc(), xcalloc() and xrealloc().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 04:25:39 +00:00
nobu 0cbfe8c524 * io.c (rb_io_ungetc): don't fail pushed EOF back.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 04:19:06 +00:00
nobu e58ec21435 2002-02-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-18 11:54:50 +00:00
nobu 7ef48b40ba * pack.c (pack_pack): avoid infinite loop at comment.
* pack.c (pack_unpack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-18 11:51:10 +00:00
matz 7de72c4858 * parse.y (expr_value, arg_value, primary_value): value_expr()
check in place.

* eval.c (block_pass): "&nil" should clear block given.

* dir.c (push_braces): remove MAXPATHLEN dependency.

* dir.c (dir_s_globd): ditto.

* dln.c (init_funcname): ditto.

* dln.c (load_1): ditto.

* dln.c (dln_load): ditto.

* configure.in: add GNU/Hurd switches.

* pack.c (pack_pack): allows comment in template strings.

* pack.c (pack_unpack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-18 09:52:48 +00:00
nobu 3432cecf24 * misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
indented.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-18 05:17:53 +00:00
nobu 4dd348b2b4 * misc/ruby-mode.el (ruby-font-lock-keywords): fontify
instance/class/global variables start with '_'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-17 15:31:37 +00:00
nobu 21d0c3b815 * mkconfig.rb (Config::expand): expand ${} too.
* ext/extmk.rb.in (try_link0): expand command.

* ext/extmk.rb.in (try_cpp): ditto.

* ext/extmk.rb.in (extmake): default $LIBPATH to $libdir


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-17 14:46:44 +00:00
nobu 11829a5368 * class.c (rb_define_class): warn unless superclass is specified
explicitly.

* class.c (rb_define_class_under): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-17 14:44:14 +00:00
nobu b1544b7d5d 2002-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-17 13:01:56 +00:00
nobu c4449fd4c4 * ext/digest/md5/md5init.c (Init_md5): rb_cvar_declare() is
replaced by rb_cvar_set().

* ext/digest/rmd160/rmd160init.c (Init_rmd160): ditto.

* ext/digest/sha1/sha1init.c (Init_sha1): ditto.

* ext/digest/sha2/sha2init.c (Init_sha2): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-17 12:43:44 +00:00
nobu 0d8551b3a9 2002-02-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-16 02:23:49 +00:00
nobu beb24c5888 * regex.c (re_compile_fastmap): skip begpos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-16 00:58:51 +00:00
matz 1e5d404935 * eval.c (rb_eval): replace rb_cvar_declare() by rb_cvar_set().
* eval.c (assign): ditto.

* variable.c (rb_cvar_set): 4th argument (warn) added; define new
  class variable if it's not defined yet.

* variable.c (rb_cvar_declare): removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-15 06:14:26 +00:00
matz 289430e8ec * bignum.c (rb_big_rshift): should properly convert the nagative
value to 2's compliment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-15 04:43:58 +00:00
nobu 9bd2c2681f 2002-02-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-14 08:49:21 +00:00
nobu 9ae27073fa * parse.y: avoid SEGV at OP_ASIGN to pseudo variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-14 08:47:58 +00:00
matz aac5ff0031 * struct.c (Init_Struct): should undefine "allocate" for Struct
class (it's redefined in the subclasses).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-14 07:49:27 +00:00
matz 5db5aa2edb sorry, assignable typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-13 16:39:37 +00:00