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

12735 Коммитов

Автор SHA1 Сообщение Дата
usa a966b61fd2 * test/ruby/test_argf.rb (test_binmode): wrong test. fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 05:52:32 +00:00
naruse 235df50648 * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 05:31:35 +00:00
usa 844952338b * include/ruby/win32.h (pipe): now pipe is textmode. although this
change is experimental, it will be spec if no compatiblity problem
	  is reported.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 04:51:08 +00:00
nobu 02337b089e * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
public methods only.  [ruby-core:17283]

* object.c (convert_type): ditto.

* lib/singleton.rb (Singleton#_dump): conversion method should be
  public.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 03:05:33 +00:00
nobu 3c48ebce0b * ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch from
okkez <okkez000 AT gmail.com> in [ruby-dev:35141].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 01:18:13 +00:00
nobu d0d6ce156a svn:eol-style LF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 00:51:35 +00:00
drbrain 215fbc639f Fix RubyGems for 1.9, r1780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 23:59:31 +00:00
drbrain 9d4f37f51f Update RubyGems to 1.1.1 r1778 (almost 1.2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 22:04:18 +00:00
ko1 f98e6b91de * KNOWNBUGS.rb, bootstraptest/pending.rb: move pending bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 19:29:38 +00:00
ko1 00e4fd42f3 * vm.c, vm_insnhelper.c: fix escape process with "braek" and "return"
syntax in "lambda".  [ ruby-Bugs-19304 ], [ruby-core:17164]
* KNOWNBUGS.rb, bootstraptest/test_proc.rb: add/move solved test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 19:27:24 +00:00
nagai e2f37fb9c6 * ext/tk/lib/multi-tk.rb: cannot access class variable from singleton method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 16:53:46 +00:00
usa fcf931c0e5 * dir.c (Init_Dir): dir_foreach() takes variable argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 15:05:50 +00:00
jeg2 b2c5258b85 * lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes to
the Kernel::Integer() method.  [ruby-core:17272]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 14:04:48 +00:00
nobu 3e30cdad08 * ruby.c (opt_W_getter): made a hooked variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 14:02:20 +00:00
mame d7baa40cac * enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)
differs from sizeof(long).

* enc/shift_jis.c (property_name_to_ctype): ditto.

* enc/unicode.c (onigenc_unicode_property_name_to_ctype): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 13:06:34 +00:00
nobu 42eabfcca2 * thread_pthread.c (native_thread_init_stack): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 12:58:31 +00:00
nobu a9934cb098 * common.mk (miniruby$(EXEEXT)): $(PREP) isn't always same as
miniruby, and tests, debug, etc have no meaning when
  cross-compiling.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 11:32:40 +00:00
ryan c6e2c05b20 Fixed dependencies on miniruby
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 09:41:05 +00:00
usa 5e54153132 * include/ruby/win32.h (pipe): expand pipe buffer size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 09:11:28 +00:00
usa 62617789ed * win32/win32.c (CreateChild): no need to inherit handles here because
spawn'ed child cannot detect that STDIN is closed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 08:31:41 +00:00
naruse 124aab6ad4 * dir.c (dir_data): add intenc and extenc.
* dir.c (dir_s_alloc): ditto.

* dir.c (dir_initialize): now accept internal_encoding and
  exernal_encoding.

* dir.c (dir_s_open): changed for dir_initialize.

* dir.c (dir_open_dir): ditto.

* dir.c (dir_foreach): changed for dir_oepn_dir.

* dir.c (dir_entries): changed for dir_oepn_dir.

* dir.c (dir_enc_str): defined.

* dir.c (dir_path): use dir_enc_str.

* dir.c (dir_read): ditto.

* dir.c (dir_each): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 22:29:05 +00:00
naruse e3aa138e53 * io.c (io_set_encoding): defined.
* io.c (rb_open_file): convert path on Windows and Mac OS X.

* io.c (open_key_args): use io_set_encoding and now accept
  internal_encoding and exernal_encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 21:31:56 +00:00
naruse 2755479bd9 * encoding.c (rb_filesystem_encoding): defined.
* include/ruby/encoding.h (rb_filesystem_encoding): added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 21:28:03 +00:00
naruse aaf1b72873 * ext/syck/rubyext.c: add encoding header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 21:25:17 +00:00
nagai 77773831db * ext/tk/sample/demos-jp/toolber.rb, ext/tk/sample/demos-en/toolber.rb:
fail to back a tear-off marker when reattach the toolbar.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 18:50:53 +00:00
nagai 5ebf704953 * ext/tk/tcltklib.c: SEGV when exit.
* ext/tk/lib/tk.rb: add a check for safety to Tk.exit.

* ext/tk/sample/irbtkw.rbw: freezes when receives SIGINT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 16:54:50 +00:00
nobu 1723931102 * thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE.
* thread.c (ruby_native_thread_p): removed unused declaration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 14:56:14 +00:00
nobu 51fbc0699c * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
IO#readlines do not affect $_.  [ruby-core:17277]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 12:58:41 +00:00
nobu 82543dbc99 * lib/thwait.rb (ThreadsWait): Exception2MessageMapper no longer has
extend_to method.  [ruby-core:17267]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 09:52:50 +00:00
nobu 3929de6982 * lib/e2mmap.rb (E2MM.def_e2message): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 05:46:28 +00:00
knu a938a52126 * enumerator.c (enumerator_with_object, Init_Enumerator):
Temporarily back out with_memo, for which we need a better name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 00:49:25 +00:00
nobu 959383cb10 * ext/stringio/stringio.c (strio_readline, strio_each)
(strio_readlines): set lastline.  [ruby-core:17257]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 22:14:51 +00:00
ko1 faa93e847d * eval.c (rb_f_block_given_p): fix to skip class frame.
[ruby-core:14813]
* KNOWNBUGS.rb, bootstraptest/test_method.rb: move solved test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 16:50:37 +00:00
ko1 1c4f7a4c64 * vm_dump.c (vm_stack_dump_raw): disable verbose debug output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 16:49:19 +00:00
ko1 9ead0d771b * vm_core.h, thread.c: rename global_interpreter_lock to
global_vm_lock.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 16:48:02 +00:00
naruse 818bb6dd21 * ext/syck/rubyext.c (yaml_org_handler): associate encoding.
* ext/syck/rubyext.c (syck_genericresolver_node_import): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 09:42:32 +00:00
nobu 9b45b336ee * vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
exceptions.

* eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
  preallocated special exceptions.

* eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
  if it was frozen.

* gc.c (rb_memerror): raise nomem_error without backtrace if failed to
  make backtrace.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 09:17:06 +00:00
akr e7a660a3cf tgamma and lgamma_r is not a error function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 02:18:06 +00:00
akr 2e35696bbe add an example to rdoc of sqrt and cbrt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 02:13:16 +00:00
nobu 1a155ee7f6 * ext/stringio/stringio.c (strio_sysread): should not raise at empty
read.  a patch from Arthur Schreiber at [ruby-core:17245].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-14 13:52:41 +00:00
nobu 1df1cb307e * file.c (file_expand_path): no need to expand root path which has no
short file name.  [ruby-dev:35095]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-14 07:56:06 +00:00
nobu fc3c60f608 * gc.h (STACK_UPPER): moved from gc.c
* thread.c, thread_{pthread,win32}.c (ruby_init_stack,
  ruby_thread_init_stack): moved stack initialization from gc.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-14 02:59:19 +00:00
akr 436b02b332 * gc.c (ruby_initial_gc_stress): defined.
(ruby_initial_gc_stress_ptr): defined.

* debug.c (set_debug_option): use ruby_initial_gc_stress_ptr for
  gc_stress option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 22:57:41 +00:00
nobu 4641b80166 * gc.c (ruby_gc_stress): moved to rb_objspace_t.
* gc.c (gc_stress_get, gc_stress_set): VM local attribute.

* signal.c (sigsegv): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 15:09:22 +00:00
tadf e0d427e855 * rational.c (nurat_equal_p): Rational(0,x) and 0 are equivalent,
anyway.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 12:59:22 +00:00
tadf c7f4ebc8b7 * complex.c (string_to_c, nucomp_s_convert): preserve the current
backref.

	* rational.c (string_to_r, nurat_s_convert): ditto.

	* include/ruby/intern.h (rb_match_busy): added a declaration.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 12:29:50 +00:00
akr 05093ae437 * lib/time.rb (Time.xmlschema): don't accept decimal dot without
fractional digits.  fractional digits handling simplified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 09:10:44 +00:00
wanabe 6fc17f1f7b * complex.c (string_to_c_internal): save and restore backref. fixed [ruby-dev:34991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 08:22:13 +00:00
wanabe 01d7152157 * rational.c (string_to_r_internal): save and restore backref. fixed [ruby-dev:34990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 08:16:12 +00:00
usa 26f26890aa * README.EXT: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 05:56:51 +00:00