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

21733 Коммитов

Автор SHA1 Сообщение Дата
svn d7effd506f * 2010-12-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-19 16:18:17 +00:00
kosaki a3ba982c75 * io.c (Init_IO): Added O_DIRECT. This feature was propsed by Run Paint Run Run.
[Feature #4015] [ruby-core:33018]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-19 16:18:16 +00:00
svn 3f929a0743 * 2010-12-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-19 10:15:59 +00:00
akr 9035b0e759 * marshal.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-19 10:15:57 +00:00
kazu 7d0e6734df * vsnprintf.c (BSD_vfprintf): suppress warning: "_WIN32" is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-18 12:55:06 +00:00
nobu cd3f980ea2 * compile.c (setup_args), vm.c (invoke_block_from_c),
vm_insnhelper.c (caller_setup_args): fix of r30241. lambda block
  shoud check argument number.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-18 07:02:35 +00:00
akr 0316582ebc * load.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-18 05:43:01 +00:00
nobu 5683ad100d * compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
combination as block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-18 01:07:12 +00:00
matz 591ae37a59 * gc.c (Init_GC): move #__id__ and #object_id to BasicObject.
[ruby-dev:42778]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 13:25:19 +00:00
nobu 5cb9711323 * test/mkmf/base.rb (TestMkmf::FakeLog): capture output from mkmf.
* test/mkmf/test_find_executable.rb (test_find_executable):
  suppress meaningless diffrences for chkbuild.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 10:35:20 +00:00
nobu 96064d1889 * tool/mkconfig.rb (RbConfig): get rid of unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 09:35:42 +00:00
nobu f913368b57 * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_require): -r
with no name is ignored.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 08:04:35 +00:00
usa c5d383bae1 * win32/setup.mak (BASERUBY): quit with an error when BASERUBY was not
able to set, just like configure.in does. [ruby-dev:42782]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 04:29:16 +00:00
nobu 2d39e5265f * io.c: removed garbage line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 22:08:50 +00:00
nobu 594ab9c8fd * io.c (rb_io_advise): removed unused variable, and fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 22:06:33 +00:00
akr a0e62485d4 * iseq.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 22:05:58 +00:00
drbrain 457e481b20 Alter comment on String#encode for better wording and ri output
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 19:20:51 +00:00
kosaki 39058e1d87 Fix indentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 15:36:49 +00:00
svn 46823951c0 * 2010-12-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 15:01:57 +00:00
kosaki cc9b886691 * io.c (rb_io_advise): New API. IO#advise() allows to tell the
ruby runtime how it expects to use a file handle. This feature
          can be improved a performance some situations.
          Note: This feature is mainly developed by Run Paint Run Run.
          Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038]

        * io.c (do_io_advise): Helper function.
        * io.c (io_advise_sym_to_const): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 15:01:55 +00:00
nobu e46e5d2438 * tool/rbinstall.rb (bin-comm): use transformed name.
[ruby-dev:42777]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 14:29:25 +00:00
akr e5ad455a08 * io.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 12:53:09 +00:00
nobu f18d040061 * tool/mkconfig.rb (RbConfig): honor ARCHFLAGS and RC_ARCHS to
override embedded ARCH_FLAG value on universal-darwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 12:46:44 +00:00
usa b9b26300da * win32/{configure.bat,setup.mak,Makefile.sub} (PROGRAM_PREFIX,
PROGRAM_SUFFIX): unite the differences of the names of macros of
  prefix and suffix.
  reported by HANEDA Norikatsu. [ruby-dev:42775]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 10:55:11 +00:00
nobu 698fe540b9 * node.h (RNode): match the type of flags to RBasic, and renamed
nd_file as nd_reserved.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 23:04:50 +00:00
nobu 202cb99c86 * iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file
is always zero-cleared.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 22:51:51 +00:00
ryan 5c9194fe1f Imported minitest 2.0.1 r6079.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 22:23:52 +00:00
svn 01c0fea7d3 * 2010-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 19:50:03 +00:00
tenderlove 033cea7d8e drying up the requires in the openssl tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 19:50:00 +00:00
usa 1c93261983 * lib/test/unit.rb (process_args): need to setup @help to print options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 11:45:57 +00:00
nobu 79d800c37e * common.mk (clean-local): remove pc file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 02:31:58 +00:00
nobu b2c7ef2f76 * io.c (nogvl_copy_stream_sendfile): fix missing condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 02:22:08 +00:00
usa fc233f516c * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 02:20:37 +00:00
nobu eb36519b96 * io.c (simple_sendfile): enable on Mac OS X.
* io.c (nogvl_copy_stream_sendfile): moved precheck of copy length.
* io.c (nogvl_copy_stream_sendfile): should wait for both of
  read/write fds.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 02:07:37 +00:00
akr 7b5e72c3a9 * hash.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 22:18:39 +00:00
kosaki b61c256181 * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
fix compile error when !HAVE_X509V3_SET_NCONF. Thanks
	  Chikanaga-san. [ruby-dev:42761] [Ruby 1.9-Bug#4158]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 18:24:44 +00:00
kosaki b2f69c4c1f * test/ripper/test_parser_events.rb (TestRipper#test_block_variables):
Limit address space 100MB instead 100KB. Quite frankly, This margin
	  is too narrow to contain ruby. [ruby-dev:42763] [Bug#4159]




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 18:21:31 +00:00
svn 61906b0ec3 * 2010-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 15:01:34 +00:00
naruse bdd3f75598 * io.c (simple_sendfile): improve linux compatibility on FreeBSD,
and now it works. But without cpuset -l 0, it still gets stuck.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 15:01:32 +00:00
akr 8c757a3268 * gc.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 11:32:59 +00:00
usa 949e6d454e * lib/test/unit.rb: help messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 09:32:36 +00:00
usa 58f1c8fca8 * common.mk (help): there is no reason to use the abbreviation for here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 09:19:55 +00:00
usa d6273007fc * test/ruby/test_io.rb (test_reopen, test_reinitialize): should close
the temporay files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 06:06:18 +00:00
usa 4d257293f8 * test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
maked by make_temfile is already closed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 05:26:34 +00:00
usa a5b77d1cf7 * test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
temporary file because it's only used for taking pathname and
  unlinking the file after the end of the test (in GC phase).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 04:54:20 +00:00
usa dcca25f003 * ext/zlib/zlib.c (gzfile_s_open): should close the IO if some error
occurs in initilizing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 04:36:14 +00:00
naruse cba0d62d91 * lib/net/http.rb (Net::HTTPRequest#send_request_body_data):
set binmode to tempfile.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 04:05:03 +00:00
usa b33cb3c017 * test/zlib/test_zlib.rb (*): should close files associated with zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 03:57:26 +00:00
naruse 842110e6a6 fix wrong argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:42:40 +00:00
usa fae9930033 * test/ruby/test_argf.rb (test_inplace_rename_impossible): unlink
the renamed temporary file on no_safe_rename platforms.

* test/ruby/test_argf.rb (test_readlines_limit_0,
  test_each_line_limit_0): should close argf because the associated
  Tempfile object cannot unlink the temporary file when it's gc'ed
  on some platforms (Windows, etc.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:34:46 +00:00