Commit graph

7022 commits

Author SHA1 Message Date
eban
4e1636f0b9 * 2005-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-15 08:21:32 +00:00
nagai
5fd61519a5 * ext/tk/tkutil.c (ary2list): give wrong arguments to hash2kv()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-15 07:40:25 +00:00
nagai
44166b6011 * ext/tk/lib/tk/timer.rb (TkTimer): forgot to clear @return_value
when restarting
* ext/tk/lib/tk/sample/cd_timer.rb: new sample of TkRTTimer


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-14 10:42:46 +00:00
nagai
fe95f1e2ca * ext/tk/lib/tk/timer.rb (TkRTTimer): forgot to reset the callback
time. So, 'continue' do all callbacks between 'stop' and 'continue'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-14 03:23:01 +00:00
eban
55f6c6d557 * 2005-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-13 15:21:16 +00:00
nagai
2150e7f5a1 * ext/tk/lib/tk/timer.rb (TkRTTimer): correct calculation of offset
value. get a little better accuracy.
* ext/tk/sample/demos-en/widget: use a binding with no local variables
  when eval a sample script.
* ext/tk/sample/demos-en/bind.rb: ditto.
* ext/tk/sample/demos-en/tcolor: ditto.
* ext/tk/sample/demos-jp/widget: ditto.
* ext/tk/sample/demos-jp/bind.rb: ditto.
* ext/tk/sample/demos-jp/tcolor: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-13 15:19:16 +00:00
usa
eb9bb3786a * 2005-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-13 07:53:54 +00:00
seki
16c1e00f61 remove test_gc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-13 01:10:24 +00:00
eban
e761c4f39e * 2005-03-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-10 14:15:50 +00:00
nagai
b12fcec321 * ext/tcltklib/tcltklib.c (lib_eventloop_ensure): mis-delete a timer
handler when exit from a recursive called eventloop
* ext/tk/lib/tk/timer.rb: new TkRTTimer class, which can works for a
  realtime operation
* ext/tk/sample/tkrttimer.rb: sample of TkRTTimer class
* ext/tk/lib/tk/textmark.rb: move  TkTextMark#+ and TkTextMark#- to
  TkText::IndexModMethods
* ext/tk/lib/tk/text.rb: improve TkTextMark#+ and TkTextMark#-, and
  add them to TkText::IndexModMethods module
* ext/tk/sample/tktextio.rb: add test part of "seek by text index
  modifiers"


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-10 10:14:13 +00:00
(no author)
1898e91c9d 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@8134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-10 10:14:13 +00:00
nagai
1df3bb564c * ext/tk/sample/demo-jp/floor.rb: bug on scrollbar assignment
* ext/tk/sample/demo-jp/floor2.rb: ditto
* ext/tk/sample/demo-en/floor.rb: ditto
* ext/tk/sample/demo-en/floor2.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 13:57:59 +00:00
gotoyuzo
279c5947d1 * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_write): call
rb_sys_fail if errno isn't 0. [ruby-dev:25831]

* ext/openssl/lib/openssl/cipher.rb: fix typo. [ruby-dev:24285]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 11:26:49 +00:00
gotoyuzo
2c820137ad * lib/webrick/server.rb (WEBrick::GenericServer#start): should
restore @token if accept failure. suggested by Dominique Brezinski.
  [ruby-core:04518]

I forgot it in my last commit ;)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 06:52:08 +00:00
nagai
13b755bd80 * ext/tk/sample/tktextio.rb: add show_mode which means that see where
when changing file position.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 06:08:33 +00:00
eban
80f4f21980 * 2005-03-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 05:47:21 +00:00
nagai
e73ec8d423 * ext/tk/sample/tktextio.rb: fix bug of handling 'end' position.
support initial text, overwrite setting and pos_gravity control.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 04:39:25 +00:00
matz
7fd15a1651 * ext/socket/socket.c: document from Sam Roberts
<sroberts@uniserve.com> for getsockopt and setsockopt is merged.
  [ruby-doc:824]

* eval.c (block_pass): should not push unique number if a block is
  not an orphan.  [ruby-dev:25808]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 09:56:20 +00:00
nagai
d377a64f4f * ext/tk/sample/tktextio.rb: add comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 09:48:46 +00:00
nagai
7e5b4f5d06 * ext/tk/sample/tktextio.rb: New sample script. TkTextIO class in this
sample supports to use a text widget as if it is a I/O stream (such
  like as StringIO class).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 09:19:08 +00:00
(no author)
d77fe880da 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@8118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 09:19:08 +00:00
nagai
1faff2245f * ext/tk/sample/tktextio.rb: New sample script. TkTextIO class in this
sample supports to use a text widget as if it is a I/O stream (such
  like as StringIO class).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 09:19:03 +00:00
ocean
b91e841937 fixed weekdays
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 05:09:00 +00:00
usa
d61bbc630c * ext/socket/socket.rb: workaround for some of 4.4BSD-Lite derived OSs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-08 04:55:08 +00:00
naruse
3f860f4c90 * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.66
fixed: [ruby-dev:25828]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 16:29:50 +00:00
eban
a1bb0b0e3d * 2005-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 16:25:25 +00:00
ttate
c827e7cce5 bugfix for typealias() in import.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 15:52:09 +00:00
gotoyuzo
df2e47fe44 * lib/webrick/server.rb (WEBrick::GenericServer#start): should
restore @token if accept failure. suggested by Dominique Brezinski.
  [ruby-core:04518]

* sample/webrick/httpsd.rb: fix typo in comment. suggested by
  Kazuhiko Shiozaki.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 12:35:41 +00:00
gotoyuzo
24cb3707eb * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_read,
ossl_ssl_write):
  - need to set errno on Win32 platform.
  - should call rb_sys_fail instead of rasing SSLError if
    SSL_ERROR_SYSCALL occured.
  - should wait for that the underlying IO become readable or
    writable if the error was SSL_ERROR_WANT_READ or
    SSL_ERROR_WANT_WRITE. [ruby-dev:25795]

* ext/openssl/lib/openssl/buffering.rb
  (Buffering#initialize): should set @eof and @rbuffer.
  (Buffering#fill_rbuff): should rescue Errno::EAGAIN.
  (Buffering#consume_rbuf): pointless eof flag resetting is deleted.
  (Buffering#read): should return an empty string if the specified
  size is zero.
  (Buffering#readpartial): new method.
  (Buffering#readline): fix typo.
  (Buffering#getc): return the first character of string correctly.
  (Buffering#each): fix typo.  suggested by Brian Ollenberger.
  (Buffering#readchar): fix typo.
  (Buffering#eof?): should read again it the input buffer is empty.
  (Buffering#do_write): should rescue Errno::EAGAIN.
  (Buffering#puts): use "\n" as the output field separator.

* ext/openssl/lib/openssl/ssl.rb: set non-blocking flag to the
  underlying IO.

* ext/openssl/extconf.rb: get rid of GNUmakefile generation.

* text/openssl/test_pair.rb: test for IO like methods.

* test/ruby/ut_eof.rb: test about empty file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 12:10:03 +00:00
(no author)
64eaecb8a8 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@8103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 12:10:03 +00:00
eban
681fcb37ac * lib/un.rb: should use OptionParser. (backported form HEAD)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 01:26:36 +00:00
matz
cde930a4a4 * string.c (rb_str_cmp_m): should not return false but nil.
fixed: [ruby-dev:25811]

* lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499]
  getopts.rb, parsearg.rb, importenv.rb as well.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 00:20:16 +00:00
nagai
1c536c2a98 * ext/tk/tkutil.c: remove the some codes which depend on the
defference between Ruby1.8 and 1.9, because st.c on Ruby1.9 was
  changed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 16:24:43 +00:00
eban
3c5da1721b * 2005-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 15:08:15 +00:00
nagai
1ee1686497 * ext/tcltklib/tcltklib.c: fail to call TclTkLib.mainloop when $SAFE==4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 15:03:42 +00:00
aamine
5e4004fa1d * lib/net/http.rb: HTTPHeader holds its header fields as an array (backport from CVS HEAD rev 1.112-1.123). [ruby-list:40629]
* test/net/http/test_httpheader.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 07:42:35 +00:00
eban
81e29c1cd9 * 2005-03-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 03:15:36 +00:00
akr
fe565a758d * lib/pp.rb: rdoced by by Sam Roberts. [ruby-core:4490]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:57:53 +00:00
akr
6a3c57bb2a * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgid
may return nil.  [ruby-talk:129826]
  reported by Daniel Berger.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:41:15 +00:00
nagai
b63b8f5a87 * ext/tk/lib/tkextlib/SUPPORT_STATUS: add version info of Tcl/Tk extensions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 00:50:07 +00:00
eban
5f86763b38 * 2005-03-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-05 09:41:37 +00:00
ocean
ca63c2c062 * dir.c (fnmatch): removed unnecessary code. (ruby_1_8 didn't have
String#clear, so [ruby-dev:24749] didn't affect it)

* win32/win32.c (NtInitialize): ditto. (by numeric.c 1.101.2.14)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-05 09:31:32 +00:00
nagai
26dd1065f4 * ext/tk/lib/tkextlib/tile.rb: lack of "autoload TProgressbar"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-05 07:46:44 +00:00
nagai
7a7bf8b8bf * ext/tk/lib/multi-tk.rb: freeze callback-entry objects
* ext/tk/lib/tkextlib/tile.rb: support tile-0.6


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-05 07:35:41 +00:00
nobu
f132f2705d * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
also locally defined modules.

* ext/iconv/iconv.c: backport Iconv::InvalidEncoding from CVS HEAD.

* ext/strscan/strscan.c: moved misplaced rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 10:39:46 +00:00
matz
d43b7e03ef * lib/set.rb (SortedSet::setup): a hack to shut up warning.
[ruby-talk:132866]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 02:29:33 +00:00
nagai
437fb244f4 * ext/tcltklib/tcltklib.c (ip_rbUpdateCommand, ip_rb_threadUpdateCommand):
get rid of warnings with Tcl/Tk 8.3 or former (backport from CVS HEAD).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 02:22:36 +00:00
usa
494c91af1f * 2005-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 00:16:09 +00:00
naruse
464b65b8ea * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.63
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-03 22:12:03 +00:00
naruse
be8c5a34b5 * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.62
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-03 14:50:01 +00:00