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
8dfbb9eece
new gist url
2009-07-27 00:03:25 -07:00
Chris Wanstrath
0da3c18e41
it's a list
2009-07-27 00:00:47 -07:00
Chris Wanstrath
b3a8459bcc
spelling
2009-07-26 23:59:54 -07:00
Chris Wanstrath
5e1d34e929
code blocks in readme
2009-07-26 23:58:46 -07:00
Chris Wanstrath
42dc10c505
add basic usage to readme
2009-07-26 23:56:51 -07:00
Chris Wanstrath
b8e7c5499c
add pat to readme
2009-07-26 23:54:45 -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
Pat Nakajima
bc5dbd3a01
Merge commit 'defunkt/master'
...
Conflicts:
test/fakefs_test.rb
2009-07-22 04:24:34 -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
Chris Wanstrath
6a540e6841
Merge branch 'master' of git@github.com:defunkt/fakefs
2009-07-19 14:17:20 -07:00
Pat Nakajima
4a02bfff22
Added verify.rb to find gaps in FakeFS
2009-07-19 14:17:14 -07:00
Pat Nakajima
7d57d483df
Implemented File#<< and File#close
2009-07-19 14:17:04 -07:00
Chris Wanstrath
c11312f70c
rake
2009-07-19 14:16:37 -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
Pat Nakajima
c93867a2fd
Implemented File#<< and File#close
...
Signed-off-by: Chris Wanstrath <chris@ozmm.org>
2009-07-17 08:16:19 +08:00
Pat Nakajima
95c86560c0
Added verify.rb to find gaps in FakeFS
...
Signed-off-by: Chris Wanstrath <chris@ozmm.org>
2009-07-17 08:16:17 +08:00
Pat Nakajima
2d31ba9ebb
Implemented File#<< and File#close
2009-07-16 16:19:03 -04:00
Pat Nakajima
d711edc590
Added verify.rb to find gaps in FakeFS
2009-07-16 16:18:43 -04: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
Chris Wanstrath
c6d4b3fe5b
Merge commit 'nakajima/master'
2009-06-12 17:03:23 -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
6a2c03aa84
Fix FileUtils.cp behavior.
2009-06-11 15:25:21 -07: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
Jeff Hodges
364dc66ee5
FileSystem.clone now clones directories and dot files.
2009-06-01 23:54:04 -07:00
Jeff Hodges
c0be5bd8f2
cp_r given a src ending in '/.' now copies over the contents of the
...
src dir.
2009-06-01 04:13:53 -07:00
Jeff Hodges
da576d4208
Fixes to cp_r, ln_s, directory? and file?. Raise an error if we try to cp_r into
...
something that isn't a directory. Do not allow symlinking if the path
the symlink would be at already exists. directory? and file? now
correctly pass if called on a symlink path that points to a path of
the corresponding type.
2009-06-01 03:52:08 -07:00
Jeff Hodges
ddcdfcd04f
Suddenly, cp_r works beautifully! This commit now lets us handle the
...
case where a directory is meant to be copied as a subdirectory to the
destination path when that path already exists. We also do the
appropriate error message when the dest path given is non-existent and
so is its parent.
Oh, crap, we should probably check that it's a directory that we are
merging into.
2009-06-01 03:25:12 -07:00
Jeff Hodges
4de717a976
Hum, how did that test pass last night?
2009-05-31 22:41:11 -07:00