akr
6d313a387a
* configure.in: Don't check socketpair. socketpair is not used in
...
ruby command itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 16:52:16 +00:00
svn
53175b09f1
* 2013-05-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 16:05:55 +00:00
nobu
e8bdef657a
class.c: include modules only
...
* class.c (rb_mod_included_modules): should not include non-modules.
[ruby-core:53158] [Bug #8025 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 16:05:50 +00:00
nobu
3fd0000c0c
class.c: exclude original module
...
* class.c (rb_mod_included_modules): should not include the original
module itself. [ruby-core:53158] [Bug #8025 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 13:47:11 +00:00
akr
6359460610
Add a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 12:39:38 +00:00
naruse
4834aa5307
* io.c (rb_io_ext_int_to_encs): ignore internal encoding if external
...
encoding is ASCII-8BIT. [Bug #8342 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 08:47:26 +00:00
naruse
ce573f3166
* ext/json/generator/generator.c (isArrayOrObject): cast char to
...
unsigned char. [Bug #8378 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 05:00:02 +00:00
naruse
279c7bdd88
* ext/json/generator/depend: fix dependencies [Bug #8379 ]
...
* ext/json/parser/depend: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 04:59:52 +00:00
nobu
85280f4b55
parse.y: fail if invalid name
...
* parse.y (parser_yylex): fail if $, @, @@ are not followed by a valid
name character. [ruby-core:54846] [Bug #8375 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 04:07:22 +00:00
nobu
4dfd373905
test_scanner_events.rb: assert_location
...
* test/ripper/test_scanner_events.rb (TestRipper#assert_location):
rename so skipped in backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 04:07:21 +00:00
nobu
b8bcd92059
ruby.h: ISGRAPH
...
* include/ruby/ruby.h (ISGRAPH): add missing macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 04:06:34 +00:00
svn
2816e53988
* 2013-05-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 22:51:20 +00:00
naruse
bbcf97fad6
* ext/socket/socket.c (socket_s_ip_address_list): fix wrongly filled
...
sin6_scope_id on KAME introduced by r40593 for OpenIndiana.
KAME uses fe80:<scope_id>::<interface id> for link-local address
internally.
Setting sin6_scope_id causes it leaked.
see also comments of sockaddr_obj().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 22:51:16 +00:00
akr
4264240759
* ext/readline/readline.c (insert_ignore_escape): Add a cast to
...
unsigned char * before dereference.
This suppress a warning on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 13:15:13 +00:00
akr
593c24f87c
* ext/socket/ancdata.c (bsock_recvmsg_internal): Add a cast to
...
suppress warning.
Bionic defines socklen_t as int.
Bionic defines msg_controllen as unsigned int (__kernel_size_t)
instead of socklen_t as POSIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:19:52 +00:00
akr
cb2f3c1b87
* ext/socket/ancdata.c (ancillary_inspect): Don't call
...
anc_inspect_ipv6_pktinfo if !HAVE_TYPE_STRUCT_IN6_PKTINFO.
anc_inspect_ipv6_pktinfo is not defined in the case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:14:47 +00:00
akr
2b792abd69
* ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as
...
int. This suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:12:32 +00:00
akr
301821bd45
* ext/socket/extconf.rb: Set close_fds false for Cygwin.
...
Cygwin doesn't support fd passing.
This enables socket extension library cross-compilable by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:10:46 +00:00
svn
f4fd77903f
* 2013-05-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:09:20 +00:00
akr
570015a18b
* pack.c (swap32): Don't redefine it if it is already defined.
...
Bionic defines it.
(swap64): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-07 03:09:15 +00:00
akr
9e08404b8a
* ext/socket/socket.c (socket_s_ip_address_list): Fill sin6_scope_id
...
if getifaddrs() returns an IPv6 link local address which
sin6_scope_id is zero, such as on OpenIndiana SunOS 5.11.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-06 11:51:07 +00:00
eregon
85bfd7308f
* compar.c (Comparable#==): fix typo.
...
Patch by Andrew Grimm. [Fix GH-297]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-06 06:40:23 +00:00
svn
ef07aa791b
* 2013-05-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-06 01:22:43 +00:00
kazu
912f9dcc22
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-06 01:22:37 +00:00
xibbar
3957501d13
* lib/cgi/session.rb: Fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 13:27:26 +00:00
eregon
96e14ad252
* doc/syntax/refinements.rdoc : Fix a missing quote
...
Patch by Robin Dupret. [Fix GH-271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 11:49:53 +00:00
nobu
f620e9e7d3
* test/ruby/test_defined.rb (TestDefined#test_super_toplevel):
...
additional test for r40584.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 10:02:41 +00:00
nobu
babae04960
insns.def: refactor by wanabe
...
* insns.def (defined): use vm_search_superclass() like as normal super
call. based on a patch <https://gist.github.com/wanabe/5520026 > by
wanabe.
* vm_insnhelper.c (vm_search_superclass): return error but not raise
exceptions.
* vm_insnhelper.c (vm_search_super_method): check the result of
vm_search_superclass and raise execptions on error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 09:57:02 +00:00
nobu
08fbd2cee2
insns.def: method entry from method frame
...
* insns.def (defined): get method entry from the method top level
frame, not block frame. [ruby-core:54769] [Bug #8367 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 07:29:44 +00:00
nobu
13bd7afc6e
configure.in: default LINK_SO
...
* configure.in: should not strip newline at the beginning for the
default link command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 06:54:32 +00:00
nobu
38ea534c34
configure.in: keep POSTLINK
...
* configure.in: keep POSTLINK in LINK_SO macro till rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 04:37:48 +00:00
nobu
36de5e4db5
ruby.pc.in: rubyarchhdrdir
...
* template/ruby.pc.in (Cflags): use rubyarchhdrdir for multiarch.
[Bug #7874 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 04:29:01 +00:00
svn
f259b8849b
* 2013-05-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 02:40:38 +00:00
kazu
4bbd1d9df7
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-05 02:40:33 +00:00
zzak
5835461b16
* doc/security.rdoc: Add note about reporting security vulns
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 22:21:34 +00:00
svn
b2580fb21d
* 2013-05-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 21:04:03 +00:00
kosaki
9b89888dda
* include/ruby/defines.h (RUBY_ATTR_ALLOC_SIZE): New for
...
attribute((alloc_size(params))).
* include/ruby/defines.h (xmalloc, xmalloc2, xcalloc)
(xrealloc, xrealloc2): Annotated by RUBY_ATTR_ALLOC_SIZE.
* include/ruby/ruby.h (rb_alloc_tmp_buffer): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 21:03:58 +00:00
xibbar
b35529bb4e
* lib/cgi/util.rb: class methods modulize for using like a function.
...
[Feature #8354 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 11:23:23 +00:00
akr
86d4511fe6
* ext/socket/extconf.rb: Make default_ipv6 true for Cygwin.
...
Cygwin supports IPv6 since Cygwin 1.7.1 (2009-12).
http://cygwin.com/ml/cygwin-announce/2009-12/msg00027.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 05:11:06 +00:00
nobu
d0b7b41e59
* common.mk (yes-test-all): needs sudo-precheck for dtrace.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 04:50:15 +00:00
nobu
8202d6266f
{getaddrinfo,getnameinfo}.c: fix for old platforms
...
* ext/socket/{getaddrinfo,getnameinfo}.c: define socklen_t if not
defined, e.g., older VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 04:35:37 +00:00
nobu
3b62e8e78b
win32.h: INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX
...
* include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): also
should be defined when defining intptr_t and uintptr_t.
bigdecimal.c requires the former two now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 04:29:18 +00:00
nobu
6d32a4e32b
win32.c: fix build error
...
* win32/win32.c (poll_child_status): fix build error on older mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 04:22:24 +00:00
nobu
c61af20411
win32.c: optimization
...
* win32/win32.c (poll_child_status): trivial optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-03 04:22:20 +00:00
svn
4aa97ae698
* 2013-05-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 15:22:44 +00:00
ayumin
b5d877e62c
* common.mk: remove timestamp in distclean-ext realclean-ext.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 15:22:27 +00:00
nobu
a58c224dcf
object.c: skip prepending modules
...
* object.c (rb_obj_is_kind_of): skip prepending modules.
[ruby-core:54742] [Bug #8357 ]
* object.c (rb_class_inherited_p): ditto.
[ruby-core:54736] [Bug #8357 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 14:23:56 +00:00
nobu
908e701851
irb: dead code
...
* bin/irb: remove dead code from sample/irb.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 13:11:55 +00:00
nobu
5e79c1a543
marshal.c: no overwriting ivars
...
* marshal.c (copy_ivar_i): get rid of overwriting already copied
instance variales. c.f. [Bug #8276 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 08:32:48 +00:00
nobu
b996367eb5
variable.c: move warnings to rb_ivar_get
...
* variable.c (generic_ivar_get, ivar_get): return undef value instead
of Qnil with warnings, for uninitialized instance variable.
* variable.c (rb_ivar_get): warn for uninitialized instance variable
here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02 08:30:56 +00:00