Commit Graph

234 Commits

Author SHA1 Message Date
John Bintz
005ddaaeb2 allow for {p,q} literals in globs 2011-02-18 16:14:13 -05:00
Noah Paessel
f366142c64 add file#split 2011-01-18 20:22:26 -05: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
Scott Taylor
c59eb01b95 bump version to 0.3.1 2010-12-18 14:19:20 -05:00
Scott Taylor
82cd8ae50b update gemspec 2010-12-18 14:13:22 -05:00
Scott Taylor
7c19c1a02b update gemspec 2010-12-15 23:15:36 -05:00
Scott Taylor
e30c5f5a07 update gem authoris in gemspec 2010-12-15 23:15:21 -05:00
Scott Taylor
d7363f7c56 update version to 0.3.0 2010-12-15 23:13:41 -05:00
Scott Taylor
4168785dc8 update CONTRIBUTORS file. 2010-12-15 23:10:28 -05:00
Victor Costan
c37ec38118 Added gemspec to repository, so bundler can use the gam straight off git. 2010-12-15 23:06:47 -05:00
Víctor Martínez
82db05e85d Implemented File.autoclose?, File.autoclose=, File.fdatasync and File.size which are new on ruby-1.9.2 2010-12-15 23:01:54 -05:00
Scott Taylor
6759a99780 formatting tweaks 2010-12-15 23:01:21 -05:00
Víctor Martínez
8354db1b77 Implemented File.ctime, File.stat(file).ctime, File.open(file){|f| f.ctime }, File.mtime, File.stat(file).mtime and File.open(file){|f| f.mtime } 2010-12-15 23:00:03 -05:00
Scott Taylor
f59e9ba94e whitespace fix 2010-12-15 22:55:56 -05:00
marano
25c3b4e632 Fixed issue where Dir glob would not work properly when doing /**/*. 2010-12-15 22:53:29 -05:00
Scott Taylor
aa0cb96b8e update CONTRIBUTORS 2010-07-03 04:58:49 -04:00
Greg Campbell
c2a9c13345 FileUtils.mv accepts options. Closes #35. 2010-07-03 04:58:05 -04:00
Greg Campbell
97a68c01ba FileUtils#mkdir_p accepts options. Closes #41. 2010-07-03 04:57:45 -04:00
Scott Taylor
5099b3cedb whitespace 2010-06-22 01:56:14 -04:00
Scott Taylor
28950fa71c move require stringio to FakeFS::File 2010-01-12 10:30:43 -05:00
Scott Taylor
522d871217 Make the default rake task [:test, :spec] 2010-01-12 08:50:51 -05:00
Scott Taylor
491da764d1 Return true from FakeFS::activate! and ::deactivate! 2010-01-12 08:36:23 -05:00
Scott Taylor
8ae8692ec7 Fix a test name 2010-01-12 08:33:39 -05:00
Scott Taylor
53b74cf6c8 Add File::lstat, #lstat. Report the correct size for symlinks when using lstat. Closes Github #25 2010-01-12 00:52:11 -05:00
Scott Taylor
01735bb17a Implement File#sysseek 2010-01-12 00:52:05 -05:00
Scott Taylor
75e4eeff65 Add File#syswrite, File#sysread. Closes Github #26 2010-01-12 00:51:58 -05:00
Scott Taylor
2069d3d16d Use color in tests if the redgreen package is around 2010-01-11 23:14:23 -05:00
Scott Taylor
5a98b220d0 Add .autotest 2010-01-11 23:08:44 -05:00
Chris Wanstrath
30d7ba0ee2 add Contributing section to the readme 2010-01-11 18:10:23 -08:00
Scott Taylor
3c0f3e98d0 StringIO isn't automatically required in ruby 1.9.1 2009-12-05 16:50:47 -05:00
Scott Taylor
a2b69ab9cf Whitespace 2009-12-05 16:43:53 -05:00
Scott Taylor
4bd78884a9 Make verify.rb more dynamic. Check for both class and instance methods of:
* RealFile
  * RealFile::Stat
  * RealFileUtils
  * RealDir
  * RealFileTest
2009-12-04 05:02:48 -05:00
Scott Taylor
522976f09c Fix test/verify.rb to report the correct missing methods 2009-12-04 04:54:09 -05:00
Scott Taylor
f68cad18a0 Fix the comment to verify.rb 2009-12-04 04:52:46 -05:00
Scott Taylor
2296655ca9 Call FakeFS.activate! && FakeFS.deactivate! when surrounding RealFileUtils - "test/subdir" was accidentally being created on the file system 2009-12-04 04:50:04 -05:00
Scott Taylor
b346c80e19 Cleanup "here" test helper 2009-12-04 04:48:56 -05:00
Scott Taylor
74cb8d9ecf use require "test_helper" in *all* tests 2009-12-04 04:38:44 -05:00