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

27182 Коммитов

Автор SHA1 Сообщение Дата
xibbar 745ada8649 Tue Aug 14 11:55:37 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/util.rb (CGI::escapeHTML): &apos; is not recommended. [Bug #6850]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-14 03:03:42 +00:00
svn 7fc28975bc * 2012-08-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-14 02:01:10 +00:00
naruse e9969414bb * lib/erb.rb (ERB::Util.html_escape): fix r36687: call to_s before
passing it to CGI.escapeHTML.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-14 02:01:05 +00:00
shugo 4e75451a16 * test/erb/test_erb.rb (test_html_escape): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-13 06:39:40 +00:00
svn eac25eed59 * 2012-08-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-13 04:17:05 +00:00
shugo 4093598bf6 * lib/erb.rb (ERB::Util.html_escape): use CGI.escape to escape
single quotes. [ruby-core:47138] [Bug #6861]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-13 04:17:00 +00:00
nobu a632108557 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-12 03:10:36 +00:00
ktsj 9564e9bd23 * vm.c (invoke_block_from_c): fix unintentional block passing.
[ruby-dev:45071] [Bug #5832]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-12 03:04:42 +00:00
svn 00468f2109 * 2012-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-11 15:45:58 +00:00
eregon 9955681379 * benchmark/driver.rb: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-11 15:45:54 +00:00
svn 50d8501431 * 2012-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-11 08:02:47 +00:00
kazu 66a40eccf4 remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-11 08:02:43 +00:00
naruse ccf911a02d Refix r36678: switch with zlib and check content-encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-10 10:53:18 +00:00
naruse 89c88eb5a9 Suppress warnings: Net::HTTPResponse#header is obsolete
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-10 05:25:08 +00:00
naruse 7391ae231a Run automatic deflate decoding only if it has zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-10 05:25:04 +00:00
drbrain 33a63355a7 * gc.c (gc_malloc_allocated_size): RDoc does not process macros, so
mention this method is only available when ruby is built with
	  CALC_EXACT_MALLOC_SIZE
	* gc.c (gc_malloc_allocations):  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 23:42:01 +00:00
nobu bb979b86f8 * sample/coverage.rb: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 15:46:27 +00:00
svn 773c7e9498 * 2012-08-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 15:16:43 +00:00
kazu 54f5d4ecab fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 15:16:37 +00:00
nobu 402edc568a mkrunnable.rb: build_os
* tool/mkrunnable.rb: see build_os instead of target arch for
  cross-compiling.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 14:46:53 +00:00
nobu 50f3d3feb5 configure.in: use real path
* configure.in (MINIRUBY): use real path for include path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 14:46:48 +00:00
nobu 1fcc1762ad fake.rb.in: remove duplications
* template/fake.rb.in (builddir): remove duplications


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 14:46:44 +00:00
nagachika 2b648fb7c4 * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 14:37:55 +00:00
shirosaki dcd7f09be2 Optimize winnt_stat
* test/ruby/test_file_exhaustive.rb
  (TestFileExhaustive#test_stat_special_file): add a test.
  GetFileAttributesExW fails to get attributes of special files
  such as pagefile.sys.

* win32/win32.c (check_valid_dir): for performance, check the path
  by FindFirstFileW only if the path containts "..."

* win32/win32.c (winnt_stat): use GetFileAttributesExW instead of
  FindFirstFileW since GetFileAttributesExW is faster.
  Based on the patch by Dusan D. Majkic.
  [ruby-core:47083] [Feature #6845]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 11:34:48 +00:00
nobu 0e92dc4b72 ruby.c: show version only once
* ruby.c (proc_options): show version only once even if -v and
  --verbose are given together.
  http://twitter.com/d6rkaiz/status/233491797085671424


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 09:33:49 +00:00
kosaki f207f7793d * test/openssl/test_config.rb (OpenSSL#test_constants): skip this
test if platform is Mac OS X or Windows. [Bug #6830]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-09 03:42:00 +00:00
svn 507dc62a34 * 2012-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 17:03:29 +00:00
kazu b2fbb39a4a fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 17:03:21 +00:00
nobu 393ed5c950 vm_eval.c: cref-scope hack
* vm_eval.c (eval_under): singletons other than special constants
  don't need cref-scope hack.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 13:51:32 +00:00
nobu 6b4ecb32fb use local variables
* test/ruby/test_eval.rb: use local variables instead global variables
  if possible.
* test/ruby/test_ifunless.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* test/ruby/test_stringchar.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 13:46:09 +00:00
nobu 22e145141b common.mk: id.h dependency
* common.mk (.y.h): split from .y.c rule to manage dependency on
  parse.h.  [ruby-core:46741] [Bug #6789]
* common.mk (id.h): keep old file unless changed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 13:45:41 +00:00
ko1 dcfaf3e277 * compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 08:12:24 +00:00
ko1 e2f5d4f9c7 * bootstrap/test_exception.rb: fix a last committed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 08:11:12 +00:00
ko1 93b6f8d619 * compile.c, insns.def (checkmatch):
remove checkincludearray instruction and
  add new instruction checkmatch.
  This change is to solve
  [Bug #4438] "rescue args type check omitted".
* iseq.c: increment ISEQ_MAJOR_VERSION because removal of
  checkincludearray instruction.
* vm_core.h: add several definitions for
  the checkmatch instruction.
* vm_insnhelper.c (check_match): added.
* bootstraptest/test_exception.rb: add a test.
* test/ruby/test_exception.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-08 07:52:19 +00:00
svn 8637eac406 * 2012-08-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 20:51:51 +00:00
drbrain 292a319608 * proc.c (method_clone): Added documentation. Patch by Robin Dupret.
Fixes #152 on github.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 20:51:48 +00:00
naruse a996b48515 * ext/readline/readline.c (Init_readline): rl_catch_signals=0 returns
back. Without this, on FreeBSD9 and readline 6.2 irb can't catch ^C.
  [Bug #5423]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 11:22:04 +00:00
ko1 0d1a905edb * vm_exec.c, insns.def (leave): solve problems on
OPT_CALL_THREADED_CODE.
  Catch up finish frame structure on OPT_CALL_THREADED_CODE.
* vm_core.h: add rb_thread_t#retval for temporary space on
  OPT_CALL_THREADED_CODE.
* vm.c (th_init): clear rb_thread_t#retval as Qundef.
* vm_dump.c (rb_vmdebug_debug_print_pre): fix debug print format.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 11:13:57 +00:00
usa fca3c408a7 * test/ruby/test_require.rb (TestRequire#test_require_twice): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 02:59:04 +00:00
shugo 0f24f94470 * vm_method.c (rb_redefine_opt_method): use RCLASS_ORIGIN to avoid
SEGV when a module-prepended class is refined.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 02:44:24 +00:00
usa b361d7d082 * test/ruby/test_file_exhaustive.rb
(TestFileExhaustive#test_expand_path*): refactoring.  split the method
  into some chunks of the same kind of tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 01:48:36 +00:00
tenderlove ac37fc37b1 test String#each_line when separator is longer than string.
Thanks Charles Nutter.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-07 00:43:44 +00:00
nobu 28827e61d1 method in instance_eval
* class.c (rb_special_singleton_class_of): utility function.
* vm_eval.c (eval_under): special deal for class variable scope with
  instance_eval.
* vm_eval.c (rb_obj_instance_eval, rb_obj_instance_exec): allow method
  definition in instance_eval of special constants.  [ruby-core:28324]
  [Bug #2788]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 15:31:13 +00:00
svn 353833c466 * 2012-08-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 15:24:09 +00:00
nobu 6f677a5e00 variable.c: split CVAR_LOOKUP
* variable.c (CVAR_LOOKUP): split into helper functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 15:24:01 +00:00
nobu 745de093db test_exception.rb: split tests
* test/ruby/test_exception.rb (test_exception, test_else): split huge
  tests into simple tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 13:06:37 +00:00
nobu ddabdd4427 test_exception.rb: use local variables
* test/ruby/test_exception.rb (test_exception, test_else): use local
  variables instead unnecessary global variables.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 13:06:16 +00:00
nobu 281e4b611f vm_eval.c: check exceptional condition first
* vm_eval.c (vm_call_super): check exceptional condition first.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 12:18:10 +00:00
suke 906b2110d9 * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale
to pass some assertion.  Thanks to Hiroshi Shirosaki.
  [ruby-core:46873][Bug #6814]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 10:21:12 +00:00
shugo 9537e8ffe5 * internal.h, class.c, eval.c, insns.def: find the appropriate
receiver for super called in instance_eval.  If such a receiver is
  not found, raise NoMethodError. [ruby-dev:39772] [Bug #2402]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 07:00:19 +00:00