yugui
8f3e3995df
* spec/default.mspec (config): . is no longer in $:.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 16:04:22 +00:00
nobu
6aa05eba8a
* thread.c (rb_thread_aset): fixed argument type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 15:27:48 +00:00
nobu
9f7feadf03
* NEWS (io/console): IO#noecho and IO#raw without block are
...
obsolete already. [ruby-dev:41226]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 14:09:47 +00:00
nobu
6f3830427d
* ext/io/console/console.c (ttymode): save dupped file descriptors
...
and restore tty modes using them, so that original modes can be
restored even if orignal fds are closed. [ruby-dev:41225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 14:07:32 +00:00
akr
f491696f4b
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 08:08:29 +00:00
marcandre
1dee5e34a3
* error.c: RDoc for subclasses of Exception. [ruby-core:28394]
...
* cont.c: ditto
* enumerator.c: ditto
* io.c: ditto
* math.c: ditto
* numeric.c: ditto
* proc.c: ditto
* re.c: ditto
* thread.c: ditto
* transcode.c: ditto. Thanks to Run Paint for some of the documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:50:09 +00:00
marcandre
b140b77926
* array.c (rb_ary_fetch, rb_ary_splice, rb_ary_store): Improve IndexError
...
messages [ruby-core:28394]
* hash.c (rb_hash_fetch_m): Improve KeyError message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:49:53 +00:00
nobu
adf6297ec8
* lib/rubygems/user_interaction.rb (Gem::StreamUI#ask_for_password):
...
use io/console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:11:30 +00:00
nobu
163f974208
* ext/io/console: imported. [ruby-dev:40897]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 04:05:39 +00:00
nobu
2c01a07bf4
* ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
...
* ext/etc/etc.c (etc_sysconfdir): added.
* lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 03:25:17 +00:00
nobu
5512c9b287
* ext/etc/etc.c: suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 03:08:53 +00:00
nobu
66abf4ad68
* ext/bigdecimal/bigdecimal.c (VpAlloc): ensure buf does not get
...
collected. based on a patch masaya tarui at [ruby-dev:41213].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 02:07:43 +00:00
akr
7eb6e562e5
* ext/socket/lib/socket.rb (BasicSocket#connect_address): MacOS X 10.6
...
returns "::ffff:a.b.c.d" for IPv4-mapped IPv6 address.
[ruby-dev:41215] patch by Tomoyuki Chikanaga.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 01:13:33 +00:00
svn
1926eb045f
* 2010-05-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 15:07:12 +00:00
akr
0365096bfe
don't sleep indefinitely. collect the zombie.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 15:07:11 +00:00
nobu
9283449812
* version.h: bump up to 1.9.3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 14:51:41 +00:00
nobu
a0136f4f27
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 13:29:44 +00:00
naruse
44ff836e58
Revert r26058 "* test/webrick/test_server.rb (test_daemon): simply use fork's return"
...
This must use pipe because the target for kill is not direct child.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 08:09:37 +00:00
tenderlove
5cea3d2b17
* .gitignore: ignoring fiddle build files
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 04:45:27 +00:00
nobu
f1307d2705
* tool/rbinstall.rb (install-man): install mdocs directly without
...
temporary files. [ruby-dev:41204]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 02:30:57 +00:00
nobu
69310faab2
* ext/tk/extconf.rb (get_tclConfig_dirs): glob with EXEEXT.
...
* ext/tk/extconf.rb (search_tclConfig): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 00:16:19 +00:00
nagai
cc9333b840
* ext/tk/extconf.rb: search directories on PATH, only if containing
...
tclsh or wish command (probably right fix for [ruby-core:30010]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 21:47:37 +00:00
svn
c4976411d9
* 2010-05-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 19:28:15 +00:00
naruse
54476a6024
* ext/bigdecimal/bigdecimal.c (VpCtoV): fix to check overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 19:28:12 +00:00
usa
8db2aa1216
* cont.c: define FIBER_USE_NATIVE only when _WIN32_WINNT >= 0x0400
...
on Windows because Fiber APIs are supported only such building
(and running) environments.
[ruby-dev:41192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 13:21:42 +00:00
nobu
bcd0bcc390
* test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
...
truncated with ec_key.group.order.size after openssl 0.9.8m for
FIPS 186-3 compliance.
WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using
openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises
OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns
false when you pass dgst longer than expected (no truncation
performed).
* ext/openssl/ossl_pkey_ec.c: rdoc typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 10:13:46 +00:00
nobu
f7050e0e27
* ext/fiddle/function.c (function_call): removed unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 09:33:10 +00:00
nobu
106e2cc619
* cont.c (Init_Cont): th is used only when FIBER_USE_NATIVE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 09:31:28 +00:00
ko1
26c48195af
* cont.c (fiber_setcontext): Fix last commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 09:13:54 +00:00
nobu
fadc3a8bbc
* time.c (rb_localtime_r2): get rid of infinite loop bug of
...
localtime() on x86_64-darwin. [ruby-core:30031]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 08:16:45 +00:00
tenderlove
4bada8b864
* ext/fiddle/*: Adding fiddle library to wrap libffi
...
* test/fiddle/*: testing fiddle extension
* ext/dl/lib/dl.rb: Requiring fiddle if it is available
* ext/dl/lib/dl/callback.rb: using Fiddle if it is available
* ext/dl/lib/dl/func.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 06:59:24 +00:00
naruse
ca3c007f05
* string.c (rb_str_match_m): add description about optional
...
position parameter. [ruby-list:47064]
patched by KISHIMOTO, Makoto <ksmakoto AT dd.iij4u.or.jp>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 06:07:05 +00:00
akr
3b9c00306f
* lib/tmpdir.rb: test RUBY_PLATFORM for loading tmpdir.so to avoid
...
LoadError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 05:14:10 +00:00
mrkn
ec0b0144b3
* NEWS: add rationalize methods of Complex, Float, Integer, NilClass, and Rational classes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 03:45:32 +00:00
nobu
0f7321eddf
* README: update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 03:12:28 +00:00
ko1
c462c50d63
* cont.c: apply FIBER_USE_NATIVE patch. This patch improve
...
Fiber context switching cost using system APIs. Detail comments
are written in cont.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 18:37:37 +00:00
ko1
833cade2dc
* vm_method.c (rb_unlink_method_entry, rb_sweep_method_entry):
...
added. Unlinked method entries are collected to
vm->unlinked_method_entry_list. On the GC timing, mark all method
entries which are on all living threads. Only non-marked method
entries are collected. This hack prevents releasing living method
entry.
[Performance Consideration] Since this Method Entry GC (MEGC)
doesn't occuer frequently, MEGC will not be a performance bottleneck.
However, to traverse living method entries, every control frame push
needs to clear cfp->me field. This will be a performance issue
(because pushing control frame is occurred frequently).
Bug #2777 [ruby-dev:40457]
* cont.c (fiber_init): init cfp->me.
* gc.c (garbage_collect): kick rb_sweep_method_entry().
* method.h (rb_method_entry_t): add a mark field.
* vm.c (invoke_block_from_c): set passed me.
* vm.c (rb_thread_mark): mark cfp->me.
* vm_core.h (rb_thread_t): add a field passed_me.
* vm_core.h (rb_vm_t): add a field unlinked_method_entry_list.
* vm_insnhelper.c (vm_push_frame): clear cfp->me at all times.
* vm_insnhelper.c (vm_call_bmethod): pass me.
* bootstraptest/test_method.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 17:51:21 +00:00
marcandre
34ed81ea89
* NEWS: wording
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 14:31:10 +00:00
wanabe
0356eef426
* compile.c (iseq_set_sequence): fix check range of ic_index.
...
a patch from Tomoyuki Chikanaga. #3236
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 13:33:58 +00:00
kanemoto
0882e74bf6
* dln.c (aix_loaderror): use execerror for load error on AIX.
...
This can avoid SEGV reported by Perry Smith. [Bug #2063 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 12:55:02 +00:00
wanabe
bd21118627
* thread_win32.c (w32_wait_events): get GVL before handle interrupt
...
event. [ruby-core:27199], [ruby-core:29698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 11:53:03 +00:00
nagai
690e065bf8
* ext/tk/extconf.rb: revert. enbugged by last commit.
...
([ruby-dev:41133], [ruby-dev:41134], [ruby-core:30010])
* ext/tk/README.tcltklib: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 10:08:16 +00:00
usa
54062a76e7
* file.c (rb_stat): use STAT macro instead of calling stat() directly.
...
reported by Bill Kelly. [ruby-core:30012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 06:55:45 +00:00
nobu
a6e33fd71c
* test/etc/test_etc.rb: assert only when any value is given.
...
[Bug #1575 ] [ruby-core:23722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 06:11:04 +00:00
nobu
a20cc16b20
* debug.c (RUBY_NODE_LMASK): may exceed int limit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 04:31:48 +00:00
nobu
a6242670f3
* bootstraptest/test_io.rb (megacontent-copy_stream): get rid of
...
deadlock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 02:43:15 +00:00
nobu
62d7a30a76
* gc.c (rb_mark_method_entry): renamed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 22:27:18 +00:00
nobu
208e43b3fe
* method.h (rb_gc_mark_method_entry): fixed typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 22:24:00 +00:00
ko1
b4d7d616d9
* method.h, vm_method.c: rename some internal functions related to
...
rb_method_entry_t.
rb_add_method_me() -> rb_method_entry_set().
rb_get_method_entry() -> rb_method_entry_without_cache().
rb_gc_mark_method_entry() -> rb_mark_method_entry().
* class.c, proc.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 20:25:09 +00:00
naruse
7a17dca09f
Fix and add tests for String#inspect. [ruby-dev:41153]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 19:07:05 +00:00