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

16485 Коммитов

Автор SHA1 Сообщение Дата
matz 9be62b3b1a * process.c (rb_f_sleep): RDoc disambiguation. [ruby-talk:332632]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 04:20:05 +00:00
svn 2fa90ebea0 * 2009-04-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-31 18:49:51 +00:00
akr e2dab32d0b update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-31 18:49:25 +00:00
nobu 0d3bf82f80 * configure.in: fixed the help strings for the header and library
dir switches, and updated to use AS_HELP_STRING.  patches from
  Richard Brown, c.f. [ruby-core:23067].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-31 06:17:38 +00:00
svn 7fd6fb63d1 * 2009-03-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-30 23:20:50 +00:00
jeg2 8e2eedf46b * test/csv/test_interface.rb, test/csv/test_serialization.rb:
Trying more fixes some failing tests on Windows.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-30 23:20:44 +00:00
akr 2a58eebd8f * .gdbinit (rp): show negative fixnum correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-30 10:04:51 +00:00
nobu c11f63669a * vm_eval.c (eval_string_with_cref): replaces the message if
frozen.  [ruby-dev:38208]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-30 03:12:48 +00:00
svn c3faa28bb7 * 2009-03-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-29 16:00:52 +00:00
jeg2 a9b53f6397 * test/csv/test_interface.rb: Trying a fix for some failing tests
on Windows.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-29 16:00:47 +00:00
nobu 896db7d625 * lib/pathname.rb (Pathname#relative_path_from): compares path
components according to system default case-sensitiveness.
  [ruby-core:22829]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-28 23:59:28 +00:00
akr c79e8ba065 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-28 14:49:49 +00:00
nobu f4cecb53bd * common.mk (ruby.imp): all symbols in static library need to be
exported, so that encoding-extensions can be loaded.  based on a
  patch from Yutaka Kanemoto <kinpoco AT gmail.com> at
  [ruby-talk:332282].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-28 02:10:34 +00:00
nobu 48379c7309 * sprintf.c (rb_str_format): checks if named argument given twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 23:49:52 +00:00
nobu 456f68f2fd * sprintf.c (GETNAMEARG): remembers named arg is used, to get rid
of too many arguments warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 21:18:29 +00:00
nobu 72122dd947 * lib/mkmf.rb (link_command, cc_command, cpp_command): should not
override extout defined in extmk.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 18:17:07 +00:00
nobu a8eaf31630 * lib/mkmf.rb (what_type?): checks more restrictively, and
supports universal binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-27 03:56:46 +00:00
akr 29983664fc * time.c (time_cmp): negate the result of reverse comparison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 16:35:18 +00:00
svn f0c0f504f4 * 2009-03-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 16:21:04 +00:00
akr 5f64ea6c60 * bignum.c (rb_cmpint): FIX2INT may fail on LP64 platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 16:20:58 +00:00
matz 5986849448 * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well for
prototypes of compatibility functions on Win32 platform.
  [ruby-core:22870]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 14:32:22 +00:00
nobu 8eee0060f5 * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would be
usually considered to be included in text data.

* lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
  and is irrelevant to whether a file is binary.  copied from
  above since TAB and newlines would be usually considered to be
  included in text data.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 03:22:09 +00:00
nobu e0b7af69b4 * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considers
--program-prefix and --program-suffix.  reapplied r19923.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 02:33:16 +00:00
nobu 340d9c59fd * bin/{irb,rdoc}: executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-26 01:31:24 +00:00
nobu cc11923a9d * configure.in (target_alias): replaces cpu with universal too.
* configure.in (target): replaces cpu with arch by --with-arch.

* mkconfig.rb (TOPDIR): chops arch in config instead of
  RUBY_PLATFORM which varies on universal_binary.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 22:45:13 +00:00
svn 9eb6a24f3f * 2009-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 22:44:24 +00:00
nobu e5ffb6df0f * mkconfig.rb (MAJOR, MINOR, TEENY): reads from version.h always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 22:44:17 +00:00
nobu 22a3520dee * configure.in (RUBY_CHECK_SIZEOF): need to include $4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 10:23:45 +00:00
svn be974b81dd * 2009-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 08:11:06 +00:00
knu 6c024efb90 * io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.
This fixes a coredump caused by: ruby -e "class X < IO; def
  initialize; end; end; p X.new.inspect"



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-24 08:11:01 +00:00
akr 4a0bb2dc48 * time.c (time_timespec): use NUM2TIMET.
(time_s_at): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 13:02:12 +00:00
knu 8d31e44620 * process.c (Init_process): Better patch for eliminating an
"unused variable".




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 12:53:52 +00:00
knu 38d2bcd952 * ext/dbm/dbm.c (fdbm_initialize): Make the file variable
volatile, because FilePathValue() currently does not protect the
  given variable from GC. (Probably it should)

* ext/sdbm/init.c (fsdbm_initialize): Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 12:45:23 +00:00
knu 61e6f9b81c * file.c (rb_file_s_lstat): Back out.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 10:22:49 +00:00
knu fe3de995b6 * file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type
checks.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 10:00:57 +00:00
nari 5cb55eca6f * gc.c (init_heap): set default to heap slots length
if HEAP_OBJ_LIMIT is larger than HEAP_MIN_SLOTS. [Bug #1310]
  (set_heaps_increment): increment next_heaps_length if
  next_heaps_length and heaps_used are same.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 05:58:15 +00:00
nobu 2c772139b6 * win32/win32.c (rb_w32_spawn): use original command if not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 05:32:26 +00:00
nobu 15265f8be6 * enc/depend (link_so): replaces $(TARGET) with basename of the
target.  [ruby-talk:330286]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-22 21:51:18 +00:00
nobu 6a64e9e4ac * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL as
application name for batch files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-22 05:51:58 +00:00
akr 5bdeb55a02 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-21 08:08:52 +00:00
akr 7fd155cf0f * ext/openssl/ossl_ssl.c (write_would_block): defined.
(read_would_block): defined.
  (ossl_start_ssl): add nonblock argument.
  (ossl_ssl_connect): follow ossl_start_ssl change.
  (ossl_ssl_connect_nonblock): new method.
  (ossl_ssl_accept): follow ossl_start_ssl change.
  (ossl_ssl_accept_nonblock): new method.
  (ossl_ssl_read_internal): use write_would_block and
  read_would_block.
  (ossl_ssl_write_internal): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-21 06:56:33 +00:00
nobu f65d706529 * ext/dl: updated svn:ignore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-21 00:51:51 +00:00
nobu 1e94f2f4f6 * test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:52:43 +00:00
nobu c9cc612c09 * test/ruby/test_process.rb: skips tests need fd inheritance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:28:20 +00:00
nobu 564517840e * win32/win32.c (rb_w32_conv_from_wstr): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:22:34 +00:00
nobu f60de59a70 * process.c (rb_exec): prints error message only on platforms
neither close-on-exec nor spawnv is supported.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:19:52 +00:00
nobu ba1a12170b * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): omit program name
if actual program path is found.  [ruby-core:22960]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:17:42 +00:00
nobu 148f58c2df * io.c (pipe_open): should pass program name even if multiple
arguments are given.  fix for TestProcess::test_argv0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 22:25:57 +00:00
svn f6e1b6ec74 * 2009-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 17:39:51 +00:00
akr 17a085ea8c * ext/openssl/lib/openssl/buffering.rb
(OpenSSL::Buffering#write_nonblock): new method.

* ext/openssl/ossl_ssl.c (ossl_ssl_write_nonblock): new method.
  (ossl_ssl_write_internal): defined.
  (ossl_ssl_write): use ossl_ssl_write_internal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 17:39:44 +00:00