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

38211 Коммитов

Автор SHA1 Сообщение Дата
hsbt 471f5a7af0 * test/ruby/test_io.rb: added timeout for AIX environment.
[ruby-core:62983][Bug #9917]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-05 05:58:03 +00:00
nobu 39ad417562 ostruct.rb: table
* lib/ostruct.rb (OpenStruct#table): revert for JSON.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-05 05:27:31 +00:00
svn 32636e8ef1 * 2015-01-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-05 01:57:39 +00:00
nobu 10ce99866f ostruct.rb: append suffixes to protected methods
* lib/ostruct.rb (modifiable?, new_ostruct_member!, table!):
  append suffixes to protected methods so that they will not clash
  with assigned members.  [Fix GH-806]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-05 01:57:26 +00:00
kazu 530f543e46 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 14:53:00 +00:00
nobu 1b7efc132a test/unit.rb: ExcludesOption
* test/lib/test/unit.rb (ExcludesOption): add "excludes" support
  to test suite, for alternative implementations and platforms.
  [Feature #10682]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 13:33:35 +00:00
nobu 54bfb33366 test/unit.rb: reorder Test::Unit
* test/lib/test/unit.rb (Test::Unit): reorder modules and merge
  each modules.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 13:32:44 +00:00
nobu 42bb2c712e test/unit.rb: split Test::Unit
* test/lib/test/unit.rb (Test::Unit): split the large class into
  each modules.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 13:32:11 +00:00
nobu 3977fd332f parse.y: fix f_label result
* parse.y (f_label): return tLABEL value as it is.
  [ruby-core:67315] [Bug #10693]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 12:32:54 +00:00
nobu b9c630f999 parallel.rb: expand path
* test/lib/test/unit/parallel.rb (run): expand the file name to be
  loaded, so that relative paths work in parallel mode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 05:02:40 +00:00
ayumin dd2d43d9bd * test/test_tempfile.rb: use assert_file for more descriptive message.
following r49131.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 04:41:04 +00:00
ayumin e717341ea6 * string.c: improve docs for String#<=>. [ruby-core:65399][Feature #10322]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 04:10:31 +00:00
ayumin b600ceb898 * array.c: improve docs for Array#reject. [ruby-core:65324][misc #10307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 03:45:24 +00:00
ayumin 6abaf76463 * string.c: improve docs for String#strip and variations. [ruby-core:66081][Bug #10476]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 03:37:10 +00:00
nobu cf0006ea2b testcase.rb: call super
* test/lib/test/unit/testcase.rb (method_added): hook methods
  should call super.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 02:15:03 +00:00
nobu 49243b9944 unit.rb: no insult method
* test/lib/minitest/unit.rb (i_suck_and_my_tests_are_order_dependent!):
  remove.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 02:04:31 +00:00
nobu 8a57298c09 unit.rb: no UNDEFINED
* test/lib/minitest/unit.rb (UNDEFINED): remove.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 02:04:26 +00:00
nobu 8d7f655261 test_tempfile.rb: assert_file
* test/test_tempfile.rb (test_default_basename): use assert_file
  for more descriptive message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 01:58:49 +00:00
hsbt 837d30371b * lib/drb/drb.rb: removed unused argument. Patch by @vipulnsward
[fix GH-515]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 00:21:08 +00:00
hsbt 05c108cdba * lib/tempfile.rb: provide default basename parameter.
[fix GH-523] Patch by @dissolved
* test/test_tempfile.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 00:18:38 +00:00
ayumin b85a4eea55 * README.ja.md: add guidance of mailing list and bugs.r-l.o.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 15:46:05 +00:00
svn 7e8795e393 * 2015-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 15:00:43 +00:00
ayumin 45ecc02716 * hash.c: fix docs for Hash#invert. [ruby-core:66917] [Bug #10612]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 15:00:31 +00:00
ayumin 1711e80cf1 Revert r49118 [Feature #10652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 11:36:35 +00:00
nobu e396ba84fb intern.h: rb_str_new_literal
* include/ruby/intern.h (rb_str_new_literal): define on all
  platforms, not only gcc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 10:52:14 +00:00
kazu 7a6934f3a8 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 10:28:07 +00:00
nobu 544651a2fb cparser.rb: limit word number
* ext/fiddle/lib/fiddle/cparser.rb (parse_ctype): limit split word
  number as the rest are not used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 09:53:30 +00:00
nobu 91bcb09262 ChangeLog: typo
* ChangeLog: fix a probable typo, s/brake/broke/.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 09:49:19 +00:00
hsbt 1ba6e8868c * ext/fiddle/lib/fiddle/cparser.rb: r49110 brake Fiddle::Import with
type_alias
* test/fiddle/test_cparser.rb: added type_alias test for parse_ctype
  and parse_struct_signature.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 09:23:43 +00:00
ayumin 68f7424bde * lib/net/http.rb (proxy_user): retrieve proxy user from http_proxy.
* lib/net/http.rb (proxy_pass): retrieve proxy password from http_proxy.
  Patch by Rafael dos Santos Silva. [fix GH-763]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 07:21:56 +00:00
akr ce80a49f38 Refine help message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 02:52:01 +00:00
hsbt f0577b7563 * ext/openssl/ossl.h: avoid to build failure of Windows environment.
* ext/openssl/ossl_ssl_session.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 02:50:31 +00:00
svn e9ebaaa15d * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 02:28:05 +00:00
hsbt 574422733d * array.c: Improve performance of Array#shift. use shared instead of
MEMMOVE if with arguments. Patch by @ksss [fix GH-537]
* test/ruby/test_array.rb: ditto.
* benchmark/bm_array_shift.rb: Added benchmark of GH-537 issue.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 02:27:50 +00:00
hsbt a84bfcbf00 * lib/net/http.rb: More descriptive error message when net/http fails
to connect to a server. Patch by @xaviershay [fix GH-700]
* test/net/http/test_http.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 01:38:59 +00:00
hsbt 2758be26bb * ext/openssl/ossl.h: Make `SSL_SESSION_cmp` use `CRYPTO_memcmp`
[fix GH-591] Patch by @PiPeep
* ext/openssl/ossl_ssl_session.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 01:14:56 +00:00
svn f661c0be44 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 00:54:40 +00:00
hsbt 3afd0f9a91 * ext/fiddle/lib/fiddle/cparser.rb: Support for Fiddle::CParser
to handle rich signatures including parameter names and function
  pointer types. Patch by @theryan [fix GH-590]
* test/fiddle/test_cparser.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 00:54:37 +00:00
hsbt 4690241f01 * NEWS: added compatibility entry of r49101.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-03 00:01:49 +00:00
svn 69b64e00d2 * 2015-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 19:03:29 +00:00
nobu 8d0d7da44e tracepointchecker.rb: for older TracePoint
* test/lib/tracepointchecker.rb (TracePointChecker): needs recent
  version of TracePoint, so that older versions can run to compare
  the resuls.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 19:03:23 +00:00
nobu 4ef6097f9a leakchecker.rb: for older IO.console
* test/lib/leakchecker.rb (check_fd_leak): do not call older
  version IO.console to get rid of ArgumentError, so that older
  versions can run to compare the resuls.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 19:03:17 +00:00
hsbt 2743ad8c25 * lib/net/http.rb (Net::HTTP#send_request): there is no response body
with HEAD request. Patch by @rodrigosaito [fix GH-520]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 12:07:04 +00:00
hsbt 57ee6eae5a * test/net/http/test_http.rb (_test_send_request__HEAD): Added
failing test for send_request with HEAD method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 12:04:53 +00:00
akr d4959439ab * eval.c (ruby_init): Print ruby_setup() error only in debug mode.
Unsupressable error message is not a good idea.
  Note that the message is printed sometimes with following
  code (highly timing dependent, though):
  pid = spawn("ruby -e ''"); Process.kill(:TERM, pid)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 09:49:56 +00:00
hsbt c7d6c0d084 * test/ruby/test_module.rb: Refactor invalid testcase.
[fix GH-472][ruby-core:59035][Bug #9240]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 07:21:36 +00:00
hsbt 73fc0cc572 * lib/webrick/utils.rb: removed unused argument variable.
[fix GH-356] Patch by @vipulnsward
* lib/webrick/server.rb: ditto.
* lib/webrick/ssl.rb: ditto.
* test/webrick/test_utils.rb: added test for WEBrick::Utils#create_listeners.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 06:53:12 +00:00
hsbt 045de8a9c5 * lib/securerandom.rb: improve syntax and grammar of documentation.
[fix GH-796][ci skip] Patch by @Erol

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 06:36:00 +00:00
hsbt dc599c2cb8 * test/openssl/test_ssl_session.rb (OpenSSL#test_ctx_client_session_cb):
fix test failure with OpenSSL disabled SSLv3 protocol.
  [ruby-core:63772] [Bug #10046]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 06:10:07 +00:00
nobu f5da412c9e test_yield.rb: assert_all_sentences
* test/ruby/test_yield.rb (assert_all_sentences): test all
  sentences and report all results at the end.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-02 03:40:10 +00:00