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

20147 Коммитов

Автор SHA1 Сообщение Дата
naruse 291809f473 * string.c (rb_str_buf_cat_escaped_char): defined.
Splited from rb_str_inspect.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 11:31:54 +00:00
akr 7f51312344 add an assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 11:28:23 +00:00
akr 0133aee46c * .gdbinit (rp): show type name for RTypedData.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 07:39:47 +00:00
nobu af97da84ed * ruby.c (process_options, load_file_internal): $0 seen from
required libraries by -r option should be the main script.
  [ruby-core:23717]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 06:59:12 +00:00
nobu 2c2ae5b164 * test/ruby/envutil.rb (EnvUtil#invoke_ruby): support for child
process env.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 06:15:55 +00:00
nobu f75ab0150d * test/net/imap/test_imap.rb (test_exception_during_shutdown):
need to raise always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 05:11:15 +00:00
marcandre 159fd9ee6c * lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
some empty matrices.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:18:08 +00:00
marcandre 87c1da091c * lib/matrix.rb: trivial optimizations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:17:44 +00:00
akr d81b2491f7 * error.c (rb_name_err_mesg_new): guard mesg, recv and method.
The problem in [ruby-dev:41464] is caused because mesg is collected.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 02:01:29 +00:00
akr 8bca09325d * .gdbinit (rp): detect and show RTypedData.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 01:04:15 +00:00
nobu 2ef85089ec * ruby.c (process_options): revert r25330, so that $0 can be seen
from required libraries by -r option.  [ruby-core:23717]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 00:57:02 +00:00
nobu 45815f9c9d * file.c (rb_f_test): 'W' should test writable by real uid/git,
not world writable.   [ruby-core:30587]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 23:30:48 +00:00
svn 72992b97d3 * 2010-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 21:22:51 +00:00
drbrain 79aac05474 Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 21:22:47 +00:00
tenderlove c052958912 * test/dl/test_cfunc.rb: test for r28156
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 02:24:32 +00:00
nobu da0ac85107 * ext/dl/cfunc.c (rb_dlcfunc_inspect): should taint the result.
[ruby-dev:41533]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 01:46:36 +00:00
svn bc561d0b93 * 2010-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 00:37:39 +00:00
usa 408f0a92ef * gc.c (gc_sweep): suppress a warning on VC, again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 00:37:36 +00:00
knu e1ef999dad Mention deprecation of digest/hmac.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 14:59:44 +00:00
knu 24be1f14e6 * ext/digest/lib/digest/hmac.rb: Emit a deprecation warning in
verbose mode and add a caution to the overview section of the
  document. [ruby-dev:41525]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 14:48:23 +00:00
nobu 8984ef4705 * ext/dl/cfunc.c (rb_dlcfunc_inspect): suppress warnings by
rb_sprintf.

* ext/dl/cptr.c (rb_dlptr_s_malloc): suppress warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 10:33:57 +00:00
nobu 7336f32c3b * load.c (ruby_init_ext): statically linked extensions have no
real path.  [ruby-dev:41526]

* vm.c (rb_vm_call_cfunc): add filepath argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 09:58:32 +00:00
nobu 140d43a73f * insns.def (concatarray): removed unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 09:40:25 +00:00
nobu 55789617ae * test/rake/test_win32.rb (Rake::TestWin32): update tests.
[ruby-core:30309]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 09:17:49 +00:00
nobu 188881b2a8 * test/io/nonblock/test_flush.rb (test_flush): try pipe and
socketpair.  [ruby-dev:41517]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 04:05:20 +00:00
usa 3a08f62b4f * test/gdbm/test_gdbm.rb (test_s_open_create_new): Windows doesn't supports
UNIX like permittions.

* test/gdbm/test_gdbm.rb (test_s_open_error): Errno::EWOULDBLOCK is raised on
  Windows in such case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 01:24:42 +00:00
usa fdc4326702 * ext/dl/dl.h (DLSTACK_TYPE): type of stack is same as VALUE.
reported by sakiyama shin in [ruby-dev:41514]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 00:38:59 +00:00
nobu 325d06c737 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 21:49:32 +00:00
nobu d57a8a44a8 * test/ruby/test_path.rb (test_path): workaround for drive
letter.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 21:30:23 +00:00
nobu 54fe5bf6e7 * test/ruby/test_path.rb (test_path): get rid of blocking on
access to non-existent host.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 21:25:18 +00:00
ryan 18b4480e31 Allow bin/* install from dot-dirs. Fixes rvm and multiruby installations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 20:42:29 +00:00
nagai ed02f66eca * ext/tk/lib/tk.rb: fix typo and race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 16:24:29 +00:00
svn 2b71200ad4 * 2010-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 16:02:52 +00:00
tenderlove 230ca5ffe5 * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility
by supporting "uint" types in the c parser. [ruby-core:29750]
* test/dl/test_cparser.rb: adding a test for "uint" changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 16:02:48 +00:00
nobu fabba1b93b * test/ruby/test_{string,symbol}.rb (test_ascii_incomat_inspect):
ASCII range characters are no longer escaped.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 14:06:25 +00:00
usa 597d60f792 * test/dl/test_cfunc.rb (test_last_error): CFunc.last_error is thread local
variable.  So, if another test calls CFunc#call, it's set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 07:49:00 +00:00
svn 35eb899004 * 2010-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 03:05:11 +00:00
matz 276fb7e77b * compile.c (iseq_compile_each): should consider block on stack,
if block argument is passed.  [ruby-core:30534]

* parse.c (arg_concat_gen): should append to nd_head, not to
  nd_iter for NODE_BLOCK_PASS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 03:05:06 +00:00
naruse 4c897fdde1 * re.c (unescape_nonascii): \P{FOO} is also Unicode regexp. [ruby-core:30540]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-01 14:20:59 +00:00
naruse ab70e53ac3 * lib/net/http.rb: adding support to rfc5789 patch verb.
Added a Net::HTTP::Patch class which expects a message body
  and response body. It recycles the post method into a patch one,
  that will send the encoded representation to the server.
  Summarizing, a new class has been created, the post method
  extracted into send_entity, including a new argument,
  which defines which class to use (Post or Patch) and
  finally a patch method was created. [ruby-core:30426]
  Patched by Guilherme Silveira
  <guilherme.silveira AT caelum.com.br>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-01 12:30:52 +00:00
naruse b64083376e * ext/readline/extconf.rb: reject GPLv3 readline. [ruby-dev:39172]
[ruby-core:25272] [ruby-dev:39167] [ruby-core:28736]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 18:48:16 +00:00
svn 508e987ac6 * 2010-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 16:16:45 +00:00
tarui f8bdd8dd08 * io.c (pipe_open): add RB_GC_GUARD.
This caused failure when test/ruby/test_argf.rb is executed with
	  GC.stress = true in mswin32_90


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 16:16:39 +00:00
nagai d369a50c2b * ext/tk/extconf.rb: use tclConfig.sh/tkConfig.sh when frameworks
are enabled on MacOS X.
* ext/tk/stubs.c: dirty hack for frameworks and stubs on MacOS X.
* ext/tk/lib/tk.rb: stop creating a dummy Tcl/Tk interpreter. 
  And hide a root window before starting eventloop. (for ruby 1.9)
* ext/tk/tcltklib.c: add codes to support Ruby/Tk-Kit (Rubykit).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 14:50:39 +00:00
akr a4702079b8 update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 13:37:50 +00:00
akr 7011534ea8 * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESET
for Windows.  reported by U.Nakamura.  [ruby-dev:41477]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 12:51:13 +00:00
nobu 3642fa1992 * regparse.c (onig_syntax_warn): do not use external strings as
printf format.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 10:26:01 +00:00
nobu 4acf013ffd * misc/ruby-mode.el (ruby-mode-set-encoding): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 09:27:06 +00:00
nobu 97a1d656f8 * misc/ruby-mode.el (ruby-mode-set-encoding): skip shebang line
always regardless of ruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 09:22:25 +00:00
naruse 455554b64c * file.c (file_expand_path): Refix r28102: this breaks
r28039. test for [ruby-dev:41429] is added. [ruby-core:30516]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 08:47:08 +00:00