Commit graph

1799 commits

Author SHA1 Message Date
ser
abe1214b3d Cross-ported the REXML changes (3.0.8) from the development branch to the
stable branch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 19:08:03 +00:00
(no author)
16136e224a 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@6337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 19:05:49 +00:00
why
b02b4bb048 * lib/yaml.rb: removed fallback to pure Ruby parser.
* lib/yaml/baseemitter.rb (indent_text): was forcing a mod value
  of zero at times, which kept some blocks from getting indentation.

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

* ext/syck/rubyext.c (yaml_org_handler): some empty strings were
  loaded as symbols.

* 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/branches/ruby_1_8@6334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 16:09:41 +00:00
gsinclair
bcdaac433f * lib/drb/drb.rb: Cosmetic documentation changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 15:09:52 +00:00
gsinclair
a631216cb6 * lib/text/unit.rb: Removed :nodoc: directive (it prevented effective
RDoc operation), and added file-level comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 13:39:58 +00:00
eban
c303f0407e lib/test/unit/assertions.rb: remove "all" that it has forgotten to remove.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 04:54:02 +00:00
gsinclair
e4ac02cd8d * lib/test/unit/**/*.rb: Removed :nodoc: directives (many were
generating warnings, many were on private methods).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-16 04:16:39 +00:00
akira
3c103830d7 * 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/branches/ruby_1_8@6305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 07:02:18 +00:00
eban
32d051b692 lib/drb/observer.rb: remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 05:16:39 +00:00
akira
693bd39aa1 * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-13 04:03:33 +00:00
nobu
f061990c15 * lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
[ruby-talk:99788]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 10:59:52 +00:00
akr
664dbfbf2a * 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/branches/ruby_1_8@6296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-12 08:44:11 +00:00
dave
7b8641ce88 Change symbol lookup scheme in HTML generation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10 12:46:18 +00:00
dave
698ef52266 Search parent for unqualified constants
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-10 03:14:35 +00:00
gsinclair
d31210ccbd * lib/net/ftp.rb: improved documentation
* lib/net/imap.rb: ditto
 * lib/net/pop.rb: ditto
 * lib/net/smtp.rb: ditto
 * lib/net/telnet.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-09 13:42:05 +00:00
dave
3dbd32a214 Allow multiple arguments to include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 13:14:58 +00:00
aamine
6d84972bd5 * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 12:32:31 +00:00
matz
2b5a14bf7c * eval.c (rb_eval): too many line trace call. (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]

* io.c (rb_io_reopen): should use rb_io_check_io().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 08:48:30 +00:00
why
605014cb55 * 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/branches/ruby_1_8@6253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 06:39:45 +00:00
shugo
5363ed4c81 * 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/branches/ruby_1_8@6249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-06 02:47:37 +00:00
dave
45c79aacee Don't include &block if we have yield parameters
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-05 17:02:47 +00:00
seki
68696d07ba use recv instead of recvfrom
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 18:42:46 +00:00
gsinclair
33a233ab9c * lib/gserver.rb: documented
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 14:54:59 +00:00
gsinclair
36e4f2fcf1 * lib/xmlrpc/README.txt: introduced for documentation purposes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-04 14:48:44 +00:00
dave
47feb25704 Fix parsing problem with yield within block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-03 00:49:33 +00:00
(no author)
84035542b7 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@6238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-01 16:09:55 +00:00
why
dca7db725d * 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/branches/ruby_1_8@6222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 23:37:37 +00:00
akr
d53e34bbfa add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 16:27:57 +00:00
ser
20ae8fed6b -
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-24 02:04:10 +00:00
dave
fea9469fc6 Fix bug where consecutive headings were merged
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-24 01:39:45 +00:00
nobu
f9fb27bb5e * lib/mkmf.rb: $hdrdir should not contain macros for backward
compatibilitiy.  [bruby-dev:28]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 14:25:28 +00:00
akr
d449ece238 * 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/branches/ruby_1_8@6205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 07:40:50 +00:00
akr
19d9c8d0c2 * lib/resolv.rb: don't use Regexp#source to embed regexps.
[ruby-dev:23432]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23 05:22:25 +00:00
seki
2b992edf51 check hash tuple size
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 14:00:34 +00:00
akr
aa18a307bf * lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 11:11:40 +00:00
nobu
6c30c6be3a * dln.c, io.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/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/branches/ruby_1_8@6179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:20:33 +00:00
dave
84aba62199 Allow for HAVE_PROTOTYPES macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:15:30 +00:00
dave
5946d5689b Change :enddoc: to terminate processing of current file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-17 03:23:10 +00:00
seki
44f586505f change pattern matching [druby-ja:98]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-13 14:06:50 +00:00
aamine
d938ed8875 * lib/net/http.rb: should not overwrite HTTP request header. [ruby-list:39543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-13 10:54:41 +00:00
akr
25d94babd5 enable document for Kernel.open.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-12 10:17:46 +00:00
dave
63d71ac0c6 Forgot to check special case at top level
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-11 01:49:10 +00:00
dave
2be6b7f166 Fix :enddoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-10 14:52:30 +00:00
dave
38b49f65a7 Fixed problem with \_cat_<b>dog</b>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-09 15:01:53 +00:00
ser
daed03f7ec REXML CHANGES
The previous bug fixing the behavior of Element::text= introduced a bug that
occurred when calling (el.text = nil) to delete the first text node.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-07 14:14:46 +00:00
seki
027d0af0d0 fix hash tuple bug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-06 15:26:25 +00:00
(no author)
5923a2c0e7 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@6109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-06 08:02:56 +00:00
seki
08a57a86e2 add require "drb/drb"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05 15:14:20 +00:00
matz
849bc0234a * eval.c (top_include): include in the wrapped load is done for
the wrapper, not for a singleton class for wrapped main.
  [ruby-dev:23305]

* bignum.c (rb_big_eq): use temporary double variable to save the
  result (internal float register may be bigger than 64 bits, for
  example, 80 bits on x86).  [ruby-dev:23311]

* eval.c (block_pass): should generate unique identifier of the
  pushing block.  [ruby-talk:96363]

* ext/socket/socket.c (make_hostent): fix memory leak, based on
  the patch from HORIKAWA Hisashi <vzw00011@nifty.ne.jp>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05 07:45:32 +00:00
dave
4eda6b6057 Remove leading ./ from filenames so that cross references work OK
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-04 23:19:58 +00:00