Commit graph

5108 commits

Author SHA1 Message Date
eban
7c5ea71b12 2004-06-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-10 13:48:46 +00:00
matz
238f78f0b1 * ext/sdbm/init.c (fsdbm_store): sdbm should use StringValue().
[ruby-talk:103062]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-10 13:39:52 +00:00
akira
fa1261e093 * 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/branches/ruby_1_8@6440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 09:05:41 +00:00
knu
4d3805905a 2004-06-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 08:42:06 +00:00
knu
1fddfcfb48 * config.guess, config.sub: Update to a more recent version as of
2004-01-20.

* configure.in: Add support for DragonFly BSD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 08:40:55 +00:00
eban
1d664c874f 2004-06-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-06 08:53:56 +00:00
matz
0ed9758454 * 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/branches/ruby_1_8@6430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-06 08:43:56 +00:00
matz
44e45bf1dc * 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/branches/ruby_1_8@6429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-05 02:33:01 +00:00
eban
fcb315d1a2 2004-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-04 12:56:21 +00:00
matz
79c7044582 * 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/branches/ruby_1_8@6427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-04 09:56:25 +00:00
nahi
1c9d6dd646 * lib/logger.rb: leading 0 padding of timestamp usec part.
* 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']]

        * lib/csv.rb: CSV::Row and CSV::Cell are deprecated.  these classes
          are removed in the future.  in the new csv.rb, 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.
          and 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       # using Cell#is_null
                    p "(NULL)"
                  else
                    p cell.data         # using 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 (CSV.read, CSV.readlines): added.  works as IO.read and
          IO.readlines in CSV format.

        * 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.

        * test/ruby/test_float.rb: added test_strtod to test Float("0").


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 14:39:11 +00:00
akr
2546a366ed * lib/pathname.rb (Pathname#initialize): fix pathname initialization
by pathname.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 12:41:10 +00:00
ocean
8b33b47ea0 * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 11:22:30 +00:00
matz
f4c7c5dc07 * marshal.c (w_class): should not dump singleton class.
[ruby-dev:22631]

* marshal.c (class2path): check anonymous class/module before
  checking referable, and allow singleton classes.

* marshal.c (class2path): get class path and check referable.
  [ruby-dev:22588]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 07:50:04 +00:00
eban
588394468c 2004-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 06:34:19 +00:00
eban
9f847daa15 * 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/branches/ruby_1_8@6417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27 06:34:11 +00:00
nobu
40289c4de0 * 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/branches/ruby_1_8@6409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:19:50 +00:00
eban
1a49a20140 2004-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:12:32 +00:00
dave
ea63eef678 Allow "do" after "for". Fix up css for standalone code window
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:02:55 +00:00
nobu
ad4d4e3edd * io.c (rb_io_init_copy): copy also positions. [ruby-talk:100910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 04:15:02 +00:00
why
439975d896 * 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.

* lib/yaml.rb: added rdoc to beginning of lib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-25 15:04:16 +00:00
akr
adc10cab51 test Kernel.open accepts pathname object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 11:56:50 +00:00
eban
21e891efe1 2004-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 08:39:57 +00:00
nagai
f6c36d95d1 * 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/branches/ruby_1_8@6396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 08:33:45 +00:00
dave
b6a561ccc0 SYSTEM identifiers must be absolute
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24 01:48:37 +00:00
eban
1a4bbd32af 2004-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 07:42:27 +00:00
nagai
5650420326 * ext/tk/sample/remote-ip_sample2.rb: modify
* ext/tk/MANIFEST: add entries


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 05:23:22 +00:00
nobu
f627c746d8 * MANIFEST: add new encodings in rexml.
* ext/tk/MANIFEST: add recent files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 03:00:11 +00:00
nagai
dee9a86a2f * add a new sample 'ext/tk/sample/remote-ikp_sample2.rb'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 02:24:00 +00:00
(no author)
76a47d4295 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@6386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 02:24:00 +00:00
nagai
5fa54c9a83 * add a new sample 'ext/tk/sample/remote-ikp_sample2.rb'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-22 02:23:59 +00:00
nagai
ea710f0dca * 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/branches/ruby_1_8@6384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 20:45:27 +00:00
gotoyuzo
dfdffdd9a3 * 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/branches/ruby_1_8@6383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 18:25:26 +00:00
(no author)
048163f622 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@6382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 18:25:26 +00:00
gotoyuzo
f9eebc635c * 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/branches/ruby_1_8@6381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 18:25:25 +00:00
eban
cfc7ea514c 2004-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 06:07:08 +00:00
dave
69feb8d1a5 Add '()' around parameters that don't have them
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 00:23:34 +00:00
nobu
2027b84927 * 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/branches/ruby_1_8@6376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 08:02:11 +00:00
ocean
a6d288e158 * ext/socket/socket.c: fix SEGV. [ruby-dev:23550]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 07:01:19 +00:00
akr
baf9c47b3f * 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/branches/ruby_1_8@6374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 06:04:39 +00:00
matz
4c36359dea * 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/branches/ruby_1_8@6371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 04:28:36 +00:00
eban
4e8eeeb244 2004-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:38:11 +00:00
dave
ee94f995f9 At Ryan Davis' suggestion, honor visibility modifers if guarded by a statement modifier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:36:43 +00:00
nobu
60d8e03c33 * 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/branches/ruby_1_8@6368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:22:20 +00:00
gotoyuzo
72042f956f * rescue LoadError. [ruby-dev:23539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 18:30:52 +00:00
eban
d0e37ac8c9 2004-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 05:26:51 +00:00
nagai
6de0a354e8 * 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/branches/ruby_1_8@6362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-19 02:10:02 +00:00
nobu
cb8a0a8e4b * node.h (NEW_DSTR): adjust list length.
* parse.y (literal_concat): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 05:00:58 +00:00
eban
64a1b5c352 2004-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 04:09:42 +00:00
gotoyuzo
198c304b9e * test for OpenSSL::X509
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 04:02:24 +00:00