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

3296 Коммитов

Автор SHA1 Сообщение Дата
eban 4fb0b08ffd * configure.in (target_os): strip -gnu suffix on Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-12 02:17:24 +00:00
matz 21606c6ec5 * array.c: remove #indexes, #indices.
* hash.c: ditto.

* ext/dbm/dbm.c: remove #indexes, #indices, "values_at" warning
  from #select.

* ext/gdbm/gdbm.c: ditto.

* ext/sdbm/init.c: ditto.

* ext/dbm/dbm.c (Init_dbm): set VERSION constant as "unknown" when
  DB_VERSION_STRING is not available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-11 13:33:47 +00:00
matz c04dffe049 * ext/sdbm/init.c (fsdbm_store): sdbm should use StringValue().
[ruby-talk:103062]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-10 13:39:52 +00:00
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 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
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
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 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
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
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
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
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
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 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
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 a6a8847190 * numeric.c (flo_eq): alway check if operands are NaN.
[ruby-list:39685]

* lib/cgi/session.rb: use LOCK_SH to read, and a few other
  improvements.  [ruby-core:02328]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 04:34:14 +00:00
dave cc7c48ff6a At Ryan Davis' suggestion, honor visibility modifers if guarded by a statement modifier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:36:43 +00:00
nobu 41e4c5de36 * lib/mkmf.rb (have_type): do not check pointer to incomplete type,
which always get compiled.
  [ruby-list:39683]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:22:20 +00:00
nobu d3ba99c15f * test/ruby/envutil.rb (EnvUtil::rubybin): give priority to
environment variable.  [ruby-dev:23538]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 14:45:49 +00:00
nobu 9272ca4d2b revert mis-edited entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 09:48:10 +00:00
nobu c504ca6776 * test/inlinetest.rb (InlineTest::loadtest): requiring library with
replaced $0 can make $0 == __FILE__ block be evaluated twice.
  [ruby-dev:23538]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 09:00:48 +00:00
nagai 3011f45158 * ext/tk/lib/tk.rb: change permition of TkObject#tk_send from private to public
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 02:10:02 +00:00
aamine 36d86893c4 * lib/net/http.rb: support TRACE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 17:29:55 +00:00
aamine b3e53ed154 * lib/net/http.rb: do not use class variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 17:23:22 +00:00
nahi 34a553da2e * lib/csv.rb: writes lines with "\n" when row separator is not given.
formerly it was "\r\n".

        * lib/csv.rb: [CAUTION] API change

          * CSV::Row removed.  a row is represented as just an Array.  since
            CSV::Row was a subclass of Array, it won't hurt almost all programs
            except one which depended CSV::Row#match.

          * CSV::Cell removed.  a cell is represented as just a String or
            nil(NULL).  this change will cause widespread destruction.

              CSV.open("foo.csv", "r") do |row|
                row.each do |cell|
                  if cell.is_null       # Cell#is_null
                    p "(NULL)"
                  else
                    p cell.data         # Cell#data
                  end
                end
              end

            must be just;

              CSV.open("foo.csv", "r") do |row|
                row.each do |cell|
                  if cell.nil?
                    p "(NULL)"
                  else
                    p cell
                  end
                end
              end

        * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior
          change.  CSV.open, CSV.parse, and CSV,generate now do not force
          opened file binmode.  formerly it set binmode explicitly.

          with CSV.open, binmode of opened file depends the given mode
          parameter "r", "w", "rb", and "wb".  CSV.parse and CSV.generate open
          file with "r" and "w".

          setting mode properly is user's responsibility now.

        * lib/csv.rb: accepts String as a fs (field separator/column separator)
          and rs (record separator/row separator)

        * lib/csv.rb: added CSV.foreach(path, rs = nil, &block).  CSV.foreach
          now does not handle "| cmd" as a path different from IO.foreach.
          needed?

        * test/csv/test_csv.rb: updated.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 12:34:33 +00:00
why 62289f1367 * lib/yaml.rb: added rdoc to beginning of lib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 05:17:46 +00:00
nobu 06ec039005 * node.h (NEW_DSTR): adjust list length.
* parse.y (literal_concat): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 05:00:58 +00:00
matz e0e8ee0ac8 * eval.c (rb_method_node): search cache entry first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 00:32:30 +00:00
ocean 22ee7f04fe Add ruby-dev number to ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17 07:27:04 +00:00
matz 6eaba4acec * ext/socket/socket.c (setup_domain_and_type): honor duck typing.
[ruby-dev:23522]

* ext/socket/socket.c (sock_s_getnameinfo): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17 07:18:29 +00:00
ocean a655b0d8e1 * numeric.c (flo_to_s): p 0.0 should be '0.0' not '0.0e+00'.
* numeric.c (flo_to_s): the number of significand is correctly handled,
  there is assumption that DBL_DIG == 15 though.
  (p 0.00000000000000000001 was '9.999999999999999e-21', now is
  '1.0e-20')


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17 07:14:45 +00:00
why 620549da3f * lib/yaml/baseemitter.rb (indent_text): was forcing a mod value
of zero at times, which kept some blocks from getting indentation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:29:30 +00:00
gsinclair ac1d9e7c2d * lib/drb/drb.rb: Cosmetic documentation changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:09:52 +00:00