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

642 Коммитов

Автор SHA1 Сообщение Дата
knu dcd6223c64 * ext/dbm/extconf.rb: fix support for *BSD and set $CFLAGS
properly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-24 15:55:40 +00:00
eban 79f2ee2f04 * mkconfig.rb: autoconf 2.50 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-24 07:13:56 +00:00
matz 0fb0d42369 * eval.c (rb_yield_0): need argument adjustment for C defined
blocks too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-24 06:10:36 +00:00
matz 315cd83418 * variable.c (rb_alias_variable): should not allow variable
aliasing if $SAFE >= 4.

* parse.y (expr): "break" and "next" to take optional expression,
  which is used as a value for termination. [new, experimental]

* eval.c (rb_eval): "break" can give value to terminating method.

* eval.c (rb_eval): "break" and "next" to take optional expression.

* eval.c (rb_yield_0): "next" can give value to terminating "yield".

* eval.c (rb_iterate): "break" can give value to terminating method.

* eval.c (proc_call): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-22 08:28:11 +00:00
matz ed6a2bd29f * bignum.c (rb_big2str): t should be protected from GC.
* process.c (rb_proc_times): need not to check retrun value from
  times(2).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-21 04:22:54 +00:00
knu 4a14c9ceb9 * ext/extmk.rb.in (xsystem): backout the previous fix which was
bogus.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 20:37:25 +00:00
knu 0eea0bf571 * lib/mkmf.rb (xsystem): make a temporary fix to get $(...) macros
properly expanded on a command execution.

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


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 20:23:08 +00:00
knu 156b183551 * lib/mkmf.rb: unbreak "make install". lib/* must be installed
under $rubylibdir, not under $libdir.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 18:50:50 +00:00
knu 98e79eccdf * ext/sha1/sha1-ruby.c (sha1_new): get rid of an unneeded
rb_obj_call_init() call.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 16:13:34 +00:00
knu 7a140a3cb0 * ext/sha1/sha1.txt, ext/sha1/sha1.txt.jp: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 16:05:49 +00:00
knu 7c3df3e99e Adjust indents and blank lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 11:04:15 +00:00
knu 491c26f3ef * lib/shell.rb, lib/shell/process-controller.rb,
lib/shell/command-processor.rb: translate Japanese comments into
English.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 10:19:45 +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
matz c2fa753f7d * eval.c (rb_call0): address of local_vars might change during eval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-17 08:49:44 +00:00
knu 8d1201cc55 Add a missed ChangeLog entry.
Tue May  8 18:28:19 2001  Keiju Ishitsuka  <keiju@ishitsuka.com>

	* lib/irb.rb lib/irb/multi-irb.rb lib/irb/ruby-lex.rb
	lib/irb/version.rb resolve ctrl-c problem


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 23:39:28 +00:00
knu 43f76f99b7 * ext/md5/md5.txt.jp, ext/sha1/sha1.txt.jp: s/SuperClass/Superclass/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 22:28:40 +00:00
knu 23423d7d03 * ext/Setup.dj, ext/Setup.emx, ext/Setup.nt, ext/Setup.x68:
compile sha1 in as well as md5.

* ext/Setup: put sha1 in a comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 22:25:02 +00:00
knu a57dc21ef0 * ext/sha1/sha1.txt.jp: add the Japanese version derived from
ext/md5/md5.txt.jp.

* ext/sha1/sha1.txt: revise the copyright info and reduce the
difference from ext/md5/md5.txt.

* ext/md5/md5.txt: reduce the difference from ext/sha1/sha1.txt.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 22:19:30 +00:00
knu ca841613cd * ext/sha1/extconf.rb, ext/sha1/sha1.c: use WORDS_BIGENDIAN to
detect the platform's endian.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 22:14:01 +00:00
knu 4202ff1a9f * ext/md5/md5.txt: make wording fixes, and mention the newly added
method: "<<".

* ext/md5/md5.txt.jp: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 21:34:18 +00:00
knu 8bd77e8db4 Add a missed entry.
* ext/md5/md5init.c: add an instance method "<<" as an alias for
"update". (inspired by Steve Coltrin's ruby-sha1)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 21:14:27 +00:00
matz f84f4aa6b3 * array.c (rb_ary_and): should not push frozen key string.
* array.c (rb_ary_or): ditto.

* eval.c (rb_thread_schedule): should save context before raising
  deadlock, saved context for current thread might be obsolete.

* time.c (make_time_t): non DST timezone shift supported (hopefully).

* time.c (make_time_t): strict range detection for negative time_t.

* signal.c: SIGINFO added.

* eval.c (rb_ensure): should not SEGV when prot_tag is NULL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 09:05:54 +00:00
usa 59d82a928a * win32/resource.rb: Modify copyright in resource script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-13 14:51:45 +00:00
usa 0f55389d96 * win32/win32.c (kill): add support of signal 9 on mswin32/mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-12 06:47:24 +00:00
knu fd379cd7f0 Put some missed entries to the ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-11 17:16:54 +00:00
eban 84eff7b142 * ruby.h (rb_string_value): add volatile to avoid compiler warning.
* string.c (rb_string_value): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-11 06:13:45 +00:00
matz cc043890f8 * bignum.c (bigdivrem): access boundary bug.
* marshal.c (w_object): prohibit dumping out singleton classes.

* object.c (rb_mod_to_s): distinguish singleton classes.

* variable.c (rb_class2name): it's ok to reveal NilClass,
  TrueClass, FalseClass.

* eval.c (rb_yield_0): preserve and restore ruby_cref as well.

* eval.c (is_defined): core dumped during instance_eval for
  special constants.

* eval.c (rb_eval): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-11 05:24:59 +00:00
matz 13cbec33c1 * parse.y (arg): "||=" should not warn for uninitialized instance
variables.

* eval.c (rb_eval): ditto.

* eval.c (eval): preserve and restore ruby_cref as well.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-07 09:26:29 +00:00
eban 075169f071 * lib/ftools.rb (syscopy): chmod destination file only if
it does not exist.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-07 06:57:40 +00:00
knu f0448281f5 I'm committing this from a MacOS X host. :)
* configure.in: get --enable-shared to work on MacOS X.

* Makefile.in: make $(LIBRUBY_SO) depend on miniruby properly.
Now `make -jN' should work without a problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-02 18:35:50 +00:00
usa eb0d3500d3 * win32/config.h.in: add SIZEOF___INT64 definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-02 17:09:22 +00:00
eban e28a9a7b94 * dir.c (rb_glob, rb_globi): remove unnecessary FNM_PATHNAME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-02 12:07:30 +00:00
matz fd06a2a7fb * eval.c (block_pass): should not downgrade safe level.
* ext/dbm/extconf.rb: allow specifying dbm-type explicitly.

* ext/dbm/extconf.rb: avoid gdbm if possible, because it leaks
  memory, whereas gdbm.so doesn't.  potential incompatibility.

* string.c (rb_str_insert): new method.

* parse.y (yylex): lex_state after RESCUE_MOD should be EXPR_BEG.

* array.c (rb_ary_insert): new method.

* array.c (rb_ary_update): new utility function.

* io.c (set_outfile): should check if closed before assignment.

* eval.c (rb_eval): should preserve value of ruby_errinfo.

* eval.c (rb_thread_schedule): infinite sleep should not cause
  dead lock.

* array.c (rb_ary_flatten_bang): proper recursive detection.

* eval.c (yield_under): need not to prohibit at safe level 4.

* pack.c (pack_pack): p/P packs nil into NULL.

* pack.c (pack_unpack): p/P unpacks NULL into nil.

* pack.c (pack_pack): size check for P template.

* ruby.c (set_arg0): wrong predicate when new $0 value is bigger
  than original space.

* gc.c (id2ref): should use NUM2ULONG()

* object.c (rb_mod_const_get): check whether name is a class
  variable name.

* object.c (rb_mod_const_set): ditto.

* object.c (rb_mod_const_defined): ditto.

* marshal.c (w_float): precision changed to "%.16g"

* eval.c (rb_call0): wrong retry behavior.

* numeric.c (fix_aref): a bug on long>int architecture.

* eval.c (rb_eval_string_wrap): should restore ruby_wrapper.

* regex.c (re_compile_pattern): char class at either edge of range
  should be invalid.

* eval.c (handle_rescue): use === to compare exception match.

* error.c (syserr_eqq): comparison between SytemCallErrors should
  based on their error numbers.

* eval.c (safe_getter): should use INT2NUM().

* bignum.c (rb_big2long): 2**31 cannot fit in 31 bit long.

* regex.c (calculate_must_string): wrong length calculation.

* eval.c (rb_thread_start_0): fixed memory leak.

* parse.y (none): should clear cmdarg_stack too.

* io.c (rb_fopen): use setvbuf() to avoid recursive malloc() on
  some platforms.

* file.c (rb_stat_dev): device functions should honor stat field
  types (except long long such as dev_t).

* eval.c (rb_mod_nesting): should not push nil for nesting array.

* eval.c (rb_mod_s_constants): should not search array by
  rb_mod_const_at() for nil (happens for singleton class).

* class.c (rb_singleton_class_attached): should modify iv_tbl by
  itself, no longer use rb_iv_set() to avoid freeze check error.

* variable.c (rb_const_get): error message "uninitialized constant
  Foo at Bar::Baz" instead of "uninitialized constantBar::Baz::Foo".

* eval.c (rb_mod_included): new hook called from rb_mod_include().

* io.c (opt_i_set): should strdup() inplace_edit string.

* eval.c (exec_under): need to push cref too.

* eval.c (rb_f_missing): raise NameError for "undefined local
  variable or method".

* error.c (Init_Exception): new exception NoMethodError.
  NameError moved under ScriptError again.

* eval.c (rb_f_missing): use NoMethodError instead of NameError.

* file.c (Init_File): should redifine "new" class method.

* eval.c (PUSH_CREF): sharing cref node was problematic.  maintain
  runtime cref list instead.

* eval.c (rb_eval): copy defn node before registering.

* eval.c (rb_load): clear ruby_cref before loading.

* variable.c (rb_const_get): no recursion to show full class path
  for modules.

* eval.c (rb_set_safe_level): should set safe level in curr_thread
  as well.

* eval.c (safe_setter): ditto.

* object.c (rb_obj_is_instance_of): nil belongs to false, not true.

* time.c (make_time_t): proper (I hope) daylight saving time
  handling for both US and Europe.  I HATE DST!

* eval.c (rb_thread_wait_for): non blocked signal interrupt should
  stop the interval.

* eval.c (proc_eq): class check aded.

* eval.c (proc_eq): typo fixed ("return" was ommitted).

* error.c (Init_Exception): move NameError under StandardError.

* class.c (rb_mod_clone): should copy method bodies too.

* bignum.c (bigdivrem): should trim trailing zero bdigits of
  remainder, even if dd == 0.

* file.c (check3rdbyte): safe string check moved here.

* time.c (make_time_t): remove HAVE_TM_ZONE code since it
  sometimes reports wrong time.

* time.c (make_time_t): remove unnecessary range check for
  platforms where negative time_t is available.

* process.c (proc_waitall): should push Process::Status instead of
  Finuxm status.

* process.c (waitall_each): should add all entries in pid_tbl.
  these changes are inspired by Koji Arai.  Thanks.

* process.c (proc_wait): should not iterate if pid_tbl is 0.

* process.c (proc_waitall): ditto.

* numeric.c (flodivmod): a bug in no fmod case.

* process.c (pst_wifsignaled): should apply WIFSIGNALED for status
  (int), not st (VALUE).

* io.c (Init_IO): value of $/ and $\ are no longer restricted to
  strings.  type checks are done on demand.

* class.c (rb_include_module): module inclusion should be check
  taints.

* ruby.h (STR2CSTR): replace to StringType() and StringTypePtr().

* ruby.h (rb_str2cstr): ditto.

* eval.c (rb_load): should not copy topleve local variables.  It
  cause variable/method ambiguity.  Thanks to L. Peter Deutsch.

* class.c (rb_include_module): freeze check at first.

* eval.c (rb_attr): sprintf() and rb_intern() moved into
  conditional body.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-02 04:22:21 +00:00
knu 30a7496b22 Merge from irb-tools 0.7.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 18:25:04 +00:00
knu 71eab67953 * sample/irb.rb, lib/irb.rb, lib/irb/*, doc/irb/*: Merge from irb
0.7.3.

* instruby.rb: Install help-message's too.

* lib/irb/main.rb: This file is not needed anymore.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-30 18:11:08 +00:00
eban e32f6a8269 * configure.in: don't use tzname on cygwin 1.3.1+.
* configure.in: add -mieee/-ieee to CFLAGS on OSF1/Alpha
  to disable "DIVISION BY ZERO" exception.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-26 13:58:10 +00:00
knu 4dfc822aec * ext/extmk.rb.in, lib/mkmf.rb: (dir_config) do not add the
specified include directory if already included in $CPPFLAGS.

* ext/extmk.rb.in, lib/mkmf.rb: (dir_config) return a more useful
value, [include_dir, lib_dir].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-24 06:21:58 +00:00
eban eccb4d0210 * configure.in: add -mieee to CFLAGS on Linux/Alpha
to disable "DIVISION BY ZERO" exception.

* configure.in: remove -ansi on OSF/1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-22 09:49:15 +00:00
wakou cc8165ad23 Wed Apr 18 04:37:51 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: CGI::Cookie: no use PATH_INFO.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-17 19:43:27 +00:00
usa 8399471902 * win32/config.status.in: no longer use missing/alloca.c.
* win32/Makefile.sub: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-14 04:38:19 +00:00
shugo bacf9d9ece * lib/net/imap.rb: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-09 02:58:56 +00:00
eban e2de605439 * ext/extmk.rb.in (create_makefile): create def file only if
it does not yet exist.
* lib/mkmf.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-03 01:16:14 +00:00
shugo 619aa50e25 * lib/monitor.rb (wait): fix timeout support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 05:27:49 +00:00
shugo 8eeaf69e52 * lib/monitor.rb (wait): ensure reentrance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 04:59:43 +00:00
shugo 3c0af9ca44 * lib/net/imap.rb (media_subtype): return subtype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 03:41:35 +00:00
shugo 41aac21944 * lib/net/imap.rb (flag_list): capitalize flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 03:03:29 +00:00
knu 286cddd445 * Makefile.in: Introduce MAINLIBS.
* configure.in: Link libc_r against the ruby executable on
FreeBSD, which is the first attempt to work around a certain
problem regarding pthread on FreeBSD.  It should make ruby/libruby
happy when it loads an extention to a library compiled and linked
with -pthread.  Note, however, that libruby is _not_ linked with
libc_r so as not to mess up pthread unfriendly stuff including
apache+mod_ruby and vim6+ruby_interp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-01 16:53:41 +00:00
eban 2ed9c79bbb * win32/win32.c: use ruby's opendir on mingw32.
* win32/dir.h, dir.c, Makefile: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-01 16:22:13 +00:00
shugo 8de229963c * lib/net/imap.rb: add document and example code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-30 19:51:33 +00:00
shugo c32024a3b5 * lib/net/imap.rb: rename ContinueRequest to ContinuationRequest.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-30 13:59:26 +00:00
knu 65579c6b31 * ext/extmk.rb.in, lib/mkmf.rb: add C++ rules in addition to C
rules for the mswin32 platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-28 14:47:44 +00:00
knu 03f06165b8 * ext/extmk.rb.in, lib/mkmf.rb: move C++ rules to the right place.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-28 10:35:40 +00:00
matz 62261ccb47 * object.c (rb_str2cstr): warn if string contains \0 and length
value is ignored.

* class.c (rb_singleton_class_clone): should copy class constant
  table as well.

* class.c (rb_include_module): sometimes cache was mistakenly left
  uncleared - based on the patch by K.Kosako.

* ruby.h: all Check_SafeStr()'s are replaced by SafeStr() to
  ensure 'to_str' be always effective.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-28 08:43:25 +00:00
eban 6771ffa971 * win32/Makefile.sub: disable global optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-28 00:54:48 +00:00
matz b60a365763 * eval.c (rb_mod_define_method): should have clear method cache.
* eval.c (rb_mod_define_method): should have raised exception for
  type error.

* ruby.h: changed "extern INLINE" to "static inline".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-27 07:10:58 +00:00
eban 2559f0d90d * time.c (rb_strftime): check whether strftime returns empty string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 14:29:57 +00:00
shugo 2d32e4dd6d * lib/net/imap.rb: supports response handlers and multiple commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 12:29:50 +00:00
matz 44f754bd87 * eval.c: remove TMP_PROTECT_END to prevent C_ALLOCA crash.
* ext/Win32API/Win32API.c: remove Init_win32api().

* file.c (rb_file_flock): do not trap EINTR.

* missing/flock.c (flock): returns the value from lockf(2)
  directly.

* eval.c (ev_const_defined): should ignore toplevel cbase (Object).

* eval.c (ev_const_get): ditto.

* ext/md5/md5.h: replace by independent md5 implementation
  contributed by L. Peter Deutsch (thanks).

* ext/md5/md5init.c: adopted to Deutsch's md5 implementation.

* pack.c (pack_unpack): string from P/p should be tainted.

* ext/curses/curses.c: curses on Mac OS X public beta does not
  have _maxx etc.

* marshal.c (w_object): should truncate trailing zero short for
  bignums.

* object.c (sym_intern): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 08:54:06 +00:00
eban c8e0e1114a * ext/Win32API/Win32API.c: remove Init_win32api().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 05:11:18 +00:00
eban 9c33e4e6b4 * ext/Win32API/extconf.rb: add -fno-omit-frame-pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-22 13:23:36 +00:00
matz 9123ec551d * eval.c (rb_mod_nesting): should not include Object at the
toplevel.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-22 09:19:57 +00:00
matz 285cb99ba4 * ruby.h: better inline function support.
* configure.in (NO_C_INLINE): check if inline is available for the
  C compiler.

* marshal.c (r_object): len calculation patch was wrong for
  machines SIZEOF_BDIGITS == SIZEOF_SHORT.

* gc.c: alloca prototype reorganized for C_ALLOCA machine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-22 08:59:26 +00:00
eban 424c3fb43d * win32/win32.c (win32_stat): WinNT/2k "//host/share" support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-21 14:12:09 +00:00
matz 9910feef4f * gc.c (id2ref): sometimes confused symbol and reference.
* dir.c (glob_helper): breaks loop after calling recusive
  glob_helper; all wild cards should be consumed; no need for
  further match.

* dir.c (dir_s_glob): gives warning if no match found.

* object.c (sym_inspect): did allocate extra byte space.

* marshal.c (shortlen): shortlen should return number of bytes
  written.

* eval.c (ev_const_defined): need not to check if cbase->nd_class
  is rb_cObject.

* eval.c (ev_const_get): ditto.

* time.c (time_zone): return "UTC" for UTC time objects.

* eval.c (THREAD_ALLOC): flags should be initialized.

* signal.c (rb_f_kill): should use FIX2INT, not FIX2UINT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-21 03:41:45 +00:00
usa 98e25a542a * win32/dir.h: replace missing/dir.h .
* win32/win32.h: ditto.
* win32/win32.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-20 23:10:05 +00:00
eban a84d087d3c * win32/win32.c (win32_stat): UNC support.
* dir.c (extract_path): fix "./*" problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-20 14:50:43 +00:00
matz 1f904eed44 * dir.c (glob_helper): replace lstat() by stat() to follow symlink
in the case like 'symlink/*'.

* dir.c (glob_helper): gave warning too much.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-19 03:20:24 +00:00
wakou 20d29693ac Sun Mar 18 08:58:18 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/net/cgi.rb: // === '' --> //.match('')

	* lib/net/cgi.rb: cgi#header(): improvement for mod_ruby.

	* lib/net/cgi.rb: cgi#rfc1123date(): improvement.
	  thanks to TADA Tadashi <sho@spc.gr.jp>.

	* lib/net/cgi.rb: cgi#rfc1123date(): document bug fix.
	  thanks to Kazuhiro NISHIYAMA <zn@mbf.nifty.com>.

	* lib/net/cgi.rb: cgi#header(): bug fix.
	  thanks to IWATSUKI Hiroyuki <don@na.rim.or.jp>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-18 00:01:57 +00:00
matz b842d5f571 * dir.c (dir_s_chdir): block form of Dir.chdir. (RCR#U016).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-16 08:30:09 +00:00
knu 7f74a38b72 * configure.in: Set SOLIBS properly for all ELF and
FreeBSD/NetBSD/OpenBSD a.out platforms so that the shlib
  dependencies are recorded in the libruby shlib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-16 08:17:44 +00:00
matz 1fd502ccc1 * eval.c (rb_thread_schedule): raise FATAL just once to
THREAD_TO_KILL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-14 08:39:13 +00:00
matz 53ff8df72f * eval.c (rb_yield_0): 0 (= Qfalse) is a valid value, so that
default self should be checked by klass == 0.

* bignum.c (rb_cstr2inum): should disallow '++1', '+-1', etc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-14 04:45:46 +00:00
matz a22cbaa697 * eval.c (ev_const_defined): add new parameter self for special
const fallback.

* eval.c (ev_const_get): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 09:00:01 +00:00
eban 037dacc510 * dir.c (rb_glob_helper): fix drive letter handling on DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 07:58:07 +00:00
aamine 390a12cf4c garvage is included.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 06:01:45 +00:00
aamine 1a7cb01d64 aamine
* lib/net/http.rb: add HTTPRequest#basic_auth.
* lib/net/smtp.rb: raise if only account or password is given.
* lib/net/protocol.rb: WriteAdapter#<< returns self.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 05:48:58 +00:00
matz e502549be1 * io.c (argf_seek_m): wrong calling sequence of rb_io_seek().
* parse.y (cond0): no special treatment of string literal in
  condition.

* math.c: add acos, asin, atan, conh, sinh, tanh and hypot to Math.

* configure.in: check hypot availablility.

* missing/hypot.c: public domain rewrite of hypot.

* parse.y (warn_unless_e_option): warning condition was wrong.

* parse.y (warning_unless_e_option): ditto.

* enum.c (enum_all): new method 'all?', which returns true if
  block returns true for all elements.

* enum.c (enum_any): new method 'any?', which returns true if
  block retruns true for any of elements.

* marshal.c (marshal_load): do not give warning unless explicitly
  set to verbose.

* eval.c (rb_exit): give string value "exit" to SystemExit.

* ruby.c (proc_options): -v should not print version if
  proc_options called via moreswitches().

* parse.y (stmt): while/until modifier must work for empty body.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 05:45:13 +00:00
eban 8fc5876485 * lib/mkmf.rb (create_makefile): save/restore $libs and $LIBPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-12 10:20:01 +00:00
eban 118ff27661 * lib/mkmf.rb (install_rb): fix handling of destination path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-10 16:03:56 +00:00
eban 15d67fba62 * math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-09 17:49:31 +00:00
aamine 4dae731bbd aamine
* lib/net/protocol.rb: one write(2) per one line.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-08 08:39:40 +00:00
eban fc07b3b0ad * math.c (math_log, math_log10): should return NaN if x < 0.0
on Cygwin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-07 05:43:11 +00:00
matz a36e0c78c9 * parse.y (primary): rescue and ensure clauses should be allowed
to appear in singleton method body.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-06 08:17:54 +00:00
matz 4a7d313e4a * eval.c (proc_eq): compare Procs using blocktag equality.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-05 08:33:16 +00:00
eban 551ab77c38 * win32/win32.c (gettimeofday): use GetLocalTime() instead of ftime()
for high-resolution timing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-05 08:29:01 +00:00
knu 76fa4a8216 Fill a missed ChangeLog entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-04 11:56:01 +00:00
eban d08f28d839 * string.c (trnext): support backslash escape in String#tr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-04 09:46:08 +00:00
matz b27393d6ca * string.c (rb_str_delete_bang): delete! should take at least 1
argument.

* ruby.c (load_file): add rb_gc() after loading to avoid
  extraordinary memory growth.

* dir.c (rb_glob_helper): "./foo" should match "foo", not "./foo".

* eval.c (ev_const_get): retrieve Object's constant if no current
  class is available (e.g. defining singleton class for Fixnums).

* eval.c (ev_const_defined): check Object's constant if no current
  class is available (e.g. defining singleton class for Fixnums).

* time.c (time_timeval): negative time interval shoule not be
  allowed.

* eval.c (proc_call): ignore block to `call' always, despite of
  being orphan or not.

* eval.c (rb_yield_0): should check based on rb_block_given_p()
  and rb_f_block_given_p().

* configure.in (frame-address): --enable-frame-address to allow
  __builtin_frame_address() to be used.

* eval.c (stack_length): use __builtin_frame_address() based on
  the macro USE_BUILTIN_FRAME_ADDRESS.

* gc.c (rb_gc): ditto.

* gc.c (Init_stack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-28 06:30:03 +00:00
matz 64fb417473 * time.c (time_timeval): negative time interval shoule not be
allowed.

* eval.c (proc_call): ignore block to `call' always, despite of
  being orphan or not.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-27 07:52:11 +00:00
matz df2d69b49a * eval.c (proc_call): should not modify ruby_block->frame.iter
based on ruby_frame->iter altered by PUSH_ITER().

* eval.c (rb_thread_fd_close): should save current context before
  raising exception.

* io.c (set_stdin): preserve original stdin.

* io.c (set_outfile): preserve original stdout/stderr.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-26 05:29:06 +00:00
wakou 69739b14a5 Mon Feb 26 05:27:52 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/net/telnet.rb: #telnetmode(), #binmode(): bug fix.
	  thanks to nobu.nakada@nifty.ne.jp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-25 20:34:59 +00:00
wakou 5fffb31235 Mon Feb 26 04:55:50 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: CGI#form(): bug fix.
	  thanks to MoonWolf <moonwolf@moonwolf.com>.

	* lib/cgi.rb: CGI#rfc1123_date(): improvement.
	  thanks to Tomoyasu Akita <genzo-@dm4lab.to>.

	* lib/cgi.rb: CGI#header(): improvement for mod_ruby.
	  thanks to Shugo Maeda <shugo@ruby-lang.org>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-25 19:57:56 +00:00
eban f3d7d9fe48 * file.c (rb_file_s_rename): avoid Cygwin's bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-24 17:51:02 +00:00
eban 9ce5d1f0f5 * win32/win32.c (myrename): fix error handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-24 13:19:13 +00:00
aamine b1cd5105d4 aamine
* lib/net/http.rb: always close connection on request without body.
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: change copyright.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-24 04:53:50 +00:00
aamine acce0b7ec4 aamine
* lib/net/protocol.rb: clear read buffer after reopen.
* lib/net/protocol.rb: refactoring.
* lib/net/http.rb: split module HTTPHeader from HTTPResponse.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-22 23:23:57 +00:00
eban d633fc6b5b * process.c: add W* macro if not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-20 14:52:31 +00:00
matz 88eef2d7fe * configure.in: add check for negative time_t for gmtime(3).
* time.c (time_new_internal): no positive check if gmtime(3) can
  handle negative time_t.

* time.c (time_timeval): ditto.

* bignum.c (rb_big2long): should not raise RangeError for Bignum
  LONG_MIN value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-20 07:42:03 +00:00
matz 86833594ff * string.c (rb_str_substr): "a"[1,2] should return ""; need
rubicon upgrade.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-19 09:15:27 +00:00
matz 3ae4fd7258 * eval.c (secure_visibility): visibility check for untainted modules.
* signal.c (sigpipe): sighandler which does nothing.

* signal.c (trap): set sigpipe function for SIGPIPE.

* signal.c (Init_signal): default SIGPIPE handler should be
  sigpipe function.

* array.c (rb_ary_subseq): wrong boundary check.

* parse.y (cond0): integer literal in condition should not be
  compared to lineno ($.).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-19 07:03:06 +00:00
eban 99ee3b0038 * ext/curses/extconf.rb: add dir_config.
quote> * missing/flock.c: use fcntl(2) instead of lockf(2).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-18 08:18:47 +00:00
aamine b2deafb277 aamine
* lib/net/http.rb: Response#range_length was not debugged.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-17 20:40:50 +00:00
usa 92e4b1b06e * win32/win32.c: fasten file I/O on mswin32/mingw32.
* win32/win32.h: ditto.

* rubysig.h: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-17 15:17:10 +00:00
matz e1c29a3f13 * io.c (set_outfile): f should be the FILE* from the assigning value.
* ext/socket/socket.c (tcp_s_open): should not give default value
  to local_host.

* time.c (time_s_times): move to Process::times.

* file.c (rb_file_s_lchmod): new method File::lchmod.

* file.c (rb_file_s_lchown): new method File::lchown.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-16 07:53:21 +00:00
matz 011ed67616 * process.c (proc_waitall): new method based on a patch from Brian
Fundakowski Feldman <green@green.dyndns.org>.

* process.c (last_status_set): objectify $? value (Process::Status).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-15 06:01:00 +00:00
shugo 756dcb0034 * lib/cgi/session.rb (close): fixed reversed condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-15 02:45:09 +00:00
shugo 2fbc717875 * lib/net/imap.rb: supports unknown resp_text_code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-14 08:40:49 +00:00
matz 8e5c3b23f2 * dir.c (dir_s_glob): supprt backslash escape of metacharacters
and delimiters.

* dir.c (remove_backslases): remove backslashes from path before
  calling stat(2).

* dir.c (dir_s_glob): call rb_yield directly (via push_pattern) if
  block is given to the method.

* dir.c (push_pattern): do not call rb_ary_push; yield directly.

* eval.c (blk_copy_prev): reduced ALLOC_N too much.

* eval.c (frame_dup): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-14 05:52:06 +00:00
eban 22765f2015 * dir.c (lstat): should use rb_sys_stat if lstat(2) is not
available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-13 14:15:55 +00:00
matz 8be410f065 * io.c (rb_io_ctl): do not call ioctl/fcntl for f2, if f and f2
have same fileno.

* eval.c (rb_load): raise LocaJumpError if unexpected local jumps
  appear during load.

* ext/socket/socket.c (bsock_close_read): don't call rb_thread_fd_close();
  it's supposed to be called by io_io_close().

* ext/socket/socket.c (bsock_close_read): do not modify f and f2.

* ext/socket/socket.c (bsock_close_write): ditto.

* ext/socket/socket.c (sock_new): avoid dup(2) on sockets.

* parse.y (primary): preserve and clear in_single and in_def using
  stack to prevent nested method errors in singleton class bodies.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-13 05:09:11 +00:00
eban 32ce4317d8 * configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-11 14:59:04 +00:00
eban c5254c68ad * eval.c (stack_length): use __builtin_frame_address() only if
GCC and i386 CPU.
* gc.c (rb_gc, Init_stack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-11 07:12:02 +00:00
usa 08f8ab9c37 * win32/win32.c (win32_stat): replace stat for enable when pathname
ends with '/' or '\' for mswin32 on Win9X / Win2k.

* win32/win32.h: ditto.

* ruby.h: ditto.

* dir.c (rb_glob_helper): ditto.

* file.c (rb_stat, rb_file_s_stat, eaccess, check3rdbyte): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-09 15:02:14 +00:00
eban b4ea8ddcdd ruby.c (ruby_init_loadpath): convert '\' to '/'
before finding executable file path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-09 14:11:23 +00:00
eban bc714fb4f5 lib/mkmf.rb (create_makefile): add srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-08 13:23:48 +00:00
matz ed520cf6e9 * parse.y (parse_quotedwords): %w should allow parenthesis escape.
* parse.y (parse_qstring): %q should allow terminator escape.

* re.c (rb_reg_options): new method to give an option values.

* parse.y (cond0): disable special treating of integer literal in
  conditional unless option -e is supplied.  changes current
  behavior.  experimental.

* parse.y (cond0): give warning for string/integer literals and
  dot operators in conditionals unless option -e is supplied.

* re.c (rb_reg_equal): all option flags should be same to be equal.

* error.c (Init_Exception): make Interrupt a subclass of
  SignalException.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-08 09:19:27 +00:00
aamine b576f57aa0 aamine
* lib/net/http.rb: join HTTPReadResponse into HTTPResponse again.
* lib/net/http.rb: move http_version() from HTTPRequest to HTTPResponse.
* lib/net/protocol.rb: refactoring.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-07 17:17:51 +00:00
aamine 7e5f9d5a13 aamine
* lib/net/http.rb: split HTTPResponse into HTTPReadResponse module.
* lib/net/protocol.rb: add Net::net_private.
* lib/net/protocol.rb: Socket#reopen takes arg, open_timeout.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-07 07:23:09 +00:00
aamine 5113e8923c aamine
* lib/net/http.rb: call on_connect() on re-opening socket.
* lib/net/pop.rb: also POP3 can use APOP auth.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-06 12:26:25 +00:00
aamine cdc7602379 aamine
* lib/net/http.rb: add HTTP#request.
* lib/net/http.rb: take HTTP 1.0 server into account (incomplete).
* lib/net/protocol.rb: timeout for open/read.
* lib/net/protocol.rb: add Protocol#on_connect,on_disconnect.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-06 11:14:51 +00:00
matz 765255b737 * array.c (rb_ary_sort_bang): returns self, even if its length is
less than 2.

* eval.c (POP_VARS): propagate DVAR_DONT_RECYCLE, if
  SCOPE_DONT_RECYCLE of ruby_scope is set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-02 11:38:20 +00:00
eban e9f9915a4c gcc-2.95.2-7(cygwin) support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-31 14:27:37 +00:00
matz 35e5ddf6cf * eval.c (block_pass): return from block jumps directory to
block invoker.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-29 06:12:56 +00:00
matz 2f0faf671d * string.c (str_independent): should not clear str->orig here.
it's too early.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-29 05:10:42 +00:00
matz 161e3313d2 * parse.y: clarify do ambiguity, bit more complex but natural
from my point of view.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-26 05:02:19 +00:00
matz 74273daffb * eval.c (POP_BLOCK_TAG): call rb_gc_force_recycle() if block has
not been objectified.

* eval.c (rb_callcc): should nail down block->tag history to avoid
  rb_gc_force_recycle().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-24 06:32:10 +00:00
knu 0dc1a293fd * lib/cgi.rb: fix the problem that when running under mod_ruby
header() outputs only one Set-Cookie line.

Approved by:	wakou, matz


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-24 06:01:47 +00:00
matz e111bdb9d3 * gc.c (rb_gc_call_finalizer_at_exit): should finalize objects in
deferred_final_list too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-23 09:55:10 +00:00
matz 7635ff6a05 * gc.c (os_live_obj): do not list terminated object.
* gc.c (os_obj_of): ditto.

* gc.c (rb_gc_mark): support new T_BLKTAG tag.

* gc.c (obj_free): ditto.

* eval.c (new_blktag): creation of new block tag, which holds
  destination of global jump and orphan status.

* eval.c (block_pass): break from orphan Proc object will raise a
  LocalJumpError exception.

* eval.c (block_pass): behavior consistency with proc_call(). do
  not propagate `break'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-23 08:08:59 +00:00
eban 9d0bba43bb * mkconfig.rb: autoconf 2.49 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-22 07:37:14 +00:00
matz 6aa451b9dd * parse.y (block_call): syntax restructure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-20 14:02:28 +00:00
matz 77b8745d4a * parse.y (yylex): fixed serious syntax misbehavior. do's
preceding was too high.  a block in `foo bar do .. end' should
  be passed to `foo', not `bar'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-19 19:00:28 +00:00
matz 0b3092922d * io.c (rb_io_s_read): new method to call IO#read from
pathname.  In addition, it accepts third optional argument to
  specify starting point.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-18 08:43:14 +00:00
eban 24a286efe1 * mkconfig.rb, win32/config.status.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:45:49 +00:00
eban 70e3e77f3b * configure.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:33:29 +00:00
aamine 7adcec68b1 aamine
* lib/net/protocol.rb: ignore EOFError for read.
* lib/net/http.rb: user specified header was not used.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-16 07:57:43 +00:00
matz 971a4d94f0 Mon Jan 15 16:00:07 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* pack.c (pack_unpack): should check associated pointer packed by
	  pack("P").  restriction added.

Sun Jan 14 21:49:28 2001  Koji Arai  <JCA02266@nifty.ne.jp>

	* sprintf.c (rb_f_sprintf): simple typo.  binary base should be 2,
	  not '2'.

	* re.c (rb_reg_s_last_match): should explicitly return nth match.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-15 07:01:00 +00:00
usa ac8a2a31c2 *** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-14 09:22:24 +00:00
aamine 0c717d6a58 aamine
* lib/net/protocol.rb (adding): too few "yield" in case of arg is not String/File.
* lib/net/http.rb: add http request object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 19:07:15 +00:00
eban e63525e97e eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 10:46:35 +00:00
eban 6ee84cbabe NORETURN, INLINE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-11 01:56:08 +00:00
matz 4c09e12b04 m17n cleanup ;_;
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 09:52:13 +00:00
eban 74d0eaf6a2 NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 08:09:01 +00:00
eban 6b5ad7c5b2 setres[ug]id, NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 07:30:18 +00:00
eban ab9be24857 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 04:49:41 +00:00
eban 51173d8ae4 * ruby.c (load_file): typo(rb_load_fail -> rb_load_failed).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-10 02:30:41 +00:00
matz a404ead89e * string.c (rb_str_reverse_bang): forgot to call rb_str_modify().
* object.c (rb_obj_taint): check frozen status before modifying
  taint status.

* object.c (rb_obj_untaint): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 16:55:50 +00:00
matz d110e3f551 * file.c (path_check_1): should restore modified path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 08:04:39 +00:00
matz 87beea4496 * enum.c (enum_inject): new method.
* gc.c (rb_gc_call_finalizer_at_exit): clear klass member of
  terminating object.

* eval.c (rb_call): raise exception for terminated object.

* bignum.c (bigdivrem): t2 might be too big for signed long; do
  not use rb_int2big(), but rb_uint2big().

* error.c (rb_load_fail): new func to report LoadError.

* ruby.c (load_file): use rb_load_fail.

* eval.c (ruby_finalize): should enclosed by PUSH_TAG/POP_TAG.

* gc.c (rb_gc_mark): link 2 of NODE_IFUNC should not be explicitly
  marked.  it may contain non object pointer.

* re.c (reg_s_last_match): Regexp::last_match(nth) returns nth
  substring of the match  (alternative for $& and $<digit>).

* eval.c (rb_mod_define_method): wrong comparison for blocks.

* gc.c (id2ref): should handle Symbol too.

* gc.c (id2ref): should print original ptr value

* eval.c (rb_iterate): NODE_CFUNC does not protect its data
  (nd_tval), so create new node NODE_IFUNC for iteration C
  function.

* eval.c (rb_yield_0): use NODE_IFUNC.

* gc.c (rb_gc_mark): support NODE_IFUNC.

* gc.c (mem_error): prohibit recursive mem_error().
  (ruby-bugs-ja:PR#36)

* eval.c (rb_thread_fd_writable): should not switch context if
  rb_thread_critical is set.

* eval.c (rb_thread_wait_fd): ditto.

* eval.c (rb_thread_wait_for): ditto.

* eval.c (rb_thread_select): ditto.

* eval.c (rb_thread_join): join during critical section causes
  deadlock.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-09 07:26:21 +00:00
eban 39711489a4 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-05 15:24:13 +00:00
matz 7d10fe689c * eval.c (rb_iterate): NODE_CFUNC does not protect its data
(nd_tval), so create new node NODE_IFUNC for iteration C
  function.

* eval.c (rb_yield_0): use NODE_IFUNC.

* gc.c (rb_gc_mark): support NODE_IFUNC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-29 18:23:22 +00:00
matz 4c1441870e * gc.c (mem_error): prohibit recursive mem_error().
(ruby-bugs-ja:PR#36)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-29 02:47:07 +00:00
matz ceec42bf8c matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-27 05:59:03 +00:00
matz 8369164408 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-26 08:32:35 +00:00
matz a5dcc4437e matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-26 08:08:50 +00:00
matz 4c8f968c40 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-25 06:53:24 +00:00
matz 99020d6e50 001225
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-25 06:29:27 +00:00
wakou 8f6673c2d4 wakou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-24 20:20:49 +00:00
aamine c8da204306 aamine
* lib/net/http.rb: does not send HEAD on closing socket.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-24 19:39:15 +00:00
aamine 79633d3bb8 aamine
* lib/net/protocol.rb: set @closed false in Socket#reopen.
* lib/net/pop.rb: add POP3.foreach, delete_all.
* lib/net/pop.rb: add POP3#delete_all.
* lib/net/http.rb: add HTTP.version_1_1, version_1_2
* lib/net/http.rb: refactoring.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-22 18:40:55 +00:00
matz e6bf7809f3 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-22 09:00:23 +00:00
matz 7f16734d27 001222
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-22 06:36:10 +00:00
matz 0e47c138c9 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-22 03:22:25 +00:00
shugo 31c53aaa7d shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-21 06:35:05 +00:00
eban 8d393f1855 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-18 14:22:37 +00:00
matz 117b7d5c47 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-18 09:46:21 +00:00
wakou 652f744cba wakou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-14 00:26:05 +00:00
eban 5504b5c876 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-13 03:48:30 +00:00
matz 3a7020854d matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-12 07:42:35 +00:00
matz 2322a13127 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-08 07:10:38 +00:00
shugo a721bd628e shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-07 08:38:39 +00:00
eban 598d8ada31 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-06 09:10:17 +00:00
matz 03581d5826 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-05 09:36:54 +00:00
eban afa2732b78 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-04 15:03:56 +00:00
matz f54418b71f matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-27 09:23:38 +00:00
matz a122fce476 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-21 14:26:25 +00:00
matz 6ffeed5c89 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-20 08:26:48 +00:00
matz 39563af994 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-20 07:31:55 +00:00
eban 3634fde44d eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-20 01:24:28 +00:00
aamine 15b9494baa aamine
* lib/net/http.rb: Socket#readline() reads until "\n", not "\r\n"


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-18 05:04:36 +00:00
eban eab2540846 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-17 05:59:45 +00:00
matz 21efb309e7 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-17 04:41:19 +00:00
aamine 0d11c322d1 aamine
* lib/net/http.rb: can call {old,new}_implementation any times.
* lib/net/http.rb: HTTP#connecting, receive ->
  common_oper, connecting.
* lib/net/http.rb: output warning if u_header includes
  duplicated header.
* lib/net/http.rb: not check Connection:/Proxy-Connection;
  always read until eof.
* lib/net/protocol: detects and catches "break" from block.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-16 14:03:20 +00:00
matz 074203d270 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-16 07:24:21 +00:00
matz 46620a8772 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-14 07:10:31 +00:00
eban e9cf3b3bf5 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-13 10:11:31 +00:00
matz 2a1b0ff232 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-13 05:39:35 +00:00
aamine 1db8e80b29 aamine
* ChangeLog: modifies some logs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-11 00:07:23 +00:00
aamine f5ba5e64d5 aamine
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.31
* lib/net/http.rb: initializes header in HTTP, not HTTPCommand
* lib/net/protocol.rb, http.rb: rewrites proxy code


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-10 23:31:32 +00:00
matz ae5cb89708 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-10 08:52:23 +00:00
matz 087c83d7ce matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-10 07:16:52 +00:00
matz af328b152b matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-08 05:29:37 +00:00
aamine 41e41d34d1 aamine
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.30
* lib/net/protocol.rb, smtp.rb: Command#critical_ok -> error_ok
* lib/net/http.rb: read header when also "100 Continue"


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-07 11:27:16 +00:00
matz 58e04b755a matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-02 09:04:54 +00:00
matz c90b1ecaf8 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-31 08:37:47 +00:00
aamine 34f44ca496 aamine
* lib/net/protocol.rb: Command#critical_ok
* lib/net/smtp.rb: clear critical flag before go to SMTP


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-25 17:40:30 +00:00
matz 9b5c48abed matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-25 04:48:41 +00:00
matz 4098e5861e matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-20 16:37:01 +00:00
matz 1b2d3f81ee 1.6.2 (to be)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-17 18:14:05 +00:00
matz 8353f303e3 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-16 09:13:20 +00:00
aamine de75f3c0a6 aamine
* lib/net/http.rb: hex-alpha is not [a-h] but [a-f].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-15 21:37:30 +00:00
matz cef64ee0ba matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-14 14:44:58 +00:00
matz 52f90f6566 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-13 09:01:58 +00:00
shugo 12d1bc6bd5 *** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-13 08:09:27 +00:00
aamine 76819ef99a aamine
* lib/net/pop.rb: POP3#reset
* lib/net/http.rb: a code for "Switch Protocol" was wrongly 100


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-12 09:54:32 +00:00
wakou 9dbce410e1 wakou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-11 16:28:15 +00:00
matz 6c11709d4c matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-11 06:29:16 +00:00
aamine a86f6a00df aamine
* ChangeLog: adding logs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-11 05:47:36 +00:00
aamine 83033ce328 aamine
* lib/net/protocol.rb: 2nd arg for ProtocolError#initialize is optional.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-11 05:27:56 +00:00
eban 33baccab78 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-10 07:20:10 +00:00
matz 1ce6f065b5 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-10 07:03:36 +00:00
eban ef45458e94 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-06 06:13:52 +00:00
matz 9527d90951 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-05 09:57:04 +00:00
matz 9a46002fc0 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-02 07:48:42 +00:00
eban 173e2f6636 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-30 17:06:08 +00:00
matz 17ab6e7ef4 000927
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-27 09:44:05 +00:00
eban 25aa3816b1 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-27 07:22:17 +00:00
eban d917f9af97 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-26 09:11:47 +00:00
matz c7a316947f matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-26 07:07:13 +00:00
matz 9448424dba matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-25 17:51:29 +00:00
matz b9228a014b matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-25 09:15:08 +00:00
eban 40412b7730 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-25 07:00:55 +00:00
eban 75ddce9a5d eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-25 04:33:53 +00:00
eban aa806d7811 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-24 15:50:41 +00:00
aamine 69543770ca aamine
* lib/net/protocol.rb, http.rb: typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-23 18:00:28 +00:00
matz e4fae8da4b matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 18:15:52 +00:00
aamine 77f8b0db8d aamine
* lib/net/http.rb: too early parameter expantion in string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 06:44:59 +00:00
matz 5bb84ef246 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 05:37:52 +00:00
eban 89363f9776 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 05:00:45 +00:00
eban d8b6e0896e eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 05:00:23 +00:00
eban fe7108a822 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 01:19:39 +00:00
eban ec1a89eeb7 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 01:02:44 +00:00
eban ca13525d5d eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 10:08:57 +00:00
matz b35df6aae2 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 09:31:00 +00:00
aamine 616c1cd971 aamine
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.28.
* lib/net/http.rb: HTTPReadAdapter -> HTTPResponseReceiver
* lib/net/http.rb (connecting): response is got in receive()


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 06:58:01 +00:00
matz 13243e5ad1 matz - net library bug (by me)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 06:37:24 +00:00
matz fc57cd59ff matz - disappointing fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-20 09:16:32 +00:00
eban 5039daaf2e eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-19 09:03:21 +00:00
matz c99f974aa4 000919
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-19 08:47:51 +00:00
matz f1bb1f5848 000919
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-19 07:54:28 +00:00
eban 053140491c eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-19 07:01:54 +00:00
eban c74a3b21f5 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-19 05:03:07 +00:00
matz 79a8072910 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-18 16:28:40 +00:00
matz 4378cbc023 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-18 08:47:10 +00:00
matz bbf2ad4ed8 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-15 06:00:30 +00:00
wakou ca94f612b4 wakou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 21:16:09 +00:00
eban ef405dfa04 eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 13:56:52 +00:00
eban 2efe05858a eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 07:08:40 +00:00
matz 042bb17f55 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 06:41:23 +00:00
matz fbcc6dea0c matz: 1.6.0 final (hopufully)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 05:37:38 +00:00