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

28705 Коммитов

Автор SHA1 Сообщение Дата
kazu 16af9a107e fix typos for r38298
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 09:31:26 +00:00
drbrain 52d4a465a8 * common.mk: Added --pages-dir to rdoc creation. Now doc/ items show
up at top-level.
* .document:  Moved doc/* entries to doc/.document
* doc/.document:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 07:57:56 +00:00
drbrain b65b75bf2c * lib/rdoc/options.rb: Added --page-dir option for moving pages in
doc/ to the top-level.
* lib/rdoc/rdoc.rb:  ditto.
* test/rdoc/test_rdoc_options.rb:  Test for the above.
* test/rdoc/test_rdoc_rdoc.rb:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 07:44:56 +00:00
drbrain d5ba73e0d9 * ext/pathname/lib/pathname.rb: Hide private methods from RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 06:25:56 +00:00
naruse 10c014b06d * tool/make-snapshot (BASERUBY): add --disable-gem to avoid load gems.
[Bug #7541] [ruby-core:50736]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 06:13:43 +00:00
naruse 55058e3583 Revert r38301
"* common.mk ($(MINIPRELUDE_C)): -I may break make dist."

This didn't solve the issue.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 06:13:41 +00:00
nobu b949447a49 probes_helper.h: RUBY_DTRACE_HOOK
* probes_helper.h (RUBY_DTRACE_HOOK): surround with do..while.

* vm.c (vm_exec): supply semicolon.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 03:37:19 +00:00
nobu 4a0cda64b2 test_settracefunc.rb: envutil
* test/ruby/test_settracefunc.rb: EnvUtil is required for
  assert_normal_exit when running solely.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 03:37:16 +00:00
naruse addefaa6a3 * ext/dl/win32/extconf.rb: Fix typo
by Santiago Pastorino <santiago@wyeworks.com>
  https://github.com/ruby/ruby/pull/221 fix GH-221

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 03:02:04 +00:00
naruse 0ab057280c Experimentally revert r38041
"vm_dump.c: no methods in segv handler"
It may cause segv:
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20121130T090301Z.diff.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 02:58:54 +00:00
naruse 381b72da12 * common.mk ($(MINIPRELUDE_C)): -I may break make dist.
patched by Vit Ondruch [Bug #7541] [ruby-core:50736]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 02:38:20 +00:00
naruse 20d68c92ca Revert r38296 and r38301
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-11 02:32:35 +00:00
naruse 4eb272e83c More debug print for r38296
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 16:57:23 +00:00
marcandre 8aac5f48fc * lib/matrix: alias {row|column}_size to {row|column}_count and use the latter.
[Bug #7369] [ruby-core:49409]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 16:53:57 +00:00
svn 4c02cff191 * 2012-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 16:05:50 +00:00
shugo 7ef16d224a * fix the behavior when a module is included into a refinement.
This change is a little tricky, so it might be better to prohibit
  module inclusion to refinements.

* include/ruby/ruby.h (RMODULE_INCLUDED_INTO_REFINEMENT): new flag
  to represent that a module (iclass) is included into a refinement.

* class.c (include_modules_at): set RMODULE_INCLUDED_INTO_REFINEMENT
  if klass is a refinement.

* eval.c (rb_mod_refine): set the superclass of a refinement to the
  refined class for super.

* eval.c (rb_using_refinement): skip the above superclass (the
  refined class) when creating iclasses for refinements.  Otherwise,
  `using Refinement1; using Refinement2' creates iclasses:
  <Refinement2> -> <RefinedClass> -> <Refinement1> -> RefinedClass,
  where <Module> is an iclass for Module, so RefinedClass is
  searched before Refinement1.  The correct iclasses should be
  <Refinement2> -> <Refinement1> -> RefinedClass.

* vm_insnhelper.c (vm_search_normal_superclass): if klass is an
  iclass for a refinement, use the refinement's superclass instead
  of the iclass's superclass.  Otherwise, multiple refinements are
  searched by super.  For example, if a refinement Refinement2
  includes a module M (i.e., Refinement2 -> <M> -> RefinedClass,
  and if refinements iclasses are <Refinement2> -> <M>' ->
  <Refinement1> -> RefinedClass, then super in <Refinement2> should
  use Refinement2's superclass <M> instead of <Refinement2>'s
  superclass <M>'.

* vm_insnhelper.c (vm_search_super_method): do not raise a
  NotImplementError if current_defind_class is a module included
  into a refinement.  Because of the change of
  vm_search_normal_superclass(), the receiver might not be an
  instance of the module('s iclass).

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 16:05:45 +00:00
shugo fa7c4ab408 * vm_method.c (rb_method_entry_without_refinements): use
rb_resolve_refined_method() to search superclasses if
  me->def->orig_me is 0.  This change fixes make test-all
  TESTS="json ruby/test_refinement.rb".

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 13:02:54 +00:00
naruse a263a8567a Add debug print to debug make dist error on rubyci FreeBSD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 09:27:28 +00:00
nobu 0e7fd84774 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 09:03:17 +00:00
usa f9aa334b5b * ext/fiddle/win32/*: library ports from DL to Fiddle.
* ext/dl/win32/extconf.rb: check fiddle.  often case dl compiled prior
  to fiddle, so this change is no meaning.  in most cases, simply
  fiddle/win32 overwrite dl/win32.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 09:01:27 +00:00
nobu 13e83d055f vm_trace.c: exceptions in event hooks
* vm_trace.c (rb_threadptr_exec_event_hooks): exceptions in event
  hooks should not propagate outside.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 06:23:44 +00:00
nobu c9b4b78085 compile.c, vm_insnhelper.c: flip-flop without hidden string key
* compile.c (iseq_compile_each): count flip-flop state in local iseq
  not in each iseqs, so that the keys can be other than hidden
  strings.  [ruby-core:47253] [Bug #6899]
* vm_insnhelper.c (lep_svar_get, lep_svar_set, vm_getspecial): store
  flip-flop states in an array instead of a hash.
* iseq.c (set_relation): main iseq also can has local scope.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 06:11:16 +00:00
nobu 2ffc29e864 * Makefile.in (LIBRUBY_SO): sign also.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 05:05:32 +00:00
nobu fa8c97438f * enc/depend (link_so): prefix $(Q) for each commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 04:32:11 +00:00
nobu 2b8485bc89 configure.in, mkmf.rb: sign extensions
* configure.in (codesign): check identifier at link time, not
  configure time.

* lib/mkmf.rb (LINK_SO): sign extensions too.  replace empty line with
  default command.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 04:18:13 +00:00
nobu 08b98cc317 mkconfig.rb: newlines
* tool/mkconfig.rb: restore embedded newlines.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 04:18:11 +00:00
nobu f9e4651039 KNOWNBUGS.rb: exceptions in event hooks
* KNOWNBUGS.rb: add tests for exceptions in event hooks, which were
  discarded in 1.8 but passed through in 1.9.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 02:50:57 +00:00
nobu bb87365711 test_gem_rdoc.rb: shut up skipping warnings
* test/rubygems/test_gem_rdoc.rb (TestGemRDoc): skip method
  definitions for older rdoc and shut up obsolete warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 02:50:12 +00:00
nari f04dd0f08b * lib/irb/magic-file.rb: set a encoding, which is detected from
the file to read, to the internal encoding.
  [Bug #4281][ruby-dev:43036]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 02:06:51 +00:00
nobu cf7ca7e66d * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 00:42:11 +00:00
drbrain f58ff1ba12 * lib/rubygems/ext/cmake_builder.rb: Added a builder for cmake.
* lib/rubygems/ext.rb:  ditto.
* lib/rubygems/installer.rb:  ditto.
* test/rubygems/test_gem_ext_cmake_builder.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 00:40:39 +00:00
svn a16cf580b0 * 2012-12-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 00:13:46 +00:00
drbrain 91998d694c * lib/rubygems/package.rb: Omit directories when packaging gems like
RubyGems 1.8.x
* test/rubygems/test_gem_package.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 00:13:42 +00:00
nobu 0c0496ebd2 envutil.rb: kill child
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): kill the child process
  certainly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-09 14:34:33 +00:00
shugo 29756c5e94 * vm_insnhelper.c (vm_call_opt_send): Kernel#send should not use
refinements.

* proc.c (mnew): Kernel#method, Kernel#public_method,
  Module#instance_method, and Module#public_instance_method should
  not use refinements.

* vm_method.c (rb_method_boundp): Kernel#respond_to? should not use
  refinements.

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-09 08:48:34 +00:00
svn 1cf13e0785 * 2012-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 21:19:26 +00:00
drbrain 4eaf05c847 * lib/rdoc/markdown/entities.rb: Added documentation.
* lib/rdoc/parser/ruby.rb:  Updated style

* lib/rdoc/ruby_lex.rb:  Parse characters up to \u{FFFFF}
* test/rdoc/test_rdoc_ruby_lex.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 21:19:22 +00:00
shugo 54fce8119a * eval.c (rb_mod_refine): don't override Module#include. It's
unnecessary now because refinements are activated only in refine
  blocks.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 13:41:16 +00:00
shugo 4363d0765b * eval.c: remove Module#refinements.
* test/ruby/test_refinement.rb: remove tests for Module#refinements.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 13:35:15 +00:00
shugo bdb8607cb7 * eval.c (top_using): raise a RuntimeError if using is called in a
module definition or a method definition.

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 13:35:12 +00:00
marcandre 537030e19b Improve rdoc for Ripper, based on a patch by Oscar Del Ben [github:219]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 07:06:24 +00:00
drbrain 75894547f5 * lib/rubygems/commands/cleanup_command.rb: Skip default gems when
cleaning up.
* test/rubygems/test_gem_commands_cleanup_command.rb:  Test for above.

* lib/rubygems/commands/query_command.rb:  Fixed listing remote gems.

* lib/rubygems/dependency_installer.rb:  Ignore non-files when looking
  for local gems.
* test/rubygems/test_gem_dependency_installer.rb:  Test for above.

* lib/rubygems/uninstaller.rb:  The user must confirm uninstalling gems
  that have dependencies.
* test/rubygems/test_gem_uninstaller.rb:  Test for above.

* lib/rubygems.rb (module Gem):  Updated version.

* test/rubygems/*.pem:  Updated to run in FIPS mode.
* test/rubygems/test_gem_security.rb:  ditto.
* test/rubygems/test_gem_security_signer.rb:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 06:01:49 +00:00
shugo ee68f78c24 * vm_insnhelper.c (vm_search_normal_superclass): super in a
refinement always uses the refined class as its superclass.

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 03:36:58 +00:00
shugo d928280cb6 * eval.c (rb_mod_refine): raise an ArgumentError if a given
block is of a Proc object.

* vm_insnhelper.c (vm_call_method): store refined methods in inline
  cache to improve performance.  It's safe now because blocks cannot
  be yielded with different refinements in the new specification.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 03:06:13 +00:00
shugo db051011d6 * eval.c (rb_mod_refine), vm_eval.c (rb_yield_refine_block):
Module#refine activates all refinements defined in that module
  only in a given block.

* string.c (sym_to_proc, sym_call): don't use refinements.

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 02:37:16 +00:00
drbrain 3adc9834d1 * ext/openssl/ossl_x509name.c: Completed documentation for
OpenSSL::X509::Name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 00:26:56 +00:00
nobu 1c9e315595 ChangeLog: fix indent
* ChangeLog: fix indent.  revert r38265 partially.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 00:24:35 +00:00
ko1 1c5b309211 * ext/objspace/objspace.c (iow_size): return size of internal object
for ObjectSpace.memsize_of().
* test/objspace/test_objspace.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-08 00:18:42 +00:00
jeg2 5b1065f3fe * lib/csv.rb: A fix for row comparison by Stephen Wattam. [Bug #7528]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 17:42:16 +00:00
nobu 0dc6b83935 unit.rb: no need to check all reports
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to
  check all reports.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 16:27:32 +00:00