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

44416 Коммитов

Автор SHA1 Сообщение Дата
nobu 4d3e3c2550 forwardable.rb: remove debug print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 12:16:00 +00:00
shugo 807114dd4d Remove a garbage file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 12:08:00 +00:00
svn 47ebf735c3 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 11:46:34 +00:00
svn 415d7a0311 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 11:46:34 +00:00
shugo a463ab1f05 * eval.c (rb_mod_refine): refine modules as well.
[ruby-core:76199] [Feature #12534]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 11:46:33 +00:00
knu 0b5a4e68c3 Update the paragraphs in "Rich Libraries" which included a dead link
* man/ruby.1: Update the paragraphs in "Rich Libraries" which
  included a dead link.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 11:21:55 +00:00
knu 7c30df7134 Use the `Lk` macro for hyperlinks
* man/ruby.1, man/erb.1, man/irb.1, man/ri.1: Use the `Lk` macro
  for hyperlinks, which has been available since mdocml 1.5.1
  (released more than seven years ago).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 11:21:52 +00:00
nobu ef13e60fe0 forwardable.rb: private methods
* lib/forwardable.rb (_delegator_method): allow private methods to
  be delegated, with warnings.  [ruby-core:77341] [Bug #12782]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 06:47:06 +00:00
nobu 1e1a114c25 test_fileutils.rb: use Dir.mktmpdir
* test/fileutils/test_fileutils.rb: use Dir.mktmpdir instead of
  fixed name for temporary directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 05:27:38 +00:00
nobu 7382eb7e38 compile.c: tailcall in conditinal block
* compile.c (iseq_peephole_optimize): enable tail call
  optimization inside a conditional block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 03:15:31 +00:00
svn 9ec75a259d * 2016-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 01:32:56 +00:00
nobu e53e212b0b ignore all versions [ci skip]
.gitignore: ignore all versions of unicode data.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-23 01:32:55 +00:00
kazu ddad054180 sync with svn:ignore. see r56105 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-22 14:05:48 +00:00
nobu 21255071d8 zlib: try zlib source
* ext/zlib/extconf.rb: try building zlib from the source if
  exists.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-22 06:35:28 +00:00
nobu 958c04898c dlntest.dll: move
* ext/-test-/win32/dln/{depend,extconf.rb} (dlntest.dll): make
  under the extension directory, instead of the top directory.

* test/-ext-/win32/test_dln.rb (test_check_imported): explicit
  PATH environment variable to load the DLL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-22 06:35:27 +00:00
svn 0e0bff1589 * 2016-09-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-22 04:06:54 +00:00
kazu c6501cccb1 gc.c: fix rdoc of garbage_collect [ci skip]
* gc.c (gc_start_internal): [DOC] methods without arguments
  like r56194. [Bug #12777]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-22 04:06:53 +00:00
naruse fdaea1596a * process.c (InitVM_process): Support CLOCK_MONOTONIC_RAW_APPROX,
CLOCK_UPTIME_RAW, and CLOCK_UPTIME_RAW_APPROX which are introduced
  by macOS 10.12.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 08:46:06 +00:00
nobu f4ac0d75d9 parse.y: preserve cmdarg_stack
* parse.y (brace_body, do_body): preserve cmdarg_stack so that
  `do` after cmdarg in a block should be `do_block` and bound to
  the outer method.  [ruby-core:72482] [Bug #11873]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 04:47:35 +00:00
nobu c924e2db96 parse.y: do after cmdarg in paren
* parse.y: `do` after cmdarg in parentheses should be `do_block`
  and bound to the outer method.  [ruby-core:72482] [Bug #11873]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 04:38:46 +00:00
nobu b458aef0f0 parse.y: remove spaces [ci skip]
* parse.y (cmd_brace_block, do_block): remove spaces before tab in
  indent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 04:36:32 +00:00
svn ceddc8f5e3 * 2016-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 04:32:04 +00:00
nobu 7b4b01bf05 parse.y: block bodies
* parse.y (brace_body, do_body): extract block bodies.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-21 04:32:03 +00:00
nobu 25049e983d gc.c: fix rdoc of garbage_collect [ci skip]
* gc.c (gc_start_internal): [DOC] add ObjectSpace.garbage_collect
  and fix GC#garbage_collect.  [Bug #12777]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 14:02:53 +00:00
kazu f4b566dfdd * doc/extension.ja.rdoc: translate r56189 (rb_gc_adjust_memory_usage). [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 12:25:36 +00:00
akr 45d62ec988 describe "0.class == Integer" to detect the feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 11:12:38 +00:00
hsbt 495879221c * gems/bundled_gems: Update rake-11.3.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 08:52:31 +00:00
svn 5039300faa * 2016-09-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 07:52:26 +00:00
nobu 68aa1d81cf gc.c: rb_gc_adjust_memory_usage
* gc.c (rb_gc_adjust_memory_usage): notify memory usage to the GC
  engine by extension libraries, to trigger GC.  [Feature #12690]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-20 07:52:25 +00:00
nobu c9dd5918f4 bundled_gems: minitest certificate expired
* gems/bundled_gems: certificate of minitest-5.9.0 has expired.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-19 08:21:16 +00:00
nobu 772fd010b6 deprecate Fixnum and Bignum
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
  Fixnum and Bignum.  this may be reverted after previews.
  [Feature #12739]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-19 08:05:26 +00:00
svn abe087e50f * 2016-09-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-19 01:36:57 +00:00
nobu 856afbef61 enumerator.c: lazy enum improvement
* enumerator.c (lazy_init_yielder): directly call stored functions.
  [Feature #6183]
* enumerator.c (lazy_add_method): create lazy enumerator which
  uses lazy_init_yielder().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-19 01:36:56 +00:00
kou 671e1d890a * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
[Bug #12773][ruby-dev:49813]
  Reported by Kazuhiro NISHIYAMA. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-18 13:51:57 +00:00
kazu 2c2a111ecf * lib/sync.rb: Fix NameError when error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-18 10:24:48 +00:00
nobu b9e96915ba common.mk: use EXTOUT to benchmark [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-18 05:23:12 +00:00
svn 26a1ebf073 * 2016-09-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-18 05:21:06 +00:00
nobu f9b36a3958 mkmf.rb: fix for bundled gems
* lib/mkmf.rb (install_dirs): enable extout in RUBYARCHDIR only
  when extmk.

* lib/mkmf.rb (create_makefile): ditto for TIMESTAMP_DIR.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-18 05:21:05 +00:00
hsbt a333b8e64e * vm_insnhelper.c (vm_throw_start): Remove too much ";"
[fix GH-1432]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-17 13:46:07 +00:00
rhe 014da9124a openssl: really fix test failure on Ubuntu 16.04
* test/openssl/test_ssl.rb (test_ctx_options): Fix test failure on
  Ubuntu 16.04. The fix in r56147 was incomplete. This is a cherry-pick
  of the commit b039f3e268c2 at ruby/openssl.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-17 10:19:25 +00:00
nobu cf6ca2d8b2 objspace_dump.c: dc is no longer used [ci skip]
* ext/objspace/objspace_dump.c (heap_i): remove no longer used
  variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-17 09:22:26 +00:00
kazu 151536d44d * doc/extension.ja.rdoc: translate r56130 (rb_check_arity). [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-17 01:51:22 +00:00
svn 5b0134aa99 * 2016-09-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 17:44:46 +00:00
tenderlove 45e8ccde00 Use JSON lines format for full heap dumps.
This commit changes full heap dumps back to using JSON lines format
(http://jsonlines.org) so that we can process very large heaps without
loading the entire heap in to memory at once.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 17:44:45 +00:00
ngoto 54fa33ea49 * ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): Fix compile error
with old version of fcc (Fujitsu C Compiler) on Solaris 10.
  [Bug #12769] [ruby-dev:49809]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 13:11:28 +00:00
ngoto 16391af2e2 * internal.h (MAYBE_UNUSED): The fallback definition is needed.
Fix compile error with some non-GCC compilers such as
  Oracle Solaris Studio 12.3 on Solaris 10.
  [Bug #12767] [ruby-dev:49807]

* internal.h (WARN_UNUSED_RESULT): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 12:29:42 +00:00
ngoto c1dbcf9b7e * hash.c (each_pair_i_fast): Fix compile error with old version of
fcc on Solaris 10. [Bug #12768] [ruby-dev:49808]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 12:20:35 +00:00
usa a334693422 * win32/Makefile.sub (config.h): fixed compile error with VC introduced
by previous commit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 10:47:54 +00:00
shyouhei 2fc5210f31 * internal.h (WARN_UNUSED_RESULT): moved to configure.in, to
actually check its availability rather to check GCC's version.

	* configure.in (WARN_UNUSED_RESULT): moved to here.

	* configure.in (RUBY_FUNC_ATTRIBUTE): change function declaration
	  to return int rather than void, because it makes no sense for a
	  warn_unused_result attributed function to return void.

	  Funny thing however is that it also makes no sense for noreturn
	  attributed function to return int.  So there is a fundamental
	  conflict between them.  While I tested this, I confirmed both
	  GCC 6 and Clang 3.8 prefers int over void to correctly detect
	  necessary attributes under this setup.  Maybe subject to change
	  in future.

	* internal.h (UNINITIALIZED_VAR): renamed to MAYBE_UNUSED, then
	  moved to configure.in for the same reason we move
	  WARN_UNUSED_RESULT.

	* configure.in (MAYBE_UNUSED): moved to here.

	* internal.h (__has_attribute): deleted, because it has no use now.

	* string.c (rb_str_enumerate_lines): refactor macro rename.

	* string.c (rb_str_enumerate_bytes): ditto.

	* string.c (rb_str_enumerate_chars): ditto.

	* string.c (rb_str_enumerate_codepoints): ditto.

	* thread.c (do_select): ditto.

	* vm_backtrace.c (rb_debug_inspector_open): ditto.

	* vsnprintf.c (BSD_vfprintf): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 06:15:55 +00:00
shyouhei 921c477646 * ChangeLog (add-log-time-format): Not exactly sure when but
recently (25.x maybe), emacs changed its API to take optional
	  two arguments.  We have to follow that.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-16 06:15:00 +00:00