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

3189 Коммитов

Автор SHA1 Сообщение Дата
dave 154c29be3a Get --one-page working with C code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 17:01:11 +00:00
gsinclair 42ad5216ec * lib/uri.rb: Documented (thanks Dmitry V. Sabanin).
* lib/uri/common.rb: Ditto.
 * lib/uri/ftp.rb: Ditto.
 * lib/uri/generic.rb: Ditto.
 * lib/uri/http.rb: Ditto.
 * lib/uri/https.rb: Ditto.
 * lib/uri/ldap.rb: Ditto.
 * lib/uri/mailto.rb: Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 11:53:31 +00:00
nobu 5e23ff603f * lib/mkmf.rb ($ruby, $topdir, $hdrdir): should not be affected by
DESTDIR after installed.

* lib/mkmf.rb (dummy_makefile): default file lists to be cleaned.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 09:48:09 +00:00
dave 91faa496b3 Don't be as eager to invent classes to document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 03:35:24 +00:00
dave fdef713db1 Allow templates to be specified outside the RDoc tree
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 02:14:19 +00:00
dave 124a20d3d2 Allow templates to be specified outside the RDoc tree
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 02:14:18 +00:00
matz a43eeaef75 * lib/tempfile.rb (Tempfile::_close): should not clear @tmpname
until the file is really removed. [ruby-core:02684]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 01:08:20 +00:00
matz 4f0ef242cc * object.c (rb_mod_cvar_get): new method Module#class_variable_get.
* object.c (rb_mod_cvar_set): ditto (Module#class_variable_set).

* eval.c (rb_thread_atfork): 1.9 warns no more for thread
  termination.  [ruby-dev:23212]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-23 19:14:16 +00:00
nobu 9356e8d177 * bcc32/Makefile.sub: needs bcc32/mkexports.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-23 05:46:14 +00:00
nobu 52a67fe60d * Makefile.in, */Makefile.sub, common.mk (clean-local, distclean-local):
separate files under directories due to directory separator.

* */Makefile.sub (MKFILES): common.mk and */Makefile.sub should not be
  removed.

* win32/Makefile.sub, wince/Makefile.sub: $* cannot appear in explicit
  rules.

* cygwin/GNUmakefile.in: some mingw stuffs were missed.

* lib/mkmf.rb (create_makefile): Borland make wrongly removes braces
  from command lines.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-23 05:32:01 +00:00
nobu 71f46f0724 * Makefile.in, */Makefile.sub, common.mk: extract common portions.
* Makefile.in, cygwin/GNUmakefile.in, */Makefile.sub (RBCONFIG):
  separated time stamp file for rbconfig.rb.

* configure.in: append common.mk to Makefile.

* mkconfig.rb: keep mtime of rbconfig.rb if unchanged.

* win32/rm.bat: remove multiple files.

* wince/mkconfig_wce.rb: use fake.rb instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 23:21:31 +00:00
gotoyuzo 48dde6f3e6 * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host):
sort @virtual_hosts in address, port, host order.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
  hostname should not be match if :ServerAlias is not given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 13:17:24 +00:00
keiju 06d1cbb926 * lib/shell/*: bug fix for Shell#system(command_line_string).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 12:21:11 +00:00
eban b9c8bcafdc * ruby.1: add -width option to .Bl for old groff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 12:08:02 +00:00
kou abe876ed4e * test/rss/*: Test::Unit::TestCase -> RSS::TestCase and
Test::Unit::Assertions -> RSS::Assertions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 10:03:17 +00:00
kou cfbe158fae * lib/rss/{rss,dublincore,syndication}.rb: handled W3CDTF correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 09:54:07 +00:00
kou 7ead69e5b3 * test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.
* lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing
  function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-21 09:20:47 +00:00
matz aab1ba1365 * eval.c (rb_require_safe): preserve old ruby_errinfo.
[ruby-talk:95409]

* eval.c (rb_f_raise): should not clear backtrace information if
  exception object already have one.

* parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2]
  this change is done by Nobuyoshi Nakada <nobu@ruby-lang.org>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-20 16:45:41 +00:00
eban 38fc76574a * ext/extmk.rb: rm -rf $extout, not extout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-20 12:22:48 +00:00
dave a42fb7a811 Force RDoc html background to white
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-20 06:26:57 +00:00
tadf f2d983cb8d synchronized with date2 3.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-20 00:48:19 +00:00
matz 610b5d7975 * variable.c (rb_cvar_set): class variables become private to the
particular class/module. [Ruby2]

* variable.c (rb_cvar_get): ditto.

* io.c (rb_io_sync): need not to check writable. [ruby-core:02674]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-19 07:13:01 +00:00
usa 5af30c19a4 * lib/mkmf.rb ($beos, $solaris): add OS flags.
* lib/mkmf.rb (RUBY): / is not recognized as path separator on
   nmake/bmake. [ruby-list:39388]

* lib/mkmf.rb (CLEANLIBS, CLEANOBJS): should remove *.exp with *.so.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-19 02:35:27 +00:00
eban 006e8d2e71 * instruby.rb, rubytest.rb: do not depend on srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-18 10:49:20 +00:00
matz c223709c3b * eval.c (proc_eq): avoid false positive by using scope and
dyna_vars.  no longer use frame.uniq.

* eval.c (proc_arity): arity is now defined as number of
  parameters that would not be ignored. i.e. Proc.new{}.arity
  returns zero.  update test suites too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-18 10:09:43 +00:00
nobu 311fdfdfea * mkconfig.rb: no longer embed srcdir and compile_dir into
rbconfig.rb.

* ext/extmk.rb, lib/mkmf.rb: obtain top_srcdir and topdir from library
  paths.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-18 09:50:14 +00:00
seki 29696a1738 stop undef DRbObject#to_a
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-18 08:48:37 +00:00
matz bfb47068b0 * eval.c: remove specialized version of rb_Array(). use simple
one defined in object.c.

* object.c (Init_Object): remove Kernel#to_a.

* enum.c (enum_zip): use "to_a" instead of "to_ary".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-18 06:59:04 +00:00
matz ab6963043d * error.c (exc_initialize): calling 'to_str' each time just for
type checking is too heavy.  [ruby-core:02661]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 23:03:17 +00:00
ksaito dbfe25c939 * oniguruma.h, regparse.c: imported Oniguruma 2.2.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 15:25:28 +00:00
ocean e1124ffa21 Fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 04:12:50 +00:00
ocean 3210044a2b Fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 02:32:32 +00:00
ocean bbe76ca313 Fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 02:29:49 +00:00
ocean 7307c01906 * dir.c (fnmatch_helper): File.fnmatch('\.', '.') should return true.
(Rev1.112 lost compatiblity)

* dir.c (fnmatch_helper): File.fnmatch('\/', '/', File::FNM_PATHNAME)
  should return true. (Rev1.112 lost compatiblity)

* dir.c (fnmatch): '**/' shouldn't match leading period unless
  File::FNM_DOTMATCH is set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-16 02:24:47 +00:00
matz 2fab242f66 * eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
yield is not break destination. [ruby-dev:23197]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-15 02:27:29 +00:00
gotoyuzo 5bf9610130 * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SocketForwarder):
add do_not_reverse_lookup.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-15 01:14:51 +00:00
nobu 2baa02ec9b * eval.c (rb_thread_raise): err at unstarted thread. (PR#1302)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-14 13:07:42 +00:00
seki c12e0136dc use druby://localhost:0, [ruby-dev:23078]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-13 05:58:00 +00:00
ocean c6e5374aae * dir.c (fnmatch):
directory recursion '**/' can be used with File::FNM_PATHNAME.
  [ruby-dev:22901]

* dir.c (fnmatch_helper):
  only '/' is accepted as path separator even in DOSISH environment.
  [ruby-dev:22974] [ruby-list:39337]

* dir.c (fnmatch_helper):
  faster '*' matching.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-12 15:00:39 +00:00
nobu 21410f4dfe * configure.in (rb_cv_noreturn): default for platforms not support
prototypes.

* ruby.c (ruby_init_loadpath): buffer for path name should have
  MAXPATHLEN.

* lib/mkmf.rb (configuration): include topdir and hdrdir in VPATH.

* lib/mkmf.rb (create_makefile): default dependency rule.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-12 11:19:22 +00:00
gotoyuzo 0d8a0904d9 * lib/webrick/config.rb (WEBrick::Config::General): add
:DoNotReverseLookup.

* lib/webrick/server.rb (WEBrick::GenericServer#accept): call
  do_not_reverse_lookup for each socket if :DoNotReverseLookup
  is set.  [ruby-code:02357]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-11 22:36:11 +00:00
aamine fb9d31c327 * lib/fileutils.rb (remove_dir): should handle symlink correctly. This patch is contributed by Christian Loew. [ruby-talk:94635]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-10 13:26:38 +00:00
matz 8818447867 * eval.c (return_jump): set return value to the return
destination.  separated from localjump_destination().

* eval.c (break_jump): break innermost loop (or thread or proc).

* eval.c (rb_yield_0): set exit_value for block break.

* eval.c (eval): Only print backtrace if generating the backtrace
  doesn't generate an exception.  [ruby-core:02621]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-10 07:32:37 +00:00
matz 7c097dc891 * struct.c (rb_struct_s_def): Struct::new executes block with
generated struct class. [ruby-talk:02606]

* io.c (rb_io_ungetc): raise IOError instead of calling
  rb_sys_fail().  [ruby-talk:23181]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-10 07:05:19 +00:00
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 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 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
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 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
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
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
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 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
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
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
nobu 5aad820604 * io.c (pipe_open): erred program name should be reported by
exceptions, instead of the first argument.

* process.c (rb_spawn): ditto.

* process.c (proc_spawn_v): use first argument as program name.

* win32/win32.c (rb_w32_aspawn): ditto.

* win32/win32.c (CreateChild): search executable file if no program
  name given.

* lib/drb/extservm.rb (invoke_service_command): use Process.spawn.
  [ruby-dev:23103]

* lib/rdoc/ri/ri_display.rb (setup_pager): use IO.popen.
  [ruby-dev:23086], [ruby-dev:23103]

* lib/rdoc/diagram.rb (convert_to_png): ditto.

* lib/rdoc/generators/chm_generator.rb (compile_project): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 07:30:35 +00:00
usa 95ce90a87e * wince/Makefile.sub (config.h): shouldn't check defined? NORETURN.
[ruby-dev:23100]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 03:31:05 +00:00
usa 8e89487675 * win32/Makefile.sub (config.h): shouldn't check defined? NORETURN.
[ruby-dev:23100]

* ChangeLog: typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 03:26:09 +00:00
nobu 06953dceed * test/ruby/test_iterator.rb (test_ljump): cannot use
assert_nothing_raised due to passing block.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-02 02:28:44 +00:00
dblack 4bea8f3ce2 scanf.rb fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 21:26:25 +00:00
dblack e5f6e2c8b8 scanf.rb note
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 14:37:52 +00:00
ocean cac6f19906 Fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 10:58:33 +00:00
ocean ed694e74ff * bcc32/setup.mak: configure's default is "--enable-install-doc"
* win32/setup.mak: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 10:56:26 +00:00
dave b84917766d Allow aliases to have parentheses
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 03:26:05 +00:00
dave 43d483d41d Handle :nodoc: om singleton classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-29 14:16:33 +00:00
ocean 8a5dba33b2 * bcc32/Makefile.sub, bcc32/README.bcc32, bcc32/configure.bat,
bcc32/setup.mak: new configure scheme. use ``configure --prefix=dir''
  instead of ``make DESTDIR=dir install''.
  --with-static-linked-ext support on mswin32. [ruby-dev:23034]
  (by Nakada. Thanks.)

* bcc32/setup.mak: "configure --disable-install-doc" is now working.

* win32/setup.mak: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-29 08:22:48 +00:00
ocean e5670724c5 * bcc32/configure.bat: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-28 06:21:20 +00:00
ocean 3b7c2e1286 * bcc32/configure.bat: append missing label ":exit".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-28 06:13:11 +00:00
seki c85e310795 * MANIFEST: add test_erb.rb
* lib/erb.rb, test/erb/test_erb.rb: don't forget filename,
          if both filename and safe_level given. [ruby-dev:23050]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-28 01:52:14 +00:00
matz bf08067ded * eval.c (proc_invoke): no orphan block check is needed when pcall
is true.

* eval.c (localjump_destination): update localjump condition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-27 13:30:00 +00:00
matz aba4666e19 * eval.c (localjump_destination): lambda should not interfere
return from the yielded block.

* hash.c (delete_if_i): use st_delete_safe() (via
  rb_hash_delete()) instead of returning ST_DELETE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-26 17:15:00 +00:00
seki 52e0246b61 require drb/eq.rb by default
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-26 15:56:40 +00:00
nobu 0ff6bcae35 * win32/win32.c (make_cmdvector): adjust successive double-quote
handling.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-26 03:15:08 +00:00
nobu 1eafe8b157 * process.c (rb_f_exec): get rid of SEGV when exec failed for command
in single string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-25 17:35:13 +00:00
nobu 56e2c5243f * process.c (rb_f_exec): get rid of SEGV when exec failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-25 17:19:16 +00:00
nobu b0e0f45571 * gc.c (obj_free), io.c (rb_io_fptr_finalize), rubyio.h (OpenFile):
sharing OpenFile.

* io.c (rb_io_initialize): accept IO instance.  [ruby-dev:22195]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-25 12:17:39 +00:00
nobu 61deeb3741 * instruby.rb (with_destdir): should return the given argument if no
DESTDIR is given.

* instruby.rb: use path name expansion of cmd.exe.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-25 12:16:30 +00:00
nobu 8f2057e33d * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb:
warn with caller position.

* test/rss/test_content.rb, test/rss/test_dublincore.rb,
  test/rss/test_syndication.rb, test/rss/test_trackback.rb: use cgi
  instead of cgi-lib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-25 11:44:58 +00:00
ocean 9418d16cbb Add ruby-dev number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 10:06:46 +00:00
ocean b381815014 * dir.c (glob_helper): '**/' should not match leading period
unless File::FNM_DOTMATCH is set. (like '*/')


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 09:49:59 +00:00
nobu 9af2f9e0da * test/ruby/test_file.rb (test_fnmatch): test for dir.c:1.108.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 09:03:19 +00:00
ocean 77d7ff7cbe * dir.c (fnmatch): File.fnmatch with FNM_PATHNAME was broken
for the pattern including '*' followed by '/'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 08:17:10 +00:00
dave d22ade523f Improve heuristic for which files to include. See ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 04:24:02 +00:00
dave 47d12ab8d0 Deal with case where first file processed contains a :stopdoc:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-24 04:07:46 +00:00
dave 810854455d Handle class vars in code listings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:41:14 +00:00
dave a928cfed87 Handle aliases in C files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:34:01 +00:00
dave dc03b05a7e Check opdir _before_ parsing files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:17:26 +00:00
dave 74d704c263 Fix constant value extraction. Escape HTML in constant values
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:10:42 +00:00
gotoyuzo 2d0e62faf1 * ext/openssl/ossl_config.c (ossl_config_each): add new method
OpenSSL::Config#each. it iterates with section name, field name
  and value.

* ext/openssl/ossl_config.c (Init_ossl_config): include Enumerable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 18:45:41 +00:00
nobu d178414875 * instruby.rb (parse_args): use optparse instead of getopts.
* instruby.rb (DOSISH): embedded path in batch files should not be
  prefixed by DESTDIR.  [ruby-core:02186]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 00:09:48 +00:00
nobu e10564a578 * lib/mkmf.rb (init_mkmf): $INCFLAGS also should be lazy-evaluated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 05:58:10 +00:00
nobu d65d5e7661 * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: terminate options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 05:44:35 +00:00
nobu 0990e0e8fc * ext/extmk.rb: $extstatic is Array or nil now. [ruby-talk:93383]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 05:33:36 +00:00
akira 329b4782ff * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 04:06:09 +00:00
nobu 883857d842 * ext/extmk.rb: use optparse instead of getopts.
* Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 03:58:44 +00:00
gsinclair ac19769719 * re.c: corrected documentation format (rb_reg_initialize_m)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 00:52:38 +00:00
gsinclair 84e968f06c * ext/zlib/zlib.c: documented, but needs more effort.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-21 13:49:40 +00:00
nobu cf8cd080e4 * ext/extmk.rb: prefer relative path. [ruby-talk:93037]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-21 05:33:24 +00:00
nobu 59e3a0679e * missing/os2.c, missing/x68.c: typo fix. pointed out by greentea.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-21 02:12:21 +00:00
nobu 33e064afff * lib/ostruct.rb (OpenStruct#initialize_copy): should not share
members.  [ruby-dev:22966]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-20 10:11:25 +00:00
matz 50b775851a * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option to
irb. [ruby-dev:39243]

* sprintf.c (rb_f_sprintf): sign bit extension should not be done
  if FPLUS flag is specified.  [ruby-list:39224]

* sprintf.c (rb_f_sprintf): do not prepend dots for negative
  numbers if FZERO is specified.  [ruby-dev:39218]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-20 10:03:47 +00:00
nobu f9bad7bf18 commit miss. _no
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-20 04:00:09 +00:00
nobu fc421cf6ac * io.c (pipe_open): fix typo.
* win32/win32.c (CreateChild): first argument to CreateProcess() must
  have path, not just basename.

diff -U2 io.c io.c
--- io.c	20 Feb 2004 01:02:56 -0000
+++ io.c	20 Feb 2004 02:56:08 -0000
@@ -2696,5 +2697,5 @@
 	    rb_thread_sleep(1);
 	    break;
-	  defined:
+	  default:
 	    rb_sys_fail(pname);
 	    break;
only in patch2:
--- win32/win32.c	19 Feb 2004 09:08:23 -0000	1.112
+++ win32/win32.c	20 Feb 2004 02:49:04 -0000
@@ -14,2 +14,3 @@
 #include "rubysig.h"
+#include "dln.h"
 #include <fcntl.h>
@@ -903,3 +904,14 @@
     if (prog) {
-	shell = prog;
+	char *p = dln_find_exe(prog, NULL);
+	if (!p) {
+	    shell = prog;
+	}
+	else {
+	    shell = p;
+	    while (*p) {
+		if ((unsigned char)*p == '/')
+		    *p = '\\';
+		p = CharNext(p);
+	    }
+	}
     }


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-20 03:55:29 +00:00
dave ba3a872a68 Support visibility modifiers for attributes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 14:26:05 +00:00
gsinclair 0425463a3d * lib/ostruct.rb: documented
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 13:42:30 +00:00
nahi 464fbf7b4f * test/rinda/test_rinda.rb: DRb.start_service only once in testsuites.
DRb.start_service could handle this.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 13:40:42 +00:00
nahi b61d1549d4 * lib/soap/mapping/rubytypeFactory.rb: should not dump singleton class.
[ruby-dev:22588]
          c = class << Object.new; class C; self; end; end; SOAPMarshal.dump(c)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 13:26:56 +00:00
gsinclair a077e7cec4 * ext/strscan/strscan.c: improved documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 12:32:09 +00:00
nobu ea5679c979 * win32/win32.c, win32/win32.h: fixed prototypes.
* win32/win32.c (wait): same as waitpid() with -1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 09:08:23 +00:00
dave 23d081b993 Fix typos (Doug Kearns)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 03:23:51 +00:00
aamine b06f1fb429 * ext/strscan/strscan.c: StringScanner#restsize is obsolete; use #rest_size instead.
* ext/strscan/strscan.c: StringScanner#matchedsize is obsolete; use #matched_size instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 18:06:14 +00:00
aamine e55e640a6f * ext/strscan/strscan.c: don't use rb_eval_string, it defines classes under the module when required in module clauses. [ruby-dev:22951]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 17:42:54 +00:00
aamine 6f77e4b4ba * ext/strscan/strscan.c: merge documentation from 1.8 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 17:38:33 +00:00
gsinclair fbac5a54a1 removed conflict indicator
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:28:18 +00:00
gsinclair 1399c1bca0 * lib/cgi-lib.rb: deprecated after 1.8.1
* lib/getopts.rb:   ditto
 * lib/importenv.rb: ditto
 * lib/parsearg.rb:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:27:06 +00:00
dave 847fd91e32 Strip extraneous spaces from included filename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:12:55 +00:00
seki 926a6fb194 remove O_NONBLOCK, thanks ay
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:55:22 +00:00
seki 4e6c7c602a import test_rinda.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:44:06 +00:00
nahi 994dfc0ae6 * test/*: should not depend on $KCODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:08:08 +00:00
usa 44284f71c9 * test/ruby/test_sprintf.rb: added tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 09:09:21 +00:00
eban 953caaf959 * ext/win32ole/win32ole.c: need to include <olectl.h> on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 08:22:18 +00:00
ocean e7b48e43a3 Modify ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 03:17:43 +00:00
usa a7d4955188 * sprintf.c (rb_f_sprintf): clean up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 01:24:13 +00:00
gsinclair e81b38b6d3 * lib/rinda/rinda.rb: added documentation (from Hugh Sasse)
* lib/rinda/tuplespace.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 22:29:07 +00:00