matz
2c247e3d6b
* io.c (rb_f_open): open should not ignore block when "to_open"
...
method is used. [ruby-dev:23478]
* ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-08 08:12:08 +00:00
aamine
97391920d3
* lib/fileutils.rb (mv): new option `force'. [ruby-talk:99457]
...
* lib/fileutils.rb: new method for command option reflection: FileUtils.commands, .options, .have_option?, .options_of, .collect_methods.
* lib/fileutils.rb: module Verbose, NoWrite, DryRun do not have option flags @fileutils_verbose and @fileutils_noop, they make no sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 13:08:12 +00:00
dave
6bb2e55d0c
Allow multiple arguments to include
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 12:51:18 +00:00
aamine
876aa19435
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
...
* test/fileutils/test_fileutils.rb (mkdir): test "\n" in path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 12:04:19 +00:00
akr
d92f10ac06
add freeze test for dbm and gdbm.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 09:39:12 +00:00
matz
1b0f90ca33
* parse.y (string_content): turn off NODE_NEWLINE flag to avoid
...
unnecessary line trace for inlined expression.
(ruby-bugs PR#1320)
* numeric.c (flo_to_s): tweak output string based to preserve
decimal point and to remove trailing zeros. [ruby-talk:97891]
* string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM
search. [ruby-talk:97342]
* hash.c (rb_hash_equal): returns true if two hashes have same set
of key-value set. [ruby-talk:97559]
* hash.c (rb_hash_eql): returns true if two hashes are equal and
have same default values.
* string.c (rb_str_equal): always returns true or false, never
returns nil. [ruby-dev:23404]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 08:44:24 +00:00
ocean
c4216a26e2
* util.c (ruby_strtod): 0.0000000000000000001 == 0.0 should be false.
...
[ruby-talk:99318] [ruby-dev:23465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 02:26:19 +00:00
seki
175f3b2d7a
use numerichost if cannot resolve hostname
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 13:28:23 +00:00
nagai
fb019df11e
* ext/tk/tkutil.c (get_eval_string_core): bug fix. [ruby-dev:23466]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 13:12:12 +00:00
why
2fa9a0b08c
* lib/yaml/rubytypes.rb (to_yaml): added instance variable handling
...
for Ranges, Strings, Structs, Regexps.
* lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a
String's flow style.
* lib/yaml.rb (YAML::object_maker): now uses Object.allocate.
* ext/syck/gram.c: fixed transfer methods on structs, broke it
last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 06:29:56 +00:00
ocean
f77db2ed9c
* dir.c (rb_push_glob): simplified code (not change behavior)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 05:42:48 +00:00
nobu
b21aa86d5c
* ext/extmk.rb: get rid of side effect of Config.expand, patched by
...
<tttt01@infoseek.jp> (ruby-bugs:PR#597)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 04:32:49 +00:00
shugo
7cb6dfb8fc
* lib/net/imap.rb (string): accept NIL.
...
* lib/net/imap.rb (body_type_basic): allow body-fields omissions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 02:47:37 +00:00
dave
3d33a14369
Don't include &block if we have yield parameters
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-05 17:02:47 +00:00
seki
6776688a2d
use recv instead of recvfrom
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 18:53:26 +00:00
gsinclair
898a1e7197
* lib/gserver.rb: documented
...
* lib/xmlrpc/README.txt: introduced for documentation purposes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 15:42:39 +00:00
dave
fb0878b310
Fix parsing problem with yield within block
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-03 00:49:33 +00:00
aamine
bd4dc9f671
* test/fileutils/test_fileutils.rb (rm_f, rm_r): test :force flag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-02 12:57:31 +00:00
nagai
4c4631c2da
* renewal Ruby/Tk
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-01 16:09:54 +00:00
eban
76546b5489
* time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-30 11:10:51 +00:00
ksaito
ce4078d5bd
* oniguruma.h, regparse.c: imported Oni Guruma 2.2.8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-27 16:37:56 +00:00
ksaito
4e85c0322a
* oniguruma.h, regparse.c: imported Oni Guruma 2.2.7.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-27 16:18:06 +00:00
nobu
315b3e1906
* common.mk: LIBURUBY_A is needed for extconf.rb even when
...
cross-compiling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-27 05:43:36 +00:00
why
a7524e343c
* lib/yaml/rubytypes.rb: passing Range tests.
...
* ext/syck/syck.h: version 0.44.
* ext/syck/gram.c: transfers no longer open an indentation.
fixed transfers which precede blocks.
* ext/syck/token.c: ditto.
* ext/syck/syck.c: fixed segfault if an anchor has been released already.
* ext/syck/node.c (syck_free_members): organized order of free'd nodes.
* ext/syck/rubyext.c (syck_emitter_write_m): test for proper string with
StringValue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 23:24:46 +00:00
nobu
aeae3aa4bb
* README.EXT, README.EXT.ja: fixed wrong function signature.
...
[ruby-talk:98349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 14:56:58 +00:00
dave
04aa9a8f7d
Alias alias to instance methods
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 12:42:01 +00:00
eban
6075e128e6
* configure.in (ac_cv_func_fork): set to no on DJGPP.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-25 09:28:07 +00:00
ksaito
fa659c1449
re.c: applied stack error handling patch. [ruby-dev:22431]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-24 05:34:54 +00:00
dave
8e47df7b6c
Fix bug where consecutive headings were merged
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-24 01:39:45 +00:00
nobu
7792d9026a
* lib/mkmf.rb: $hdrdir should not contain macros, for backward
...
compatibility. [bruby-dev:28]
* lib/mkmf.rb (create_makefile): in the case of extout, just copy
script files, without comparison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 14:24:51 +00:00
akr
cd322e0403
* lib/pathname.rb: sync taint/freeze flag between
...
a pathname object and its internal string object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 07:40:50 +00:00
nobu
a6ed135520
* parse.y (stmt, arg, aref_args): should not make sole splat into
...
array, in aref_args other than aref with op_asgn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 05:52:18 +00:00
akr
f2f93023c8
* lib/resolv.rb: don't use Regexp#source to embed regexps.
...
[ruby-dev:23432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 05:22:25 +00:00
nobu
7b9431d98d
* common.mk, ext/extmk.rb: make ext and .ext get removed by distclean.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-22 09:25:16 +00:00
usa
8d9587fb81
* */Makefile.sub (distclean-local): should remove $(RBCONFIG).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-22 01:08:23 +00:00
nobu
39cac947b1
* parse.y (aref_args): should pass expanded list. [ruby-core:02793]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 19:18:02 +00:00
nobu
c94f8ab926
* eval.c (rb_mod_define_method): allow binding methods to modules.
...
[ruby-dev:23410]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 19:16:40 +00:00
seki
fb3c76a225
check hash tuple size
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 14:05:40 +00:00
akr
317547dc5d
* lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 11:11:40 +00:00
aamine
51ef45c6f3
* lib/net/smtp.rb: merge SMTP-TLS patch. This patch is contributed by Daniel Hob. [ruby-core:02789]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 09:40:48 +00:00
aamine
ef36d75472
* lib/net/smtp.rb: change coding style: def m( a ) -> def m(a).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 09:23:56 +00:00
aamine
6562d8732d
* lib/net/pop.rb: do not use class variables.
...
* lib/net/pop.rb (do_start): ensure to clean up connection when authentication failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 09:02:04 +00:00
aamine
d4f7c8ccef
* lib/net/http.rb (connect): CONNECT must precede SSL connect. [ruby-dev:23379]
...
* lib/net/http.rb (HTTP.new): class variables are not inherited now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 08:26:33 +00:00
nobu
97a557bdf9
* lib/test/unit/ui/console/testrunner.rb (test_started): restore $0
...
after changing process title. [ruby-talk:97426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 06:56:48 +00:00
ocean
45c445941b
* process.c: Recover wrongly removed spaces at end of the lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 02:50:15 +00:00
ocean
1f4513af45
* process.c(rb_spawn): fix SEGV at "p system('command line here')"
...
(may happen only in bccwin32) [ruby-dev:23380]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 01:28:19 +00:00
ocean
51ab50efd3
* dir.c: Updated RDocs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-19 11:59:33 +00:00
ocean
c2642b2c3f
* dir.c: Updated RDocs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-19 09:31:39 +00:00
nobu
92f0be2037
* dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,
...
lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb,
lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb,
lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb,
lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb,
lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb,
lib/rinda/tuplespace.rb, lib/shell/command-processor.rb,
lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb,
lib/test/unit/testsuite.rb: typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:19:47 +00:00
dave
e5eb459089
Allow for HAVE_PROTOTYPES macro
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:15:30 +00:00