Commit graph

7022 commits

Author SHA1 Message Date
nobu
f44014b66e 2004-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-25 00:03:22 +00:00
nobu
31e85bd001 * eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-24 23:04:04 +00:00
nagai
2c38cb5fb0 * ext/tk/sample/tkextlib/bwidget/tree.rb: bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-24 13:13:12 +00:00
eban
ba4880988c * 2004-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 15:43:25 +00:00
nobu
3b6dac4e1d * eval.c (rb_load, search_required, rb_require_safe, rb_require): use
frozen shared string to avoid outside modification.  [ruby-dev:24580]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 15:41:17 +00:00
eban
359ba4eb05 * 2004-10-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:21:26 +00:00
ttate
672e5b5c87 Use NUM2INT to convert short values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-23 06:05:15 +00:00
matz
ec92deb929 * ext/zlib/zlib.c (zstream_run): always use zstream_append_input()
to avoid SEGV.  [ruby-dev:24568]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 15:28:13 +00:00
matz
1f9c8c0650 * eval.c (rb_alias): was warning for wrong condition.
[ruby-dev:24565]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 03:05:10 +00:00
gotoyuzo
a5487a4146 * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#meta_vars):
should check if path_info is not nil. [webrickja:126]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-22 01:38:42 +00:00
matz
6dea159d03 * ext/zlib/zlib.c (zstream_shift_buffer): should restore class
field of a buffer.  [ruby-dev:24562]

* eval.c (rb_alias): should warn on method discarding.
  [ruby-dev:24546]

* ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal
  string buffer by clearing klass.  [ruby-dev:24548]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:27:25 +00:00
eban
4e7b5c8895 * 2004-10-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:23:57 +00:00
nobu
5c60b00366 * string.c (rb_str_include): should not treat char as negative value.
[ruby-dev:24558]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 15:21:08 +00:00
gotoyuzo
f3501cd8ae * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
ensure to close @body. (http://bugs.debian.org/277520)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-21 10:10:52 +00:00
matz
2ec51ee0d5 * string.c (str_gsub): reentrant check. [ruby-dev:24432]
* backport all SEGV bug fixes from CVS HEAD.  [ruby-dev:24536]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 12:47:20 +00:00
nobu
959077c8e0 *** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 10:29:29 +00:00
eban
3a90c86316 * lib/xsd/charset.rb (Charset.charset_str): reverted. Hash#key does not exist in 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 04:48:25 +00:00
eban
65ab6d93e1 * 2004-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 01:39:17 +00:00
eban
f5ce8d4ec1 * MANIFEST: add ext/.document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-20 01:39:04 +00:00
dave
3af181aac2 Added .document file for ext/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 19:25:59 +00:00
(no author)
8b99fb60a5 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 19:25:59 +00:00
dave
3b832e90a2 RDoc can now deal with "attr" used as a variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 13:46:05 +00:00
suke
cfa37a9def * ext/win32ole.c(ole_invoke): retrieve the result value when
retrying the IDispatch::invoke.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 11:40:33 +00:00
matz
860bdc3b61 * io.c (read_all): block string buffer modification during
rb_io_fread() by freezing it temporarily. [ruby-dev:24479]

* dir.c (rb_push_glob): block call at once the end of method.
  [ruby-dev:24487]

* ext/enumerator/enumerator.c (enum_each_slice): remove
  rb_gc_force_recycle() to prevent potential SEGV.
  [ruby-dev:24499]

* ext/zlib/zlib.c (zstream_expand_buffer): hide internal string
  buffer by clearing klass.  [ruby-dev:24510]

* ext/socket/socket.c (sock_s_getservbyaname): protocol string
  might be altered.  [ruby-dev:24503]

* string.c (rb_str_upto): check if return value from succ is a
  string.  [ruby-dev:24504]

* io.c (rb_io_popen): get mode string via rb_io_flags_mode() to
  avoid mode string modification.  [ruby-dev:24454]

* io.c (rb_io_getline_fast): should take delim as unsigned char to
  distinguish EOF and '\377'.  [ruby-dev:24460]

* io.c (rb_io_getline): add check for RS modification.
  [ruby-dev:24461]

* enum.c (enum_sort_by): use qsort() directly instead using
  rb_iterate().  [ruby-dev:24462]

* enum.c (enum_each_with_index): remove rb_gc_force_recycle() to
  prevent access to recycled object (via continuation for
  example).  [ruby-dev:24463]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 10:25:23 +00:00
nagai
dd09dfe3f0 * ext/tk/tkutil.c: backport from CVS HEAD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 07:13:28 +00:00
nobu
e3640bc7b8 2004-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 00:07:23 +00:00
nobu
f11f8e5e92 * intern.h, object.c (rb_class_inherited_p): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 23:54:34 +00:00
nobu
e54022001d * indent and tabify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 23:48:49 +00:00
nobu
e1c72381c5 * string.c (rb_str_upto): method result must be checked. [ruby-dev:24504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 23:47:06 +00:00
nobu
e49259f772 * marshal.c (r_object0): check inheritance by the internal function.
[ruby-dev:24515]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 14:37:42 +00:00
nagai
9146e09a4f * ChangeLog: remove a conflict tag
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 07:14:03 +00:00
usa
da155576ad * range.c (range_step, range_each): need cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 06:59:41 +00:00
eban
f4e88fb23a * ext/tk/MANIFEST: add lib/tkextlib/tcllib/ico.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-18 02:40:13 +00:00
nobu
e09d8c75c1 2004-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 22:28:29 +00:00
nobu
bf71c226fc * file.c (rb_file_truncate): discard read buffer before truncation.
[ruby-dev:24197]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 22:26:58 +00:00
gotoyuzo
a79c87e333 * lib/webrick/config.rb (WEBrick::Config::General): add default values:
- WEBrick::Config[:DoNotReverseLookup]
  - WEBrick::Config[:RequestCallback] (it used as an alias of
    :RequestHandler in WEBrick::HTTPServer#run)
  - WEBrick::Config::FileHandler[:AcceptableLanguages]

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#set_filename): search files
  having suffix of language-name which Accept-Language header field
  includes if :AcceptableLanguages options is present.

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::FileHandler#get_servlet): new method to
  search servlet correspond to the suffix of filename.

* lib/webrick/httprequest.rb: add attributes access methods: accept,
  accept_charset, accept_encoding, accept_language, content_length
  and content_type.

* lib/webrick/httpresponse.rb: add attribute access methods:
  content_length, content_length=, content_type and content_type=.

* lib/webrick/httputils.rb (WEBrick::HTTPUtils.mime_types):
  use the second suffix to detect media type. (the first suffix
  may be a language name.)

* lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_qvalues):
  add method to parse Accept header field. it returns an Array of
  values sorted by the qvalues.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 17:13:04 +00:00
gotoyuzo
f93f318f77 * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host): new
method to register virtual hosting servers.

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


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 17:10:56 +00:00
nagai
51043a36b4 * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 14:05:19 +00:00
usa
1d409bc8bb 2004-10-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 09:26:15 +00:00
suke
1f895ea893 * ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.
* ext/win32ole/win32ole.c (fole_get_methods): ditto.
	* ext/win32ole/win32ole.c (fole_put_methods): ditto.
	* ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods
	  WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-17 04:02:16 +00:00
usa
77f8be6188 2004-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-16 06:33:50 +00:00
kou
3e3396b101 * lib/rss/0.9.rb (RSS::Rss#to_s): removed garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-16 05:47:17 +00:00
kou
b4634f935a * lib/rss/: untabified.
* test/rss/: untabified.
* lib/rss/0.9.rb (RSS::Rss#to_s): inent -> indent.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-16 04:51:15 +00:00
kou
6b988d9fab * lib/rss: supported prety print.
* test/rss/test_1.0.rb: added test for calculating default indent size.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-16 04:39:58 +00:00
nagai
a7ceaf9235 * ext/tk/lib/tkextlib/tcllib: based on Tcllib 1.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-16 02:13:54 +00:00
eban
18458005b1 * 2004-10-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-15 09:24:29 +00:00
nagai
c00d928b3e * ext/tk/lib/tk/timer.rb: TkTimer.new(interval, loop){ ... } is acceptable.
Add TkTimer.start ( == new + start ).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-15 09:06:52 +00:00
akr
84ce932c03 eval.c (Init_stack): make prototype declaration consistent with the definition in gc.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-15 03:54:02 +00:00
eban
afd008f07d * io.c (MODE_BINMODE, MODE_BINARY): fixed reversed condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-14 05:34:43 +00:00
eban
8dd5a65c8a * 2004-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-14 04:42:47 +00:00