aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * proc.c: Add {*}_min_max_arity and refactor.marcandre2013-02-013-34/+83
| | | | | | | | [Bug #7765] * test/ruby/test_proc.rb: Fix wrong test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-02-02svn2013-02-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c: add security considerations to marshal overview, refer tocharliesome2013-02-012-4/+22
| | | | | | overview from Marshal.load documentation [#7759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_dup): make returned array the same class as the originalcharliesome2013-02-013-1/+15
| | | | | | | array [Bug #7768] [ruby-core:51792] * test/ruby/test_array.rb (class TestArray): add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* marshal.c: prohibit_ivarnobu2013-02-013-1/+28
| | | | | | | | * marshal.c (r_object0): prohibit setting instance variables of exising class/module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb, ext/readline/readline.c: checkshugo2013-02-013-7/+7
| | | | | | | RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE directly in readline.c. Patch by Zachary Scott. [Bug #7397] [ruby-core:49561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-02-01svn2013-02-011-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-02-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* marshal.c: warn against using Marshal.load on untrusted datacharliesome2013-01-312-0/+10
| | | | | | | * marshal.c (marshal_load): Add documentation warning against using Marshal.load on untrusted data [Bug #7759] [ruby-core:51765] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: no assigned but unused warnings in evalnobu2013-01-313-1/+8
| | | | | | | * parse.y (local_push_gen): no assigned but unused variable warnings in eval as well as -e. [Feature #7730] [ruby-core:51580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb (test_trap_puts): Fix typo. "sync"kosaki2013-01-312-1/+6
| | | | | | should be "STDOUT.sync". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_aset_m): Documentation for String#[]= fixzzak2013-01-312-1/+7
| | | | | | | | Raises an IndexError if Regexp match is out of range. Github fixes #243 Patch by Dmtiriy Budnik git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-31svn2013-01-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): returnshugo2013-01-314-4/+46
| | | | | | | | | | | | sizeof(sa_familiy_t) if path is empty. see "Autobind Feature" in unix(7) for details. * ext/socket/lib/socket.rb (unix_socket_abstract_name?): treat an empty path as an abstract name. * test/socket/test_unix.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/basicsocket.c (bsock_getsockname): ignore truncatedakr2013-01-304-0/+32
| | | | | | | | | | | | | | | | | part of socket address. (bsock_getpeername): ditto. (bsock_local_address): ditto. (bsock_remote_address): ditto. * ext/socket/unixsocket.c (unix_path): ditto. (unix_addr): ditto. (unix_peeraddr): ditto. * ext/socket/init.c (cloexec_accept): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.h: revert r37337nobu2013-01-302-1/+6
| | | | | | | * include/ruby/win32.h (fstat): revert r37337, which uses _fstati64() instead of fstati64() on mingw32. [Bug #7276] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/unixsocket.c (rsock_init_unixsock): use rb_inspect()shugo2013-01-303-1/+16
| | | | | | | | because rb_sys_fail_str() fails if its argument contains NUL. * test/socket/test_unix.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_dump.c: important message firstnobu2013-01-303-10/+20
| | | | | | | * vm_dump.c (rb_vm_bugreport): show the most important message, Crash Report log information, first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog, range.c: adjust indent and stylenobu2013-01-302-7/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726]marcandre2013-01-302-2/+2
| | | | | | * range.c (range_bsearch): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_bsearch): Fix r38986 (missing whitespace)marcandre2013-01-302-2/+2
| | | | | | * range.c (range_bsearch): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_bsearch): Raise TypeError on bad return from blockmarcandre2013-01-305-7/+30
| | | | | | | | | | * range.c (range_bsearch): ditto * test/ruby/test_array.rb (class): Test for above * test/ruby/test_range.rb (class): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c: Restrict bsearch to integers [#7728]marcandre2013-01-303-5/+27
| | | | | | * test/ruby/test_range.rb: Test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_bsearch): Return enumerator if no block [#7725]marcandre2013-01-305-0/+25
| | | | | | | | | | * range.c (range_bsearch): ditto * test/ruby/test_array.rb: Test for above * test/ruby/test_range.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Take conjugate for inner productmarcandre2013-01-302-1/+6
| | | | | | [rubyspec:5a01ad5719f2] [ruby-dev:46101] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: warn assigned but unused in toplevelnobu2013-01-303-1/+9
| | | | | | | * parse.y (local_push_gen): warn assigned but unused variables also in toplevel, except for -e option. [Feature #7730] [ruby-core:51580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cont.c: fiber local svarnobu2013-01-303-0/+31
| | | | | | | * cont.c (cont_restore_thread): svar should be separate per fibers. [ruby-core:51331] [Bug #7678] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (reg_operand): Simplify and reuse error handling [Bug #7539]marcandre2013-01-293-6/+14
| | | | | | * test/ruby/test_regexp.rb: Test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: Improve error for failed implicit conversions [Bug #7539]marcandre2013-01-294-2/+21
| | | | | | | | * error.c: Adapt rdoc * test/ruby/test_object.rb: Test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c: Fix Range#bsearch for floats [Bug #7724]marcandre2013-01-292-159/+147
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-30svn2013-01-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: Fix rdoc typo, patch by Narsimham Chelluri [#7753].marcandre2013-01-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http/generic_request.rb (encode_multipart_form_data): removeakr2013-01-292-0/+6
| | | | | | | tempfile explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: Improve documentation abouteregon2013-01-292-3/+13
| | | | | | comparison by hash for concerned methods. [ruby-core:51266] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug: trivial fixesnobu2013-01-293-3/+3
| | | | | | | | | * ext/-test-/debug/init.c (Init_debug): use normal module. * ext/-test-/debug/inspector.c (callback): debug_inspector interfaces now use long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_settracefunc.rb: fix testsnobu2013-01-291-11/+19
| | | | | | | * test/ruby/test_settracefunc.rb (assert_security_error_safe4): fix tests to set $SAFE separatedly git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-01-290-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_backtrace.c: fix issue of rb_debug_inspector_open().ko12013-01-2910-17/+204
| | | | | | | | | | | | | | | | | | | The order of making binding should be stack (frame) top to bottom. [Bug #7635] And also fix issue of collecting klass. Collecting klass is same as TracePoint#defined_class. (previous version, it returns T_ICLASS (internal objects). * test/-ext-/debug/test_debug.rb: add a test. * ext/-test-/debug/extconf.rb, init.c, inspector.c: ditto. * vm_backtrace.c: remove magic number and add enum CALLER_BINDING_*. * vm_backtrace.c, include/ruby/debug.h: add new C api (experimental) rb_debug_inspector_frame_self_get(). * vm.c, vm_core.h, vm_trace.c: move decl. of rb_vm_control_frame_id_and_class() and constify first parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: TracePoint safe level checknobu2013-01-293-3/+26
| | | | | | | | * vm_trace.c (rb_tracepoint_enable, rb_tracepoint_disable): check safe level as well as set_trace_func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: trace_func safe level checknobu2013-01-293-0/+43
| | | | | | | | * vm_trace.c (set_trace_func, thread_{add,set}_trace_func_m): check safe level as well as 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: original aritynobu2013-01-296-1/+98
| | | | | | | | * proc.c (rb_mod_method_arity): return original arity of the method if aliased because of visibility change, like as Method#arity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb: remove temporally files early.akr2013-01-294-1/+13
| | | | | | | | | | * test/ruby/test_process.rb: ditto. * test/psych/test_exception.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: remove duplicated entrynobu2013-01-291-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-29svn2013-01-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_pack_sockaddr_un): calculate theshugo2013-01-293-5/+14
| | | | | | | | correct address length of an abstract socket. * test/socket/test_unix.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_backtrace.c: use longnobu2013-01-283-9/+19
| | | | | | | * vm_backtrace.c (rb_debug_inspector_frame_{class,binding,iseq}_get): use long as index as well as RARRAY_LEN(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: no core dumpnobu2013-01-282-5/+14
| | | | | | | * test/ruby/envutil.rb (assert_separately): imply no core dump. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-01-28svn2013-01-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fcntl/fcntl.c: update document. use "file descriptor" insteadakr2013-01-282-5/+16
| | | | | | | | | of "file handle" because it is not used other Ruby documents and it is confusing with Windows file handle. correct F_DUPFD behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_system.rb: commit missnobu2013-01-271-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#test_system_redirect_win): fix intentional failure left carelessly. [Bug #7482] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e