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

37881 Коммитов

Автор SHA1 Сообщение Дата
usa 3987392187 * test/ruby/test_exception.rb (TestException#test_output_string_encoding): test
for r48637.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-28 22:32:36 +00:00
svn 0e579dd620 * 2014-11-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-28 21:11:41 +00:00
usa e5658a206b * eval_error.c (error_print): respect the encoding of the message.
* io.c (rb_write_error_str): use rb_w32_write_console() on Windows
  if stderr is a tty.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-28 21:11:22 +00:00
nobu 2b92335efd file.c: unnecessary #undef
* file.c (flock): remove unnecessary #undef flock, trace of green
  thread polling.  patched by Rohan Garg.  [Bug #10551]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-28 03:39:18 +00:00
akr 693f56bb01 Update dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 22:47:57 +00:00
nobu 35e07b47ad README.EXT: fix typo
pointed out by at:
c262acb4e0 (commitcomment-8748351)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 20:38:51 +00:00
nobu 38f3708fc1 configure.in: add --with-setup option
* configure.in (--with-setup): add option to select ext/Setup file.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 20:10:26 +00:00
nobu e5df8e7bb3 common.mk: INITOBJS
* common.mk (INITOBJS): rename DMYEXT.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 20:04:48 +00:00
nobu 28ad79fac3 dmyenc.c: separate
* dmyenc.c (Init_enc): separate from dmyext.c for statically
  linked extension excluding encoding libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 20:02:32 +00:00
nobu 3c45a56746 continuation.c: quiet static-linked-ext
* ext/continuation/continuation.c (Init_continuation): start
  quietly if statically linked.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 19:58:04 +00:00
nobu 8299027f2e make_encmake.rb: fix typo
* enc/make_encmake.rb: fix typo, and use real read filename.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 16:21:51 +00:00
svn 5e57ff2138 * 2014-11-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 15:39:48 +00:00
nobu ab6f20df78 ChangeLog: fix a grammo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 15:39:39 +00:00
akr 20b93fffdf store make output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 14:42:05 +00:00
kazu 7c3612542a fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 13:59:01 +00:00
kazu 493d105779 fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 13:51:01 +00:00
akr 1c6f4943b9 * common.mk (miniprelude.c): It is not depend on prelude.rb now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 12:59:18 +00:00
akr 698f329b55 Update dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 12:52:17 +00:00
akr f53119b78f * tool/update-deps: List up files built always in the source directory
and source files built always in the build directory.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 12:51:52 +00:00
akr fcb1280e53 * tool/update-deps: List up files built always in the source directory
and source files built always in the build directory.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 12:51:04 +00:00
kazu 1c87fee316 * NEWS: add obsolete callcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 12:26:39 +00:00
ko1 ea29080489 * compile.c (iseq_compile_each): remove duplicated line event.
[Bug #10449]
* test/ruby/test_settracefunc.rb: add and fix tests.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 11:06:51 +00:00
ko1 6115f65d7d * vm_args.c: fix backtrace location for keyword related exceptions.
For example, the following program
    def foo(k1: 1); end # line 1
            foo(k2: 2)          # line 2
  causes "unknown keyword: k2 (ArgumentError)".
  Before this patch, the backtrace location is only line 2.
  However, error should be located at line 1 (over line 2 in
  stack trace). This patch fix this problem.
* class.c (rb_keyword_error_new): separate exception creation logic
  from rb_keyword_error(), to use in vm_args.c.
* vm_insnhelper.c (rb_arg_error_new): rename to rb_arity_error_new().
* vm_args.c (argument_arity_error): rename to argument_arity_error().
* vm_args.c (arugment_kw_error): added to fix backtrace.
* test/ruby/test_keyword.rb: add tests.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 10:15:47 +00:00
nobu 955c7f0698 common.mk: prelude.c by BASERUBY
* common.mk (prelude.c): no longer depends on miniruby, since not
  depending on rbconfig.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 08:32:01 +00:00
nobu 98d18de479 common.mk: no preludes for miniruby
* common.mk (miniprelude.c): miniruby needs no preludes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 08:12:16 +00:00
nobu f25c052bf2 prelude.c.tmpl: no preludes, no code.
* template/prelude.c.tmpl: no code if no prelude code is given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 08:10:21 +00:00
nobu 1e4292a9d0 time.c: indent
* time.c (find_time_t): adjust indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 08:08:32 +00:00
ko1 3a26241da3 * gc.c (objspace_malloc_increase): enable lazy sweep on GC by malloc()
(malloc_increase) to make GC incrementally.
  This change can increase memory consumption. Report us if you find
  any problem.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 04:20:14 +00:00
akr 15bfc6ffbf * time.c (time_s_mkutc): [DOC] Time.utc's 10 arguments form
doesn't examine wday, yday, isdst and tz.
  (time_s_mktime): [DOC] Time.mktime's 10 arguments form
  doesn't examine wday, yday and tz.
  Suggested by naruse.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 03:48:42 +00:00
akr 35748bdc85 Describe about TSort.each_*
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 03:46:13 +00:00
nobu 2092561366 generic_erb.rb: read in binary mode
* tool/generic_erb.rb: read existing file in binary mode to
  convert nothing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 03:42:54 +00:00
nobu c158fccd2b test_const.rb: use assert_warning
* test/ruby/test_const.rb (test_redefinition): should use
  assert_warning for warning message test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 03:42:45 +00:00
nobu 97cfffcdc6 envutil.rb: skip if load failed
* test/lib/envutil.rb (assert_no_memory_leak): skip when failed to
  load fiddle.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 03:42:32 +00:00
normal a7361f9c64 iseq.c (iseq_data_to_ary): add missing GC guard
It seems possible for a compiler to optimize away nbody
because we only access it via RARRAY_AREF and RARRAY_LEN
macros.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 02:48:14 +00:00
ko1 9c6deac2d1 * vm_core.h: add rb_thread_t::local_storage_recursive_hash
to speed up Thread#[:__recursive_key__] access.
  [Bug #10511]
* thread.c (threadptr_local_aref): add fast path for
  :__recursive_data__.
* thread.c (threadptr_recursive_hash, threadptr_recursive_hash_set):
  add special accessor for recursive hash.
* cont.c: store/restore local_storage_recursive_hash.
* vm.c: init and mark local_storage_recursive_hash.
* vm_trace.c (rb_threadptr_exec_event_hooks_orig): clear and restore
  local_storage_recursive_hash directly.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 01:56:38 +00:00
marcandre 969057c95a * lib.matrix.rb: Fix typo. Patch by Dimitrios Zorbas. [GH-772]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27 01:03:46 +00:00
svn 06b582a0b0 * 2014-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 22:12:05 +00:00
normal b65c619058 compile.c (iseq_calc_param_size): hoist out of iseq_set_arguments
This will be reused for iseq loading.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 22:11:54 +00:00
tarui 18a7dade10 * test/ruby/test_autoload.rb (class TestAutoload): change load target
from Continuation to Date. Becouse Continuation is no longer quiet.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 13:31:23 +00:00
svn 2128f20863 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 13:28:32 +00:00
nobu c262acb4e0 ruby.h: export keyword argument functions
* include/ruby/ruby.h (rb_get_kwargs, rb_extract_keywords): export
  keyword argument functions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 13:28:15 +00:00
hsbt 3f37ba11a1 * test/inlinetest.rb: removed unused test helper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 12:18:49 +00:00
tarui 262245b0c1 * ext/continuation/continuation.c (Init_continuation): obsolete callcc.
first step of [Feature #10548].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 11:50:55 +00:00
sorah 307198a3c3 Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 11:32:16 +00:00
ko1 42a15516c0 * test/ruby/test_gc.rb (test_latest_gc_info): do test separately
to avoid mysterious behavior.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 11:00:19 +00:00
nobu 2e7ed8032d win32.c: for non-standard console
* win32/win32.c (constat_reset): do nothing on non-standard
  console emurators.  [ruby-core:66471] [Bug #10546]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 10:54:35 +00:00
akr 0eadc632c1 * lib/tsort.rb: Returns an enumerator if no block is given.
[ruby-core:66270] [Feature #10508] Proposed by Andrey Savchenko.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 10:46:50 +00:00
nobu eab191040e parse.y: fix invalid keyword argument
* parse.y (f_label, f_kw, formal_argument_gen): ignore invalid
  formal argument in keyword argument definition.
  [ruby-dev:48742] [Bug #10545]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 08:25:48 +00:00
naruse c7855be25c use clock_gettime to avoid object creation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 08:22:35 +00:00
naruse d3236ba3b4 add test for r48563
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 08:22:27 +00:00