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

54 Коммитов

Автор SHA1 Сообщение Дата
nobu 8d66627161 leakchecker.rb: remove temporary measure
* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#watcher):
  make watcher thread restartable.

* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#terminate):
  new method to terminate watcher thread.

* test/lib/leakchecker.rb (LeakChecker#find_threads): revert
  r46941.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-05 06:09:17 +00:00
kou 3d8e4d6037 * lib/xmlrpc/client.rb: Support SSL options in async methods of
XMLRPC::Client.
  [Bug #11489]
  Reported by Aleksandar Kostadinov. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-26 09:33:43 +00:00
naruse 3e92b635fb Add frozen_string_literal: false for all files
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
nobu ae042f21fb use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-06-02 02:18:44 +00:00
akr 5ab3fe5fb5 * test/xmlrpc: Refine log test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 09:36:33 +00:00
akr b30ff6839d * test/xmlrpc: Use assert_join_threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 09:07:41 +00:00
akr a4b5982b4c * test/xmlrpc: Test webrick error log is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-09 05:06:44 +00:00
akr 60cb6f6eaa Close sockets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 14:28:44 +00:00
hsbt aab2cd2100 * test/xmlrpc/test_client.rb: append assetion use_ssl variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-28 06:57:29 +00:00
hsbt 93156392dd * test/socket/test_addrinfo.rb: remove unused variables.
* test/socket/test_nonblock.rb: ditto.
* test/socket/test_socket.rb: ditto.
* test/socket/test_unix.rb: ditto.
* test/testunit/test_parallel.rb: ditto.
* test/webrick/test_filehandler.rb: ditto.
* test/xmlrpc/test_features.rb: ditto.
* test/zlib/test_zlib.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-18 12:05:09 +00:00
akr 7a3f2845df * test/xmlrpc: Don't use fixed ports: 8070 and 8071.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-04 13:21:53 +00:00
akr 445b04d18d * test/xmlrpc/webrick_testing.rb (start_server): Initialize the server
at main thread to fail early.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-04 06:27:54 +00:00
akr ddf1d3aaed * test/xmlrpc: Wrap definitions by TestXMLRPC module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-03 11:41:53 +00:00
akr 438a91c072 * test/xmlrpc/webrick_testing.rb (stop_server): Don't try to shutdown
the server if the server is not started.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-03 11:26:58 +00:00
nobu 42a086502b test_client.rb: load openssl
* test/xmlrpc/test_client.rb: try loading openssl to fix autoloading
  constant.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-20 21:48:03 +00:00
kou 16d5c80678 * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Support
multiple names in a response. [ruby-core:41711] [Bug #5774]
  Reported by Roman Riha. Thanks!!!
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_override):
  Add a test of the above case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-13 13:46:54 +00:00
kou 3acd222fa5 * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_simple):
  Add a test for the extracted method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 15:08:59 +00:00
kou 83c02765e1 * test/xmlrpc/test_client.rb (XMLRPC::ClientTest::Fake::HTTP#started):
Add a missing empty line.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 14:57:05 +00:00
naruse a0046fe949 Use different port from test/xmlrpc/test_cookie.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-13 06:16:14 +00:00
nobu 77b1d88513 skip OpenSSL dependent tests if not available
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 13:48:41 +00:00
nagachika 0c8ae91651 * lib/xmlrpc/client.rb (module XMLRPC): fix typo.
* test/xmlrpc/test_client.rb (test_async_call): add test for
  XMLRPC::Client#call_async to check above fix.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-07 13:45:04 +00:00
tenderlove ce2f69862e * lib/xmlrpc/parser.rb: support i8 types. Thanks Stas Kelvich!
[ruby-core:29246] [Feature #3090]

* test/xmlrpc/test_client.rb: supporting test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 23:30:03 +00:00
tenderlove 9e9264c8d5 * lib/xmlrpc/client.rb: assume servers that do not send a Content-Type
header are sending 'text/xml'. Thanks Nathan Leavitt!
  [ruby-core:41204] [Bug #5660]

* test/xmlrpc/test_client.rb: supporting test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 22:45:43 +00:00
tenderlove 1ac1163f56 * test/xmlrpc/test_client.rb: adding a test for performing an XMLRPC
call.
* test/xmlrpc/data/blog.xml: supporting XML document for the response.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 22:40:38 +00:00
tenderlove 1836f44fe9 * lib/xmlrpc/client.rb (new2): use URI for uri parsing.
* test/xmlrpc/test_client.rb: test that query params are passed to the
  client constructor.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-02 23:46:17 +00:00
tenderlove cd85cd25b4 * lib/xmlrpc/client.rb (new2): raises an ArgumentError on bad
arguments.
* test/xmlrpc/test_client.rb: tests for bad uris

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-02 23:21:17 +00:00
tenderlove 60282ebfe5 * lib/xmlrpc/client.rb (new2): fix custom port specification when an
SSL uri is used.
* test/xmlrpc/test_client.rb: tests for XMLRPC::Client.new2

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-02 23:12:32 +00:00
shugo c3a750ebee * lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use
String#bytesize instead of String#size.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-05 04:35:28 +00:00
nahi c8c02c9cc3 Cosmetic change of Hash literal.
'BindAddress: var' => ':BindAddress => var' according to other configurations.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 15:38:44 +00:00
shyouhei deb0024af1 * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
Like r32795, bind address should be specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 00:22:08 +00:00
shyouhei 3237f7dc9a * test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server):
XMLRPC::Client.new3(), when called without host: argument, tries
  to  connect to  a host  where "localhost"  resolves to.   On the
  other  hand  a  WEBrick::HTTPServer.new(), when  called  without
  BindAddress:  argument, tries  to listen  all the  address where
  getaddrinfo(AF_UNSPEC) resolves to.   This is a mismatch because
  "localhost" might not resolve to one of those listening sockets.
  We  would  better explicitly  specify  "localhost"  here and  if
  failed, just skip the whole test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 06:22:05 +00:00
nahi f23ad92a95 * forgot to add a test fixture file in r32666.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-25 13:23:45 +00:00
nahi 2fff0f4f71 * lib/xmlrpc/client.rb: Fix possible HTTP header formatting failure by
'Basic' header. Long username caused the base64 String truncation in
  HTTP header which is not allowed. See #5046.

* test/xmlrpc/test_webrick_server.rb: test it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-25 13:21:49 +00:00
shyouhei c0f09a8a35 * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect
* test/xmlrpc/parser.rb: test for the above

Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-26 06:44:48 +00:00
naruse c853e2d86e * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.

* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
  XML-RPC doesn't allow Infinity and NaN.
  http://www.xmlrpc.com/spec

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-22 02:50:45 +00:00
nobu c84e529219 * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
catch IOError when server socket was closed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:40 +00:00
akr 48d402db88 use require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-02 13:58:56 +00:00
akr 37679ee584 supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 23:12:50 +00:00
nobu 287a34ae0d * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
nobu 00b4a3f9c4 * test: assert_raises has been deprecated since a long time ago.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 17:44:39 +00:00
kou 17ea268764 * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]
* test/xmlrpc/test_cookie.rb: add a test for the above fix.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 14:10:18 +00:00
akr ba3bb2895f * test/xmlrpc/webrick_testing.rb: join webrick server thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 14:51:48 +00:00
ko1 a8d47615da * test/fileutils/test_fileutils.rb (check_singleton): fix to use
symbole instead of string.
* test/io/nonblock/test_flush.rb: enable tests.
* test/xmlrpc/test_webrick_server.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 16:53:00 +00:00
ko1 a3e1b1ce7e * Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
matz 22f1926644 * range.c (rb_range_beg_len): should return Qfalse for non-range
object.

* pack.c (EXTEND16): [ruby-dev:27383]

* eval.c (set_trace_func): add rb_secure(4) to prevent adding
  tracing function.

* lib/delegate.rb: document update from James Edward Gray II
  <james@grayproductions.net>.  [ruby-core:05942]

* process.c (proc_daemon): should restrict execution on levels
  higher than $SAFE=2.  suggested by URABE Shyouhei
  <shyouhei@ice.uec.ac.jp>.

* lib/forwardable.rb: replaced by new implementation from
  <Daniel.Berger@qwest.com>.  [ruby-core:05899]

* file.c (path_check_0): disallow sticky world writable directory
  in PATH (and $LOAD_PATH).  [ruby-dev:27226]

* numeric.c (fix_idiv): 1.div(1.0) should return integer value.
  [ruby-dev:27235]

* lib/yaml.rb: require 'yaml/constants'.  [ruby-core:5776]

* lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset
  information to content-type header.[ruby-core:5127]

* lib/xmlrpc/server.rb (CGIServer::serve): ditto.

* lib/xmlrpc/server.rb (ModRubyServer::serve): ditto.

* lib/xmlrpc/server.rb (WEBrickServlet::service): ditto.

* test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove
  test_s_open_error test to detect duplicate open.
  [ruby-dev:27202]

* eval.c (splat_value): use to_a to splat non Array object.

* object.c (nil_to_a): remove nil.to_a.  [experimental]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-05 16:15:16 +00:00
ocean 34b3f481dc * test/xmlrpc/test_webrick_server.rb (setup_http_server):
should not include 'webrick/https' unless 'use_ssl' because
  it fails where openssl is not installed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 20:51:36 +00:00
mneumann e537aaba91 * lib/xmlrpc/client.rb: use "" instead of "." if prefix argument is
nil in proxy methods. nil is default value.

* test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb:
  use threads instead of forking. this should fix issue #1208
  (http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1208&group_id=426).
  removed testing of SSL enabled servlet as this hangs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-21 16:23:33 +00:00
mneumann 4c10b035ef * test/xmlrpc/test_parser.rb, test/xmlrpc/data/*.expected: Expected
values are now stored in YAML instead of using #inspect. This fixes
  false hash order.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-02 15:22:23 +00:00
eban 86761931c8 * test/xmlrpc/test_webrick_server.rb : move `requrie "webrick/https"'
into #setup_http_server mohtod to avoid soap test errors.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-19 16:48:05 +00:00
mneumann eabc1fc658 * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assinging to constants" warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 11:51:08 +00:00