summaryrefslogtreecommitdiff
path: root/lib/pathname.rb
AgeCommit message (Collapse)Author
2010-01-12* prelude.rb (require_relative): use File.realpath. [ruby-dev:40040]akr
* include/ruby/intern.h: declare rb_dir_getwd. * dir.c (rb_dir_getwd): copied from dir_s_getwd to export. (dir_s_getwd): use rb_dir_getwd. * file.c (rb_file_s_realpath): new method File.realpath. (rb_file_s_realdirpath): new method File.realdirpath. * lib/pathname.rb (Pathname#realpath): use File.realpath. (Pathname#realdirpath): use File.realdirpath. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23* lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is alwaysnobu
non-nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-18* lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-28* lib/pathname.rb (Pathname#relative_path_from): compares pathnobu
components according to system default case-sensitiveness. [ruby-core:22829] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17* lib/pathname.rb (Pathname#sub): set $~ in block.binding.akr
[ruby-dev:38173] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27update doc (add Pathname#binread)kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23* lib/pathname.rb (Pathname#foreachline): removed wronglymatz
resurrected method. [ruby-dev:38065] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-21* lib/pathname.rb (Pathname#binread): added. [ruby-dev:37952]matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-14* lib/pathname.rb: obsolete methods removed.akr
[ruby-core:21564] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31update rdoc.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31rdoc update.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31* lib/pathname.rb (Pathname#each_child): new method.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30* lib/pathname.rb (Pathname#realdirpath): new method.akr
[ruby-dev:36290] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-26* lib/pathname.rb (chop_basename, prepend_prefix): use o option.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11* lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.akr
[ruby-core:19690] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23* lib/pathname.rb (each_filename): return Enumerator if no blockmame
given. * test/pathname/test_pathname.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14trailing space removed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04* lib/rdoc.rb: massive spelling correction patch from Evan Farrarmatz
<evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-13* lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608]akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-08update doc.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17* lib/pathname.rb (Kernel#Pathname): new method.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-04-04* lib/pathname.rb: use a subclass for instantiation exceptakr
methods take pathname argument. suggested by Evan Phoenix. [ruby-core:7618] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-22* lib/pathname.rb (Pathname#each_filename): use split_names properly.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-26* lib/pathname.rb: use File.basename to decompose pathnames.akr
experimental Windows support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-23* lib/pathname.rb (Pathname#sub): new method.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-03* lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descendakr
didn't yield "." (Pathname#ascend): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-28* lib/pathname.rb (Pathname#descend): new method.akr
(Pathname#ascend): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9039 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/trunk@8743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02doc fix.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8705 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/trunk@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/trunk@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/trunk@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/trunk@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/trunk@6398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-08* io.c (rb_f_open): open should not ignore block when "to_open"matz
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-07add a test for Kernel.open(Pathname.new(...)) { ... }.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@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/trunk@6205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-07update the document for to_path.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-07* file.c (rb_get_path): get path string via "to_path" method ifmatz
path object is not a string. [Ruby2] * gc.c (rb_gc_call_finalizer_at_exit): do not free threads in the exit finalizers. * io.c (rb_io_reopen): should use rb_io_check_io(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05* error.c (Init_Exception): remove Exception#to_str. [Ruby2]matz
* eval.c (error_print): should no call "to_str" anymore use "message" method instead. * io.c (rb_f_open): Kernel#open() calls "to_open" if the first argument responds to it. [Ruby2] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6102 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/trunk@5673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-19* variable.c (rb_set_class_path): do not set path ifmatz
* lib/cgi.rb (CGI::QueryExtension): give extended string, not a delegater object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-13* parse.y (primary): allow no "when" case. [ruby-dev:22578]matz
* ruby.h (rb_class_of): reduce branch. [ruby-dev:22577] * ruby.h (rb_type): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 * lib/pathname.rb: Corrected small coding error.gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-31 * lib/pathname.rb: Completed documentation.gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-30Re-applied revision 1.21 as its changes were lost on the way to 1.22gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-29 * lib/pathname.rb: Added documentation.gsinclair
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5345 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/trunk@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