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

4991 Коммитов

Автор SHA1 Сообщение Дата
akira f2b75020ba * lib/uri/generic.rb (URI::Generic::merge,
URI::Generic::route_from): accepts non-hierarchical URI.
  [ruby-dev:23631]

* test/uri/test_generic.rb (TestGeneric::test_route,
  TestGeneric::test_merge): added tests for above changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 07:15:56 +00:00
knu d918f9f34f * configure.in: Add support for DragonFly BSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 06:41:08 +00:00
knu 505d19848e * config.guess, config.sub: Update to a more recent version as of
2004-01-20.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 06:10:59 +00:00
usa b1469c134c * win32/win32.c: remove unused functions and variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 03:47:08 +00:00
usa 768c36c93a 2004-06-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 02:21:45 +00:00
usa 595ed9f7fd * win32/win32.c: remove unused functions and variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 02:21:21 +00:00
matz 4b33ed994b * string.c (str_new4): should share shared instance if it already
exists.  [ruby-dev:23665]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-05 02:33:01 +00:00
eban dfb79bf51e 2004-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-04 12:56:21 +00:00
matz 4f127ee34b * io.c (rb_io_gets_m): set lastline ($_) even when read line is
nil.  [ruby-dev:23663]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-04 09:56:25 +00:00
eban 14fa51aa0b 2004-05-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-28 02:55:14 +00:00
nobu e3308c5272 * eval.c (rb_eval): bad influence on frame node.
* eval.c (eval): reverted wrongly removed condition.  [ruby-dev:23638]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-28 02:20:34 +00:00
akr d8cf22793b * lib/pathname.rb (Pathname#initialize): fix pathname initialization
by pathname.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 12:41:10 +00:00
ocean 94e5d6ba19 * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 11:22:30 +00:00
matz 979de48915 * lib/pstore.rb (transaction): allow overriding dump and load.
[ruby-dev:23567]

* lib/yaml/store.rb: follow lib/pstore.rb's change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 07:43:38 +00:00
shugo 87fb7bb66d * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.
Thanks, Rutger Nijlunsing.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 06:56:23 +00:00
eban b629932863 * io.c (rb_io_fwrite): should check if errnro == ENOENT, too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 06:17:05 +00:00
eban ec6cb67d03 * io.c (rb_io_fwrite): workaround for bcc32's fwrite bug.
add errno checking.  [ruby-dev:23627]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 05:58:32 +00:00
nahi decac03616 2004-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 03:00:32 +00:00
nahi 015e218d6c * test/csv/test_csv.rb: illegal require module name (../lib/csv.rb).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 02:26:15 +00:00
gotoyuzo 61949eefde * add test for OpenSSL::SSL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 18:14:27 +00:00
gotoyuzo fde5c3ff92 * ext/openssl/ossl_ssl.c (ossl_ssl_read): take optional second argument
to specify a string to be written.

* ext/openssl/lib/openssl/buffering.rb (OpenSSL::Buffering#read):
  take optional second argument to specify a string to be written.

* ext/openssl/lib/openssl/buffering.rb (OpenSSL::Buffering#gets):
  refine regexp for end-of-line.

* ext/opnessl/lib/openssl/ssl.rb
  (OpenSSL::SSL::SocketForwarder#listen): fix typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 18:11:29 +00:00
nahi 6dee0fab9b * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and
IO.readlines in CSV format.

        * lib/csv.rb (CSV.parse): [CAUTION] behavior changed.  in the past,
          CSV.parse accepts a filename to be read-opened (it was just a
          shortcut of CSV.open(filename, 'r')).  now CSV.parse accepts a
          string or a stream to be parsed e.g.
          CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']]

        * test/csv/test_csv.rb: follow above changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 14:30:30 +00:00
nobu 74ab20eb37 * eval.c (rb_eval, eval): make line number consistent on eval with
Proc.  [ruby-talk:101253]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:19:50 +00:00
eban 00fe662f6f 2004-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:12:32 +00:00
dave 129313378f Allow "do" after "for". Fix up css for standalone code window
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:02:55 +00:00
nobu 13ebee7a9e * io.c (rb_io_init_copy): copy also positions. [ruby-talk:100910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 04:15:02 +00:00
nobu b216b65ce9 fix ML reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 04:01:55 +00:00
why ca1dca02b0 * ext/syck/syck.c (syck_new_parser): clear parser on init.
thanks, ts. [ruby-core:02931]

* ext/syck/token.c (sycklex_yaml_utf8): buffer underflow.
  thanks, ts. [ruby-core:02929]

* lib/yaml/baseemitter.rb (indent_text): simpler flow block code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-25 14:57:25 +00:00
nobu 82572952ec * eval.c (rb_yield_0, proc_invoke, proc_arity): allow passing a block
to a Proc.  [ruby-dev:23533]

* parse.y (block_par, block_var): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-25 02:54:22 +00:00
eban 1efe963c7a 2004-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-25 01:39:57 +00:00
gotoyuzo 5059c5a53b * test/openssl/test_x509name.rb: short names of some OIDs (serialNumber
and emailAddress) are mismatched between OpenSSL 0.9.6 and 0.9.7.

* test/openssl/test_x509store.rb: get rid of unused flag.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 16:57:44 +00:00
gotoyuzo 3216cb5839 * ext/openssl/ossl_asn1.c (ossl_i2d_ASN1_TYPE, ossl_ASN1_TYPE_free):
workaround for the versions earlier than OpenSSL-0.9.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 16:50:59 +00:00
akr 614537d5fa test Kernel.open accepts pathname object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 11:56:50 +00:00
eban 61397f6b13 2004-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 08:39:57 +00:00
nagai 0427ff4736 * ext/tcltklib/extconf.rb: add --enable-tcl-thread configure option and
--with-tclConfig-file=<path of tclConfig.sh> configure option


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 08:33:45 +00:00
dave c951f2f28e SYSTEM identifiers must be absolute
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 01:48:37 +00:00
eban 8897b01d40 2004-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-23 08:16:55 +00:00
ttate c863d62b6f Merged Nakada-san's patch [ruby-core:02916].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-23 08:11:36 +00:00
eban b04bb4fb26 2004-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 07:42:27 +00:00
nagai 961d66abc2 * ext/tk/sample/remote-ip_sample2.rb: modify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 05:22:09 +00:00
nobu edf9c3da4b * MANIFEST: add test/openssl/test_x509store.rb.
* ext/tk/MANIFEST: add recent files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 02:54:16 +00:00
nagai c93c500910 * add a new sample 'ext/tk/sample/remote-ikp_sample2.rb'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 02:23:59 +00:00
nagai 56761e29f6 * ext/tk/lib/tk.rb: add Tk.appsend_deny and improve Tk.rb_appsend
* ext/tk/lib/tk.rb, ext/tk/lib/tk/*.rb : replace obj.send() -> obj.__send__()
* ext/tk/lib/remote-tk.rb: add a new library which create an object to
                           control a Tk interpreter on the other process


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 20:45:27 +00:00
gotoyuzo 11784c2c4b * test_x509crl.rb (test_basic): add test for CRL issuer.
* test_x509store.rb: test for OpenSSL::X509::Store
* utils.rb (issue_crl): should set issuer's subject.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 18:25:25 +00:00
eban 495ff23436 MANIFEST: removed trailing white spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 12:38:31 +00:00
dave 13e0f77bf4 Add '()' around parameters that don't have them
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 00:23:34 +00:00
nahi 406f506d59 * lib/csv.rb: fixed a few bugs around multi char record/field separator.
* test/csv/test_csv.rb: added boundary test for above feature.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 17:24:04 +00:00
nobu fc04396ea3 * lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]
* lib/mkmf.rb (create_header): macro name should not include equal
  sign.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 08:02:11 +00:00
akr 2ef79516bc * ext/socket/socket.c: check SCM_RIGHTS macro addition to
the msg_control field to test existence of file descriptor passing
  by msg_control.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 06:04:39 +00:00
matz 09053e137f * ext/socket/socket.c (make_hostent_internal): remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 04:38:53 +00:00