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

4064 Коммитов

Автор SHA1 Сообщение Дата
dave e950d051e1 Added RDoc for class IO
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27 00:44:05 +00:00
eban e973fe16f1 2003-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 17:08:57 +00:00
matz 23f79ec282 * io.c (next_argv): warn always for stdin on inplace edit mode.
* io.c (read_all): need to check string value.

* io.c (argf_read): allow ARGF.read(nil).  [ruby-dev:22433]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 17:05:20 +00:00
dave d1fd7bdf48 MG added RDoc comments for re.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 15:58:28 +00:00
matz b9a79bc020 * io.c (rb_f_backquote): need not to check nil result.
[ruby-core:02078]

* io.c (rb_io_getline): should return nil on eof, even when nil rs is
  specified. [ruby-core:02077]

* pack.c (pack_pack): add sign check for 'i', and 'l'.
  [ruby-dev:22427]

* bignum.c (rb_quad_pack): add range check for 'quad int'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 15:34:33 +00:00
nobu ab0c37d0cf * configure.in: check if getcontext and setcontext are available.
* eval.c: use presence of getcontext/setcontext.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 09:34:03 +00:00
akr 88947c09c4 lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 07:42:35 +00:00
aamine 16bcd53d21 * test/ruby/test_pack.rb: new test test_pack_N.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 05:05:37 +00:00
usa 9008b4f3ea 2003-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 02:00:41 +00:00
usa f573bcd129 * MANIFEST: add vms/config.h and remove vms/config.h_in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:59:42 +00:00
akiyoshi 67331f2497 [VMS] "rfm=stmlf" is specified for open() and fopen().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:47:12 +00:00
akiyoshi 3cb3f36ec8 config.h_in has been renamed to config.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:39:25 +00:00
akiyoshi 67e1e11969 add __FAST_SETJMP macro to support threads on VMS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26 01:38:31 +00:00
dave 11edb88f70 Fix problem with rule calculation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 19:59:39 +00:00
usa 3e16f5a3f0 * string.c (rb_str_update): don't return any value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 13:30:39 +00:00
matz f7d46c8860 * string.c (rb_str_update): call rb_str_modify().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 08:49:20 +00:00
eban 33e05ba916 2003-12-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-25 04:54:08 +00:00
dave 2d83cd85ee MG added RDoc comments to string.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 21:14:46 +00:00
nobu daef2a1df2 * eval.c (search_required): search actual file name once when no
extension specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 20:08:12 +00:00
matz cecdab3bf0 * configure.in: check for nanosleep, -lrt if required.
[ruby-core:02059]

* eval.c (thread_timer): use select(2) if nanosleep(2) is not
  available.

* eval.c: check __stub_getcontext for glibc on some platforms.
  [ruby-list:38984]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 19:38:15 +00:00
dave 060f19e92c Fix bug where two adjacent =begin/=end blocks causes the parser to get out of step.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 15:44:41 +00:00
matz 65d37c6cc5 * stable version 1.8.1 released.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 15:19:11 +00:00
nahi dc7549c0b0 * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb
test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0"
          to express -0.0.  [ruby-talk:88786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 14:53:17 +00:00
akr 8b279c0ddb * lib/tsort.rb (test_orphaned_break): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 14:31:41 +00:00
nagai 8855456929 * ext/tk/sample/tkmulticolumnlist.rb: new sample
* ext/tk/sample/tkmultilistframe.rb: bug fix


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 11:57:21 +00:00
eban 42da260543 * configure.in (LDSHARED): Fixed typographical error in assignment of
LDSHARED for Rhapsody which caused linking of extension modules to
  fail.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 11:54:12 +00:00
matz e9e100aa48 * eval.c (catch_timer): do not call rb_thread_schedule() inside to
avoid pthread_mutex_lock() deadlock.  interrupts to system calls
  are detected by TRAP_END via EINTR error.

* eval.c (thread_timer): do not post signal unless it is
  absolutely necessary.

* rubysig.h (TRAP_END): add CHECK_INTS to switch thread.

* regex.c (re_compile_pattern): check if nextp is smaller than
  pend.  [ruby-dev:22372]

* eval.c (umethod_bind): remove method overridden check.
  [ruby-dev:22366]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 08:47:36 +00:00
gotoyuzo 932075e82e * ext/openssl/ossl_ssl.c (ossl_ssl_read): should check for error
status by SSL_get_error().

* ext/openssl/ossl_ssl.c (ossl_ssl_write): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 07:29:40 +00:00
nobu 6fe8d987ce * ext/stringio/stringio.c (strio_read): clear the buffer argument
when returning nil.  [ruby-dev:22363]

* test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1):
  add buffer argument tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 05:23:32 +00:00
nobu 73d77c8f57 * lib/test/unit/assertions.rb: Modules are allowed to rescue.
* lib/test/unit/autorunner.rb: show output_level in order.

* lib/test/unit/collector/dir.rb: get rid of successive same
  directories in load path.

* test/testunit/test_assertions.rb (test_assert_nothing_raised,
  test_assert_raise): test for modules.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 05:08:04 +00:00
eban d05b3b1e48 * MANIFEST:
Added file:
    ruby/lib/rdoc/generators/template/html/old_html.rb
  Removed file:
    ruby/lib/rdoc/generators/template/html/css2.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 04:49:58 +00:00
shugo e34f7ef3cc * lib/net/imap.rb (authenticate): remove "\n" from base64 encoded
strings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 04:44:25 +00:00
dave bba2f6d405 Michael Granger added RDoc for range.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 04:29:32 +00:00
dave f0346bd249 Forgot to save buffer.... sigh
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 04:24:29 +00:00
nobu 52975bb7a7 * test/fileutils/test_fileutils.rb: should not create any
files or directories in current directory.  [ruby-talk:88724]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 02:26:44 +00:00
nobu c2b63d249f * ext/stringio/stringio.c (strio_read): never return nil at
unlimited read.  [ruby-dev:22334]

* ext/stringio/stringio.c (strio_read): support second
  argument.  [ruby-dev:22350]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 01:29:57 +00:00
usa 8365bb013f 2003-12-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 00:53:45 +00:00
nobu 170f4e21d3 * parse.y (arg): should return 0 after error. [ruby-dev:22360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 00:38:53 +00:00
dave 9146c954ff Fix doc typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 21:19:03 +00:00
matz 0a4fc3d71b * io.c (read_all): do not return nil at the end of file.
[ruby-dev:22334]

* io.c (argf_read): do not depend on nil at eof behavior of
  IO#read().

* eval.c (rb_thread_join): dup exception before re-raising it.

* io.c (rb_io_eof): call clearerr() to prevent side effect.  this
  patch is supplied by Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>.
  [ruby-dev:22234]

* pack.c (OFF16): get offset for big endian machines.

* pack.c (pack_pack): use OFF16 instead of OFF16B.
  [ruby-dev:22344]

* pack.c (pack_unpack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 19:53:45 +00:00
dave a3ecd5c83d RDoc comments for Fixnum, Float, and Hash. Add heuristic to RDoc to handle yaml/stringio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 16:21:17 +00:00
gsinclair fd4a3ee4ac * lib/optparse.rb: incomplete RDoc documentation added in place of
existing RD comments.  Tabs converted to spaces.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 13:27:42 +00:00
eban 818ecd7d0b 2003-12-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 12:35:29 +00:00
nahi 619587e205 * test/soap/test_streamhandler.rb (test_basic_auth): removed.
soap4r + basic_auth is not officially supported in ruby/1.8.1 even
          though soap4r + basic_auth + http-access2 should run fine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:47:01 +00:00
nobu 163a6e81b2 * io.c (rb_io_ungetc): raise an exception at unread stream to
avoid unspecified behavior.  [ruby-dev:22330]

* test/ruby/test_system.rb (test_syntax): glob relatively from
  __FILE__.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:43:04 +00:00
usa 44182056f6 Commit miss?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:07:45 +00:00
matz dbc5af97c7 * pack.c (pack_pack): remove unnecessary negative value check.
[ruby-dev:22329]

* io.c (rb_io_ungetc): need fflush before ungetc if write buffer
  is filled. [ruby-dev:22330]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 10:02:17 +00:00
usa d5ae9837ff * bcc32/Makefile.sub (config.h): bcc has finite(). [ruby-list:38940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 08:29:54 +00:00
nahi d83e21d15d * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]
* test/ruby/test_system.rb: num of asserts depended on running dir.

        * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot
          handle euc-jp.  install iconv, uconv or xmlscan.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 07:13:59 +00:00
akira 4bb0fd231e * lib/uri/generic.rb (URI::Generic::check_userinfo,
URI::Generic::check_user, URI::Generic::check_password): tests
  conflicts/depends with other components closely.

* test/uri/test_generic.rb (TestGeneric::test_set_component):
  added tets.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 05:17:00 +00:00