Commit Graph

74 Commits

Author SHA1 Message Date
Chris Wanstrath
25e47887b0 Merge branch 'master' of github.com:defunkt/fakefs 2009-09-21 19:43:17 -07:00
Chris Wanstrath
1eb0b97207 FakeFS 0.1.1 2009-09-21 19:43:13 -07:00
Chris Wanstrath
0124b3ab89 whitespace 2009-09-21 19:38:35 -07:00
Rob Sanheim
bbb659fcf8 Add support for mkpath, an alias for mkdir_p on FileUtils
Signed-off-by: Chris Wanstrath <chris@ozmm.org>
2009-09-22 10:28:56 +08:00
Myles Eftos
8e1d049ee4 Updated File.open and File.new signature 2009-09-17 08:22:24 +08:00
Myles Eftos
f6031458cd Fixed FileUtils.rmdir and Dir.unlink 2009-09-14 03:16:20 +08:00
Myles Eftos
c9bd3260c5 Fixed FileUtils.rmdir and Dir.unlink 2009-09-14 03:15:12 +08:00
Myles Eftos
a926ebf1c5 Added File.extname and FileUtils.rmdir 2009-09-14 01:41:00 +08:00
Myles Eftos
1403c5b421 Fixed Dir read method to strip the path, so it matches the Ruby Dir path. Bumped version number 2009-09-13 22:50:34 +08:00
Myles Eftos
9f70cc3c8c Added gemspec 2009-09-13 22:17:40 +08:00
Myles Eftos
fa3f27e6c3 Finished tests for Class methods. chroot isn't implemented 2009-09-13 22:10:42 +08:00
Myles Eftos
af330bc5ab Added tests for Dir instance methods 2009-09-13 21:50:08 +08:00
David Reese
e8257feadd File#puts accepts (*args) and arrays
Signed-off-by: Chris Wanstrath <chris@ozmm.org>
2009-09-11 22:23:55 +08:00
Chris Wanstrath
42f0d46814 whitespace 2009-09-10 23:48:45 -07:00
Chris Wanstrath
57cc9aa921 version 0.1.0 2009-09-10 23:48:39 -07:00
Matt Freels
0fbdb45565 recurser should be private... 2009-07-28 01:14:58 -07:00
Matt Freels
9d09436dba handle case where FileSystem.find has to find the root 2009-07-28 01:12:52 -07:00
Matt Freels
76002ea431 support globbing to files and partial path part matches 2009-07-28 00:25:31 -07:00
Matt Freels
3b6eb053de simplify Dir.glob 2009-07-28 00:22:24 -07:00
Matt Freels
46b62a54d9 symlink needs respond_to? if method_missing is used 2009-07-28 00:20:06 -07:00
Matt Freels
506a33fed4 Dir.pwd and Dir.getwd 2009-07-27 10:56:56 -07:00
Matt Freels
9fb29f122d FakeFS block form seems a part of base. 2009-07-27 10:45:56 -07:00
Matt Freels
91de901bab make fakefs/safe pull in dependencies 2009-07-27 10:44:31 -07:00
Chris Wanstrath
ffeb6516f5 Mock{Dir, File, Symlink} => Fake{Dir, File, Symlink} 2009-07-27 00:09:06 -07:00
Chris Wanstrath
06a27330de Prefer && over and 2009-07-26 23:53:53 -07:00
Chris Wanstrath
5b5961f8e2 Merge commit 'nakajima/safe-mode'
Conflicts:
	lib/fakefs.rb
2009-07-26 23:53:40 -07:00
Pat Nakajima
42d9951661 Crazy directory re-organization 2009-07-22 20:21:28 -04:00
Tymon Tobolski
99880eae06 Added const_missing (autospec again) 2009-07-22 01:49:40 -07:00
Pat Nakajima
14dac336a5 Use consistent constant reference style 2009-07-22 04:42:46 -04:00
Pat Nakajima
3f4de75254 Added fakefs/safe which is a bit less intrusive. 2009-07-22 04:41:18 -04:00
Tymon Tobolski
29dd607869 Implemented FileUtils#rm_r 2009-07-22 00:24:06 -07:00
Chris Wanstrath
d975149d6f alias_method, not alias 2009-07-22 00:23:44 -07:00
Tymon Tobolski
c6c604a3ca Implemented FileUtils#cd (chdir) 2009-07-22 00:23:09 -07:00
Chris Wanstrath
1226acc4b3 File.exist? should return a real boolean (nicer debugging) 2009-07-21 22:31:36 -07:00
Chris Wanstrath
a7f20095f0 fix random cloning bugs 2009-07-19 15:23:42 -07:00
Chris Wanstrath
eb634265e6 do a deep copy of the hash 2009-07-19 14:23:02 -07:00
Pat Nakajima
7d57d483df Implemented File#<< and File#close 2009-07-19 14:17:04 -07:00
Chris Wanstrath
04a6a7a527 when copying or moving files, ensure the new parent gets set correctly 2009-07-19 14:16:21 -07:00
Chris Wanstrath
98215fe488 rename File.exists? to File.exist?
exists? is marked as obsolete in the API doc [madx]
2009-07-14 00:08:58 -07:00
Jeff Hodges
a201579ef4 FileUtils.touch with multiple files was broken on 1.9.
String#each does not exist in ruby 1.9, so Array() must be used.
2009-06-13 23:56:14 -07:00
Jeff Hodges
3221e40dff Simplifying FileUtils.touch. 2009-06-13 23:52:22 -07:00
Mark
bd97171227 Refactored touch to verify that the parent directories exist 2009-06-13 22:29:00 -07:00
Mark
27e24b2260 Added touch to fileutils 2009-06-13 00:22:37 -07:00
Pat Nakajima
d7870563aa Fixed inconsistent File.directory? behavior 2009-06-12 18:22:48 -04:00
Pat Nakajima
57d02ab8b2 More accurate test for File.file? 2009-06-12 18:16:16 -04:00
Pat Nakajima
94afbcabc1 Fixed File.file? for non-existent files 2009-06-12 17:54:32 -04:00
Pat Nakajima
bf6f121601 Fix FileUtils.cp behavior. 2009-06-11 18:11:44 -04:00
Chris Wanstrath
3537c43cbe add FileUtils.cp & tests 2009-06-03 17:53:07 -07:00
Chris Wanstrath
e051533cd4 ensure File.read raises the correct error 2009-06-03 17:47:10 -07:00
Jeff Hodges
8aba1ad6a5 we can now clone even hard to find dotfiles 2009-06-02 00:16:19 -07:00