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

39296 Коммитов

Автор SHA1 Сообщение Дата
nobu 19e0fa010e win32_vk.inc: renamed
* ext/io/console/win32_vk.inc: renamed not to be included in HDRS
  by mkmf.rb and regenerated unexpectedly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-07 06:35:40 +00:00
naruse c4324e31f4 * Makefile.in (rbconfig.rb): add rule to make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-07 02:39:59 +00:00
nobu 93ce79dc34 test/excludes: expensive tests
* test/excludes/TestConst.rb: skip very expensive test.

* test/excludes/TestThread.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 22:46:52 +00:00
nobu 81c83f55e7 io/console: win32_vk dependencies
* ext/io/console/depend: check if VK table is modified by the
  checksum.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 21:54:07 +00:00
svn fe6c545d43 * 2015-05-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 20:33:46 +00:00
normal 84b012e02a stdlib: use IO#wait_*able instead of IO.select when possible
In case a process encounters high-numbered FDs, this allows
consistent performance on systems with ppoll support.
[ruby-core:35572]

* ext/socket/lib/socket.rb (connect_nonblock): use IO#wait_writable
* lib/drb/drb.rb (DRB::DRbTCPSocket#alive?): use IO#wait_readable
* lib/webrick/httpserver.rb (run): ditto
* lib/resolv.rb (request): ditto for single socket case
  [ruby-core:68943] [Feature #11081]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 20:30:43 +00:00
svn 8e08552ed0 * 2015-05-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 13:50:34 +00:00
nobu a870f4fcfd vm_eval.c: undefined refined check_funcall
* vm_eval.c (rb_method_call_status): undefined refined method is
  not callable unless using.  [ruby-core:69064] [Bug #11117]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-06 13:49:57 +00:00
svn 3d680dd2c4 * 2015-05-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-05 10:54:48 +00:00
nobu c1e7d5f5bd io/console: vk_header only on Windows
* ext/io/console/extconf.rb: vk_header is used only on Windows,
  nonsense to update on other platforms.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-05 10:54:37 +00:00
nobu 11b97855c4 console.c: pressed? on Windows
* ext/io/console/console.c (console_key_pressed_p): new method
  IO#pressed? on Windows.  [EXPERIMENTAL]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:13:10 +00:00
svn ff3322560e * 2015-05-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:41 +00:00
svn daa18e5074 * 2015-05-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:41 +00:00
nobu 85366d7d59 console.c: cursor position on Windows
* ext/io/console/console.c (console_goto): new method IO#goto on
  Windows.  [EXPERIMENTAL]

* ext/io/console/console.c (console_cursor_pos): new method
  IO#cursor on Windows.  [EXPERIMENTAL]

* ext/io/console/console.c (console_cursor_set): new method
  IO#cursor= on Windows.  [EXPERIMENTAL]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:40 +00:00
nobu 1014dfb442 console.c: IO#beep
* ext/io/console/console.c (console_beep): new method IO#beep.
  [EXPERIMENTAL]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 18:11:25 +00:00
odaira fadd0160d0 * ext/-test-/file/fs.c: need to include sys/statvfs.h
to use statvfs().

* ext/-test-/file/extconf.rb: check the existence of
  sys/statvfs.h

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 13:54:54 +00:00
hsbt 9a2c3fd65e * lib/yaml.rb: fix typo. [ci skip][fix GH-890]
Patch by @miketheman

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 12:59:52 +00:00
nobu b0616346f8 range.c: covered for linear objects
* range.c (linear_object_p, range_include): test if covered for
  linear objects.  [ruby-core:69052] [Bug #11113]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 01:02:15 +00:00
svn 06cb32001f * 2015-05-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 00:36:03 +00:00
nobu 3cfd6f9fcd console.c: remove old ifdef
* ext/io/console/console.c (LAST_ERROR): remove old ifdef, should
  use rb_w32_map_errno always.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-03 00:35:35 +00:00
svn 7f71df5558 * 2015-05-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 22:39:44 +00:00
nobu 0238f47fa7 range.c: predefined IDs
* range.c (id_cmp, id_succ): use predefined IDs in id.def.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 22:39:14 +00:00
nobu 75319221a2 dln.c: fix EXTERNAL_PREFIX
* configure.in (EXPORT_PREFIX): revert r50410.

* dln.c (EXTERNAL_PREFIX): define by predefined macros.
  configured EXPORT_PREFIX is different thing.

* win32/Makefile.sub: r50414-50415.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 07:27:03 +00:00
nobu e15f8b2273 Makefile.sub: EXPORT_PREFIX
* win32/Makefile.sub (config.h): fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 06:57:17 +00:00
nobu 3f5daebcb8 Makefile.sub: EXPORT_PREFIX
* win32/Makefile.sub (config.h): add EXPORT_PREFIX for r50410.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 06:46:59 +00:00
nobu 55851c982d dln.c: raise fatal
* dln.c (dln_load): raise fatal error on OSX not other extension
  libraries to refer different libruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 04:41:27 +00:00
nobu f2604ef512 dln.c: check incompatible libruby
* dln.c (dln_load): check if a different libruby is loaded by the
  extension library, and then bail out to get rid of very frequent
  reported stale bug reports.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 04:30:26 +00:00
svn 2d3a0fa61b * 2015-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 04:29:33 +00:00
nobu 70abda7e44 dln.c: use EXPORT_PREFIX
* configure.in (EXPORT_PREFIX): define exported symbol prefix
  string in config.h.

* dln.c (FUNCNAME_PREFIX): use configured EXPORT_PREFIX, not
  hardcoded condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-01 04:29:20 +00:00
nobu 4d12807e30 parse.y: %-string cannot be a label
* parse.y (parser_yylex): %-string cannot be a label even if
  terminated by single/double quotes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 14:36:19 +00:00
nobu 7132479960 compile.c: disallow private readers
* compile.c (iseq_compile_each): revert r46873 and r46875, not to
  allow to execute private readers by pretending op assign.
  [ruby-core:68984] [Bug #11096]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 10:51:13 +00:00
svn 0e42b43497 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 08:02:56 +00:00
hsbt f748c14cfd * rational.c: Added documentation for rational literal.
[Bug #11075][fix GH-885][ci skip] Patch by @shishir127

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 08:02:38 +00:00
nobu 03c19dc555 ipsocket.c: fix merge miss
* ext/socket/ipsocket.c (init_inetsock_internal): fix local
  variable name by merge miss.  [ruby-core:68531] [Bug #10975]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 07:45:36 +00:00
nobu db7a4e66e1 ipsocket.c: sys_error
* ext/socket/ipsocket.c (init_inetsock_internal): preserve errno
  before other library calls and use rb_syserr_fail.
  [ruby-core:68531] [Bug #10975]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 07:39:46 +00:00
svn d7168fa61e * 2015-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 07:22:45 +00:00
nobu fd0e9d2580 parse.y: push cmdarg_stack
* parse.y (lambda): push and reset cmdarg_stack in lambda body.
  [ruby-core:69017] [Bug #11107]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-30 07:22:19 +00:00
nobu 5d071fe381 cookie.rb: trailing comma
* lib/cgi/cookie.rb: add trailing comma for further lines.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-29 13:22:34 +00:00
svn 9547194750 * 2015-04-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-29 03:49:05 +00:00
nobu 9efec44c07 parse.y: simplified
* parse.y (primary): turned nested if-else blocks into a switch
  statement.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-29 03:49:05 +00:00
nobu 810522e0ff compile.c: move expansion of massign
* compile.c (iseq_compile_each): move expansion for massign to
  variable of for-loop from the parser, to reduce method calls on
  intermediate objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-29 03:48:26 +00:00
nobu 69ba9302c5 gc.c: event hook thread argument
* gc.c (gc_event_hook_body): move th to an argument.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-26 00:16:38 +00:00
nobu dc513a13bb vm_trace.c: unified a_call and a_return
* vm_trace.c (symbol2event_flag): use a uniform macro for a_call
  and a_return too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 23:55:34 +00:00
nobu 89a2fd52bd vm_trace.c: not a static variable
* vm_trace.c (symbol2event_flag): should not be static but a mere
  local variable, so that unnecessary race condition does not
  happen.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 23:45:02 +00:00
nobu 859f88f330 enc/utf_8.c: limit UTF-8
* enc/utf_8.c (code_to_mbclen, code_to_mbc): reject values larger
  than UTF-8 max codepoints.  [Feature #11094]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 22:36:52 +00:00
nobu 4489c13657 vm_trace.c: indent
* vm_trace.c (thread_tracepoint): adjust indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 22:19:46 +00:00
nobu c95b788afc vm_trace.c: unnecessary method undef
* vm_trace.c (Init_vm_trace): remove unnecessary method undef,
  that is overridden just after it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 22:19:17 +00:00
svn 8bce956ba8 * 2015-04-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 20:16:22 +00:00
nobu 514d1551ce ChangeLog: fix issue number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 20:16:04 +00:00
svn f67703f84a * 2015-04-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-25 05:26:36 +00:00