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
75db654808
* lib/yaml.rb: added rdoc to beginning of lib.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 06:10:45 +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
eban
3375c0bf6a
2004-05-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-18 01:41:25 +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
gotoyuzo
bd0cd7f92b
* test for OpenSSL::X509
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17 20:23:28 +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
eban
0cc83a9c3b
parse.y: typo fix(tWORD_BEG -> tWORDS_BEG).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-17 07:25:36 +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
nagai
14b693c1b3
* add a new sample script
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 21:43:37 +00:00
ser
ad68e20351
Cross-ported fix for REXML bug #14 , StreamParser and doctype events.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 19:18:58 +00:00
ser
0d04057aad
------------------------------------------------------------------------
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 18:42:58 +00:00
ser
fcc9c6eab3
------------------------------------------------------------------------
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 17:35:51 +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
eban
246b33d108
2004-05-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:23:12 +00:00
ser
36c32728b2
Forgot to update the manifest with the new files :-/
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:20:47 +00:00
ser
ac4bee6fc3
Added support for CP-1252 and ISO-8859-15 encodings for non-iconv systems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:19:22 +00:00
ser
8fd29e2019
------------------------------------------------------------------------
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:17:31 +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
akr
eeb5c7e18e
* ext/dbm/dbm.c (fdbm_initialize): accept optional 3rd argument to
...
specify an open flag.
(Init_dbm): define open flags: DBM::READER, DBM::WRITER, DBM::WRCREAT
and DBM::NEWDB.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 12:03:23 +00:00
ocean
a694dea2d8
* test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 08:54:23 +00:00
eban
18e3d54e92
* ext/syck/depend: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 05:29:30 +00:00
eban
bbfad2ba7c
* ext/syck/depend: add ruby's headers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 05:22:54 +00:00
nobu
79133371e8
* ext/syck/MANIFEST, ext/syck/depend: new file.
...
* lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824]
* test/yaml/test_yaml.rb: tests for strings start with colon and some
round trip.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 04:38:39 +00:00
eban
36de1f6acb
2004-05-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 03:31:55 +00:00
why
c474911e5b
* lib/yaml.rb: removed fallback to pure Ruby parser.
...
* lib/yaml/baseemitter.rb (node_text): rewriting folded scalars.
* ext/syck/syck.h: reports style of scalars now, be they plain, block
single-, or double-quoted.
* ext/syck/syck.c: ditto.
* ext/syck/gram.c: ditto.
* ext/syck/node.c: ditto.
* ext/syck/token.c: ditto.
* ext/syck/rubyext.c (yaml_org_handler): symbols loaded only
if scalar style is plain.
* test/yaml/test_yaml.rb (test_perl_regexp): updated test to
match new regexp serialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-15 03:11:28 +00:00
matz
094290e68f
* eval.c (eval): forgot to restore $SAFE value before evaluating
...
compiled node. [ruby-core:02872]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 16:45:40 +00:00
matz
6a60393280
* range.c (range_each_func): terminates loop if generating value
...
is same to @end. [ruby-talk:100269]
* string.c (rb_str_new4): should not reuse frozen shared string if
the original is not an instance of String. [ruby-talk:100193]
* time.c (time_mdump): preserve GMT bit in the marshal data.
[ruby-talk:100213]
* eval.c (is_defined): do not protect exception during receiver
evaluation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 16:39:15 +00:00
eban
35ae7c9045
ChangeLog: typo fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 14:13:24 +00:00
nagai
d3a8f9b361
* ext/tk/lib/tk/canvas.rb: improve coords support for canvas items.
...
Now, supports all of the followings.
TkcLine.new(c, 0, 0, 100, 100, :fill=>'red')
TkcLine.new(c, [0, 0, 100, 100], :fill=>'red')
TkcLine.new(c, [0, 0], [100, 100], :fill=>'red')
TkcLine.new(c, [[0, 0], [100, 100]], :fill=>'red')
TkcLine.new(c, :coords=>[0, 0, 100, 100], :fill=>'red')
TkcLine.new(c, :coords=>[[0, 0], [100, 100]], :fill=>'red')
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 09:41:59 +00:00
ocean
dca0de4191
* test/ruby/test_float.rb: Add test for util.c revision 1.42.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 04:34:07 +00:00
eban
bc8fe41cca
2004-05-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 03:32:34 +00:00
ocean
91da320a9b
* util.c (ruby_strtod): strtod("0", &end); => end should point '\0'.
...
[ruby-dev:23498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 03:17:50 +00:00
akira
793b2e8795
* lib/net/telnet.rb (Net::Telnet::login): "options" can specify
...
regexps for login prompt and/or password prompt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 07:02:18 +00:00
why
25aa9e6969
* ext/syck/rubyext.c (yaml_org_handler): some empty strings were
...
loaded as symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 05:15:54 +00:00
eban
63719ed2e8
2004-05-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 02:05:00 +00:00
nobu
67ffc9d9e1
* pack.c (pack_pack): always add with null for 'Z'.
...
* pack.c (pack_unpack): terminated by null for 'Z'. [ruby-talk:98281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 02:04:20 +00:00
nobu
93472ba0ed
* lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
...
[ruby-talk:99788]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 10:59:52 +00:00
akr
fbb8f1964a
* lib/resolv.rb (Resolv::DNS::Config): make it configurable without
...
external file such as /etc/resolv.conf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 08:44:11 +00:00
gotoyuzo
10b01eddac
* ext/openssl/ossl_x509name.c: attribute value of DC (short name of
...
domainComponent) should be IA5String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 05:38:20 +00:00
nagai
6e0085b137
* ext/tk/lib/tk/composite.rb: improve configure methods. (based on the proposal of [ruby-talk:99671])
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 04:24:55 +00:00
eban
3b3b856669
2004-05-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 02:54:32 +00:00
dave
227ec51ff2
fix rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 02:51:54 +00:00
shigek
f55d6c9298
Fix for 'incomplete bug fix' for 1.41.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-11 14:30:05 +00:00
aamine
373747ab10
* lib/net/protocol.rb (each_crlf_line): remove junk line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10 13:28:26 +00:00
dave
58ec532ac9
Change symbol lookup scheme in HTML generation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10 12:46:18 +00:00
matz
ae3241dcfe
* eval.c (eval): warning during eval should not cause deadlock.
...
[ruby-talk:98651]
* eval.c (rb_eval): raise TypeError exception for superclass
mismatch. [ruby-dev:39567]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10 08:23:13 +00:00