Scott Taylor
d7363f7c56
update version to 0.3.0
2010-12-15 23:13:41 -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
marano
25c3b4e632
Fixed issue where Dir glob would not work properly when doing /**/*.
2010-12-15 22:53:29 -05: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
491da764d1
Return true from FakeFS::activate! and ::deactivate!
2010-01-12 08:36:23 -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
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
Mislav Marohnić
4530cb1e31
implement File::Stat#size
2009-12-02 03:18:09 -05:00
Keita Urashima
9212ba104a
FileUtils.rm should be able to delete two or more files. Closes #23
2009-11-25 22:33:29 -05:00
Scott Taylor
ea5705d560
Remove unnecessary constants
2009-11-24 04:48:54 -05:00
Scott Taylor
71dd1050f4
Spacing + alignment
2009-11-24 04:48:53 -05:00
Scott Taylor
50193f2a75
Add FileTest#exist? Swap out FileTest for FakeFS::FileTest. Closes #14
2009-11-24 04:48:43 -05:00
Scott Taylor
bdb3fa4ac0
raise Errno::EEXIST when Dir.mkdir is called with an existing directory. Closes #21 .
2009-11-24 04:13:29 -05:00
Scott Taylor
fc7515fd08
Add NotImplementedErrors for missing methods on File for ruby 1.9.1
2009-11-08 13:27:51 -05:00
Scott Taylor
02b76af287
Add File#to_i (an alias for fileno)
2009-11-08 13:27:51 -05:00
Scott Taylor
1e685ed25e
Implement File#to_io
2009-11-08 13:27:50 -05:00
Scott Taylor
254012644a
Remove unused ivar
2009-11-08 13:27:50 -05:00
Scott Taylor
15c1fd83a1
Remove File.open - it is implemented by StringIO
2009-11-08 13:27:43 -05:00
Scott Taylor
9e7e71b166
Remove File#flush (it is implemented by StringIO)
2009-11-08 01:06:34 -05:00
Scott Taylor
2877f7d4c1
Cleanup trailing whitespace
2009-11-08 01:04:16 -05:00
Scott Taylor
d2264eb646
Fix FakeFS#close
2009-11-08 00:56:00 -05:00
Scott Taylor
dd8ff05eec
Make sure that no StringIO instance methods leak out FakeFS::File that aren't in File
2009-11-05 03:25:04 -05:00
Scott Taylor
daad2bb625
Ensure that every method in IO and File (RealFile) is in FakeFS::File (since File < IO). raise NotImplemenetedErrors for methods which have not yet been implemented.
2009-11-05 03:22:39 -05:00
Scott Taylor
95b06b00df
Cleanup FakeFS::File by descending from StringIO.
2009-11-05 03:22:35 -05:00
Scott Taylor
ba4de58233
Add File#pos=, File#tell=
2009-11-05 03:21:53 -05:00
Scott Taylor
9e50475cb3
Add File#pos
2009-11-05 03:21:49 -05:00
Chris Wanstrath
7ede661879
0.2.1
2009-10-30 09:56:08 -07:00
Chris Wanstrath
986e80a789
Merge remote branch 'scott/rspec_helpers'
2009-10-30 09:54:42 -07:00
Jon Yurek
bfffa910e9
Bitmask file creation modes allow for Tempfile compatability.
2009-10-30 09:53:39 -07:00
Scott Taylor
85d4fa1173
Improve SpecHelpers to work consistently. Use 'include' instead of 'extend' + use_fakefs. Add specs.
2009-10-30 00:26:02 -04:00
Scott Taylor
f659ddd193
Doc fixes to the spec helper
2009-10-29 22:52:18 -04:00
Sam Goldstein
1c6825fb9b
added support for recursive globbing
...
FakeDir.glob now handles recursive globs (i.e. '**') like the standard
lib Dir. Previously they were treated identically to single wild cards
(i.e. '*')
Resolves issue #16
http://github.com/defunkt/fakefs/issues#issue/16
2009-10-29 09:26:54 -07:00
Scott Taylor
01b0421c49
Add File#seek. Fixes Github Issue #19
2009-10-29 05:46:39 -04:00
Scott Taylor
6f5cff81ca
Add binary mode. Resolves Github #13
2009-10-29 05:46:39 -04:00
Scott Taylor
1d410d4955
Cleanup code. Delegate to StringIO. Don't do the file mode check ourself - make StringIO do it.
2009-10-29 05:46:32 -04:00
Scott Barron
e5d7b716ed
Support FileUtils.rm_f as well
2009-10-27 00:27:35 +08:00
Scott Barron
838274f965
Dir.entries returns only basenames, not full paths - make FakeFS match that behavior
2009-10-27 00:27:34 +08:00
jameswilding
7444ef50b3
Fix that FakeFS method wouldn't call ::FakeFS.deactivate! when block raised an exception
2009-10-19 21:58:14 +08:00
Ben Mabey
b0830550fe
rspec example group helpers to turn fakefs on/off
2009-10-14 23:10:52 +08:00
dmathieu
20ef508317
Refactoring ln_sf and testing it
2009-10-14 15:36:13 +08:00
dmathieu
eb1cde19f9
Fileutils has a method ln_sf which forces the creation of a symlink
2009-10-14 15:36:13 +08:00
Nick Quaranto
8f26158a5a
Adding a passable implementation of File.mtime
2009-10-07 00:13:58 -07:00