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

18783 Коммитов

Автор SHA1 Сообщение Дата
nobu 68e111176f * string.c (rb_str_inspect): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 02:50:05 +00:00
ko1 618445576f * eval.c, vm.c, vm_eval.c, vm_insnhelper.c: fix issues about
return and c-return trace.  This issue skips (c-)return event
  with global jump such as break or return.  This fix make vm invoke
  hooks at stack rewind timing.  fix [ruby-core:27606] [Bug #2610].
* test/ruby/test_settracefunc.rb: add a test for above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 13:52:32 +00:00
akr 2979842520 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 13:20:04 +00:00
akr 83d9e9f42e * string.c (rb_str_inspect): increment by rb_enc_mbminlen(enc) for
broken byte sequence.  [ruby-core:27748]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 05:22:51 +00:00
akr 4b8e14c978 * string.c (rb_enc_strlen_cr): increment by rb_enc_mbminlen(enc) for
broken byte sequence.  [ruby-core:27748]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-24 04:59:31 +00:00
nobu cb9da52cde * dir.c (dir_s_glob): get rid of comment starter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:47:23 +00:00
nobu a1d4164257 * thread.c (thread_start_func_2): unlock all locking mutexes
before clean up.  [ruby-core:26877]

* thread.c (rb_thread_atfork): no other threads to be joined.

* vm_core.h (rb_thread_lock_unlock, rb_thread_lock_destroy):
  new functions.

* vm.c (ruby_vm_destruct): unlock and destroy global VM lock.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:18:36 +00:00
nobu 2e5ef26a4e * ext/win32ole/lib/win32ole.rb: eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 20:08:55 +00:00
naruse ce35c0c650 * lib/rdoc/parser/ruby.rb: fix typo.
patched by Hal Brodigan [ruby-core:21536]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:34:47 +00:00
svn 75acf87959 * 2010-01-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:11:23 +00:00
naruse ad38805490 * lib/rdoc/markup/to_html_crossref.rb: fix failure of the test.
[ruby-core:20564]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 15:11:20 +00:00
naruse 155e42c50e * dir.c (dir_s_glob): add rdoc by Roger Pack. [ruby-core:27669]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 14:28:38 +00:00
naruse eaa9ca7653 * lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into):
make the rdoc(generating html) run faster and use less memory.
  patch by Tetsu Soh [ruby-core:27656]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 14:16:04 +00:00
suke 4b18062808 * ext/win32ole/win32ole.c: add WIN32OLE.ole_initialize,
WIN32OLE.ole_uninitialize to use in win32ole.rb.
  You must not use thease methods.

* ext/win32ole/lib/win32ole.rb: add win32ole.rb 
  re-define Thread#initialize (fix ruby-core:27634)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-23 11:02:17 +00:00
mame 0f29696f9d * sample/coverage.rb: preserve exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:26:52 +00:00
mame 0f078cbfc4 * test/ruby/test_dir.rb: get rid of debug print.
* test/ruby/test_module.rb: fixed to make test-all work.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:24:22 +00:00
svn b1a0dc709b * 2010-01-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:03:36 +00:00
mame bebd7e4511 * test/ruby/test_array.rb: add a test for Array#rotate, rotate!.
* test/ruby/test_dir.rb, test/ruby/test_fnmatch.rb: add some tests
  (for coverage of dir.c).

* test/ruby/test_enum.rb: add a test for Enumerable#minmax.

* test/ruby/test_enumerator.rb: add some tests for Enumerator#inspect,
  Enumerator::Generator and Yielder.

* test/ruby/test_env.rb: add a test for ENV#index.

* test/ruby/test_exception.rb: add some tests (for coverage of
  error.c).

* test/ruby/test_hash.rb: add a test for recursive check.

* test/ruby/test_integer.rb: add a test for number of argument of
  Integer.

* test/ruby/test_method.rb: add a test for define_method.

* test/ruby/test_module.rb: add a test for constant of included
  module.

* test/ruby/test_proc.rb: add a test for parameters with cfunc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 15:03:32 +00:00
mame d8d5e67184 * test/ruby/test_regexp.rb, test/ruby/test_symbol.rb,
test/ruby/test_variable.rb: add some tests (for coverage of
  compile.c).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 14:53:12 +00:00
akr 1d674dc547 * time.c (time_mload): add submicro into vtm.subsecx. [ruby-dev:40133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 12:08:02 +00:00
nobu 0f02abb31b * common.mk (rdoc): needs encodings and exts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:26:38 +00:00
naruse e243aabc0c * configure.in: add missing comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-22 05:17:16 +00:00
mame 45c2671e37 * test/ruby/test_bignum.rb, test/ruby/test_class.rb,
test/ruby/test_defined.rb, test/ruby/test_hash.rb,
  test/ruby/test_primitive.rb, test/ruby/test_variable.rb: add some
  tests (for coverage).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:08:40 +00:00
svn c758a90693 * 2010-01-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:06:42 +00:00
mame f3448ded9d * test/ruby/test_require.rb (test_define_class): expect TypeError
instead of NameError.  [ruby-core:27504]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:06:39 +00:00
shyouhei ff575c7eb7 * configure.in: some tidy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 06:10:16 +00:00
nobu 8a4c9b0b77 * array.c (rb_ary_rotate): new methods, Array#rotate! and
Array#rotate.  [ruby-dev:17194]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 02:15:48 +00:00
nobu 2cb9f63bab * array.c (rb_ary_reverse_m): copy directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 02:12:07 +00:00
nobu bb8f1415e8 * configure.in: use AS_CASE instead of when, to get rid of
an unintentional substitution.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 00:38:03 +00:00
nobu 03a284b8bd * iseq.c (iseq_s_disasm): check for proc first. based on the
patch by Roger Pack in [ruby-core:27626].  [ruby-core:27227]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-20 23:45:05 +00:00
svn 34271a335e * 2010-01-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-20 07:12:20 +00:00
shyouhei 0d3de66006 * common.mk (compile.$(OBJEXT)): dependencies lacking.
* vm_method.c (rb_add_method_cfunc): invalid initializer for C89

	* compile.c (iseq_insns_unification): int might be smaller than int*


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-20 07:12:16 +00:00
nobu 926fd9a939 * lib/resolv.rb (Resolv::Config.default_config_hash): return an
empty hash when resolv.conf is not available.  [ruby-core:27620]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 11:00:33 +00:00
nobu 5961543218 * lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the
defaults of nameserver and port.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 10:58:28 +00:00
nobu 1b26041724 * Makefile.in (clean-ext): allow glob patterns.
* ext/extmk.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 05:29:18 +00:00
usa 281825d48d * ChangeLog: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 05:20:01 +00:00
usa d842fce66e * ext/zlib/{extconf.rb, zlib.c): crc32_combine and adler32_combine is
supported on Zlib 1.2.2.1, so check them for old zlib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 05:14:29 +00:00
tenderlove 4395758903 * ext/zlib/zlib.c: added Zlib.crc32_combine and Zlib.adler32_combine
* test/zlib/test_zlib.rb: corresponding tests [ruby-core:27551]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19 00:06:04 +00:00
mame 77f3fc3054 * test/ruby/test_array.rb: add some tests (for coverage).
* test/ruby/test_bignum.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 17:03:16 +00:00
mame 34b93543fc * test/ruby/test_bignum.rb: some coerce definitions (for test) was
wrong.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 17:00:55 +00:00
mame 7f418222b1 * bignum.c (bigsub_int): remove nonsense loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 16:55:15 +00:00
svn 98fb593998 * 2010-01-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 16:43:33 +00:00
mame 6b438bee04 * parse.y (top_compstmt, top_stmts, top_stmt): prohibit BEGIN {} in
non-toplevel scope.  [ruby-core:21657]

* test/ruby/test_beginendblock.rb (test_begininclass): add a test for
  above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 16:43:29 +00:00
nobu f00951bb25 * lib/webrick/httpservlet/filehandler.rb (make_partial_content):
add bytes-unit.  [ruby-dev:40030]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 08:16:07 +00:00
nobu 9c54d38d60 * test/webrick/test_cgi.rb: require util.rb first to override the
executable name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 07:50:08 +00:00
nobu 67244d1a70 * lib/net/http.rb (Net::HTTPHeader#{content_range,range_length}):
use inclusive range same as the header representation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 06:49:46 +00:00
naruse 5ed5439af4 Add call-seq for Net::HTTP.start.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 06:32:14 +00:00
svn 5b92feaa93 * 2010-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-17 19:12:14 +00:00
knu d8f265b332 * ext/digest/digest.c (rb_digest_instance_hexdigest_bang): Fix
rdoc.

* ext/digest/lib/digest.rb (Digest::Class.base64digest)
  (Digest::Instance#base64digest{,!}): New methods.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-17 19:12:10 +00:00
knu 7bfdad3b62 * ext/digest/digest.c (rb_digest_instance_digest)
(rb_digest_instance_hexdigest): Save a method call of reset()
  for a disposable clone.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-17 13:57:17 +00:00