Commit Graph

  • 4530cb1e31 implement File::Stat#size Mislav Marohnić 2009-11-27 13:48:03 +0100
  • 7f601eb7fc RealFileUtils makes calls to ::File && ::Dir - so we need to deactivate FakeFS if we intend RealFileUtils to use the RealFile and RealDir class. Closes #24 Scott Taylor 2009-12-02 03:14:32 -0500
  • 8355d15ec2 activate! & deactivate! state properly in tests (which allows easy replication of bug reported in #24) Scott Taylor 2009-12-02 03:13:46 -0500
  • c2ccf482b9 Extract common requires in test files to test/test_helper.rb Run individual spec files with RUBYLIB=test ruby test/<test-file> (Thanks mislav) Scott Taylor 2009-12-02 02:52:37 -0500
  • 52462b0e46 Use require 'fakefs/safe' in test helper requires. Temporarily fixes #24 Scott Taylor 2009-12-02 02:46:50 -0500
  • 4445850d6d Display a warning (not a LoadError) in the rakefile if rspec isn't around Scott Taylor 2009-12-02 02:23:58 -0500
  • 80187db69f anal-retentive formatting Scott Taylor 2009-12-02 02:21:48 -0500
  • bd53cbaa0e Add spec task Scott Taylor 2009-12-02 02:21:19 -0500
  • 9212ba104a FileUtils.rm should be able to delete two or more files. Closes #23 Keita Urashima 2009-11-25 01:21:25 +0900
  • ea5705d560 Remove unnecessary constants Scott Taylor 2009-11-24 04:35:09 -0500
  • 71dd1050f4 Spacing + alignment Scott Taylor 2009-11-24 04:31:53 -0500
  • 50193f2a75 Add FileTest#exist? Swap out FileTest for FakeFS::FileTest. Closes #14 Scott Taylor 2009-11-24 04:27:26 -0500
  • bdb3fa4ac0 raise Errno::EEXIST when Dir.mkdir is called with an existing directory. Closes #21. Scott Taylor 2009-11-24 04:08:14 -0500
  • ceffec3023 Update docs for proper usage of FakeFS::SpecHelpers Scott Taylor 2009-11-23 23:34:59 -0500
  • a35f3b12b2 Fix a path in the README Scott Taylor 2009-11-23 23:22:59 -0500
  • f9e665bda9 Fix a test for ruby 1.9.1 (question mark *must* end the method in 1.9.1?) Scott Taylor 2009-11-08 13:23:31 -0500
  • fc7515fd08 Add NotImplementedErrors for missing methods on File for ruby 1.9.1 Scott Taylor 2009-11-08 13:17:57 -0500
  • f30beb33fe Fix a test name Scott Taylor 2009-11-08 11:08:30 -0500
  • 02b76af287 Add File#to_i (an alias for fileno) Scott Taylor 2009-11-08 01:17:42 -0500
  • 1e685ed25e Implement File#to_io Scott Taylor 2009-11-08 01:13:28 -0500
  • 254012644a Remove unused ivar Scott Taylor 2009-11-08 01:09:05 -0500
  • 15c1fd83a1 Remove File.open - it is implemented by StringIO Scott Taylor 2009-11-08 01:08:12 -0500
  • 9e7e71b166 Remove File#flush (it is implemented by StringIO) Scott Taylor 2009-11-08 01:06:34 -0500
  • 2877f7d4c1 Cleanup trailing whitespace Scott Taylor 2009-11-08 01:04:16 -0500
  • d2264eb646 Fix FakeFS#close Scott Taylor 2009-11-08 00:56:00 -0500
  • dd8ff05eec Make sure that no StringIO instance methods leak out FakeFS::File that aren't in File Scott Taylor 2009-11-04 02:57:08 -0500
  • 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. Scott Taylor 2009-11-01 18:07:01 -0500
  • 95b06b00df Cleanup FakeFS::File by descending from StringIO. Scott Taylor 2009-11-01 18:03:51 -0500
  • ba4de58233 Add File#pos=, File#tell= Scott Taylor 2009-11-01 17:47:33 -0500
  • 9e50475cb3 Add File#pos Scott Taylor 2009-11-01 17:44:30 -0500
  • 20791f3846 update contributors Chris Wanstrath 2009-10-30 10:03:44 -0700
  • bda25083fc update docs Chris Wanstrath 2009-10-30 10:03:19 -0700
  • 548e78426d ghetto-check the tests Chris Wanstrath 2009-10-30 10:02:41 -0700
  • 7ede661879 0.2.1 v0.2.1 Chris Wanstrath 2009-10-30 09:56:08 -0700
  • db0c48f72e add publish and gem tasks Chris Wanstrath 2009-10-30 09:55:57 -0700
  • 986e80a789 Merge remote branch 'scott/rspec_helpers' Chris Wanstrath 2009-10-30 09:54:42 -0700
  • bfffa910e9 Bitmask file creation modes allow for Tempfile compatability. Jon Yurek 2009-10-29 21:15:31 -0400
  • 85d4fa1173 Improve SpecHelpers to work consistently. Use 'include' instead of 'extend' + use_fakefs. Add specs. Scott Taylor 2009-10-30 00:26:02 -0400
  • f659ddd193 Doc fixes to the spec helper Scott Taylor 2009-10-29 22:52:18 -0400
  • 1c6825fb9b added support for recursive globbing Sam Goldstein 2009-10-29 00:10:30 -0700
  • 01b0421c49 Add File#seek. Fixes Github Issue #19 Scott Taylor 2009-10-29 05:37:41 -0400
  • 6f5cff81ca Add binary mode. Resolves Github #13 Scott Taylor 2009-10-29 05:18:12 -0400
  • 1d410d4955 Cleanup code. Delegate to StringIO. Don't do the file mode check ourself - make StringIO do it. Scott Taylor 2009-10-29 04:59:52 -0400
  • 11e80d2ec3 note that fakefs uses pathname and fileutils. closes #12 Chris Wanstrath 2009-10-28 11:02:25 -0700
  • e5d7b716ed Support FileUtils.rm_f as well Scott Barron 2009-10-26 23:02:18 +0800
  • 838274f965 Dir.entries returns only basenames, not full paths - make FakeFS match that behavior Scott Barron 2009-10-26 22:51:26 +0800
  • 7444ef50b3 Fix that FakeFS method wouldn't call ::FakeFS.deactivate! when block raised an exception jameswilding 2009-10-19 19:38:59 +0800
  • b0830550fe rspec example group helpers to turn fakefs on/off Ben Mabey 2009-10-14 22:27:37 +0800
  • b839944b13 ignoring vim swap files Ben Mabey 2009-10-14 22:26:09 +0800
  • 20ef508317 Refactoring ln_sf and testing it dmathieu 2009-10-09 05:34:22 +0800
  • eb1cde19f9 Fileutils has a method ln_sf which forces the creation of a symlink dmathieu 2009-09-28 22:28:38 +0800
  • 5f8fe542a0 order contributors by # of contributions Chris Wanstrath 2009-10-07 01:38:08 -0700
  • 4560605325 spin out a CONTRIBUTORS file Chris Wanstrath 2009-10-07 00:20:14 -0700
  • 5edc9e8489 add Nick Chris Wanstrath 2009-10-07 00:19:26 -0700
  • 8f26158a5a Adding a passable implementation of File.mtime Nick Quaranto 2009-09-29 11:28:53 -0400
  • 72e8ee62c7 Allowing File#read to chunk IO Nick Quaranto 2009-09-29 11:46:30 -0400
  • 5deda9b456 File.size? actually returns nil instead of false Nick Quaranto 2009-09-29 11:21:12 -0400
  • e591d3b2d3 Adding File.size? too Nick Quaranto 2009-09-29 11:08:22 -0400
  • 166ff444d9 Aliasing File.readable? to File.exist? so Rack::File can work Nick Quaranto 2009-09-29 11:00:36 -0400
  • 54cc2b7358 private_instance_methods returns symbols in 1.9 Chris Wanstrath 2009-10-06 22:03:33 -0700
  • 1c3a17ccc8 add Home link Chris Wanstrath 2009-10-06 22:00:06 -0700
  • c39b62c1c9 0.2.0 v0.2.0 Chris Wanstrath 2009-10-06 21:48:44 -0700
  • f3ab9f70b5 create docs Chris Wanstrath 2009-10-06 21:44:05 -0700
  • f5894c2cfd use sdoc-helpers gem Chris Wanstrath 2009-10-06 21:32:54 -0700
  • 1a74c89910 fix jeweler instructions Chris Wanstrath 2009-10-06 21:15:18 -0700
  • 11242af667 no gemspec in git Chris Wanstrath 2009-10-06 21:15:00 -0700
  • b989fa9cf1 add list and gems Chris Wanstrath 2009-10-06 21:12:14 -0700
  • 615c9cbdc4 insllation / meta / contributors in readme Chris Wanstrath 2009-10-06 21:07:28 -0700
  • e4ea7e1406 Merge remote branch 'smt/hard_links_and_deletion' Chris Wanstrath 2009-10-06 20:55:11 -0700
  • cc032a7381 use new jeweler gemspec.version = feature, hooray Chris Wanstrath 2009-10-06 20:53:42 -0700
  • c00d450662 Add File::delete and alias File::unlink. Get those, plus FileUtils.rm to work properly with hard links. Closes #8 Scott Taylor 2009-10-01 02:42:29 -0400
  • bdcdc26d49 Add hard links. Closes #11 Scott Taylor 2009-10-01 01:39:07 -0400
  • 7e927d8ff0 Add File.symlink as an alias for FileUtils.ln_s Scott Taylor 2009-09-30 01:26:52 -0400
  • 34a88c4e63 Start File::Stat. Add Stat#symlink?, stat#directory? Scott Taylor 2009-09-30 01:23:26 -0400
  • cb9de5938f method_missing should always be private Scott Taylor 2009-09-29 22:57:14 -0400
  • a9877659d1 Call the test task what it is Scott Taylor 2009-09-29 22:55:23 -0400
  • 72aca398ac Run all test files in test directory Scott Taylor 2009-09-29 22:54:17 -0400
  • 6f08568d8f Add File.link as a copy operation Scott Taylor 2009-09-29 22:48:50 -0400
  • 731122a1ac Refactor mode code Scott Taylor 2009-09-30 03:44:42 -0400
  • 6d44186cf7 Truncate an existing file in "w", "w+" modes. Scott Taylor 2009-09-30 03:36:56 -0400
  • 3a5098092c Raise an IOError when a file is read in a write-only mode. Scott Taylor 2009-09-30 03:28:33 -0400
  • 0b7d45b985 Don't attempt to create a missing file in File.write (the mode guarantees that the file will already be present) Scott Taylor 2009-09-30 03:22:28 -0400
  • e3446636e5 Create files in w, w+, a, and a+ modes when calling File.new and the file is missing. Scott Taylor 2009-09-30 03:20:59 -0400
  • 17e2e47027 Raise an error when opening a file which does not exist in read-write ('r+') mode Scott Taylor 2009-09-30 03:13:58 -0400
  • 2881614123 Raise an Errno::ENOENT error when opening a file which does not exist Scott Taylor 2009-09-30 03:03:21 -0400
  • a8245db145 Raise an error when giving File.open an illegal access mode. Set default mode for File.open to READ_ONLY Scott Taylor 2009-09-30 02:57:10 -0400
  • 6068034c29 Don't allow writing in read-only mode Scott Taylor 2009-09-30 02:52:25 -0400
  • 20eb3f238e Add file modes. Replace magic values with constants. Scott Taylor 2009-09-30 02:45:48 -0400
  • a34f8e8beb Implemented File.size Jon Yurek 2009-09-29 22:03:21 +0800
  • 0da41d92a7 Return result of yield from FakeFS block msassak 2009-09-22 13:26:11 +0800
  • 25e47887b0 Merge branch 'master' of github.com:defunkt/fakefs Chris Wanstrath 2009-09-21 19:43:17 -0700
  • 1eb0b97207 FakeFS 0.1.1 Chris Wanstrath 2009-09-21 19:43:13 -0700
  • fa89049964 style tweaks Chris Wanstrath 2009-09-21 19:42:23 -0700
  • 0124b3ab89 whitespace Chris Wanstrath 2009-09-21 19:38:35 -0700
  • a22f0c5ee6 Remove debug statements Chris Wanstrath 2009-09-21 19:37:55 -0700
  • bbb659fcf8 Add support for mkpath, an alias for mkdir_p on FileUtils Rob Sanheim 2009-09-13 10:14:07 +0800
  • 8e1d049ee4 Updated File.open and File.new signature Myles Eftos 2009-09-17 08:22:24 +0800
  • f6031458cd Fixed FileUtils.rmdir and Dir.unlink Myles Eftos 2009-09-14 03:16:20 +0800
  • c9bd3260c5 Fixed FileUtils.rmdir and Dir.unlink Myles Eftos 2009-09-14 03:15:12 +0800
  • a926ebf1c5 Added File.extname and FileUtils.rmdir Myles Eftos 2009-09-14 01:41:00 +0800