1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

21 commits

Author SHA1 Message Date
knu
dd0eebd62a * 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/branches/ruby_1_8@16047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 17:10:38 +00:00
jeg2
7fd101e86f Merged 14070 from trunk.
* lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so
  pressing control-c in the controlling terminal or sending SIGTERM stops
  the XML-RPC server.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-01 16:14:17 +00:00
jeg2
ae8bb3a00c Merged 13767, 13768, 13769, and 13770 from trunk.
* lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
  caused time zone conversion to fail for some ISO 8601 date formats.
  [ruby-Bugs-12677]

* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
  the HTTP connection to support keepalive requests. [ruby-Bugs-9353]

* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
  message for Content-Type check failures. [ruby-core:12163]

* lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
  Making Content-Type checks case insensitive. [ruby-Bugs-3367]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 23:04:42 +00:00
knu
073898fdaf * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
Content-Length parameter optional for responses in
  xmlrpc/client.rb; suggested by Daniel Berger
  <Daniel.Berger@qwest.com> and approved by the maintainer.

* lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
  support to xmlrpc; approved by the maintainer.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-23 03:45:55 +00:00
matz
2d50ae8fb1 * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): merge Date
and Time processing.  [ruby-core:08033]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 23:43:43 +00:00
gotoyuzo
94e5e30529 * lib/xmlrpc/server.rb (XMLRPC::Server#initialize): should mount the
servlet on "/".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-04 19:46:35 +00:00
gotoyuzo
a32094a896 * lib/xmlrpc/server.rb (XMLRPC::Server#serve): delete wrong call
of "join".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-04 19:09:56 +00:00
matz
5f7cd25ffd * 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.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:51:02 +00:00
mneumann
0bc99f869c * lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over to
WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is
		no further used by the XML-RPC library).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 20:31:48 +00:00
mneumann
686c038347 * lib/xmlrpc/*, test/xmlrpc/*: backported changes from HEAD into 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 20:27:43 +00:00
matz
3d4376d167 * array.c (rb_ary_s_create): no need for negative argc check.
[ruby-core:04463]

* array.c (rb_ary_unshift_m): ditto.

* lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass
  of StandardError class, not Exception class.  [ruby-core:04429]

* lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE.
  fixed: [ruby-core:04444]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-23 13:52:19 +00:00
(no author)
970ce679ff This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-17 14:49:07 +00:00
gotoyuzo
747ca59f52 * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_range_header):
fix regex for range-spec.

* lib/webrick/httpservlet/filehandler.rb
  (WEBrick::HTTPServlet::DefaultFileHandler#make_partial_content):
  multipart/byteranges response was broken.

* lib/webrick/httpservlet/erbhandler.rb
  (WEBrick::HTTPServlet::ERBHandler#do_GET): should select media type
  by suffix of script filename.

* lib/xmlrpc/server.rb: refine example code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-13 04:24:16 +00:00
gsinclair
36e4f2fcf1 * lib/xmlrpc/README.txt: introduced for documentation purposes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 14:48:44 +00:00
matz
849bc0234a * eval.c (top_include): include in the wrapped load is done for
the wrapper, not for a singleton class for wrapped main.
  [ruby-dev:23305]

* bignum.c (rb_big_eq): use temporary double variable to save the
  result (internal float register may be bigger than 64 bits, for
  example, 80 bits on x86).  [ruby-dev:23311]

* eval.c (block_pass): should generate unique identifier of the
  pushing block.  [ruby-talk:96363]

* ext/socket/socket.c (make_hostent): fix memory leak, based on
  the patch from HORIKAWA Hisashi <vzw00011@nifty.ne.jp>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05 07:45:32 +00:00
mneumann
c88ad2a387 class XMLRPC::Client:
* added attr_accessor :http_header_extra that can be used to add extra lines in
  HTTP header.

* added attr_accessor :cookie - shortcut for setting/getting cookies

* added attr_accressor :http_last_response that holds the last HTTP response.
  Usefull when needed to extract information from HTTP header (e.g. cookies,
  keep alive...)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-17 21:30:31 +00:00
mneumann
4c5094d65d fixed CDATA parsing for XMLScanParser and REXMLStreamParser
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-11 13:08:16 +00:00
matz
8ef5da3be1 consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-16 17:47:19 +00:00
mneumann
777681bda1 applied patch by OHARA Shigeki:
* use Apache::Request#headers_in instead of obsolete #headers methods
  * XMLRPC::ModRubyServer::new is no longer a singleton method


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 11:22:16 +00:00
matz
f3d25fdd9c * gc.c (id2ref): recycle check should be done by klass == 0.
[ruby-core:01408]

* eval.c (Init_Thread): Continuation#[] added.  [ruby-talk:79028]

* parse.y (mlhs_node): should allow "::Foo" (colon3) as lhs.

* parse.y (lhs): ditto.

* parse.y (yylex): should return tCOLON3 right after kCLASS.
  [ruby-talk:78918]

* error.c (exc_initialize): was converting argument to string too
  eagerly.  Only check was needed. [ruby-talk:78958]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 17:20:14 +00:00
matz
d675dbc279 * lib/xmlrpc: import.
* eval.c (thgroup_add): should return group for terminated thread
  case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-19 10:05:54 +00:00