nobu
b381a662fe
test_io_console.rb: descriptive assertions
...
* test/io/console/test_io_console.rb (test_stringio_getch): use more
descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:24 +00:00
nobu
f050b22327
console.c: fix unit of min
...
* ext/io/console/console.c (rawmode_opt): min is minimum characters,
not tenths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:18 +00:00
nobu
47dc049f61
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:51:00 +00:00
nobu
8c821761a8
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:48:26 +00:00
charliesome
cac38cd0a6
* doc/security.rdoc: add first cut at a Ruby security document
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:14:44 +00:00
zzak
ec72030317
* random.c: Document range argument for Kernel#rand.
...
[ruby-core:51794] [Bug #7770 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 01:25:57 +00:00
zzak
a954def1fb
* numeric.c: Document Float constants [ruby-core:51484] [Bug #7709 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 00:59:51 +00:00
nobu
9ed4d1ab8c
profiler.rb: block calls
...
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): add b_call
and b_return to profile block calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 00:38:46 +00:00
svn
0d7a197175
* 2013-02-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 00:37:30 +00:00
nobu
f87614d7a8
profiler.rb: split PROFILE_PROC
...
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): split
PROFILE_PROC for call and return events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 00:37:26 +00:00
zzak
f5b8e90a93
* lib/minitest/mock.rb, lib/minitest/hell.rb: nodoc top-level module
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 05:32:46 +00:00
zzak
32e754c8d4
* lib/debug.rb: Documentation for DEBUGGER__ class methods based on
...
patch by Vincent Batts [ruby-core:51253]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 05:04:54 +00:00
zzak
e91fb5eb6f
* lib/net/smtp.rb: Fix rdoc title for Net::SMTP
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 04:37:45 +00:00
zzak
94839d4a80
* lib/net/pop.rb: Fix rdoc title for Net::POP3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 04:32:25 +00:00
mame
1d23123c46
* lib/gserver.rb (GServer#start): fix a timing issue. patch from
...
Charles Nutter. [Bug #7081 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 04:13:33 +00:00
mame
7dc77be299
* lib/fileutils.rb (copy_entry, wrap_traverse): preserve attributes of
...
directories on FileUtils.cp_r. The fix was proposed by Jan
Wedekind. [Bug #7246 ]
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 03:54:00 +00:00
zzak
87d3c2d6d4
* lib/uri/ftp.rb (URI::FTP.new2): nodoc method from r39013 [Bug #7301 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 03:31:56 +00:00
mame
a60a562ca7
* lib/uri/ftp.rb (URI::FTP.new2): remove the rdoc because it is not
...
well tested yet. [Bug #7301 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 03:18:40 +00:00
mame
8b54e050f9
* ChangeLog: Forgot to add a reference to the ChangeLog of the
...
previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 03:09:01 +00:00
mame
4077b9b89d
* lib/fileutils.rb: chmod/chmod_R with a string mode (e.g., "+x")
...
caused error in verbose mode.
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 03:07:17 +00:00
mame
2ae0c4c44b
* lib/English.rb: Remove some confusing words from rdoc. [Bug #7406 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 02:47:33 +00:00
ktsj
d127e92b85
* NEWS: add keyword arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-02 01:21:09 +00:00
marcandre
f810d1804a
* proc.c (proc_curry): Fix arity check [Bug #5747 ]
...
* test/ruby/test_proc.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-01 22:46:32 +00:00
marcandre
83610815d4
* proc.c: Add {*}_min_max_arity and refactor.
...
[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-01 22:46:07 +00:00
svn
4b4d889fe0
* 2013-02-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-01 15:46:15 +00:00
charliesome
ba5ff937c3
* marshal.c: add security considerations to marshal overview, refer to
...
overview from Marshal.load documentation [#7759 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-01 15:46:10 +00:00
charliesome
86aa98fed4
* array.c (rb_ary_dup): make returned array the same class as the original
...
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
2013-02-01 14:05:49 +00:00
nobu
3fe939564f
marshal.c: prohibit_ivar
...
* 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
2013-02-01 07:35:37 +00:00
shugo
46ea3f6555
* ext/readline/extconf.rb, ext/readline/readline.c: check
...
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-01 05:37:29 +00:00
svn
8df20dd70b
* 2013-02-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-01 00:47:54 +00:00
kazu
c58d8c30ce
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-01 00:47:49 +00:00
charliesome
f8823475d9
marshal.c: warn against using Marshal.load on untrusted data
...
* 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
2013-01-31 12:55:37 +00:00
nobu
20af032e82
parse.y: no assigned but unused warnings in eval
...
* 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
2013-01-31 07:33:30 +00:00
kosaki
b10e6b69a5
* test/ruby/test_signal.rb (test_trap_puts): Fix typo. "sync"
...
should be "STDOUT.sync".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-31 07:08:23 +00:00
zzak
e56c7878cf
* string.c (rb_str_aset_m): Documentation for String#[]= fix
...
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-31 06:38:43 +00:00
svn
625119a348
* 2013-01-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-31 04:59:36 +00:00
shugo
4ccfb2743f
* ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): return
...
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
2013-01-31 04:59:31 +00:00
akr
1ff38a5bbf
* ext/socket/basicsocket.c (bsock_getsockname): ignore truncated
...
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
2013-01-30 12:01:51 +00:00
nobu
111b861422
win32.h: revert r37337
...
* 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
2013-01-30 08:08:23 +00:00
shugo
e16b8482c7
* ext/socket/unixsocket.c (rsock_init_unixsock): use rb_inspect()
...
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
2013-01-30 06:30:12 +00:00
nobu
5efb130d39
vm_dump.c: important message first
...
* 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
2013-01-30 06:21:33 +00:00
nobu
e449d06f15
ChangeLog, range.c: adjust indent and style
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-30 06:20:26 +00:00
marcandre
69adf990e1
* array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726 ]
...
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-30 06:07:29 +00:00
marcandre
a7938af19c
* array.c (rb_ary_bsearch): Fix r38986 (missing whitespace)
...
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-30 06:01:40 +00:00
marcandre
20c0fb69d6
* array.c (rb_ary_bsearch): Raise TypeError on bad return from block
...
* 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
2013-01-30 06:00:24 +00:00
marcandre
00d6bb5108
* range.c: Restrict bsearch to integers [ #7728 ]
...
* 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
2013-01-30 05:46:48 +00:00
marcandre
39048aca75
* array.c (rb_ary_bsearch): Return enumerator if no block [ #7725 ]
...
* 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
2013-01-30 05:11:03 +00:00
marcandre
ddea0c8232
* lib/matrix.rb: Take conjugate for inner product
...
[rubyspec:5a01ad5719f2] [ruby-dev:46101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-30 04:53:58 +00:00
nobu
71eddb1dea
parse.y: warn assigned but unused in toplevel
...
* 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
2013-01-30 04:22:12 +00:00
nobu
29707c1d73
cont.c: fiber local svar
...
* 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
2013-01-30 04:17:59 +00:00