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

39118 Коммитов

Автор SHA1 Сообщение Дата
hsbt cd06ce2e5a * ext/json, test/json: removed empty directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 14:32:17 +00:00
hsbt d266473283 * tool/rbinstall.rb: support destdir for native extention gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 14:26:44 +00:00
nobu 42e149c9ad mkmf.rb: fix VC failures
* lib/mkmf.rb (xsystem): assume all warnings go to stderr but not
  stdout.  cl.exe always prints input file names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 13:49:02 +00:00
usa 7c9e01d3c8 * test/ruby/test_file_exhaustive.rb
(TestFileExhaustive#test_stat_socket_p): r50226 accidentally missed
  the guard for non-unix environments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 12:03:31 +00:00
hsbt cfaddc2a32 * ext/json/*, test/json/*, defs/default_gems: Gemify JSON library.
[fix GH-867][Feature #11057]
* test/ruby/test_extlibs.rb: removed json gem from existence extentions.
* gems/bundled_gems: added json gem into bundled gem.
* lib/rdoc/rubygems_hook.rb: ignored no json environment.
* lib/rubygems/test_case.rb, test/rubygems/*: ditto.
* lib/rdoc/test_case.rb, test/rdoc/*: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 11:14:36 +00:00
akr 8e7b572d97 Delay signal bit more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 09:00:39 +00:00
akr 3d2468240d simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 07:34:06 +00:00
akr 7ca24e0b1b refactored to make code consistent around sleep.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 07:22:53 +00:00
akr aed411d561 reorder invocations in test_stat_init.
This doesn't change actual behavior because hardlinkfile invokes regular_file.
This change make it more explicit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 07:06:34 +00:00
akr 29de8ed499 * test/ruby/test_file_exhaustive.rb: Create sample files lazily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 06:57:37 +00:00
akr 7156deb522 * test/ruby/test_file_exhaustive.rb: Test character device using
/dev/null.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 05:04:17 +00:00
nobu 335cd8ab6a mkmf.rb: fix syntax errors
* lib/mkmf.rb (append_cppflags, append_cflags, append_ldflags):
  fix missing parentheses.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 02:01:57 +00:00
nobu bb96ab6fb6 mkmf.rb: methods to append flags
* lib/mkmf.rb (append_cppflags, append_cflags, append_ldflags):
  utility methods to append compiler options.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 02:00:02 +00:00
nobu 1b1a0bda67 README.md: fix inline markups
* README.md, README.ja.md: don't break inside inline markups.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-11 00:48:37 +00:00
hsbt 600d527333 * lib/rdoc/text.rb: removed duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 23:22:28 +00:00
svn 39e2f04e04 * 2015-04-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 21:05:48 +00:00
normal db2ff03bc0 lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock
Exceptions are noisy in debug output and waste allocations.
Use "exception: false" introduced in 2.1 to return symbols for
common errors instead.

Follow-up commits will be prepared to reduce EOFError exceptions
to further quiet debug output and IO.select may be replaced by
io/wait methods if available to reduce allocations.

[ruby-core:68787] [Feature #11044]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 21:05:29 +00:00
nobu 9e459f7aa9 dir.c: getattrlist on OSX 10.5
* dir.c (need_normalization): use getattrlist() if fgetattrlist()
  is unavailable, on OSX 10.5.  [ruby-core:68829] [Bug #11054]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 14:57:47 +00:00
akr b75b040e04 Use more shorter filenames to avoid sockaddr_un size limitation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 14:47:28 +00:00
nobu f168f23f82 mkmf.rb: werror of try_cppflags
* lib/mkmf.rb (try_cppflags): set werror flag as same as cflags
  and ldflags.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 13:36:59 +00:00
nobu aceb11dff4 mkmf.rb: fix werror option
* lib/mkmf.rb (try_compile): pass the given werror flag to try_do
  to check if stderr is empty.
* lib/mkmf.rb (try_cflags, try_ldflags): default werror to true.
* win32/Makefile.sub (WERRORFLAG): remove useless option.  VC does
  not make warnings of unknown command option an error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 13:29:23 +00:00
akr 6f636adad0 Use shorter filenames to avoid sockaddr_un size limitation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 11:52:29 +00:00
akr 0ad3abe1f1 * test/ruby/test_file_exhaustive.rb: Test socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:52:29 +00:00
ko1 adabc801be * test/objspace/test_objspace.rb: remove debug prints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:39:07 +00:00
ko1 7f75a1a810 * ext/objspace/objspace.c: add ObjectSpace.count_imemo_objects method
to count imemo objects for each type.
* test/objspace/test_objspace.rb: add a test.
* NEWS: describe about this addition.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:38:13 +00:00
akr deab71578b * test/ruby/test_file_exhaustive.rb: Test anonymous pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:34:47 +00:00
akr dec7415126 * test/ruby/test_file_exhaustive.rb: Test named pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:32:38 +00:00
ko1 1a688f001c * ext/objspace/objspace.c (setup_hash): unify common routine.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 10:13:00 +00:00
akr ff381ca19b * process.c (rb_execarg_parent_start1): Handle EINTR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 09:45:29 +00:00
ko1 93df5a0a90 * vm.c (vm_exec): check other events when RETURN is thrown.
[Bug #10724]
* test/ruby/test_settracefunc.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 08:29:30 +00:00
usa 9a968078bc * win32/Makefile.sub (WERRORFLAG): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 04:37:00 +00:00
akr 1eff125f8a Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 03:12:58 +00:00
nobu 54264f534a ext/date: reject unknown compiler option
* ext/date/extconf.rb: check warnings.
* lib/mkmf.rb (try_cflags): pass options to try_compile.
* win32/Makefile.sub (WERRORFLAG): make unknown command line
  options an error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 02:44:12 +00:00
nobu 14d10e054f test_addrinfo.rb: relax memory usage criterion
* test/socket/test_addrinfo.rb (test_marshal_memory_leak): relax
  the criterion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-10 01:02:55 +00:00
usa f40379378a * test/ruby/test_process.rb: unfortunately, windows is not POSIX...
cygwin has mkfifo command, but it does not affect system-wide.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 23:03:35 +00:00
akr 79f940cda1 * test/ruby/test_process.rb: Use mkfifo command instead of mknod
command to create a named file.  mkfifo commandis defined by POSIX.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 17:19:57 +00:00
svn 2441d70f66 * 2015-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 16:33:18 +00:00
akr ce28a7539d * process.c: Release GVL when opening a file in spawn() to avoid whole
process blocking when opening a named pipe.
  (open_func): New function.
  (rb_execarg_parent_start1): Extracted from rb_execarg_parent_start and
  use rb_thread_call_without_gvl2 to release GVL when opening a file.
  (rb_execarg_parent_start): Invoke rb_execarg_parent_start1 via
  rb_protect and invoke rb_execarg_parent_end when error.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 16:33:02 +00:00
akr 6cf4e97b3e move debug functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 14:23:42 +00:00
usa 990cc562ed * test/ruby/test_process.rb
(TestProcess#test_execopts_redirect_open_order_{normal,reverse}): ignore tests
  added by r50194 on Windows because ruby cannot pass non-standard fds.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 13:47:01 +00:00
akr 3bf92fb10d * process.c (redirect_open): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 13:19:47 +00:00
akr f6b1dd28c9 * internal.h (rb_execarg_parent_end): Declared.
* process.c: "spawn" opens files in the parent process.
  (check_exec_redirect): Add an placeholder for fd in parameters
  for fd_open.
  (check_exec_fds_1): Delete fd_open condition.
  (check_exec_fds): Don't call check_exec_fds_1 with fd_open.
  (rb_execarg_parent_start): Open files specified as "spawn" options
  and add "dup2" options.
  (rb_execarg_parent_end): New function to close opened fds.
  (run_exec_open): Removed.
  (rb_execarg_run_options): Don't call run_exec_open.
  (rb_spawn_internal): Call rb_execarg_parent_end.

* io.c (pipe_open): Call rb_execarg_parent_end.

* ext/pty/pty.c (establishShell): Call rb_execarg_parent_end.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 12:44:35 +00:00
akr 9960558337 * internal.h (rb_execarg_parent_start): Renamed from rb_execarg_fixup.
* process.c: Follows the above change.

* io.c: Ditto.

* ext/pty/pty.c: Ditto.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 11:53:49 +00:00
akr 00478a98ac * process.c (fd_clear_cloexec): Extracted from run_exec_dup2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 11:35:52 +00:00
nobu e98d4947b7 ignore rake load error
rake is not available until installation now, so skip rake
packagetask even if it cannot load until it is actually needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 06:06:56 +00:00
nobu 2cbb3d821c skip rake dependent tests
rake is not available until installation now, so skip rake
dependent tests unless it can load.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 06:01:27 +00:00
normal 9177eca302 ccan/list/list.h: sync with ccan upstream
This includes the following 5 commits from ccan upstream:

    list: list_add_after and list_add_before functions
    list: list_swap to exchange elements
    list: new list_for_each{, _safe}_off_dir_ macros
    list: add list_for_each_rev_off macro
    list: add list_for_each_rev_safe{,_off} macros

This syncs us with commit c2fbfe5282ba264f3485586e7efa8a5967f2d386
in git://git.ozlabs.org/~ccan/ccan

These ccan commits should allow us to implement compile.c and
st.c using ccan/list to reduce duplicated linked-list logic.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 00:30:26 +00:00
svn 17b78d0711 * 2015-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 23:24:44 +00:00
nobu 816504c29c raddrinfo.c: fix memory leak
* ext/socket/raddrinfo.c (addrinfo_mload): fix memory leak of
  addrinfo.  [ruby-dev:48923] [Bug #11051]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 23:24:10 +00:00
nobu 119960dc56 version.c: support RUBY_ENGINE_VERSION
* version.c (Init_version): the version of the engine or
  interpreter.  [Fix GH-858]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 08:45:05 +00:00