diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-19 05:49:51 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-19 05:49:51 +0000 |
commit | f50be7cba7be55294031b92cb24471958d3d1759 (patch) | |
tree | 8a3641ebce27ce018c45776c62cbba69fade10af /doc | |
parent | eaddc4a94bf1dfb95ef889e2dd5521b657845675 (diff) |
Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r-- | doc/NEWS | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -1,3 +1,42 @@ +: Digest module + + Added as a replacement for md5 and sha1 modules. + + require 'digest/md5' + include Digest + + md = MD5.new + md << "abc" + puts md + + puts MD5.hexdigest("123") + +: Dir::chdir + + Changed to warn only when invoked from multiple threads or no block + is given. [ruby-dev:13823] + + Dir.chdir("/tmp") + + pwd = Dir.pwd #=> "/tmp" + puts pwd + + Dir.chdir("foo") { + pwd = Dir.pwd #=> "/tmp/foo" + puts pwd + + Dir.chdir("bar") { # <-- previously warned + pwd = Dir.pwd #=> "/tmp/foo/bar" + puts pwd + } + + pwd = Dir.pwd #=> "/tmp/foo" + puts pwd + } + + pwd = Dir.pwd #=> "/tmp" + puts pwd + : Proc#yield Added. This is equivalent to Proc#call except it does not check the |