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

795 Коммитов

Автор SHA1 Сообщение Дата
nobu 4a74d867af * file.c (strrdirsep): multi-byte pathname and DOSish separater
supprot. originally comes from Patrick Cheng. [new]

* file.c (rb_file_s_basename, rb_file_s_dirname): use
  strrdirsep(). comes from Patrick Cheng.

* file.c (is_absolute_path): restricted in DOSish absolute path
  with drive letter, and UNC support. originally comes from
  Patrick Cheng.

* file.c (getcwd): define macro using getwd() unless provided.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-24 15:11:02 +00:00
knu e54216b740 * ext/extmk.rb.in, lib/mkmf.rb: dig the target subdirectory for
lib/* files properly in case of create_makefile("dir/name").


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-24 10:29:17 +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
matz 15ffbb1f82 * eval.c (rb_provide_feature): should not tweak extension used for
loading.

* io.c (io_fread): use fread(3) if PENDING_COUND is available.

* class.c (rb_mod_include_p): Module#include? added. [new]

* re.c (ignorecase_setter): give warning on modifying $=.

* string.c (rb_str_casecmp): new method. [new]

* string.c (rb_str_eql): separated from rb_str_equal(), make it
  always be case sensitive. [new]

* string.c (rb_str_hash): made it always be case sensitive.

* eval.c (rb_f_require): should not include path in $" value

* file.c (rb_find_file): should return 0 explicitly on failure.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-24 09:07:33 +00:00
knu 9e214f30c4 * ext/extmk.rb.in, lib/mkmf.rb: introduce a couple of new make
variables: CLEANFILES and DISTCLEANFILES.  They'd typically be
  defined in a file "depend".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-22 12:24:12 +00:00
knu 33c679ba9a * gc.c (ruby_xrealloc): fix a dangling bug which led memory
reallocation to fail even though the second try after a GC
  succeeds.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-20 15:20:25 +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
usa 2d84b42b00 * ruby.h: enable volatile directive with VC++.
* regex.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-19 02:46:28 +00:00
aamine 2c85be7df3 sync MANIFEST (add doc/net/http,pop,smtp).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-18 21:34:53 +00:00
aamine 2812249141 date-time was wrong.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-18 20:59:03 +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
matz f35971afdf * regex.c (NUM_FAILURE_ITEMS): was confusing NUM_REG_ITEMS and
NUM_NONREG_ITEMS, which have happened to be same value.

* class.c (rb_class_new): subclass check moved to this function.

* class.c (rb_class_boot): check less version of rb_class_new().

* eval.c (proc_invoke): should preserve iter status for embedded
  frame in the block.

* file.c (rb_file_s_expand_path): may overrun buffer on stack.

* string.c (rb_str_insert): forgot to call rb_str_modify().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-18 05:56:05 +00:00
aamine c068201c50 modify check-in miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-17 05:25:15 +00:00
usa 9078b69592 * ext/extmk.rb.in: modify RM macro because command.com/cmd.exe don't
recognize single quotation as quote character.

* lib/mkmf.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-17 02:13:13 +00:00
usa affcf615dc * file.c (file_load_ok): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-16 04:22:46 +00:00
matz 03d1c9cd82 * regex.c (re_search): should consider reverse search.
* dir.c (dir_s_chdir): warn only when invoked from multiple
  threads or block is not given.

* object.c (rb_convert_type): should use rb_rescue(), not rb_rescue2().

* range.c (range_init): ditto.

* object.c (rb_obj_dup): should free generic_ivar if original owns
  them.

* string.c (rb_str_each_line): should propagate taint mark.

* ext/nkf/nkf.c (rb_nkf_kconv): ditto.

* eval.c (rb_f_require): revamp for simpler implementation.

* file.c (rb_find_file_noext): use String object, instead of
  passing char* around.

* file.c (rb_find_file): ditto.

* dln.c (dln_load): should use NSLINKMODULE_OPTION_BINDNOW.

* ruby.c (load_file): local variables 'c' remain uninitialized on
  xflag.

* regex.c (re_match): prefetched escaped character too early.

* eval.c (rb_call0): add argument check for attr_readers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-14 15:17:19 +00:00
knu f4b516777b * ext/digest/*/extconf.rb: fix so that they build from any
directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-14 03:29:50 +00:00
aamine a2193f50e8 aamine
* lib/net/http.rb: HTTP#proxy? did not worked.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 21:20:41 +00:00
knu 76d7dae26a Import the "digest" module and the submodules, from the Rough Ruby
project.

  ext/digest:
    This module provides the module Digest and the abstract class
    Digest::Base.

  ext/digest/md5 (which obsoletes ext/md5):
    This module provides the class Digest::MD5 which implements the
    MD5 Message-Digest Algorithm.

  ext/digest/rmd160:
    This module provides the class Digest::RMD160 which implements the
    RIPEMD-160 cryptographic hash function.

  ext/digest/sha1 (which obsoletes ext/sha1):
    This module provides the class Digest::SHA1 which implements the
    SHA-1 Secure Hash Algorithm.

  ext/digest/sha2:
    This module provides the classes Digest::SHA256, Digest::SHA384
    and Digest::SHA512 which implement the SHA-256, SHA-384 and
    SHA-512 Secure Hash Algorithms, respectively.

  lib/md5.rb, lib/sha1.rb:
    These files are provided for backward compatibility.

All these classes have the common API, which previously ext/md5 and
ext/sha1 modules provided.  While the new API keeps 100% backward
compatibility, it has been enriched with several utility methods.

Read digest.txt for further details.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 20:06:14 +00:00
knu 6ecd6fe37b * ext/extmk.rb.in: support multi-level ext/ directories.
(e.g. you can have ext/foo, ext/foo/bar and ext/foo/baz)

* ext/.cvsignore: let cvs ignore extinit.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 18:02:10 +00:00
knu 9cf764b8ff Substitute "licence" with "license".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 16:22:39 +00:00
knu c93741c6eb Mention ext/nkf/nkf1.7/nkf.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 16:18:29 +00:00
knu c0a9b71aeb * lib/mkmf.rb: use File::split to split a target into a prefix and
a module name.  This also works around a just found bug of
  String#rindex.

* ext/extmk.rb.in: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 14:19:28 +00:00
knu c4ef00b158 Mention config.guess, config.sub, configure, parse.c and
lib/getoptlong.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 11:10:20 +00:00
knu 11bba0f7dc Detypo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:54:47 +00:00
knu 317da12757 Mention ext/socket/{addrinfo.h,getaddrinfo.c,getnameinfo.c}.
[Noted by:	usa]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:54:46 +00:00
knu 5179d34d79 Add LEGAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:48:56 +00:00
knu f01061b22a Mention util.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:23:18 +00:00
knu c5a7e35706 Point to the newly added file LEGAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:21:55 +00:00
knu b3c88c4330 Add LEGAL, legal notice information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 08:17:59 +00:00
eban cb63b38137 2001-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-12 14:25:50 +00:00
knu 4439ee97cb Let cvs ignore extmk.log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-12 12:02:34 +00:00
knu 69b7b77ceb Let cvs ignore libruby.so.*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-12 12:02:08 +00:00
eban 18efb38b21 * ext/socket/socket.c (ruby_connect): workaround for the setup of
Cygwin socket(EALREADY).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-12 06:16:49 +00:00
knu cbc3756009 * It is confusing to put the GPL license terms in the file COPYING;
Rename the files COPYING and COPYING.LIB to GPL and LGPL, respectively.

* While I am here, update the LGPL with the "Lesser" one.

* Move the "copying" sections of the files README and README.jp to
  COPYING and COPYING.jp, respectively.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-11 19:25:52 +00:00
knu d0cf53ffb4 Oops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-11 18:59:02 +00:00
knu a6928189d3 Correct the FTP site's URL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-11 18:48:06 +00:00
eban f1b3c51701 * lib/mkmf.rb: modify RM macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-09 08:10:26 +00:00
eban 4d134d47d6 * ext/extmk.rb.in: modify RM macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-09 07:54:49 +00:00
knu e45f8f9943 * ruby.h: fix a wrong function name: rb_iglob() -> rb_globi().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-08 11:54:55 +00:00
aamine 2b67bb576a aamine
* lib/net/http.rb: rename HTTP#request_by_name to send_request.
* lib/net/protocol.rb (ProtoSocket#read): modify typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-08 07:00:23 +00:00
knu 7f326a3988 * lib/tempfile.rb: a tempfile must be created with mode 0600.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-05 17:19:28 +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 eab46f5fc6 Detypo and reword a bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-05 15:47:03 +00:00
aamine afb3a0cff1 aamine
* lib/net/http.rb (HTTP#request_by_name): arg order changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 19:18:17 +00:00
aamine 9e79454b3d aamine
* lib/net/http.rb (HTTP#request_by_name): bug fix.
* lib/net/http.rb: does not write Connection: by default.
* lib/net/protocol.rb: "start" for started protocol is an error.
* lib/net/protocol.rb: "finish" for finished protocol is an error.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 19:03:16 +00:00
aamine fa20d931bc aamine
* lib/net/http.rb: new method HTTP#request_by_name (test)
* lib/net/http.rb: new class HTTPGenericRequest


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 18:13:13 +00:00
knu fc1f22d5a8 * lib/mkmf.rb: distclean should remove mkmf.log as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 15:02:20 +00:00
matz f7ac4f227d * eval.c (rb_eval_string_wrap): should push frame (and adjust
cbase) before wrapped eval.

* eval.c (rb_eval_cmd): ditto.

* eval.c (eval): should update ruby_class always after all.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 09:37:08 +00:00