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

4554 Коммитов

Автор SHA1 Сообщение Дата
usa f2b4e71013 * ruby.c (opt_W_getter): get rid of warning.
* bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
  fixed dependency.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-10 01:17:12 +00:00
usa f758077cc3 2004-03-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-09 01:05:35 +00:00
usa 8829aa4995 * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
replaced regex.c entry with Oniguruma files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-09 01:05:12 +00:00
ksaito e51bf1c605 * Makefile.in: replaced regex.c entry with Oniguruma files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 16:22:56 +00:00
aamine 2cb1399c8f * lib/net/http.rb: HTTPHeader did not initialized correctly.
* lib/net/http.rb (connect): does same debug output.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 14:16:21 +00:00
aamine 14371fce68 * lib/net/http.rb (add_header): remove warning. [ruby-dev:23170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 12:40:34 +00:00
ocean f34d501658 * dir.c (range): Cancel change for incomplete '['. More discussion
is needed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 12:14:49 +00:00
akira 80a0920f5f * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
-> (?::#{PORT}).  [ruby-dev:23170]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 10:36:50 +00:00
ocean 6901d03914 * dir.c (range): treat incomplete '[' as ordinary character (like
has_magic does). fix buffer overrun at incomplete escape like '[\'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 06:10:22 +00:00
eban 945ae5eb59 * oniguruma.h (ONIG_EXTERN): check __GNUC__ instead of __CYGWIN__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 05:46:19 +00:00
eban 66e9876446 2004-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 04:43:35 +00:00
eban 30c77c8e90 * regparse.c (parse_exp): need to separate initialization for bcc32.
[ruby-dev:23169]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 04:40:39 +00:00
gotoyuzo 9b11fc8032 * lib/webrick/config.rb (WEBrick::Config::HTTP): rename :RequestHander
to :RequestCallback and add new option :ServerAlias.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): use
  :RequestCallback and warn if :RequestHandler is in server's option.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should print
  error message for WEBrick::HTTPSataus::Error.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
  lookup for hostname from :ServerAlias if the req.host is not match
  to :ServerName.

* lib/webrick/httpservlet.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
  use $?.exitstatus and refine log message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-07 16:06:43 +00:00
eban 4774e8fda5 * lib/pstore.rb (commit_new): use FileUtils.copy_stream for Cygwin.
[ruby-dev:23157]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-07 13:37:52 +00:00
eban 81096d395c * Makefile.in (lex.c): use $? instead of $<.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-07 07:28:10 +00:00
eban 8627fc3c10 * MANIFEST: add lib/net/https.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-07 06:45:49 +00:00
aamine 8d8f6a0309 2004-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 21:06:06 +00:00
aamine 39848fe845 * lib/net/http.rb: HTTPHeader keeps its header fields as an array.
* lib/net/http.rb: new method HTTPHeader#add_header, get_fields.
* lib/net/http.rb: new method HTTPHeader#content_length=.
* lib/net/http.rb: new method HTTPHeader#content_type, main_type, sub_type, type_params, content_type=, set_content_type.
* lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may contain multiple LFs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 20:35:19 +00:00
aamine 316bf4e67b * lib/net/http.rb: new method Net::HTTPRequest#body(=).
* lib/net/http.rb: new method Net::HTTPRequest#body_stream(=).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 18:11:40 +00:00
aamine 3eedf9156c * lib/net/http.rb: spin off https code again.
* lib/net/https.rb: new file.
* ext/openssl/lib/net/https.rb: removed.  moved to net/https with modifications.
* ext/openssl/lib/net/protocol.rb: removed.  merged with net/http.
* lib/net/protocol.rb: new class BufferedIO.
* lib/net/protocol.rb: InternetMessageIO < BufferedIO.
* lib/net/protocol.rb: BufferedIO.new takes an IO.
* lib/net/smtp.rb: follow InternetMessageIO's change.
* lib/net/pop.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 17:08:21 +00:00
aamine dd53813e38 * lib/net/protocol.rb: remove method: InternetMessageIO#address, port, ip_address, read_timeout(=), socket.
* lib/net/protocol.rb: simplify code.
* lib/net/protocol.rb: apply latest coding style.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 15:55:23 +00:00
nobu 3b16f66bf7 * ext/strscan/strscan.c (strscan_init_copy): struct re_registers must
not be bitwise copied.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 06:15:11 +00:00
nobu 50c4555072 * ext/strscan/depend: depends on re.h and regex.h.
* ext/strscan/strscan.c: no version check needed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 05:27:37 +00:00
dblack 11229973f4 scanf.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 02:15:52 +00:00
dblack ad5c34fa0c refixed the previous fix in IO#block_scanf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 02:14:33 +00:00
dblack eddd3b4158 lib/scanf.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 01:53:09 +00:00
dblack ac9845a16c Fixed a logic glitch in IO#block_scanf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 01:49:40 +00:00
nobu 1c77623b1b * configure.in (PREP): ./miniruby and miniruby are distinguished by
OpenBSD make.  [ruby-dev:23148]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-06 00:53:04 +00:00
nobu 9996740309 adjust white spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 22:37:35 +00:00
aamine fc188d3827 * lib/net/http.rb: net/https is merged.
* ext/openssl/lib/net/https.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 17:00:51 +00:00
eban 76d2e91b4b 2004-03-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 15:48:51 +00:00
ksaito f353d89d82 * oniggnu.h: imported from Oniguruma library.
* oniguruma.h: ditto.
* regcomp.c: ditto.
* regenc.c: ditto.
* regenc.h: ditto.
* regerror.c: ditto.
* regex.c: ditto.
* regexec.c: ditto.
* reggnu.c: ditto.
* regint.h: ditto.
* regparse.c: ditto.
* regparse.h: ditto.
* ascii.c: ditto.
* euc_jp.c: ditto.
* sjis.c: ditto.
* utf8.c: ditto.

* MANIFEST: added Oniguruma files listed above.

* LEGAL: added Oniguruma license.

* regex.h: now includes oniggnu.h.

* re.c: applied Oniguruma patch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 15:40:36 +00:00
ksaito 5770336f8b Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 15:31:51 +00:00
aamine 33a06e4aca * lib/net/http.rb: support WebDAV methods, PROPPATCH, LOCK, UNLOCK, OPTIONS, PROPFIND, DELETE, MOVE, COPY, MKCOL. This patch is contributed by Tatsuki Sugiura.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 14:13:31 +00:00
aamine a60a899eeb * lib/net/http.rb: Net::HTTPResponse#response is obsolete. [ruby-core:02592]
* lib/net/http.rb: Net::HTTPResponse#header is obsolete.
* lib/net/http.rb: Net::HTTPResponse#read_header is obsolete.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 11:59:09 +00:00
aamine 492dfc7c08 * ext/strscan/strscan.c: new method StringScanner#initialize_copy to allow #dup and #clone.
* test/strscan/test_strscan.rb: test StringScanner#dup.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 11:20:12 +00:00
aamine 87275504ab * lib/net/http.rb (HTTPResponse#to_ary): should return an object which does not respond to #to_ary. It causes infinite loop in puts. [ruby-core:02578]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-05 10:42:43 +00:00
dave 1c1a61a436 Move RDoc comments for Test::Unit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-04 15:54:39 +00:00
nobu f9da3539ed * Makefile.in, */Makefile.sub, mkconfig.rb: keep rbconfig.rb old if
unchanged.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-04 13:50:48 +00:00
nobu d6ad092f0e * Makefile.in: miniruby is not needed for cross compile.
* configure.in (PREP): miniruby for native compile.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-04 13:31:45 +00:00
nobu de4d3af245 * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
detach server processes to get rid of zombies.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-04 02:46:37 +00:00
eban af81ac5832 2004-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-04 02:03:24 +00:00
nobu 9778625be8 * ext/syck/rubyext.c: get rid of warnings.
* lib/rss/taxonomy.rb: ditto.

* lib/rdoc/ri/ri_formatter.rb: ditto.

* test/ruby/test_assignment.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 23:08:45 +00:00
nobu 5dfa7cacd1 * lib/rdoc/ri/ri_display.rb (DefaultDisplay::page): wait until the
pager terminates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 16:17:32 +00:00
nobu 57cbecdb4f * lib/rdoc/ri/ri_display.rb (DefaultDisplay::setup_pager): ensure
pager closes and stdout is restored.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 09:58:25 +00:00
matz 54a0407425 * eval.c (method_hash): new method. [ruby-talk:93968]
* eval.c (proc_eq): do not compare dyna_vars.

* eval.c (proc_hash): new method.

* eval.c (rb_yield_0): protect break/return from within orphan (or
  lambda) Proc object.

* parse.y (yylex): should not allow symbol for invalid global
  variable (e.g. `:$-)`). [ruby-core:02518]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 04:55:35 +00:00
eban e3b15cf111 2004-03-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 02:27:50 +00:00
nobu 1184dd33d5 * lib/mkmf.rb ($topdir): use compile_dir only when not installed yet.
[ruby-talk:94098]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-03 00:52:10 +00:00
kou 40daca4a87 * lib/rss/converter.rb: handled Uconv::Error.
* lib/rss/dublincore.rb: DublincoreModel -> DublinCoreModel


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 16:21:11 +00:00
dblack a5e13ce5ff scanf.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 16:08:17 +00:00