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

26958 Коммитов

Автор SHA1 Сообщение Дата
ayumin e985c49e64 * ext/readline/readline.c: fixed docs. [Bug #6740][ruby-core:46501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 13:08:04 +00:00
akr 04f09ef8a1 * bignum.c (rb_integer_float_eq): new function.
(rb_big_eq): use rb_integer_float_eq.

* internal.h (rb_integer_float_eq): declared.

* numeric.c (flo_eq): use rb_integer_float_eq.
  (fix_equal): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 10:39:42 +00:00
akr 858a832d40 * bignum.c (rb_integer_float_cmp): rename a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 10:02:59 +00:00
akr cf469774d1 * bignum.c (rb_integer_float_cmp): renamed from rb_big_float_cmp.
* internal.h: follow the above change.

* numeric.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 09:41:25 +00:00
akr 94735e9e54 * bignum.c (rb_big_float_cmp): compare an integer and float precisely.
[ruby-core:31376] [Bug #3589] reported by Tomasz Wegrzanowski.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 09:08:58 +00:00
akr 984729ba30 * bignum.c (rb_big_float_cmp): support fixnum for argument x.
* numeric.c (fix_equal): use rb_big_float_cmp.
  (fix_cmp): ditto.
  (fix_gt): ditto.
  (fix_ge): ditto.
  (fix_lt): ditto.
  (fix_le): ditto.
  (flo_eq): ditto.
  (flo_cmp): use rb_big_float_cmp for fixnum argument.
  (flo_gt): ditto.
  (flo_ge): ditto.
  (flo_lt): ditto.
  (flo_le): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:44:32 +00:00
ayumin 3fe481ae72 fixed ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:12 +00:00
ayumin d570a76cba * test/fileutils/test_fileutils.rb: add test for FileUtils#uptodate?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:08 +00:00
ayumin e6021a1be2 * lib/fileutils.rb (uptodate?): remove useless parameter.
patched by Oscar Del Ben.[Bug #6708][ruby-core:46256]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:05 +00:00
akr 8d0b1c2518 * bignum.c (rb_big_eq): use rb_big_float_cmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 06:38:28 +00:00
akr 6dd65bb377 * internal.h (rb_big_float_cmp): declared.
* bignum.c (rb_big_float_cmp): extracted from rb_big_cmp and big_op.
  (rb_big_cmp): use rb_big_float_cmp.
  (big_op): ditto.

* numeric.c (flo_cmp): use rb_big_float_cmp.
  (flo_gt): ditto.
  (flo_ge): ditto.
  (flo_lt): ditto.
  (flo_le): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 06:02:21 +00:00
svn 06e9e202bd * 2012-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 05:15:40 +00:00
akr 4cd00ffe2d * bignum.c (enum big_op_t): new type.
(big_op): use enum big_op_t.
  (big_gt): ditto.
  (big_ge): ditto.
  (big_lt): ditto.
  (big_le): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 05:15:36 +00:00
svn 051799b674 * 2012-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 16:43:41 +00:00
kazu 92bf85167f fix indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 16:43:35 +00:00
nobu 7a6542400d array.c: fill with nil
* array.c (rb_get_values_at): fill with nil out of range.
  [ruby-core:43678] [Bug #6203]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 09:18:51 +00:00
ayumin b0d53d51f5 * cont.c (cont_restore_0): improve docs. [Bug #6706][ruby-core:46243]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 08:31:21 +00:00
nobu 8d6add973e hash.c: raise on invalid input
* hash.c (rb_hash_s_create): raise an exception, when input elements
  are not one or two elements arrays.  [ruby-core:39945] [Bug #5406]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 08:08:15 +00:00
nobu e81c1d53fe commit miss
* ChangeLog: remove duplicated entries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:29:53 +00:00
nobu 03e5fb6054 test/unit.rb: use uniq!
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): use
  Array#uniq!.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:50 +00:00
nobu cbbe2cbca4 test/unit.rb: extract deal
* lib/test/unit.rb (Test::Unit::Runner#deal): deal tasks to workers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:43 +00:00
nobu 688f2e1a89 test/unit.rb: extract quit_workers
* lib/test/unit.rb (Test::Unit::Runner#quit_workers): close and kill
  all workers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:38 +00:00
nobu 4bbb49b848 test/unit.rb: extract delete_worker
* lib/test/unit.rb (Test::Unit::Runner#delete_worker): delete dead
  worker from working set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:33 +00:00
nobu 4633ad5d0f test/unit.rb: launch_worker to manage new worker
* lib/test/unit.rb (Test::Unit::Runner#launch_worker): add new worker
  to working set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:29 +00:00
nobu e9f68d7f69 test/unit.rb: extract launch_worker
* lib/test/unit.rb (Test::Unit::Runner#launch_worker): extract.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:24 +00:00
nobu f098306036 test/unit.rb: extract start_watchdog
* lib/test/unit.rb (Test::Unit::Runner#start_watchdog): extract.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:19 +00:00
nobu b789a6b4d6 test/unit.rb: _run_parallel
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): move
  initializations with nothing to release outside begin/ensure.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:16:14 +00:00
nobu d61dfcc793 array.c: no infection by unused separator
* array.c (rb_ary_join): should not infected by separator if it is not
  used.  [ruby-core:42161][Bug #5902]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-14 07:04:28 +00:00
svn d12569b001 * 2012-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-13 17:32:02 +00:00
nobu bb575208bd intern.h: fix declaration
* include/ruby/intern.h (rb_thread_blocking_region): fix declarations
  prototypes without arguments in C++ have different meanings than C.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-13 17:31:58 +00:00
nobu d57103b9a2 test: dots from a worker
* lib/test/unit.rb (Test::Unit::StatusLineOutput#print): sometimes
  dots from a worker get stuck.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 21:11:23 +00:00
nobu b788ff5cf1 test: unnecessary job_status
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): no needs to
  override job_status option unnecessarily.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 21:11:19 +00:00
svn 12b3c3e1e5 * 2012-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 21:11:19 +00:00
nobu e8f714b634 test: separate each outputs
* lib/test/unit.rb (Test::Unit::Runner#del_status_line): separate each
  outputs if not replace mode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 21:11:14 +00:00
nobu c3521bf631 test: skip default gems
* test/runner.rb: skip default gems to get rid of loading old versions
  before installation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 03:32:28 +00:00
nobu d744433225 rb_str_new_frozen: new object if tainted/untrusted unmatch
* string.c (rb_str_new_frozen): since the result object should have
  same tainted/untrusted bits with the original object, return new
  object if the shared object unmatch.  [ruby-core:39745][Bug #5374]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 02:44:27 +00:00
usa 8cc3fef898 * test/net/http/test_http.rb (TestNetHTTPLocalBind#test_bind_to_local*):
cannot cross between network interfaces on Windows, so skip this test
  until we find better test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 01:48:23 +00:00
naruse 558edd5192 Use IPv4 address on connecting to 127.0.0.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-12 01:27:42 +00:00
ryan 9696b3eb16 Imported minitest 3.2.0 (r7598). Reviewed by drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 23:52:04 +00:00
nobu 35784d1019 defined: me in cfp
* insns.def (defined): use method entry and id in cfp for proper
  superclass, since klass in iseq is shared by dynamically defined
  methods from the same block.  [ruby-core:45831][Bug #6644]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 20:11:45 +00:00
svn 2642b69096 * 2012-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 18:37:22 +00:00
naruse 4689853711 * lib/net/http.rb (Net::HTTP#connect): use local_host and local_port
if specified. patched by Ricardo Amorim [Feature #6617]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 18:37:18 +00:00
nobu dea582458a sample/test.rb: fix standalone
* sample/test.rb (Progress#initialize): no rotators when STDOUT is
  also tty, that is directly invoked but not from tool/rubytest.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 09:02:06 +00:00
nobu c9e4da2afc enc/encinit.c for static-linked-ext
* ext/extmk.rb: append ENCOBJS to DLDOBJS but not EXTSOLIBS which is
  not a target, to compile enc/encinit.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 08:36:41 +00:00
usa 04051396fd * ext/openssl/ossl_pkey_ec.c (ossl_ec_point_mul): nonstatic initializer
of an aggregate type is a C99ism.

* ext/openssl/ossl_pkey_ec.c (ossl_ec_point_mul): get rid of VC++
  warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 03:46:37 +00:00
yugui 412c5a96be * vm_eval.c (rb_eval_string_from_file,
rb_eval_string_from_file_protect): new functions to replace
  rb_compile_main_from_string() and ruby_eval_main().

* nacl/pepper_ruby.c: Follows the change in vm_eval.c

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 03:25:26 +00:00
yugui 64ef091a64 Reverts a half of r36079. As we discussed on ruby-dev@ and IRC,
we do not need to disclose intermediate representation of program.
The program embedding CRuby should use rb_eval_string family.
* include/ruby/ruby.h (ruby_opaque_t): removed.
  (ruby_compile_main_from_file, ruby_compile_main_from_string,
   ruby_eval_main): removed.

* eval.c (ruby_eval_main_internal): became ruby_exec_internal() again.
  (ruby_eval_main): removed.

* ruby.c (PREPARE_PARSE_MAIN) reverted.
  (parse_and_compile_main, ruby_compile_main_from_file,
   ruby_compile_main_from_string): removed

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 03:25:16 +00:00
nobu 7bca2f031a get rid of warnings
* io.c (sysopen_func, rb_sysopen_internal): cast through VALUE to get
  rid of warnings.  fixup of r36355.
* process.c (rb_waitpid_blocking, rb_waitpid): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 03:17:35 +00:00
kazu 11bde3ae11 fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 02:00:08 +00:00
nobu ce0b4fea35 HAVE_RUBY_THREAD_H
* include/ruby.h (HAVE_RUBY_THREAD_H): to show ruby/thread.h to be
  available.  fixup of r36355.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-11 01:16:41 +00:00