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
eban
6e10636d32
* ext/fiddle/extconf.rb: De Morgan's laws.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 08:16:33 +00:00
naruse
77f0c30612
Refix test_regexp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 04:48:42 +00:00
eban
423b4d815f
* ext/fiddle/extconf.rb: use pkg_config to find ffi.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 03:14:34 +00:00
naruse
895b0d4cdb
Refix for test_dup_warn.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 01:50:48 +00:00
nobu
a1a529e603
* Makefile.in (clean-enc): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-15 00:09:26 +00:00
nobu
1d408c933a
* Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaning
...
targets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 17:32:03 +00:00
akr
3a4231cdf4
* test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS
...
for Windows.
* test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.
[ruby-dev:41597] reported by Masaya Tarui.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 13:46:06 +00:00
seki
0556fa02de
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 09:36:44 +00:00
seki
b54b86d898
raise DRbConnError instead of ArgumentError if too many arguments.
...
[ruby-dev:41481]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 08:52:30 +00:00
naruse
7eec027f06
* ext/fiddle/closure.c (dealloc): refix workaround r28300.
...
don't use ffi_closure_alloc, ffi_prep_closure_loc and
ffi_closure_free on MACOSX and __linux__.
[ruby-dev:41483] [ruby-dev:41214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 19:06:25 +00:00
svn
065b574bdd
* 2010-06-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 18:53:34 +00:00
naruse
ca2402f5e4
retry to fix test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 18:53:27 +00:00
mame
d1dd727533
* test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
...
DATA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 06:47:44 +00:00
naruse
58f779170d
try to fix test for boron.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-13 05:01:04 +00:00
marcandre
0486db01fd
* lib/delegate.rb: Delegate !=, eql? and hash [ruby-core:26139]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 19:25:03 +00:00
naruse
78f5b54f1b
* enc/trans/utf8_mac.trans (buf_apply): fix for patterns
...
whose result is 2 bytes. [ruby-core:30751]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 17:13:54 +00:00
naruse
051af24359
* time.c (rb_localtime_r2): fix mixed declarations and code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 16:40:25 +00:00
naruse
75033ea16f
* ext/dl/lib/dl.rb: don't require when already loaded.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 15:28:47 +00:00
svn
2be632476e
* 2010-06-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 15:28:44 +00:00
naruse
5422161026
* ext/fiddle/closure.c (dealloc): workaround fix for libffi's
...
ffi_closure_free. [ruby-dev:41483] [ruby-dev:41214]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 15:28:40 +00:00
nobu
d65d2384a6
* test/ruby/test_module.rb (test_attr_inherited_visibility): see [ruby-core:30638].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 07:56:23 +00:00
nobu
99058e83be
* test/ruby/test_module.rb (test_uninitialized_toplevel_constant): test for [ruby-dev:40951].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 04:06:34 +00:00
nobu
c0ea75f966
* test/ruby/test_method.rb (test_public_methods_with_extended): test for [ruby-dev:41553].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 02:58:47 +00:00
matz
622fb1ca50
* io.c (rb_f_syscall): should check argument string taint before
...
invoking system calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 01:05:20 +00:00
matz
ff0252701e
* variable.c (uninitialized_constant): process through
...
rb_class_real() to remove "Object::" from error message.
[ruby-dev:40951]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 00:20:27 +00:00
nobu
fbfd5fdcb0
* ext/openssl/extconf.rb: __VA_ARGS__ is already checked in configure.
...
* ext/openssl/extconf.rb: use try_static_assert for version check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 23:03:28 +00:00
tarui
e1a52d82b0
* test/open-uri/test_open-uri.rb (test_progress, test_progress_chunked):
...
fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 21:47:41 +00:00
tarui
c4f3a04cc1
* test/open-uri/test_open-uri.rb (test_progress, test_progress_chunked):
...
'size' is a accumulated transferred size in bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 21:34:44 +00:00
akr
2acc30eead
add sleep.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 16:14:15 +00:00
mame
5e48356627
* ChangeLog: add an acknowledge.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 15:47:59 +00:00
svn
ae18daf62c
* 2010-06-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 15:40:43 +00:00
mame
8af5f01a17
* ext/dbm/extconf.rb: accept Berkley DB version 3, 4 and 5.
...
[ruby-dev:41531]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 15:40:39 +00:00
akr
8c7786bf58
* time.c (init_leap_second_info): check the result of
...
gmtime_with_leapsecond.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 14:26:57 +00:00