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

20267 Коммитов

Автор SHA1 Сообщение Дата
akr f77d8722c2 * ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): the workaround
for Mac OS X moved from rsock_getaddrinfo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 21:24:31 +00:00
nobu 23af1d2a4b * marshal.c (struct dump_arg, struct load_arg): merge taint and
untrust flags into infection as bit flags.

* marshal.c (w_nbyte, clear_dump_arg): infect the buffer as soon
  as appending, because it might have been finalized already at
  exit.  based on a patch by Tomoyuki Chikanaga
  at [ruby-dev:41672].  [Bug #3463]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 20:44:44 +00:00
svn 78cfe71555 * 2010-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 15:05:50 +00:00
akr 512a35693b * ext/socket/raddrinfo.c (str_is_number): renamed from str_isnumber to
avoid confusion to str_isnumber in ext/socket/getaddrinfo.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 15:05:25 +00:00
mame 70003c05a7 * NEWS (stringio): new methods. [ruby-dev:41687] [Bug #3469]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 14:47:00 +00:00
akr 89f2c44d37 * ext/socket/raddrinfo.c: don't use __P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 13:56:20 +00:00
suke 0864df17fb * ext/win32ole/win32ole.c (reg_get_typelib_file_path): try win64
registry entry at first. [ruby-dev:41674] [Bug #3464]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 12:41:26 +00:00
akr eab33b597d add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 12:35:04 +00:00
akr acb8b3f7a9 * ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): new workaround for
getaddrinfo problem on Mac OS X Snow Leopard.  [ruby-core:29427]
  patch by Wataru Kimura.  [ruby-core:30842]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 12:25:07 +00:00
nobu 80684e9c09 * ext/pty: moved documents and samples to the appropriate places.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 08:25:12 +00:00
nobu c7d001465c * NEWS (ptr): new method and deprecated methods. [ruby-dev:41681]
* ext/pty/{README,README.ja}: ditto.

* ext/pty/pty.c (pty_check): add rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 08:12:54 +00:00
naruse 0de2d84af8 Clean warnings: unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 05:32:46 +00:00
nobu d514cd3ca0 * test/ruby/test_regexp.rb (test_dup_warn): read in UTF-8
encoding regardless environment.

* test/ruby/envutil.rb (invoke_ruby): add encoding option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 03:44:55 +00:00
nobu 596a275035 * ChangeLog: a patch by Eric Wong at [ruby-core:30818].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 22:00:23 +00:00
nobu 419d8cd6a2 * configure.in (fchown): need to check. [ruby-core:30818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 21:44:37 +00:00
nobu 6e708d72bb * io.c (argf_next_argv): check for setting owner/group.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 21:43:02 +00:00
akr bf8cec6db1 * time.c (num_exact): fix for mathn. [ruby-dev:41599]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 14:13:09 +00:00
akr 7d8d8c4f59 * ext/socket/lib/socket.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 13:41:16 +00:00
nobu 85a4f84e79 * test/optparse/test_summary.rb: fixed superclass so that it run
solely.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 12:33:33 +00:00
nobu 2926a585ff * parse.y (shadowing_lvar_gen): should add lvar to vars and
used.  [ruby-dev:41666]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 10:57:40 +00:00
marcandre 4349da9c1b * lib/fileutils.rb: Fix warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 05:46:01 +00:00
marcandre fde37bb6e3 * io.c: rdoc fix for ARGF.lineno; cf. [ruby-core:29048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 05:45:22 +00:00
marcandre 52ebd4b7f4 * class.c: rdoc fix [ruby-core:30449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 04:52:03 +00:00
svn 8af6c8ddc2 * 2010-06-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 04:24:15 +00:00
marcandre 6233ed4dcd * lib/delegate.rb: Forward #trust, #untrust, #taint and #untaint
to both the delegator and __getobj__ [ruby-core:26138]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-22 04:23:59 +00:00
svn 52fcd9975d * 2010-06-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-21 14:44:06 +00:00
wanabe 99299e1961 * eval_error.c (error_print): clear raised_flag while error-printing
to avoid hang. [ruby-core:27608]

* test/ruby/test_beginendblock.rb (test_endblock_raise): add test for
  above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-21 14:43:58 +00:00
nobu d31350f827 * id.c (Init_id): add underscore name.
* parse.y (warn_unused_var): ignore underscore name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 07:17:46 +00:00
nobu 14a15f8b7f * parse.y (warn_unused_var): use same format as shadowing local
variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 06:14:22 +00:00
nobu 47fb01e35b * parse.y (shadowing_lvar_gen): get rid of adding extra name for
shadowing local variable.  [ruby-dev:41628]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-20 05:41:07 +00:00
matz 7a8a264f1d * lib/irb.rb: remove double exclamation marks. a patch from Diego
Viola.  [ruby-core:30589]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-19 02:12:40 +00:00
svn b77773f44d * 2010-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 18:39:15 +00:00
tenderlove b09ad2b847 * ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
exception message when attempting to load an unknown class.  Thanks
  nobu! [ruby-dev:41399]

* test/psych/test_psych.rb: test for the exception message

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 18:38:19 +00:00
naruse da3cdd2ddf * gc.c (gc_lazy_sweep): clean a warning.
"suggest parentheses around assignment used as truth value"

* transcode_data.h (getGB4bt1): clean a warning.
  "suggest parentheses around arithmetic in operand of |"

* transcode_data.h (getGB4bt3): ditto.

* vm.c (thread_free): clean a warning. "format 'p' expects type
  'void *', but argument 3 has type 'struct rb_mutex_struct *'"

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 01:44:52 +00:00
naruse 72fa4d34c0 * ruby.c: add prototype of rb_realpath_internal.
* load.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-18 01:16:13 +00:00
mame d35f8ea885 * object.c: Object#public_methods, private_methods, etc. returns
method ids that belong to the class or the singleton class(es) of
  the object.  [ruby-dev:41613]

* class.c: on the other hand, Module#public_instance_methods, etc.
  returns method ids that belong to the module itself (even if the
  module is singleton, it does not return method ids of super
  class(es); see [ruby-core:28837]).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:58:25 +00:00
svn 191ad1b157 * 2010-06-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:26:10 +00:00
mame ab408009fc * lib/webrick/httpservlet/filehandler.rb
(prevent_directory_traversal): apply filesystem encoding to path
  only during calling File.expand_path.  [ruby-dev:41423]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 16:26:00 +00:00
mame 2db572514c * load.c (rb_load_internal): remove call to rb_realpath_internal
within rb_load_internal which caused big performance degradation.
  Instead, call rb_realpath_internal in the caller of
  rb_load_internal.  [ruby-dev:41502] [ruby-dev:41610]

* vm.c (rb_vm_call_cfunc): ditto.

* eval_intern.h (rb_vm_call_cfunc): ditto.

* ruby.c (process_options): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 14:32:20 +00:00
usa 4df965f4ed * file.c (rb_str_encode_ospath): when the encoding of the parameter
is ASCII-8BIT, should recognize as filesystem encoding, and convert
  to UTF-8 on Windows.

* file.c (realpath_rec): should convert to ospath encoding before
  calling lstat().

* file.c (rb_realpath_internal): resolved string should take over
  the encoding of base string.

* transcode.c (rb_str_encode): should return new string always.
  fixed #3444.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 09:46:30 +00:00
kazu f4d7a34c01 typo and spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 06:11:08 +00:00
svn 3a12a0463e * 2010-06-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 01:04:16 +00:00
naruse 86d72ac7cf Revert "* parse.y (warn_unused_var): warn unused variables."
This reverts commit r28339 and r28340
because they prevents test-all on boron.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-17 01:04:09 +00:00
usa 4ac263ce68 * parse.y: ripper needs warn_unused_var(), too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 09:35:35 +00:00
nobu cf79bdc6d0 * parse.y (warn_unused_var): warn unused variables.
[ruby-dev:41620]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 09:20:14 +00:00
nobu 953f511bb9 * test/ruby/test_{regexp,rubyoptions}.rb: trivial change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 08:21:28 +00:00
usa de26eababa * error.c (rb_bug): existance of _set_abort_behavior() depends on
runtime version, not compiler version.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-16 06:41:56 +00:00
mame 3ccd6c0aab * ext/fiddle/extconf.rb: check ffi.h even when pkg-config succeeded.
On Debian/lenny, which is a "supported" platform, ffi.h is installed
  in /usr/include/i486-linux-gnu/.  This causes build error when using
  gcc whose target is not i486-linux-gnu.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 16:43:46 +00:00
svn 06ecaa4943 * 2010-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 15:08:35 +00:00
mame 29b22ba2c6 * test/ruby/test_io.rb (safe_4): does not use Timeout because
Timeout.timeout uses Thread#kill which raises SecurityError when
  $SAFE == 4.  based on a patch from Tomoyuki Chikanaga.
  [ruby-dev:41484]

* test/ruby/test_io.rb (test_print_separators): use pipe (test helper
  method) instead of IO.pipe.  [ruby-dev:41484]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 15:08:29 +00:00