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

2860 Коммитов

Автор SHA1 Сообщение Дата
nobu 847d01a7c3 * parse.y (block_append, new_evstr, void_expr0): remove no longer used
labels.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-02 13:06:35 +00:00
eban f57217cc52 * dln.c (dln_load): don't specify RTLD_GLOBAL on Interix,
because it caused SEGV when running runner.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-02 10:01:57 +00:00
akr d837280dc8 * lib/pp.rb (Struct#pretty_print): make it 1.8 style.
(Numeric#pretty_print, FalseClass#pretty_print)
  (TrueClass#pretty_print, Module#pretty_print): fix pp for objects
  with instance variables.  [ruby-talk:91157]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 16:57:47 +00:00
akr 678e4ea5b4 * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopback
address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 15:31:59 +00:00
akr c9c51009cf * lib/resolv-replace.rb (BasicSocket#send): don't replace because
it has no hostname argument.
  (IPSocket.getaddress): raise SocketError instead of
  Resolv::ResolvError for errors.
  (TCPSocket#initialize, UDPSocket#bind, UDPSocket#connect)
  (SOCKSSocket#initialize): use IPSocket.getaddress instead of
  Resolv.getaddress.
  (UDPSocket#send): recognize 3 arguments form.  try all addresses on
  4 arguments form.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 15:21:24 +00:00
shigek 0967d72815 Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n) reported and fixed by Javier Goizueta.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 14:01:23 +00:00
akr 4d1dafdd95 * lib/open-uri.rb (OpenURI::Buffer#<<): make a tempfile binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 20:33:33 +00:00
akr 192eb734bf lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
raise an errror on non-http proxy URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 18:11:55 +00:00
kou 976226b5de * lib/rss/parser.rb (RSS::Parser): added @@default_parser. Used
XML parser became selectable.
* test/rss/test_parser.rb: added tests for RSS::Parser.default_parser.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 16:10:53 +00:00
eban 35d62eb6a5 * configure.in (RPATHFLAG): set to -Wl,-R like NetBSD on Interix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-30 17:39:04 +00:00
nahi 06a45a663c * lib/logger.rb: leading 0 padding of timestamp usec part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-30 16:10:36 +00:00
eban b685848c66 * util.c (mblen): fix overrun. [ruby-dev:22672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 14:56:26 +00:00
eban 181a3a2af5 * configure.in (DLEXT2): removed. Ruby does not treat
".dll" as a extention library anymore.

* bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub (DLEXT2):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 14:18:42 +00:00
dave ef98285928 Remove conflict from Changelog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:44:48 +00:00
dave 6dbf1140a4 Allow link: in Tidylinks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:44:04 +00:00
nahi d52c3b1e94 * sample/openssl/gen_csr.rb: follow OpenSSL::X509::Name change.
ASN.1 type of subject DN elements were wrong.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:30:05 +00:00
nahi 04b5228aba * test/*: remove $: trick. [ruby-dev:22763] use test/runner.rb to
run test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:22:27 +00:00
matz 0ae750341e * dir.c (glob_helper): infinite loop bug in win32 code.
[ruby-dev:22770]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 11:59:55 +00:00
aamine 784360a978 * lib/net/http.rb (Request#initialize): reject only when a path is empty. [ruby-dev:22771]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 10:28:39 +00:00
matz 7a987b9bcd * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
[ruby-dev:22761]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 08:05:29 +00:00
nahi a84fc19203 * test/rss/test_*: do $: trick while searching a module in the current
directory.

        * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
          test/soap/helloworld/test_helloworld.rb,
          test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
          before using __FILE__.

        * test/yaml/test_yaml.rb: assert_equals -> assert_equal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 02:54:21 +00:00
why 877408163a * ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]
* lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306]

* test/yaml/test_yaml.rb: add Time and Range tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28 16:59:00 +00:00
kou 46f6b20268 * lib/rss: rss/parser.rb is always required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28 15:19:56 +00:00
nobu 202bf6618f * test/rss/*.rb: remove "test/" prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28 06:09:27 +00:00
nobu 0dfc492dd2 * ext/iconv/extconf.rb: include iconv.h for libiconv. [ruby-dev:22715]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28 04:07:06 +00:00
matz 8640f16308 * lib/rss: rss library imported. [ruby-dev:22726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-28 03:46:13 +00:00
matz 51e6d9061d * misc/ruby-mode.el: better support for general delimited
strings.  [ruby-dev:22695]

* lib/weakref.rb (WeakRef::initialize): set up @__id before
  calling "super".

* lib/delegate.rb (Delegator::initialize): preserve
  singleton_method_added method [ruby-dev:22685]

* lib/delegate.rb (Delegator::initialize): use Kernel::raise
  instead of mere raise.  [ruby-dev:22681]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-27 06:05:04 +00:00
nobu 8df4564367 * ext/socket/socket.c (s_recvfrom): sending length should be an
invariant while retrying on EAGAIN.  [ruby-talk:89962]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-27 02:09:34 +00:00
usa 879da80895 * ext/win32ole/win32ole.c (set_argv): fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-27 01:35:53 +00:00
gotoyuzo d82950f400 * lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header):
refine regex for header-name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-26 17:31:53 +00:00
dave 9b077b3490 Remove references to defout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-26 13:54:41 +00:00
nagai d7bbf4fdd2 * ext/tcltklib/tcltklib.c: define CONST84 when TCL_MAJOR_VERSION == 7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-26 03:49:21 +00:00
nobu 6e0b3ca606 * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.
(ruby-bugs:PR#1256)

* ext/win32ole/win32ole.c (set_argv): set real arguments to
  WIN32OLE::ARGV.  [ruby-list:39073]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-26 02:35:30 +00:00
gotoyuzo 3d045223db * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): third
argument become optional.

* ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.

* ext/openssl/ossl_x509name.c (Init_x509name): emailAddress and
  domainComponent should be IA5String.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-25 09:40:26 +00:00
gotoyuzo 327182cada * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): support
virtual host.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host): add
  new method to register virtual hosting server.

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server): add
  new method to lookup virtual hosting server.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-24 16:48:52 +00:00
gotoyuzo 5e24c11a28 * ext/openssl/ossl_x509hame.c (ossl_x509name_initialize): change
second argument. it expected to be a Hash not an Integer.

* ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): add new
  function for OpenSSL::X509::Name#add_entry.

* ext/openssl/ossl_x509name.c (Init_ossl_x509name): add constants
  OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE and OBJECT_TYPE_TEMPLATE.

* ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name#initialize):
  second argument takes OBJECT_TYPE_TEMPLATE by default.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-24 04:24:06 +00:00
matz 7df46a4493 * pack.c (num2i32): pack should not raise RangeError.
[ruby-dev:22654]

* pack.c (pack_pack): do not auto convert nil to zero.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-22 18:06:38 +00:00
shugo edddc36970 * lib/net/imap.rb (BEG_REGEXP): allow 8-bit characters in quoted strings for Novell GroupWise Internet Agent.
* lib/net/imap.rb (DATA_REGEXP): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-22 14:01:15 +00:00
eban e06502f3a4 * lib/e2mmap.rb (VERSION): remove unnecessary version checking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-22 09:37:24 +00:00
matz 225cd9f109 * parse.y (opt_rescue): use NODE_ERRINFO() instead of
NODE_GVAR("$!"), to avoid confusion from variable aliasing.
  [ruby-talk:90074]

* version.c (Init_version): remove obsolete constants VERSION
  etc.  [ruby-dev:22643]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-22 08:31:33 +00:00
nobu 48b24fe536 * parse.y (string_content): reset lexical states at the beginning of
string contents.  [ruby-list:39061]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-22 07:21:40 +00:00
matz 002517aba8 * parse.y (newline_node): do not use NODE_NEWLINE node anymore,
use NEWLINE flag instead.

* ext/socket/socket.c (sock_gethostbyname): returns host if
  ai_canonname is NULL. (ruby-bugs PR#1243)

* parse.y (block_append): update nd_end for "real" head node.
  [ruby-list:39058]

* marshal.c (w_class): should not dump singleton class.
  [ruby-dev:22631]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 16:47:23 +00:00
siena d0149b9e21 * missing/os2.c (chdir, getcwd):
use _chdir2 and _getcwd2 supporting multiple drives in OS/2 with EMX.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 16:23:07 +00:00
siena 357d0ffc29 * configure.in: check availability of link(). [ruby-dev:22237]
* file.c (rb_file_s_link): raise an exception when link() is unavailable.
* missing/os2.c (link): removed. File#link isn't supported.
* bcc32/Makefile.sub: define HAVE_LINK to enable link(). [ruby-dev:22241]
* win32/Makefile.sub: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 16:09:40 +00:00
siena 6ccba894a5 * ChangeLog: typo: RUBY_MBCHAR_MAX was RUBY_MBCHAR_MAXSIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 15:30:22 +00:00
siena fc69b2a7f6 * defines.h: define RUBY_MBCHAR_MAX instead of MB_CUR_MAX.
* dir.c (Next, emx_mblen): use RUBY_MBCHAR_MAX for mblen().
* file.c (CharNext): ditto.
* ruby.c (translate_char): ditto.
* util.c (__crt0_glob_function): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 15:26:11 +00:00
dave cb3cf6cfea :nodoc: the "Deprecated" module
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 15:11:02 +00:00
eban 72592e35ae * configure.in: Interix(SFU) support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 14:53:31 +00:00
seki 27e4c2fc27 remove O_NONBLOCK
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 14:06:21 +00:00
shugo a2f60e923e * lib/net/imap.rb (envelope): allow NIL.
* lib/net/imap.rb (body): ditto.
* lib/net/imap.rb (number): ditto.
* lib/net/imap.rb (ensure_nz_number): show a detailed error
message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-21 09:01:23 +00:00