Commit Graph

268 Commits

Author SHA1 Message Date
Scott Taylor
da5e6210b2 Version bump - 0.4 2011-09-05 17:54:14 -04:00
Scott Taylor
e4cb408558 Update contributors 2011-09-05 17:50:29 -04:00
Jared Luxenberg
600b1150ef * fixing File#exist? for symlinks (should return false when target of symlink does not exist)
* changing name of root directory to '/'
* support for relative targets for symlinks
    - File#readlink should return the target of the symlink
(Closes #71)
2011-09-05 17:38:39 -04:00
Scott Taylor
4da1d58d66 FileUtils#rm and File#delete should raise Errno::ENOENT when any file
does not exist (Closes #70)
2011-09-05 17:34:09 -04:00
Eero Saynatkari
47b34075a8 Added some tests for relative nonexistent dirs to open. 2011-09-05 17:27:17 -04:00
Scott Taylor
552dc8edb0 minor comment change 2011-09-05 17:27:02 -04:00
Scott Taylor
9cbf2228a9 Rebase 492d62899 2011-09-05 17:26:11 -04:00
Eero Saynatkari
492d628994 File.open fails given nonexistent path or path to a dir. Closes #82.
* Removed unnecessary paths from existing tests (they don't
  need to exercise paths).
* Added tests for nonexistent, existing and trying to open
  a directory.
2011-09-05 17:25:18 -04:00
Scott Taylor
973a2ae1f3 FileUtils.ln_s should raise an error if symlinking to a subpath
which does not exist (and :force => true is not provided)
2011-09-05 17:19:52 -04:00
Scott Taylor
6a2a821c8a Raise a non implemented error 2011-09-05 17:19:52 -04:00
Jared Luxenberg
d98a06473e fixing FakeFS::FakeSymLink#to_s (Closes #69) 2011-09-05 17:19:39 -04:00
Jared Luxenberg
1597e76c7f adding 'parent' attr_accessor to FakeFS::FakeSymlink (#69) 2011-09-05 16:51:10 -04:00
Andrius Chamentauskas
8b0d10b94b Fix for {} patterns that have last element empty (Closes #65) 2011-09-05 16:46:26 -04:00
Andrius Chamentauskas
6c7fd0291a Fix for finding files by patterns that include {..,..} (#65) 2011-09-05 16:45:35 -04:00
Scott Taylor
2b13555845 Add a note about rails. Closes #67 2011-09-05 16:31:23 -04:00
Lars Gierth
e81d0bdad1 Add Gemfile.lock to .gitignore (Closes #84) 2011-09-05 14:38:46 -04:00
Lars Gierth
70a4d2621d Remove Gemfile.lock 2011-09-05 14:38:34 -04:00
Lars Gierth
54def31e4a Fix test verifier (Closes #85) 2011-09-05 14:37:32 -04:00
Scott Taylor
019a7f06a3 Minor refactoring 2011-09-05 14:24:48 -04:00
Ryan McGeary
c24b338a2e Improved error handling for Dir.delete and Dir.entries
This better matches the behavior of Ruby 1.8 and 1.9

(Closes #91)
2011-09-05 14:20:21 -04:00
Ryan McGeary
14367140a3 Added basic File#to_path support (Closes #92) 2011-09-05 14:15:12 -04:00
Andrius Chamentauskas
a0e02ed974 Added fake FileTest.file? (Closes #94) 2011-09-05 14:10:16 -04:00
Scott Taylor
1e074bf636 update gemspec 2011-05-02 23:06:29 -04:00
Scott Taylor
3762fa2b35 update version to 0.3.2 2011-05-02 23:05:08 -04:00
Scott Taylor
1f948a0fd7 update contributors 2011-05-02 22:54:26 -04:00
Mariusz Pietrzyk
8bf4b5aeb0 Raising Errno::ENOENT exception with a particular path instead of src, which may be an array.
Closes #59
2011-05-02 22:32:02 -04:00
Noah Paessel
3916ffc91d Be polite; add new test to bottom of test file. 2011-05-02 22:11:53 -04:00
Noah Paessel
2e55319dc0 add file#split. Closes #61 2011-05-02 22:11:21 -04:00
Scott Taylor
129b557160 add dev dependencies: jeweler, sdoc-helpers, rdiscount 2011-05-02 22:02:59 -04:00
Scott Taylor
c2d7f46bcb move around and reformat code 2011-05-02 22:02:59 -04:00
Scott Taylor
903b8c5fd8 Add source :rubygems to Gemfile 2011-05-02 22:02:59 -04:00
Eric MSP Veith
564387b6a3 Added Dir.mktmpdir and FileTest.directory? Closes #74 2011-05-02 22:00:05 -04:00
Scott Taylor
f5913573ef add .rspec file to run specs with color 2011-05-02 21:39:52 -04:00
Scott Taylor
b556f7ba24 Add rspec 2 as a dev only dependency 2011-05-02 21:39:52 -04:00
Scott Taylor
fa612b194b Update rake tasks to use rspec 2. 2011-05-02 21:39:52 -04:00
timo3377
12532c8e37 Alias mkdir_p + makedirs for compatability with Rails3. Closes #79 2011-05-02 21:37:37 -04:00
Scott Taylor
fa2cacf2c3 update contributors with git-rank-contributors 2010-12-27 13:26:18 -05:00
Scott Taylor
38b21498e7 add rake task: update_contributors 2010-12-27 13:25:59 -05:00
Scott Taylor
254ccb0813 whitespace 2010-12-27 13:22:20 -05:00
Lars Gierth
68c958df0d Fixes File#check_file_existence! always prints empty path. Closes #34 2010-12-27 13:21:08 -05:00
Lars Gierth
124a138254 Added failing test for GH-34 2010-12-27 13:20:56 -05:00
Mariusz Pietrzyk
66c27ff31b FakeFS::Dir.glob works with a given block. Closes #39. Closes #55. 2010-12-27 12:52:32 -05:00
Greg Campbell
4e9355dc9e FileUtils.mv can now handle an array of sources
Closes #40.  Closes #56
2010-12-27 12:49:48 -05:00
Greg Campbell
b91fddf98b Allows FileUtils.mv to move into a directory.
This addresses the first comment on #40.
2010-12-27 12:48:56 -05:00
Scott Taylor
9505210a90 handle FileUtils.mkdir. Closes #37
Conflicts:

	test/fakefs_test.rb
2010-12-27 12:43:32 -05:00
Aaron Suggs
31597f5836 File.join delegates to RealFile.join. Closes #31 2010-12-27 12:36:41 -05:00
Scott Taylor
4bf5f91774 whitespace 2010-12-27 12:36:41 -05:00
Aaron Suggs
076ef40678 Add File.rename (a primitive of FileUtils.mv). Closes #29 2010-12-27 12:36:11 -05:00
Scott Taylor
d422c6a79f Add File.utime for updating files' mtime. Closes #28
Conflicts:

	lib/fakefs/file.rb
	test/fakefs_test.rb
2010-12-27 12:01:45 -05:00
Scott Taylor
b6e5d10c29 update gemspec to 0.3.1 2010-12-18 14:19:49 -05:00