Commit Graph

114 Commits

Author SHA1 Message Date
Scott Taylor
7e927d8ff0 Add File.symlink as an alias for FileUtils.ln_s 2009-10-01 02:46:07 -04:00
Scott Taylor
34a88c4e63 Start File::Stat. Add Stat#symlink?, stat#directory? 2009-10-01 02:46:07 -04:00
Scott Taylor
cb9de5938f method_missing should always be private 2009-10-01 02:46:07 -04:00
Scott Taylor
a9877659d1 Call the test task what it is 2009-10-01 02:46:06 -04:00
Scott Taylor
72aca398ac Run all test files in test directory 2009-10-01 02:46:06 -04:00
Scott Taylor
6f08568d8f Add File.link as a copy operation 2009-10-01 02:46:06 -04:00
Scott Taylor
731122a1ac Refactor mode code 2009-10-01 02:46:00 -04:00
Scott Taylor
6d44186cf7 Truncate an existing file in "w", "w+" modes. 2009-10-01 02:46:00 -04:00
Scott Taylor
3a5098092c Raise an IOError when a file is read in a write-only mode. 2009-10-01 02:46:00 -04:00
Scott Taylor
0b7d45b985 Don't attempt to create a missing file in File.write (the mode guarantees that the file will already be present) 2009-10-01 02:46:00 -04:00
Scott Taylor
e3446636e5 Create files in w, w+, a, and a+ modes when calling File.new and the file is missing. 2009-10-01 02:46:00 -04:00
Scott Taylor
17e2e47027 Raise an error when opening a file which does not exist in read-write ('r+') mode 2009-10-01 02:46:00 -04:00
Scott Taylor
2881614123 Raise an Errno::ENOENT error when opening a file which does not exist 2009-10-01 02:45:59 -04:00
Scott Taylor
a8245db145 Raise an error when giving File.open an illegal access mode. Set default mode for File.open to READ_ONLY 2009-10-01 02:45:59 -04:00
Scott Taylor
6068034c29 Don't allow writing in read-only mode 2009-10-01 02:45:59 -04:00
Scott Taylor
20eb3f238e Add file modes. Replace magic values with constants. 2009-10-01 02:45:59 -04:00
Jon Yurek
a34f8e8beb Implemented File.size 2009-09-30 12:08:54 +08:00
msassak
0da41d92a7 Return result of yield from FakeFS block
Signed-off-by: Chris Wanstrath <chris@ozmm.org>
2009-09-23 18:46:58 +08:00
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
fa89049964 style tweaks 2009-09-21 19:42:23 -07:00
Chris Wanstrath
0124b3ab89 whitespace 2009-09-21 19:38:35 -07:00
Chris Wanstrath
a22f0c5ee6 Remove debug statements 2009-09-21 19:37:55 -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
ab81bbf8be fakefs.gem 2009-09-10 23:48:50 -07: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
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