akr
16cd13c051
* ext/pathname/pathname.c (path_basename): Pathname#basename translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-16 12:40:10 +00:00
akr
ec5bb26fa0
* ext/pathname/pathname.c (path_open): Pathname#open
...
translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-09 13:15:49 +00:00
akr
c60cd341e8
fix a test name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 11:41:15 +00:00
akr
b50fb9034e
* ext/pathname/pathname.c (path_fnmatch): Pathname#fnmatch and
...
Pathname#fnmatch? translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 22:33:51 +00:00
akr
49cb5a78a1
* ext/pathname/pathname.c (path_lchown): Pathname#lchown translated
...
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 09:21:37 +00:00
nobu
a438fce7e3
* ext/pathname/pathname.c (path_sub_ext): don't clobber shared string.
...
[ruby-core:31640]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 04:59:27 +00:00
akr
6bc65b35bd
* test/ruby/envutil.rb (assert_normal_exit): use assert. fix
...
faildesc.
* test/pathname/test_pathname.rb (test_lchmod): test Pathname#lchmod
using assert_normal_exit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 00:29:52 +00:00
akr
5e9c47c81d
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-03 14:35:34 +00:00
akr
4b8f2ed7cc
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 13:24:42 +00:00
akr
785b31bed4
* file.c: add optional basedir argument for realpath/realdirpath.
...
(realpath_internal): handle basedir.
(rb_file_s_realpath): extract basedir from argument list.
(rb_file_s_realdirpath): extract basedir from argument list.
* lib/pathname.rb (realpath): pass basedir.
(realdirpath): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-07 04:55:34 +00:00
akr
a28532dcf3
* lib/pathname.rb (Pathname#sub): set $~ in block.binding.
...
[ruby-dev:38173]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17 05:26:15 +00:00
akr
e94e674d0e
* lib/pathname.rb (Pathname#realdirpath): new method.
...
[ruby-dev:36290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30 12:50:55 +00:00
akr
e0469eea59
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-29 18:02:25 +00:00
knu
c6866f8552
Back out the previous change after miniunit import.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-02 02:40:33 +00:00
knu
571b2e17b2
* test/pathname/test_pathname.rb: Fix use of deprecated methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:57:33 +00:00
mame
f398d750ea
* lib/pathname.rb (each_filename): return Enumerator if no block
...
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-23 00:03:42 +00:00
akr
70f25096c0
* lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-13 13:50:31 +00:00
akr
3a8f7f1d7f
* include/ruby/ruby.h (FilePathStringValue): defined. similar to
...
FilePathValue but no taint check.
* file.c (rb_get_path_no_checksafe): implementation of
FilePathStringValue.
(rb_file_s_basename): use FilePathStringValue.
(rb_file_s_dirname): ditto.
(rb_file_s_extname): ditto.
(rb_file_s_split): ditto.
(rb_file_join): ditto.
* dir.c (file_s_fnmatch): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-09 05:12:31 +00:00
akr
19c0ede6fc
fix test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 14:59:02 +00:00
matz
1eee78b876
* eval.c (rb_f_send): allow send/__send__ to call methods of all
...
visibility again. we no longer provide __send, __send!.
* eval.c (rb_invoke_method): new method to honor private
visibility. if it's invoked in a function call style, it calls
private methods as well (previous 1.9 send behavior).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:36:20 +00:00
akr
7989a0868d
specify prefix for Dir.mktmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 07:11:35 +00:00
akr
5d2671d2bc
use Dir.mktmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 05:55:26 +00:00
akr
37f9d089ed
check codepage for SJIS pathname test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-28 06:34:13 +00:00
matz
4e183b11ac
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
...
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
initialize @workdir to stop warning.
* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
replace funcall by send!. other files in the distribution as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 09:57:53 +00:00
akr
7d274ff6fb
* lib/pathname.rb (Kernel#Pathname): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-17 05:59:29 +00:00
akr
cb8d34855e
* lib/pathname.rb (Pathname#each_filename): use split_names properly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-22 12:18:58 +00:00
akr
c7f66bdef9
* test/pathname/test_pathname.rb (test_kernel_open): use
...
File.identical?.
[ruby-talk:171804]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-21 03:14:39 +00:00
akr
7d62299a27
require tempdir instead of tempfile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-15 03:35:04 +00:00
akr
66283e1c0f
* lib/pathname.rb: use File.basename to decompose pathnames.
...
experimental Windows support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-26 20:43:08 +00:00