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

232 Коммитов

Автор SHA1 Сообщение Дата
matz 63b6b9c430 * time.c (time_plus): result should not be negative unless
NEGATIVE_TIME_T is defined.

* time.c (time_new_internal): should check tv_sec overflow too.

* time.c (time_timeval): should check time_t range when time is
  initialized from float.

* time.c (time_plus): uses modf(3).

* variable.c (rb_cvar_set): add frozen class/module check.

* variable.c (rb_cvar_declare): add frozen class/module check.

* re.c (match_to_a): should propagate taint.

* re.c (rb_reg_s_quote): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-21 09:23:28 +00:00
aamine 39c0252e04 aamine
* lib/net/pop.rb: new method Net::POP3.APOP
* lib/net/http.rb: set default Content-Type to x-www-form-urlencoded (causes warning)
* lib/net/protocol.rb: remove Net::NetPrivate module.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-13 19:15:21 +00:00
aamine fa6dc283cd aamine
* lib/net/protocol.rb: calls on_connect before conn_command


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-09 08:58:30 +00:00
knu 09a4937b2f Import the "syslog" module from the rough ruby project. This module
provides the interface to the UNIX system logger (syslog).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-26 12:00:40 +00:00
matz dc98adf839 * process.c (security): always give warning for insecure PATH.
* dir.c (my_getcwd): do not rely on MAXPATHLEN.

* file.c (rb_file_s_readlink): ditto.

* file.c (path_check_1): ditto.

* eval.c (rb_yield_0): should not call rb_f_block_given_p().

* string.c (rb_str_chomp_bang): should terminate string by NUL.

* eval.c (rb_yield_0): better error message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-08 06:43:14 +00:00
matz b47a99485b * parse.y (yylex): ternary ? can be followed by newline.
* eval.c (rb_f_require): should check static linked libraries
  before raising exception.

* array.c (rb_ary_equal): check identiry equality first.

* string.c (rb_str_equal): ditto.

* struct.c (rb_struct_equal): ditto.

* numeric.c (Init_Numeric): undef Integer::new.

* eval.c (rb_eval): NODE_WHILE should update result for each
  conditional evaluation.

* eval.c (rb_eval): NODE_UNTIL should return last evaluated value
  (or value given to break).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-29 06:28:51 +00:00
aamine 772ed5507e aamine
* lib/net/protocol.rb: Protocol.new requires at least one arg.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-17 03:08:45 +00:00
knu 1414cebea8 Mention ext/curses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-16 08:13:54 +00:00
matz 04a8e85bc5 * range.c (range_step): new method.
* string.c (rb_str_cmp): remove needless conditional.

* string.c (rb_str_lstrip_bang) `return Qnil' was missing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-14 08:13:31 +00:00
knu 0aa005f8e9 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-13 05:56:30 +00:00
knu dd246c36b9 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-13 05:32:59 +00:00
matz f33a61c28d * string.c (rb_str_lstrip_bang): new method.
* string.c (rb_str_rstrip_bang): new method.

* string.c (rb_str_associate): should consider STR_ASSOC too.

* eval.c (rb_undefined): do not recurse if method_missing is
  undefined.

* process.c (proc_waitpid): now all arguments are optional.

* process.c (Init_process): waitpid is now alias to wait.

* process.c (Init_process): waitpid2 is now alias to wait2.

* process.c (rb_waitpid): made public.

* ext/pty/pty.c (pty_getpty): avoid disturbing SIGCHLD using
  thread and rb_waitpid.

* process.c (proc_getpgrp): now takes no argument on all
  platforms.

* process.c (proc_setpgrp): ditto.

* ext/socket/socket.c (sock_s_pack_sockaddr_in): added
  Socket::pack_sockaddr_in(). [new]

* ext/socket/socket.c (sock_s_pack_sockaddr_un): added
  Socket::pack_sockaddr_un(). [new]

* ext/socket/socket.c (sock_s_pack_sockaddr_in): added
  Socket::unpack_sockaddr_in(). [new]

* ext/socket/socket.c (sock_s_pack_sockaddr_un): added
  Socket::unpack_sockaddr_un(). [new]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-06 03:05:23 +00:00
knu ea82a51a15 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-24 10:19:46 +00:00
knu f50be7cba7 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-19 05:49:51 +00:00
knu eaddc4a94b Rename *.jp to *.ja, since jp is a region code and ja is a language
code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-19 05:44:26 +00:00
aamine b84329fb53 add doc/net/http.rd.ja pop.rd.ja smtp.rd.ja
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-18 20:45:55 +00:00
knu d59652ef25 Reflect the previous backport.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-05 16:07:53 +00:00
knu 0c92a85e6a * ext/readline/readline.c: add new methods:
Readline::completion_append_character and
  Readline::completion_append_character=.k


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-19 09:21:38 +00:00
knu a74a6b0d91 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-19 05:28:10 +00:00
knu 6aa71d4c80 * dir.c (Init_Dir): add a new method File::fnmatch? along with
File::Constants::FNM_*.  While I am here, FNM_NOCASE is renamed
  to FNM_CASEFOLD which is commonly used by *BSD and GNU libc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-13 10:51:39 +00:00
knu 68ebfef615 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-12 05:34:03 +00:00
knu 53a2b14909 Add an entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-09 06:00:52 +00:00
knu dd90741112 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-05 08:17:25 +00:00
knu 9b650354b4 Add NEWS, in which we describe the changes that affect users.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-04 05:30:25 +00:00
keiju 3c024ba5e2 * irb messages: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-01 15:26:47 +00:00
knu d9a07d5506 * doc/shell.rd.jp: RD'ify and make some fixes.
* doc/shell.rd: RD'ify, delete Japanese leftovers, make overall
English fixes, and sync with doc/shell.rd.jp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 10:09:49 +00:00
knu d9350f5600 Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 10:02:47 +00:00
knu 6ea8746048 Hit `=begin' and `=end' in proper places so rd2 can format them
without a problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-07 23:52:57 +00:00
knu 32d17e265c Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-07 23:38:52 +00:00
knu 6bbab099c0 Convert from JIS to EUC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-07 23:35:09 +00:00
knu 8752585250 Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 18:17:38 +00:00
knu f8ab487e4d Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 17:38:21 +00:00