Commit graph

7022 commits

Author SHA1 Message Date
eban
4b735fb95c * 2005-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 18:00:24 +00:00
matz
52f59d78f2 * file.c (fpath_check): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 17:51:20 +00:00
matz
cca26c2226 * file.c (path_check_0): disallow sticky world writable directory
in PATH (and $LOAD_PATH).  [ruby-dev:27226]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 17:44:57 +00:00
nahi
db824a34dd * test/wsdl/simpletype/rpc/test_rpc.rb, test/wsdl/ref/test_ref.rb,
test/wsdl/any/test_any.rb test/soap/wsdlDriver/test_calc.rb:
          suppress deliberate warnings with $VERBOSE = nil.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 13:32:40 +00:00
nobu
8d0316c5ab * ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
is not available.  fixed: [ruby-dev:27187]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 12:26:58 +00:00
akr
b160528bbb * eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 09:26:35 +00:00
matz
561e7b798a * lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 09:22:02 +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
ocean
a5eca5dd04 * test/webrick/test_cgi.rb: set ENV["PATH"] to CGIEnvPath on
windows. bcc32's runtime is not installed into system directory,
  so it cannot be found without this setting. [ruby-dev:27166]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:35:52 +00:00
matz
d13023d257 * test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove
test_s_open_error test to detect duplicate open.
  [ruby-dev:27202]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:14:57 +00:00
ocean
d07e0ae442 * io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead.
[ruby-dev:27185]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 08:14:56 +00:00
matz
10a898d70a * test/readline/test_readline.rb (TestReadline::replace_stdio):
BSD seek support from [ruby-dev:25223].  fixed: [ruby-dev:27150]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 07:55:15 +00:00
why
b36eba6e87 * ext/syck/emitter.c (syck_scan_scalar): prevent indicators from
appearing alone or at the end of plain scalars. [ruby-core:5826]

* ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes
  as complex keys.

* lib/syck.h: version 0.60.

* lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during
  key searches.

* ext/syck/rubyext.c: loading of binary-typed nodes.  prevent
  emission of plain strings that look like symbols, but which aren't.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 06:46:45 +00:00
ocean
56a97f11d0 * 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/branches/ruby_1_8@9240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 20:51:36 +00:00
eban
face1d284f * 2005-09-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 15:52:09 +00:00
matz
4a92946ee2 * io.c (io_close): call rb_io_close() directly if io is a T_FILE
object.  [ruby-dev:27156]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 15:43:49 +00:00
aamine
5101be8a51 * file.c (rb_file_chown): should accept nil. [ruby-dev:27171] (backport from trunk, rev 1.208)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 10:09:53 +00:00
matz
658788f7b7 * ext/dl/dl.c (rb_io_to_ptr): fix DragonFlyBSD support.
[ruby-dev:27151]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 09:38:40 +00:00
aamine
fddfc0be02 * ext/syck/emitter.c (syck_emit): passing an int* value to the long* parameter causes unaligned access on LP64 systems. [ruby-dev:27161]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 05:17:49 +00:00
suke
f8c300e063 avoid core dump with WIN32OLE_EVENT. [ruby-dev:27133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 04:46:51 +00:00
aamine
524ad518b6 * lib/fileutils.rb (cp_r): default is :dereference_root=>true for backward compatibility. [ruby-dev:27145]
* test/fileutils/test_fileutils.rb (test_cp_r): test it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 01:37:28 +00:00
aamine
610c690769 * test/fileutils/test_fileutils.rb: backported from trunk (1.36). (again) [ruby-dev:27145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-19 00:58:07 +00:00
gotoyuzo
9098be4970 * ext/openssl/ossl_pkey.h, ossl_pkey_rsa.c, ossl_pkey_dsa.c:
an instance variable "private" is added to OpenSSL::PKey class.
  this ivar is a flag that shows whether there is a private key
  in the instance.

* ext/openssl/ossl_engine.c: (ossl_engine_load_privkey): set private
  key flag.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 22:56:11 +00:00
aamine
b6c5814f2c * lib/fileutils.rb: backported from trunk (rev 1.65):
* lib/fileutils.rb (rm_r): new option :secure.
* lib/fileutils.rb (rm_rf): new option :secure.
* lib/fileutils.rb: new method #remove_entry_secure.
* lib/fileutils.rb (cd): remove option :noop.
* lib/fileutils.rb (cp_r): new option :dereference_root.
* lib/fileutils.rb (cp_r): new option :dereference_root.
* lib/fileutils.rb: new method #remove_entry.
* lib/fileutils.rb: new method #chmod_R.
* lib/fileutils.rb: new method #chown.
* lib/fileutils.rb: new method #chown_R.
* lib/fileutils.rb: new method .commands.
* lib/fileutils.rb: new method .options.
* lib/fileutils.rb: new method .have_option?.
* lib/fileutils.rb: new method .options_of.
* lib/fileutils.rb: new method .collect_method.
* lib/fileutils.rb: use module_function instead of single extend.
* test/fileutils/test_fileutils.rb: backported from trunk (1.36).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 21:41:57 +00:00
eban
8621cdd900 * 2005-09-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 18:31:33 +00:00
akr
5b2eef31aa * file.c (rb_thread_flock): wrap the flock system call by
TRAP_BEG/TRAP_END to enable signals.  [ruby-dev:27122]

* ext/socket/socket.c (bsock_send): wrap the sendto and send system
  call by TRAP_BEG/TRAP_END to enable signals when writing to a socket
  which is full.  [ruby-dev:27132]

* io.c (rb_io_syswrite): wrap the write system call by
  TRAP_BEG/TRAP_END to enable signals when writing to a pipe which is
  full.  [ruby-dev:27134]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 18:22:44 +00:00
akr
94636e83dc * io.c (io_fwrite): wrap the write system call by TRAP_BEG/TRAP_END to
enable signals when writing to a pipe which is full.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-18 18:06:51 +00:00
why
06c4c45f7f * lib/yaml/rubytypes.rb: remove comments that are bungling up
the rdoc and ri output.  output symbols as plain scalars.

* ext/syck/rubyext.c (syck_emitter_reset): emit headless
  documents always.

* ext/syck/emitter.c (syck_scan_scalar): quote scalars with any
  kind of surrounding line space, tabs or spaces alike.

* ext/syck/token.c: accept tabs as whitespace, not for indentation,
  but strip from plain scalars.

* test/yaml/test_yaml.rb: remove outdated tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 17:17:07 +00:00
eban
82cba4762a * 2005-09-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 16:10:06 +00:00
matz
07fc7586b7 * lib/mathn.rb (Rational::inspect): should preserve original
operand.  [ruby-core:05806]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 16:00:23 +00:00
matz
cc24eb8518 * lib/cgi.rb (CGI::Cookie): should handle multiple values for a
cookie name.  [ruby-talk:156140]

* string.c (rb_str_substr): should propagate taintness even for
  empty strings.  [ruby-dev:27121]

* string.c (rb_str_aref): should infect result if range argument
  is tainted.  [ruby-dev:27121]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 14:55:06 +00:00
eban
6fca2beac7 * 2005-09-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 08:50:53 +00:00
nagai
4ea05aa254 * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
should call Kernel.eval on caller's safe-level instead of slave's
  safe-level (Of course, the given script should be evaluated on
  slave's safe-level).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-17 01:44:28 +00:00
kou
dcaeabb076 * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed
strange RSS::Maker::Item#max_size behavior.
  Thanks to Kazuhiko <kazuhiko@fdiary.net>.

* test/rss/test_maker_1.0.rb (RSS::TestMaker10#test_items): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 23:40:34 +00:00
akr
ab28565b7e add a empty line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 16:30:31 +00:00
suke
b1d1b1b1d3 fix bug in ext/win32ole/sample/ienavi.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 14:14:56 +00:00
nobu
6291abe61e * file.c (file_inspect_join): commit miss, applied a patch for old trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:50:18 +00:00
nobu
4b66a13082 * file.c (file_inspect_join): missing argument declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:43:41 +00:00
nobu
a2bb19fa9f * file.c (rb_file_s_extname): empty string for path name ending with a
period.  fixed: [ruby-core:05651]

* file.c (rb_file_join): smarter behavior at edge cases.
  fixed: [ruby-core:05706]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 13:42:17 +00:00
matz
86310f3e89 * ext/syck/node.c (syck_replace_str): was using return from the
void function.  a patch from MIYAMUKO Katsuyuki
  <miyamuko@mtb.biglobe.ne.jp>.  [ruby-dev:27111]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 09:37:45 +00:00
matz
7e6bf2fb43 * ext/bigdecimal/bigdecimal.c: patch from "NATORI Shin"
(u-tokyo.ac.jp) applied to fix rounding bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 07:22:49 +00:00
nagai
36dc7c8751 * ext/tk/lib/multi-tk.rb: fix typo on MultiTkIp#bg_eval_string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 05:50:56 +00:00
matz
7061186c04 * ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
comment (//).  [ruby-core:05793]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-16 03:04:59 +00:00
nahi
f3707886d6 * test/logger/test_logger.rb: unintentionally overwritten changes by
Usa.  reverted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:17:53 +00:00
eban
92ff76fa8d * 2005-09-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:09:12 +00:00
nahi
d6fe514239 forgot to update some files in the previous soap4r-1.5.5 import.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:07:34 +00:00
gotoyuzo
215f8ac79e * lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set
$stdout.binmode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 15:07:05 +00:00
nahi
533c24268e * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.
#nnn is a ticket number at http://dev.ctor.org/soap4r

          * SOAP

            * allow to configure an envelope namespace of SOAP request. (#124)
                TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
                @client.options["soap.envelope.requestnamespace"] =
                  TemporaryNamespace
                @client.options["soap.envelope.responsenamespace"] =
                  TemporaryNamespace
                @client.do_proc(...)

            * let SOAP request XML indent space configuable.  see
              "soap.envelope.no_indent" option. (#130)

            * let external CES configuable.
              ex. client["soap.mapping.external_ces"] = 'SJIS'.  $KCODE is used
              by default. (#133)
                external CES ::= CES used in Ruby object of client and server
                internal CES ::= CES used in SOAP/OM

            * add iso-8859-1 external CES support. (#106)

            * fixed illegal 'qualified' handling of elements.  it caused
              ASP.NET inteoperability problem. (#144)

            * added 'soap.envelope.use_numeric_character_reference' (boolean)
              option to let query XML use numeric character reference in XML,
              not plain UTF-8 character.  !GoogleSearch server seems to not
              allow plain UTF-8 character since 2005-08-15 update. (#147)

            * SOAP::Header::SimpleHeader (de)serialization throws an exception
              on !SimpleHeader.on_(in|out)bound when header is a String.  so we
              could not use a simple single element headerItem.  fixed.  thanks
              to emil. (#129)

            * out parameter of rpc operation did not work.  (#132)

            * follow HTTP redirect only if using http-access2.  (#125) (#145)

            * add a workaround for importing an WSDL whose path begins with
              drive letter.  (#115)

          * WSDL

            * SOAP Data which is defined as a simpletype was not mapped
              correctly to Ruby obj when using wsdl2ruby.rb generated classdef
              file. (#123)

            * rpc/literal support. (#118)

            * re-implemented local element qualify/unqualify control.  handles
              elementFormDefault and form in WSDL.  (#119)

            * Array of an element which has simpleType causes a crash. (#128)

            * prarmeterOrder may not contain return part so it can be shorter
              than parts size.  Thanks to Hugh.  (#139)

          * Samples

            * added !BasicAuth client sample. (#117)

            * added Base64 client/server sample.

            * added Flickr SOAP interface client sample. (#122)

            * added !SalesForce client sample. (#135)

            * updated Thawte CA certificate for !GoogleAdWords sample.

            * updated a client script with the newer version made by Johan.
              thanks!

            * shortened long file names. (#120)

            * fixed typo in authheader sample. (#129)

            * updated deprecated method usage.  (#138)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 14:47:07 +00:00
(no author)
caf6ad3a76 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@9170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 14:47:07 +00:00
ocean
b8bc87839d * win32/win32.h (rb_w32_stat): added prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 14:06:48 +00:00