summaryrefslogtreecommitdiff
path: root/lib/pathname.rb
AgeCommit message (Collapse)Author
2006-07-08update doc.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/pathname.rb: backport from 1.9.akr
(Kernel#Pathname): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-21* lib/pathname.rb (test_kernel_open): use File.identical?.akr
[ruby-talk:171804] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10* lib/pathname.rb (Pathname#unlink): try Dir.unlink first toakr
avoid unlink a directory by root. cf. [ruby-dev:26237] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02doc fix.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15* lib/pathname.rb (Pathname#unlink): use SystemCallError instead ofakr
Errno::EISDIR because EISDIR is not portable. [ruby-core:5001] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15* lib/pathname.rb (Pathname#unlink): unlink a symlink to a directoryakr
was failed. [ruby-core:4992] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12* lib/pathname.rb (cleanpath_aggressive): make it private.akr
(cleanpath_conservative): ditto. Suggested by Daniel Berger. [ruby-core:3914] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-27* lib/pathname.rb (Pathname#initialize): fix pathname initializationakr
by pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-24test Kernel.open accepts pathname object.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-23* lib/pathname.rb: sync taint/freeze flag betweenakr
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-02-11* lib/pathname.rb: use assert_raise instead of assert_raises.akr
* lib/pp.rb: ditto. * lib/time.rb: ditto. * lib/tsort.rb: ditto. use TSortHash and TSortArray instead of Hash and Array in test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-11Backported from CVS HEAD (documentation)gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-26lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-21lib/pathname.rb (Pathname#+): re-implemented to resolve ".." inakr
beginning of the argument. (Pathname#join): concatenate from the last argument. (Pathname#parent): just use Pathname#+. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-03* lib/pathname.rb (Pathname#link, Pathname#symlink): obsoleted.akr
(Pathname#make_link, Pathname#make_symlink): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28previous change refined.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28* lib/pathname.rb (Pathname#realpath): obsolete the force_absoluteakr
argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25add document that pathname.rb supports only Unix style pathnames.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-07(Pathname#parent): if self is `.', return `..'.akr
(Pathname#children): if self is `.', don't prepend self for a pathname in a result. (Pathname#join): re-implemented using Pathname#+. (Pathname#find): if self is `.', remove `./' prefix of yielding pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-07lib/pathname.rb (Pathname#+): if self or the argument is `.', return another.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-07* lib/pathname.rb (Pathname#+): return the argument if self is `.'.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-29* re.c (rb_reg_s_union, Init_Regexp): new method `Regexp.union'.akr
* lib/pathname.rb (realpath): examine Dir.pwd because it may have symlinks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-19* lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13* lib/pathname.rb (realpath): make ELOOP check bit more robust.akr
(children): prepend self by default. (chroot): obsoleted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11fix previous change.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11* lib/pathname.rb (realpath): check existence of the file.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11* lib/pathname.rb (realpath): re-implemented.akr
(realpath_root?, realpath_rec): removed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11* lib/pathname.rb (realpath_rec): fix handling of symlink to absoluteakr
path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05* lib/pathname.rb: version information is added in document.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04* lib/pathname.rb (initialize): raise ArgumentError if argument hasakr
'\0' character. (relative_path_from): new method. (each_entry): new method for replacement of dir_foreach. (foreach, foreachline, dir_foreach, chdir): obsoleted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-03* lib/pathname.rb (initialize): duplicate and freeze argument.akr
(to_s): return duplicated string. (children): new method. (each_line): new alias to foreachline. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-18lib/pathname.rb: update document.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-24* lib/pathname.rb: added.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e