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

25451 Коммитов

Автор SHA1 Сообщение Дата
nobu b8729f117c * io.c (set_binary_mode_with_seek_cur): reorder function qualifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 07:13:24 +00:00
nobu d573446841 * configure.in (__builtin_unreachable): check for clang.
[ruby-core:42849]
* include/ruby/ruby.h (UNREACHABLE): fallback definition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 06:49:09 +00:00
tenderlove 0d1c8fd9d6 * ext/psych/parser.c: prevent a memory leak by protecting calls to
handler callbacks.
* test/psych/test_parser.rb: test to demonstrate leak.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 04:55:33 +00:00
ayumin 0e896b99bf pull request #55 as same as #98
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 03:15:10 +00:00
ayumin e0f4a550e5 * lib/net/http.rb: Fix documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 03:10:25 +00:00
ayumin 7e76ab5e5e * string.c (rb_str_prepend): Fix documentation for String#prepend.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 02:56:30 +00:00
drbrain 7a1180c745 * lib/net/http.rb (Net::HTTP#transport_request): Fix infinite loop
upon EOFError or Errno::ECONNRESET where count is reset to 0.
* test/net/http/test_http.rb (class TestNetHTTPKeepAlive):  Test for
  above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 01:10:07 +00:00
drbrain af9398ab38 * complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
Daubert.  [Feature #5623]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 00:10:53 +00:00
nobu 45c6daeed7 * parse.y (parser_tokadd_string, parser_yylex): insert a backslash
if the next character is non-ascii.  [ruby-dev:45278] [Bug #6069]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:52:12 +00:00
drbrain 455c23fa01 Clean whitespace
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:35:21 +00:00
drbrain b52b1f6a7d Fix timestamps in ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:16:21 +00:00
drbrain 480ea9ffae * lib/profiler.rb: Add Profiler documentation by Gonzalo Rodriguez.
[Bug #5816]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:15:44 +00:00
tenderlove 774cf315e8 * ext/psych/parser.c: set parser encoding based on the YAML input
rather than user configuration.
* test/psych/test_encoding.rb: corresponding tests.
* test/psych/test_parser.rb: ditto
* test/psych/test_tainted.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:12:57 +00:00
drbrain 0e0286404f * hash.c (Init_Hash): Add section on how objects are used as Hash keys
and how to use custom classes as Hash keys.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:03:39 +00:00
drbrain 6d6b4569fc * object.c (rb_obj_eql): Improve equality documentation by adding an
example of equal? vs == and recommending eql? be aliased to == when
  overridden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 22:36:40 +00:00
drbrain 9802ce8bd2 * object.c (rb_obj_hash): Added note that the hash value is not
deterministic on Marc-Andre's suggestion.  Expanded description of
  the purpose of the hash method.  [Bug #6068]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 22:23:58 +00:00
svn f51ad04324 * 2012-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 15:22:10 +00:00
akr 427035c0bb add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 15:22:06 +00:00
akr cd390b1ec5 * ext/dbm/extconf.rb: unused macro removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 14:02:01 +00:00
akr e5cf1dcf7b * test/test_curses.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 13:27:29 +00:00
akr a49fc9beb6 * ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 10:59:00 +00:00
akr 57e95f86be * signal.c (sig_trap): show signal name on error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 10:57:55 +00:00
akr 845b21064c update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 10:52:51 +00:00
akr fd2e0e3dac * ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header of
Berkeley DB.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 03:23:40 +00:00
drbrain 0585853c69 * io.c (rb_io_f_sync): Fix double-negative typo. [ruby-trunk - #5837]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 02:00:39 +00:00
drbrain 8a5b4ad115 * load.c (rb_f_require): Add note to require for scope of items in the
loaded file.  [ruby-trunk - #5910]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 01:58:01 +00:00
drbrain 5afb4b7b29 Ignore mkmf.log generated by extensions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 01:16:21 +00:00
marcandre dfb1a71222 * lib/ostruct.rb (delete_field): Bug fix so previous value is returned.
Patch by Nick Recobra [Bug #6063]

* test/ostruct/test_ostruct.rb: Test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 18:59:03 +00:00
svn 9c8d348d49 * 2012-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 17:33:14 +00:00
nobu 4341c58c39 * io.c (rb_io_extract_modeenc): fail only if conflicting
text/binary modes given explicitly.  [ruby-dev:45268][Bug #6055]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 17:33:10 +00:00
nobu f56c6318de * test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #6061]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 14:27:11 +00:00
akr 01433e4d53 * ext/curses/curses.c: use defined() to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:46:44 +00:00
akr 7c80d15165 * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:45:04 +00:00
akr c01d52e8d9 * ext/curses/extconf.rb: try to distinguish curses_version is a
function or variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 11:44:26 +00:00
akr fa65fc9aeb * ext/curses/extconf.rb: show the chosen header and library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:48:59 +00:00
tadf 8cd604c6c7 * reverted 34739 for test/date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:23:23 +00:00
akr 9fc31792ce * ext/curses/extconf.rb: refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:09:31 +00:00
sorah 1a6b0bab94 * lib/test/unit.rb (setup_options): add option "--retry" as opposite
for "--no-retry"

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 09:47:28 +00:00
sorah c0ec3efcae * lib/test/unit.rb (setup_options): add option "--show-skip" to
cancel "--hide-skip" (-q)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 09:47:24 +00:00
nobu b67bc8d722 * test/date, test/rdoc: exclude tests dependent on unbundled libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 09:34:59 +00:00
naruse 9e4ddb8f18 Revert "* common.mk (test-all): shut up nonsense skipping messages."
This reverts commit r34734.
Use -q on your environment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 09:06:40 +00:00
nobu 31d8a97657 * io.c (rb_io_s_foreach): argument check before making Enumerator.
[ruby-dev:31525]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 08:36:25 +00:00
nobu 873b56fd50 * io.c (rb_io_s_foreach): return enumerator including kerword
arguments.  [ruby-dev:45267][Bug #6054]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 08:07:38 +00:00
nobu e093cfae7a * common.mk (test-all): shut up nonsense skipping messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 06:47:09 +00:00
nobu 0c8811595a * ChangeLog: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 06:39:57 +00:00
kazu 86716b9768 remove unbalanced parenthesis
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 03:50:02 +00:00
naruse a23f06358e * configure.in: allow llvm-gcc because it work fine with r34278.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 03:22:08 +00:00
naruse b790678398 * regparse.c (fetch_token): don't use // comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 02:03:56 +00:00
nobu 8e799c3e5b * test/mkmf/test_framework.rb: try CoreFoundation framework, than
Cocoa which is dependent on QuickTime SDK which has separated
  since Xcode 4.3.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 01:32:14 +00:00
nobu 1aa4e11d16 * common.mk (test-all, test-ruby): more dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 01:18:09 +00:00