diff --git a/classes/FakeFS.html b/classes/FakeFS.html index 0c55f38..504f247 100644 --- a/classes/FakeFS.html +++ b/classes/FakeFS.html @@ -35,6 +35,8 @@
  • lib/fakefs/file_system.rb
  • +
  • lib/fakefs/file_test.rb
  • +
  • lib/fakefs/fileutils.rb
  • lib/fakefs/spec_helpers.rb
  • @@ -104,6 +106,8 @@
  • CLASS FakeFS::File
  • +
  • CLASS FakeFS::FileTest
  • + @@ -128,20 +132,22 @@
    -
    # File lib/fakefs/base.rb, line 8
    +                        
    # File lib/fakefs/base.rb, line 7
       def self.activate!
         Object.class_eval do
           remove_const(:Dir)
           remove_const(:File)
    +      remove_const(:FileTest)
           remove_const(:FileUtils)
    -      const_set(:Dir, FakeFS::Dir)
    -      const_set(:File, FakeFS::File)
    +
    +      const_set(:Dir,       FakeFS::Dir)
    +      const_set(:File,      FakeFS::File)
           const_set(:FileUtils, FakeFS::FileUtils)
    +      const_set(:FileTest,  FakeFS::FileTest)
         end
    +    true
       end
    @@ -162,20 +168,22 @@
    -
    # File lib/fakefs/base.rb, line 19
    +                        
    # File lib/fakefs/base.rb, line 22
       def self.deactivate!
         Object.class_eval do
           remove_const(:Dir)
           remove_const(:File)
    +      remove_const(:FileTest)
           remove_const(:FileUtils)
    -      const_set(:Dir, RealDir)
    -      const_set(:File, RealFile)
    +
    +      const_set(:Dir,       RealDir)
    +      const_set(:File,      RealFile)
    +      const_set(:FileTest,  RealFileTest)
           const_set(:FileUtils, RealFileUtils)
         end
    +    true
       end
    diff --git a/classes/FakeFS/Dir.html b/classes/FakeFS/Dir.html index b9f4570..bb56a5f 100644 --- a/classes/FakeFS/Dir.html +++ b/classes/FakeFS/Dir.html @@ -62,7 +62,7 @@
  • chroot,
  • -
  • close
  • +
  • close
  • @@ -118,7 +118,7 @@
    @@ -127,7 +127,7 @@
    @@ -142,7 +142,7 @@
  • pos=,
  • -
  • pwd
  • +
  • pwd
  • @@ -171,7 +171,7 @@
    @@ -218,8 +218,6 @@
    # File lib/fakefs/dir.rb, line 55
    @@ -245,8 +243,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 59
    @@ -272,8 +268,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 63
    @@ -299,8 +293,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 67
    @@ -327,8 +319,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 72
    @@ -355,8 +345,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 77
    @@ -382,8 +370,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 81
    @@ -409,8 +395,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 85
    @@ -418,6 +402,7 @@
           parent = string.split('/')
           parent.pop
           raise Errno::ENOENT, "No such file or directory - #{string}" unless parent.join == "" || FileSystem.find(parent.join('/'))
    +      raise Errno::EEXIST, "File exists - #{string}" if File.exists?(string)
           FileUtils.mkdir_p(string)
         end
    @@ -426,9 +411,9 @@
    -
    +
    - new(string) + new(string)
    @@ -437,12 +422,10 @@
    -
    +
    # File lib/fakefs/dir.rb, line 5
         def initialize(string)
           raise Errno::ENOENT, string unless FileSystem.find(string)
    @@ -457,9 +440,9 @@
                 
    -
    +
    - open(string, &block) + open(string, &block)
    @@ -468,13 +451,11 @@
    -
    -
    # File lib/fakefs/dir.rb, line 92
    +                    
    +
    # File lib/fakefs/dir.rb, line 93
         def self.open(string, &block)
           if block_given?
             Dir.new(string).each { |file| yield(file) }
    @@ -488,9 +469,9 @@
                 
    -
    +
    - pwd() + pwd()
    @@ -499,13 +480,11 @@
    -
    -
    # File lib/fakefs/dir.rb, line 104
    +                    
    +
    # File lib/fakefs/dir.rb, line 105
         def self.pwd
           FileSystem.current_dir.to_s
         end
    @@ -515,9 +494,9 @@
    -
    +
    - tmpdir() + tmpdir()
    @@ -526,13 +505,11 @@
    -
    -
    # File lib/fakefs/dir.rb, line 100
    +                    
    +
    # File lib/fakefs/dir.rb, line 101
         def self.tmpdir
           '/tmp'
         end
    @@ -544,9 +521,9 @@
    Instance Public methods
    -
    +
    - close() + close()
    @@ -555,12 +532,10 @@
    -
    +
    # File lib/fakefs/dir.rb, line 13
         def close
           @open = false
    @@ -587,8 +562,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 20
    @@ -616,8 +589,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 26
    @@ -643,8 +614,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 30
    @@ -670,8 +639,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 34
    @@ -697,8 +664,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 38
    @@ -727,8 +692,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 45
    @@ -754,8 +717,6 @@
                         
                         
    # File lib/fakefs/dir.rb, line 49
    diff --git a/classes/FakeFS/FakeDir.html b/classes/FakeFS/FakeDir.html
    index 08ae1d8..b9b9eb3 100644
    --- a/classes/FakeFS/FakeDir.html
    +++ b/classes/FakeFS/FakeDir.html
    @@ -49,7 +49,7 @@
             
    @@ -67,7 +67,7 @@
    @@ -76,7 +76,7 @@
    @@ -85,7 +85,7 @@
    @@ -130,46 +130,32 @@ + + + [R] + + ctime + + + + + + [R] + + mtime + + +
    Class Public methods
    -
    -
    - - new(name = nil, parent = nil) - -
    - - - - -
    - -
    -
    # File lib/fakefs/fake/dir.rb, line 5
    -    def initialize(name = nil, parent = nil)
    -      @name = name
    -      @parent = parent
    -    end
    -
    -
    - -
    - -
    Instance Public methods
    -
    - clone(parent = nil) + new(name = nil, parent = nil)
    @@ -180,11 +166,39 @@
    -
    # File lib/fakefs/fake/dir.rb, line 18
    +                        
    # File lib/fakefs/fake/dir.rb, line 6
    +    def initialize(name = nil, parent = nil)
    +      @name   = name
    +      @parent = parent
    +      @ctime  = Time.now
    +      @mtime  = @ctime
    +    end
    +
    +
    + +
    + +
    Instance Public methods
    + +
    +
    + + clone(parent = nil) + +
    + + + + +
    + +
    +
    # File lib/fakefs/fake/dir.rb, line 21
         def clone(parent = nil)
           clone = Marshal.load(Marshal.dump(self))
           clone.each do |key, value|
    @@ -212,11 +226,9 @@
                         
                         
    -
    # File lib/fakefs/fake/dir.rb, line 37
    +                        
    # File lib/fakefs/fake/dir.rb, line 40
         def delete(node = self)
           if node == self
             parent.delete(self)
    @@ -230,9 +242,9 @@
                 
    -
    +
    - entry() + entry()
    @@ -241,13 +253,11 @@
    -
    -
    # File lib/fakefs/fake/dir.rb, line 10
    +                    
    +
    # File lib/fakefs/fake/dir.rb, line 13
         def entry
           self
         end
    @@ -257,9 +267,9 @@
    -
    +
    - inspect() + inspect()
    @@ -268,13 +278,11 @@
    -
    -
    # File lib/fakefs/fake/dir.rb, line 14
    +                    
    +
    # File lib/fakefs/fake/dir.rb, line 17
         def inspect
           "(FakeDir name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{size})"
         end
    @@ -297,11 +305,9 @@
    -
    # File lib/fakefs/fake/dir.rb, line 27
    +                        
    # File lib/fakefs/fake/dir.rb, line 30
         def to_s
           if parent && parent.to_s != '.'
             File.join(parent.to_s, name)
    diff --git a/classes/FakeFS/FakeFile.html b/classes/FakeFS/FakeFile.html
    index 1b11b80..5bd0713 100644
    --- a/classes/FakeFS/FakeFile.html
    +++ b/classes/FakeFS/FakeFile.html
    @@ -49,11 +49,11 @@
             
    @@ -62,7 +62,7 @@
    @@ -71,7 +71,7 @@
    @@ -80,7 +80,7 @@
    @@ -89,9 +89,9 @@
    @@ -100,7 +100,7 @@
    @@ -109,7 +109,7 @@
    @@ -162,7 +162,15 @@ - [RW] + [R] + + ctime + + + + + + [R] mtime @@ -183,9 +191,9 @@
    Class Public methods
    -
    +
    - new(name = nil, parent = nil) + new(name = nil, parent = nil)
    @@ -194,18 +202,17 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 30
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 31
         def initialize(name = nil, parent = nil)
           @name   = name
           @parent = parent
           @inode  = Inode.new(self)
    -      @mtime  = Time.now
    +      @ctime  = Time.now
    +      @mtime  = @ctime
         end
    @@ -215,9 +222,9 @@
    Instance Public methods
    -
    +
    - clone(parent = nil) + clone(parent = nil)
    @@ -226,13 +233,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 55
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 57
         def clone(parent = nil)
           clone = super()
           clone.parent = parent if parent
    @@ -245,9 +250,9 @@
                 
    -
    +
    - content() + content()
    @@ -256,13 +261,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 39
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 41
         def content
           @inode.content
         end
    @@ -272,9 +275,9 @@
    -
    +
    - content=(str) + content=(str)
    @@ -283,13 +286,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 43
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 45
         def content=(str)
           @inode.content = str
         end
    @@ -298,119 +299,10 @@
    -
    -
    - - delete() - -
    - - - - -
    - -
    -
    # File lib/fakefs/fake/file.rb, line 74
    -    def delete
    -      inode.unlink(self)
    -      parent.delete(self)
    -    end
    -
    -
    - -
    - -
    -
    - - entry() - -
    - - - - -
    - -
    -
    # File lib/fakefs/fake/file.rb, line 62
    -    def entry
    -      self
    -    end
    -
    -
    - -
    - -
    -
    - - inspect() - -
    - - - - -
    - -
    -
    # File lib/fakefs/fake/file.rb, line 66
    -    def inspect
    -      "(FakeFile name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{content.size})"
    -    end
    -
    -
    - -
    - -
    -
    - - link(other_file) - -
    - - - - -
    - -
    -
    # File lib/fakefs/fake/file.rb, line 51
    -    def link(other_file)
    -      @inode.link(other_file)
    -    end
    -
    -
    - -
    -
    - links() + delete()
    @@ -421,11 +313,110 @@
    -
    # File lib/fakefs/fake/file.rb, line 47
    +                        
    # File lib/fakefs/fake/file.rb, line 76
    +    def delete
    +      inode.unlink(self)
    +      parent.delete(self)
    +    end
    +
    +
    + +
    + +
    +
    + + entry() + +
    + + + + +
    + +
    +
    # File lib/fakefs/fake/file.rb, line 64
    +    def entry
    +      self
    +    end
    +
    +
    + +
    + +
    +
    + + inspect() + +
    + + + + +
    + +
    +
    # File lib/fakefs/fake/file.rb, line 68
    +    def inspect
    +      "(FakeFile name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{content.size})"
    +    end
    +
    +
    + +
    + +
    +
    + + link(other_file) + +
    + + + + +
    + +
    +
    # File lib/fakefs/fake/file.rb, line 53
    +    def link(other_file)
    +      @inode.link(other_file)
    +    end
    +
    +
    + +
    + +
    +
    + + links() + +
    + + + + +
    + +
    +
    # File lib/fakefs/fake/file.rb, line 49
         def links
           @inode.links
         end
    @@ -435,9 +426,9 @@
    -
    +
    - to_s() + to_s()
    @@ -446,13 +437,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 70
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 72
         def to_s
           File.join(parent.to_s, name)
         end
    diff --git a/classes/FakeFS/FakeFile/Inode.html b/classes/FakeFS/FakeFile/Inode.html index 1163500..597b83f 100644 --- a/classes/FakeFS/FakeFile/Inode.html +++ b/classes/FakeFS/FakeFile/Inode.html @@ -49,7 +49,7 @@
    @@ -58,7 +58,7 @@
    @@ -76,7 +76,7 @@
    @@ -132,11 +132,9 @@
    -
    # File lib/fakefs/fake/file.rb, line 6
    +                        
    # File lib/fakefs/fake/file.rb, line 7
           def initialize(file_owner)
             @content = ""
             @links   = [file_owner]
    @@ -149,9 +147,9 @@
                 
    Instance Public methods
    -
    +
    - clone() + clone()
    @@ -160,13 +158,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 23
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 24
           def clone
             clone = super
             clone.content = content.dup
    @@ -178,9 +174,9 @@
                 
    -
    +
    - link(file) + link(file)
    @@ -189,13 +185,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 14
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 15
           def link(file)
             links << file unless links.include?(file)
             file.inode = self
    @@ -206,9 +200,9 @@
                 
    -
    +
    - unlink(file) + unlink(file)
    @@ -217,13 +211,11 @@
    -
    -
    # File lib/fakefs/fake/file.rb, line 19
    +                    
    +
    # File lib/fakefs/fake/file.rb, line 20
           def unlink(file)
             links.delete(file)
           end
    diff --git a/classes/FakeFS/FakeSymlink.html b/classes/FakeFS/FakeSymlink.html index 7863f7b..186feff 100644 --- a/classes/FakeFS/FakeSymlink.html +++ b/classes/FakeFS/FakeSymlink.html @@ -49,7 +49,7 @@
    @@ -58,7 +58,7 @@
    @@ -67,7 +67,7 @@
    @@ -76,7 +76,7 @@
    @@ -85,7 +85,7 @@
    @@ -128,9 +128,9 @@
    Class Public methods
    -
    +
    - new(target) + new(target)
    @@ -139,12 +139,10 @@
    -
    +
    # File lib/fakefs/fake/symlink.rb, line 6
         def initialize(target)
           @target = target
    @@ -157,9 +155,9 @@
                 
    Instance Public methods
    -
    +
    - delete() + delete()
    @@ -168,12 +166,10 @@
    -
    +
    # File lib/fakefs/fake/symlink.rb, line 18
         def delete
           parent.delete(self)
    @@ -184,9 +180,9 @@
                 
    -
    +
    - entry() + entry()
    @@ -195,12 +191,10 @@
    -
    +
    # File lib/fakefs/fake/symlink.rb, line 14
         def entry
           FileSystem.find(target)
    @@ -211,9 +205,9 @@
                 
    -
    +
    - inspect() + inspect()
    @@ -222,12 +216,10 @@
    -
    +
    # File lib/fakefs/fake/symlink.rb, line 10
         def inspect
           "symlink(#{target.split('/').last})"
    @@ -238,9 +230,9 @@
                 
    -
    +
    - respond_to?(method) + respond_to?(method)
    @@ -249,12 +241,10 @@
    -
    +
    # File lib/fakefs/fake/symlink.rb, line 22
         def respond_to?(method)
           entry.respond_to?(method)
    diff --git a/classes/FakeFS/File.html b/classes/FakeFS/File.html
    index 79852e3..7ba2ccd 100644
    --- a/classes/FakeFS/File.html
    +++ b/classes/FakeFS/File.html
    @@ -20,7 +20,7 @@
                 
                     < 
                         
    -                    Object
    +                    StringIO
                         
                     
                 
    @@ -45,11 +45,13 @@
         
    Methods
    -
    #
    +
    A
    @@ -58,7 +60,9 @@
    @@ -67,9 +71,19 @@
    @@ -78,11 +92,11 @@
    @@ -93,9 +107,9 @@
  • exist?,
  • -
  • exists?,
  • +
  • exists?,
  • -
  • expand_path,
  • +
  • expand_path,
  • extname
  • @@ -106,9 +120,18 @@
    +
    + +
    I
    +
    +
    @@ -126,7 +149,11 @@
    @@ -135,7 +162,9 @@
    @@ -144,27 +173,7 @@
    -
    - -
    O
    -
    - -
    - -
    P
    -
    -
    @@ -173,15 +182,15 @@
    @@ -190,17 +199,32 @@
    +
    + +
    T
    +
    +
    @@ -209,7 +233,7 @@
    @@ -291,9 +315,9 @@
    Class Public methods
    -
    +
    - basename(*args) + basename(*args)
    @@ -302,13 +326,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 103
    +                    
    +
    # File lib/fakefs/file.rb, line 113
         def self.basename(*args)
           RealFile.basename(*args)
         end
    @@ -318,9 +340,9 @@
    -
    +
    - const_missing(name) + const_missing(name)
    @@ -329,13 +351,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 69
    +                    
    +
    # File lib/fakefs/file.rb, line 79
         def self.const_missing(name)
           RealFile.const_get(name)
         end
    @@ -345,9 +365,9 @@
    -
    +
    - delete(file_name, *additional_file_names) + ctime(path)
    @@ -356,13 +376,40 @@
    -
    -
    # File lib/fakefs/file.rb, line 157
    +                    
    +
    # File lib/fakefs/file.rb, line 59
    +    def self.ctime(path)
    +      if exists?(path)
    +        FileSystem.find(path).ctime
    +      else
    +        raise Errno::ENOENT
    +      end
    +    end
    +
    +
    + +
    + +
    +
    + + delete(file_name, *additional_file_names) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 159
         def self.delete(file_name, *additional_file_names)
           if !exists?(file_name)
             raise Errno::ENOENT, "No such file or directory - #{file_name}"
    @@ -382,9 +429,9 @@
                 
    -
    +
    - directory?(path) + directory?(path)
    @@ -393,13 +440,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 73
    +                    
    +
    # File lib/fakefs/file.rb, line 83
         def self.directory?(path)
           if path.respond_to? :entry
             path.entry.is_a? FakeDir
    @@ -414,9 +459,9 @@
                 
    -
    +
    - dirname(path) + dirname(path)
    @@ -425,13 +470,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 107
    +                    
    +
    # File lib/fakefs/file.rb, line 117
         def self.dirname(path)
           RealFile.dirname(path)
         end
    @@ -454,11 +497,9 @@
    -
    # File lib/fakefs/file.rb, line 37
    +                        
    # File lib/fakefs/file.rb, line 39
         def self.exist?(path)
           !!FileSystem.find(path)
         end
    @@ -468,9 +509,9 @@
    -
    +
    - expand_path(*args) + expand_path(*args)
    @@ -479,13 +520,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 99
    +                    
    +
    # File lib/fakefs/file.rb, line 109
         def self.expand_path(*args)
           RealFile.expand_path(*args)
         end
    @@ -508,11 +547,9 @@
    -
    # File lib/fakefs/file.rb, line 29
    +                        
    # File lib/fakefs/file.rb, line 31
         def self.extname(path)
           RealFile.extname(path)
         end
    @@ -522,9 +559,9 @@
    -
    +
    - file?(path) + file?(path)
    @@ -533,13 +570,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 90
    +                    
    +
    # File lib/fakefs/file.rb, line 100
         def self.file?(path)
           if path.respond_to? :entry
             path.entry.is_a? FakeFile
    @@ -567,11 +602,9 @@
                         
                         
    -
    # File lib/fakefs/file.rb, line 33
    +                        
    # File lib/fakefs/file.rb, line 35
         def self.join(*parts)
           parts * PATH_SEPARATOR
         end
    @@ -581,9 +614,9 @@
    -
    +
    - link(source, dest) + link(source, dest)
    @@ -592,13 +625,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 137
    +                    
    +
    # File lib/fakefs/file.rb, line 139
         def self.link(source, dest)
           if directory?(source)
             raise Errno::EPERM, "Operation not permitted - #{source} or #{dest}"
    @@ -624,9 +655,9 @@
                 
    -
    +
    - mtime(path) + lstat(file)
    @@ -635,13 +666,36 @@
    -
    -
    # File lib/fakefs/file.rb, line 49
    +                    
    +
    # File lib/fakefs/file.rb, line 185
    +    def self.lstat(file)
    +      File::Stat.new(file, true)
    +    end
    +
    +
    + +
    + +
    +
    + + mtime(path) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 51
         def self.mtime(path)
           if exists?(path)
             FileSystem.find(path).mtime
    @@ -655,9 +709,9 @@
                 
    -
    +
    - new(path, mode = READ_ONLY, perm = nil) + new(path, mode = READ_ONLY, perm = nil)
    @@ -666,24 +720,22 @@
    -
    -
    # File lib/fakefs/file.rb, line 207
    +                    
    +
    # File lib/fakefs/file.rb, line 227
         def initialize(path, mode = READ_ONLY, perm = nil)
           @path = path
           @mode = mode
           @file = FileSystem.find(path)
    -      @open = true
    +      @autoclose = true
     
           check_modes!
     
           file_creation_mode? ? create_missing_file : check_file_existence!
     
    -      @stream = StringIO.new(@file.content, mode)
    +      super(@file.content, mode)
         end
    @@ -691,9 +743,9 @@
    -
    +
    - open(path, mode=READ_ONLY, perm = 0644) + read(path)
    @@ -702,44 +754,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 116
    -    def self.open(path, mode=READ_ONLY, perm = 0644)
    -      if block_given?
    -        yield new(path, mode, perm)
    -      else
    -        new(path, mode, perm)
    -      end
    -    end
    -
    -
    - -
    - -
    -
    - - read(path) - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 124
    +                    
    +
    # File lib/fakefs/file.rb, line 126
         def self.read(path)
           file = new(path)
           if file.exists?
    @@ -754,9 +773,9 @@
                 
    -
    +
    - readlines(path) + readlines(path)
    @@ -765,13 +784,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 133
    +                    
    +
    # File lib/fakefs/file.rb, line 135
         def self.readlines(path)
           read(path).split("\n")
         end
    @@ -781,9 +798,9 @@
    -
    +
    - readlink(path) + readlink(path)
    @@ -792,13 +809,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 111
    +                    
    +
    # File lib/fakefs/file.rb, line 121
         def self.readlink(path)
           symlink = FileSystem.find(path)
           FileSystem.find(symlink.target).to_s
    @@ -808,37 +823,10 @@
                     
                 
    -
    -
    - - size(path) - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 57
    -    def self.size(path)
    -      read(path).length
    -    end
    -
    -
    - -
    -
    - size?(path) + size(path)
    @@ -849,11 +837,34 @@
    -
    # File lib/fakefs/file.rb, line 61
    +                        
    # File lib/fakefs/file.rb, line 67
    +    def self.size(path)
    +      read(path).length
    +    end
    +
    +
    + +
    + +
    +
    + + size?(path) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 71
         def self.size?(path)
           if exists?(path) && !size(path).zero?
             true
    @@ -866,10 +877,35 @@
                     
                 
    +
    +
    + + stat(file) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 181
    +    def self.stat(file)
    +      File::Stat.new(file)
    +    end
    +
    +
    + +
    +
    - stat(file) + symlink(source, dest)
    @@ -880,38 +916,9 @@
    -
    # File lib/fakefs/file.rb, line 179
    -    def self.stat(file)
    -      File::Stat.new(file)
    -    end
    -
    -
    - -
    - -
    -
    - - symlink(source, dest) - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 175
    +                        
    # File lib/fakefs/file.rb, line 177
         def self.symlink(source, dest)
           FileUtils.ln_s(source, dest)
         end
    @@ -921,9 +928,9 @@
    -
    +
    - symlink?(path) + symlink?(path)
    @@ -932,13 +939,11 @@
    -
    -
    # File lib/fakefs/file.rb, line 82
    +                    
    +
    # File lib/fakefs/file.rb, line 92
         def self.symlink?(path)
           if path.respond_to? :entry
             path.is_a? FakeSymlink
    @@ -954,27 +959,9 @@
                 
    Instance Public methods
    -
    +
    - <<(content) - -
    - -
    -

    -Alias for write -

    - -
    - - - -
    - -
    -
    - - close() + atime()
    @@ -983,15 +970,13 @@ Alias for write
    -
    -
    # File lib/fakefs/file.rb, line 220
    -    def close
    -      @open = false
    +                    
    +
    # File lib/fakefs/file.rb, line 290
    +    def atime
    +      raise NotImplementedError
         end
    @@ -999,9 +984,9 @@ Alias for write
    -
    +
    - exists?() + autoclose?()
    @@ -1010,15 +995,63 @@ Alias for write
    -
    -
    # File lib/fakefs/file.rb, line 232
    -    def exists?
    -      true
    +                    
    +
    # File lib/fakefs/file.rb, line 335
    +      def autoclose?
    +        @autoclose
    +      end
    +
    +
    + +
    + +
    +
    + + binmode?() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 315
    +      def binmode?
    +        raise NotImplementedError
    +      end
    +
    +
    + +
    + +
    +
    + + chmod(mode_int) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 294
    +    def chmod(mode_int)
    +      raise NotImplementedError
         end
    @@ -1026,9 +1059,9 @@ Alias for write
    -
    +
    - flush() + chown(owner_int, group_int)
    @@ -1037,58 +1070,13 @@ Alias for write
    -
    -
    # File lib/fakefs/file.rb, line 246
    -    def flush; self; end
    -
    -
    - -
    - -
    -
    - - print(content) - -
    - -
    -

    -Alias for write -

    - -
    - - - -
    - -
    -
    - - puts(*content) - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 236
    -    def puts(*content)
    -      @stream.puts(*content)
    +                    
    +
    # File lib/fakefs/file.rb, line 298
    +    def chown(owner_int, group_int)
    +      raise NotImplementedError
         end
    @@ -1096,9 +1084,9 @@ Alias for write
    -
    +
    - read(chunk = nil) + close_on_exec=(bool)
    @@ -1107,15 +1095,63 @@ Alias for write
    -
    -
    # File lib/fakefs/file.rb, line 224
    -    def read(chunk = nil)
    -      @stream.read(chunk)
    +                    
    +
    # File lib/fakefs/file.rb, line 319
    +      def close_on_exec=(bool)
    +        raise NotImplementedError
    +      end
    +
    +
    + +
    + +
    +
    + + close_on_exec?() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 323
    +      def close_on_exec?
    +        raise NotImplementedError
    +      end
    +
    +
    + +
    + +
    +
    + + ctime() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 302
    +    def ctime
    +      self.class.ctime(@path)
         end
    @@ -1125,7 +1161,7 @@ Alias for write
    - rewind() + exists?()
    @@ -1136,23 +1172,297 @@ Alias for write
    -
    # File lib/fakefs/file.rb, line 228
    -    def rewind
    -      @stream.rewind
    +                        
    # File lib/fakefs/file.rb, line 240
    +    def exists?
    +      true
         end
    +
    +
    + + flock(locking_constant) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 306
    +    def flock(locking_constant)
    +      raise NotImplementedError
    +    end
    +
    +
    + +
    + +
    +
    + + ioctl(integer_cmd, arg) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 255
    +    def ioctl(integer_cmd, arg)
    +      raise NotImplementedError
    +    end
    +
    +
    + +
    + +
    +
    + + lstat() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 267
    +    def lstat
    +      self.class.lstat(@path)
    +    end
    +
    +
    + +
    + +
    +
    + + mtime() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 310
    +    def mtime
    +      self.class.mtime(@path)
    +    end
    +
    +
    + +
    + +
    +
    + + read_nonblock(maxlen, outbuf = nil) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 259
    +    def read_nonblock(maxlen, outbuf = nil)
    +      raise NotImplementedError
    +    end
    +
    +
    + +
    + +
    +
    + + readpartial(maxlen, outbuf = nil) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 286
    +    def readpartial(maxlen, outbuf = nil)
    +      raise NotImplementedError
    +    end
    +
    +
    + +
    + +
    +
    + + size() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 341
    +      def size
    +        File.size(@path)
    +      end
    +
    +
    + +
    + +
    +
    + + stat() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 263
    +    def stat
    +      self.class.stat(@path)
    +    end
    +
    +
    + +
    + +
    +
    + + sysseek(position, whence = SEEK_SET) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 271
    +    def sysseek(position, whence = SEEK_SET)
    +      seek(position, whence)
    +      pos
    +    end
    +
    +
    + +
    + +
    +
    + + to_io() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 278
    +    def to_io
    +      self
    +    end
    +
    +
    + +
    + +
    +
    + + to_path() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 327
    +      def to_path
    +        raise NotImplementedError
    +      end
    +
    +
    + +
    +
    - seek(amount, whence = SEEK_SET) + write_nonblock(string)
    @@ -1163,49 +1473,11 @@ Alias for write
    -
    # File lib/fakefs/file.rb, line 248
    -    def seek(amount, whence = SEEK_SET)
    -      @stream.seek(amount, whence)
    -    end
    -
    -
    - -
    - -
    -
    - - write(content) - -
    - - -
    - This method is also aliased as - - print - - << - -
    - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 240
    -    def write(content)
    -      @stream.write(content)
    +                        
    # File lib/fakefs/file.rb, line 282
    +    def write_nonblock(string)
    +      raise NotImplementedError
         end
    diff --git a/classes/FakeFS/File/Stat.html b/classes/FakeFS/File/Stat.html index 832c199..91c802c 100644 --- a/classes/FakeFS/File/Stat.html +++ b/classes/FakeFS/File/Stat.html @@ -49,7 +49,7 @@
    @@ -58,9 +58,9 @@
    @@ -69,7 +69,9 @@
    @@ -86,101 +88,35 @@ +
    Attributes
    + + + + + + + + + + + + + + +
    + [R] + ctime
    + [R] + mtime
    +
    Class Public methods
    -
    -
    - - new(file) - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 184
    -      def initialize(file)
    -        if !File.exists?(file)
    -          raise(Errno::ENOENT, "No such file or directory - #{file}")
    -        end
    -
    -        @file = file
    -      end
    -
    -
    - -
    - -
    Instance Public methods
    - -
    -
    - - directory?() - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 196
    -      def directory?
    -        File.directory?(@file)
    -      end
    -
    -
    - -
    - -
    -
    - - nlink() - -
    - - - - -
    - -
    -
    # File lib/fakefs/file.rb, line 200
    -      def nlink
    -        FileSystem.find(@file).links.size
    -      end
    -
    -
    - -
    -
    - symlink?() + new(file, __lstat = false)
    @@ -191,11 +127,123 @@
    # File lib/fakefs/file.rb, line 192
    +      def initialize(file, __lstat = false)
    +        if !File.exists?(file)
    +          raise(Errno::ENOENT, "No such file or directory - #{file}")
    +        end
    +
    +        @file      = file
    +        @fake_file = FileSystem.find(@file)
    +        @__lstat   = __lstat
    +        @ctime     = @fake_file.ctime
    +        @mtime     = @fake_file.mtime
    +      end
    +
    +
    + +
    + +
    Instance Public methods
    + +
    +
    + + directory?() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 208
    +      def directory?
    +        File.directory?(@file)
    +      end
    +
    +
    + +
    + +
    +
    + + nlink() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 212
    +      def nlink
    +        @fake_file.links.size
    +      end
    +
    +
    + +
    + +
    +
    + + size() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 216
    +      def size
    +        if @__lstat && symlink?
    +          @fake_file.target.size
    +        else
    +          File.size(@file)
    +        end
    +      end
    +
    +
    + +
    + +
    +
    + + symlink?() + +
    + + + + +
    + +
    +
    # File lib/fakefs/file.rb, line 204
           def symlink?
             File.symlink?(@file)
           end
    diff --git a/classes/FakeFS/FileSystem.html b/classes/FakeFS/FileSystem.html index 4d7fb07..0111ff4 100644 --- a/classes/FakeFS/FileSystem.html +++ b/classes/FakeFS/FileSystem.html @@ -43,7 +43,7 @@
    @@ -52,13 +52,13 @@
    @@ -67,9 +67,9 @@
    @@ -78,11 +78,11 @@
    @@ -91,7 +91,7 @@
    @@ -100,7 +100,7 @@
    @@ -122,9 +122,9 @@
    Instance Public methods
    -
    +
    - add(path, object=FakeDir.new) + add(path, object=FakeDir.new)
    @@ -133,12 +133,10 @@
    -
    +
    # File lib/fakefs/file_system.rb, line 35
         def add(path, object=FakeDir.new)
           parts = path_parts(normalize_path(path))
    @@ -157,9 +155,9 @@
                 
    -
    +
    - chdir(dir, &blk) + chdir(dir, &blk)
    @@ -168,12 +166,10 @@
    -
    +
    # File lib/fakefs/file_system.rb, line 74
         def chdir(dir, &blk)
           new_dir = find(dir)
    @@ -192,9 +188,9 @@
                 
    -
    +
    - clear() + clear()
    @@ -203,12 +199,10 @@
    -
    +
    # File lib/fakefs/file_system.rb, line 13
         def clear
           @dir_levels = nil
    @@ -220,9 +214,9 @@
                 
    -
    +
    - clone(path) + clone(path)
    @@ -238,12 +232,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 49
         def clone(path)
           path    = File.expand_path(path)
    @@ -269,9 +261,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - current_dir() + current_dir()
    @@ -280,12 +272,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 99
         def current_dir
           find(normalize_path('.'))
    @@ -296,9 +286,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - delete(path) + delete(path)
    @@ -307,12 +297,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 68
         def delete(path)
           if node = FileSystem.find(path)
    @@ -325,9 +313,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - dir_levels() + dir_levels()
    @@ -336,12 +324,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 5
         def dir_levels
           @dir_levels ||= []
    @@ -352,9 +338,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - files() + files()
    @@ -363,12 +349,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 18
         def files
           fs.values
    @@ -379,9 +363,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - find(path) + find(path)
    @@ -390,12 +374,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 22
         def find(path)
           parts = path_parts(normalize_path(path))
    @@ -415,9 +397,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - fs() + fs()
    @@ -426,12 +408,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 9
         def fs
           @fs ||= FakeDir.new('.')
    @@ -442,9 +422,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - normalize_path(path) + normalize_path(path)
    @@ -453,12 +433,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 90
         def normalize_path(path)
           if Pathname.new(path).absolute?
    @@ -474,9 +452,9 @@ copies directories and files from the real filesystem into our fake one
                 
    -
    +
    - path_parts(path) + path_parts(path)
    @@ -485,12 +463,10 @@ copies directories and files from the real filesystem into our fake one
    -
    +
    # File lib/fakefs/file_system.rb, line 86
         def path_parts(path)
           path.split(File::PATH_SEPARATOR).reject { |part| part.empty? }
    diff --git a/classes/FakeFS/FileTest.html b/classes/FakeFS/FileTest.html
    new file mode 100644
    index 0000000..85028b9
    --- /dev/null
    +++ b/classes/FakeFS/FileTest.html
    @@ -0,0 +1,101 @@
    +
    +
    +
    +
    +    FakeFS::FileTest
    +    
    +    
    +    
    +    
    +    
    +    
    +
    +
    +     
    +    
    +    
    +
    + + + + + + + + + +
    Methods
    +
    + +
    E
    +
    + +
    + +
    + + + + + + + + + + + + + +
    Class Public methods
    + +
    +
    + + exist?(file_name) + +
    + + + + +
    + +
    +
    # File lib/fakefs/file_test.rb, line 3
    +    def self.exist?(file_name)
    +      File.exist?(file_name)
    +    end
    +
    +
    + +
    + +
    +
    + + \ No newline at end of file diff --git a/classes/FakeFS/FileUtils.html b/classes/FakeFS/FileUtils.html index 18028a7..f66d6eb 100644 --- a/classes/FakeFS/FileUtils.html +++ b/classes/FakeFS/FileUtils.html @@ -43,17 +43,17 @@
    @@ -62,9 +62,9 @@
    @@ -73,11 +73,11 @@
    @@ -86,15 +86,15 @@
    @@ -103,7 +103,7 @@
    @@ -125,9 +125,9 @@
    Instance Public methods
    -
    +
    - cd(dir) + cd(dir)
    @@ -135,7 +135,7 @@
    This method is also aliased as - chdir + chdir
    @@ -143,12 +143,10 @@
    -
    +
    # File lib/fakefs/fileutils.rb, line 124
         def cd(dir)
           FileSystem.chdir(dir)
    @@ -159,15 +157,15 @@
                 
    -
    +
    - chdir(dir) + chdir(dir)

    -Alias for cd +Alias for cd

    @@ -177,9 +175,9 @@ Alias for cd
    -
    +
    - chown(user, group, list, options={}) + chown(user, group, list, options={})
    @@ -188,12 +186,10 @@ Alias for cd
    -
    +
    # File lib/fakefs/fileutils.rb, line 98
         def chown(user, group, list, options={})
           list = Array(list)
    @@ -210,9 +206,9 @@ Alias for cd
                 
    -
    +
    - chown_R(user, group, list, options={}) + chown_R(user, group, list, options={})
    @@ -221,12 +217,10 @@ Alias for cd
    -
    +
    # File lib/fakefs/fileutils.rb, line 108
         def chown_R(user, group, list, options={})
           chown(user, group, list, options={})
    @@ -237,9 +231,9 @@ Alias for cd
                 
    -
    +
    - cp(src, dest) + cp(src, dest)
    @@ -248,12 +242,10 @@ Alias for cd
    -
    +
    # File lib/fakefs/fileutils.rb, line 41
         def cp(src, dest)
           dst_file = FileSystem.find(dest)
    @@ -280,9 +272,9 @@ Alias for cd
                 
    -
    +
    - cp_r(src, dest) + cp_r(src, dest)
    @@ -291,12 +283,10 @@ Alias for cd
    -
    +
    # File lib/fakefs/fileutils.rb, line 61
         def cp_r(src, dest)
           # This error sucks, but it conforms to the original Ruby
    @@ -331,9 +321,9 @@ Alias for cd
                 
    -
    +
    - ln_s(target, path, options = {}) + ln_s(target, path, options = {})
    @@ -342,13 +332,11 @@ Alias for cd
    -
    -
    # File lib/fakefs/fileutils.rb, line 30
    +                    
    +
    # File lib/fakefs/fileutils.rb, line 32
         def ln_s(target, path, options = {})
           options = { :force => false }.merge(options)
           (FileSystem.find(path) and !options[:force]) ? raise(Errno::EEXIST, path) : FileSystem.delete(path)
    @@ -360,9 +348,9 @@ Alias for cd
                 
    -
    +
    - ln_sf(target, path) + ln_sf(target, path)
    @@ -371,13 +359,11 @@ Alias for cd
    -
    -
    # File lib/fakefs/fileutils.rb, line 35
    +                    
    +
    # File lib/fakefs/fileutils.rb, line 37
         def ln_sf(target, path)
           ln_s(target, path, { :force => true })
         end
    @@ -387,9 +373,9 @@ Alias for cd
    -
    +
    - mkdir_p(path) + mkdir_p(path, options = {})
    @@ -397,7 +383,7 @@ Alias for cd
    This method is also aliased as - mkpath + mkpath
    @@ -405,14 +391,12 @@ Alias for cd
    -
    +
    # File lib/fakefs/fileutils.rb, line 5
    -    def mkdir_p(path)
    +    def mkdir_p(path, options = {})
           FileSystem.add(path, FakeDir.new)
         end
    @@ -421,15 +405,15 @@ Alias for cd
    -
    +
    - mkpath(path) + mkpath(path, options = {})

    -Alias for mkdir_p +Alias for mkdir_p

    @@ -439,9 +423,9 @@ Alias for mkdir_p
    -
    +
    - mv(src, dest) + mv(src, dest, options={})
    @@ -450,14 +434,12 @@ Alias for mkdir_p
    -
    +
    # File lib/fakefs/fileutils.rb, line 89
    -    def mv(src, dest)
    +    def mv(src, dest, options={})
           if target = FileSystem.find(src)
             FileSystem.add(dest, target.entry.clone)
             FileSystem.delete(src)
    @@ -471,9 +453,9 @@ Alias for mkdir_p
                 
    -
    +
    - rm(path) + rm(list, options = {})
    @@ -481,11 +463,11 @@ Alias for mkdir_p
    This method is also aliased as - rm_rf + rm_rf - rm_r + rm_r - rm_f + rm_f
    @@ -493,15 +475,15 @@ Alias for mkdir_p
    -
    +
    # File lib/fakefs/fileutils.rb, line 22
    -    def rm(path)
    -      FileSystem.delete(path)
    +    def rm(list, options = {})
    +      Array(list).each do |path|
    +        FileSystem.delete(path)
    +      end
         end
    @@ -509,15 +491,15 @@ Alias for mkdir_p
    -
    +
    - rm_f(path) + rm_f(list, options = {})

    -Alias for rm +Alias for rm

    @@ -527,15 +509,15 @@ Alias for rm
    -
    +
    - rm_r(path) + rm_r(list, options = {})

    -Alias for rm +Alias for rm

    @@ -545,15 +527,15 @@ Alias for rm
    -
    +
    - rm_rf(path) + rm_rf(list, options = {})

    -Alias for rm +Alias for rm

    @@ -563,9 +545,9 @@ Alias for rm
    -
    +
    - rmdir(list, options = {}) + rmdir(list, options = {})
    @@ -574,12 +556,10 @@ Alias for rm
    -
    +
    # File lib/fakefs/fileutils.rb, line 10
         def rmdir(list, options = {})
           list = [ list ] unless list.is_a?(Array)
    @@ -598,9 +578,9 @@ Alias for rm
                 
    -
    +
    - touch(list, options={}) + touch(list, options={})
    @@ -609,12 +589,10 @@ Alias for rm
    -
    +
    # File lib/fakefs/fileutils.rb, line 112
         def touch(list, options={})
           Array(list).each do |f|
    diff --git a/classes/FakeFS/SpecHelpers.html b/classes/FakeFS/SpecHelpers.html
    index d6682a7..ff4c203 100644
    --- a/classes/FakeFS/SpecHelpers.html
    +++ b/classes/FakeFS/SpecHelpers.html
    @@ -43,7 +43,7 @@
             
    @@ -52,7 +52,7 @@
    @@ -61,7 +61,7 @@
    @@ -83,9 +83,9 @@
    Class Public methods
    -
    +
    - extended(example_group) + extended(example_group)
    @@ -94,12 +94,10 @@
    -
    +
    # File lib/fakefs/spec_helpers.rb, line 27
         def self.extended(example_group)
           example_group.use_fakefs(example_group)
    @@ -110,9 +108,9 @@
                 
    -
    +
    - included(example_group) + included(example_group)
    @@ -121,12 +119,10 @@
    -
    +
    # File lib/fakefs/spec_helpers.rb, line 31
         def self.included(example_group)
           example_group.extend self
    @@ -139,9 +135,9 @@
                 
    Instance Public methods
    -
    +
    - use_fakefs(describe_block) + use_fakefs(describe_block)
    @@ -150,12 +146,10 @@
    -
    +
    # File lib/fakefs/spec_helpers.rb, line 35
         def use_fakefs(describe_block)
           describe_block.before :each do
    diff --git a/classes/FakeFS/Version.html b/classes/FakeFS/Version.html
    index d46d391..0f20583 100644
    --- a/classes/FakeFS/Version.html
    +++ b/classes/FakeFS/Version.html
    @@ -43,7 +43,7 @@
             
    @@ -64,7 +64,7 @@ VERSION = - "0.2.1" + "0.3.0" @@ -77,9 +77,9 @@
    Class Public methods
    -
    +
    - to_s() + to_s()
    @@ -88,12 +88,10 @@
    -
    +
    # File lib/fakefs/version.rb, line 5
         def self.to_s
           VERSION
    diff --git a/classes/Object.html b/classes/Object.html
    index 57ac1fb..422fbf3 100644
    --- a/classes/Object.html
    +++ b/classes/Object.html
    @@ -47,7 +47,7 @@
             
    @@ -69,9 +69,9 @@
    Instance Public methods
    -
    +
    - FakeFS() + FakeFS()
    @@ -80,13 +80,11 @@
    -
    -
    # File lib/fakefs/base.rb, line 31
    +                    
    +
    # File lib/fakefs/base.rb, line 38
     def FakeFS
       return ::FakeFS unless block_given?
       ::FakeFS.activate!
    diff --git a/created.rid b/created.rid
    index 0a3000b..dcc66a3 100644
    --- a/created.rid
    +++ b/created.rid
    @@ -1 +1 @@
    -Fri, 30 Oct 2009 10:03:17 -0700
    +Sat, 18 Dec 2010 14:13:59 -0500
    diff --git a/css/main.css b/css/main.css
    index e220938..4b403ad 100755
    --- a/css/main.css
    +++ b/css/main.css
    @@ -47,6 +47,21 @@ h4 {
         font-size: 1em;
     }
     
    +table
    +{
    +    margin-bottom: 1em;
    +}
    +
    +td, th
    +{
    +    padding: 0 0.7em 0.3em 0;
    +}
    +
    +th
    +{
    +    font-weight: bold;
    +}
    +
     .clear
     {
         clear: both;
    diff --git a/files/CONTRIBUTORS.html b/files/CONTRIBUTORS.html
    index f558539..c5ff154 100644
    --- a/files/CONTRIBUTORS.html
    +++ b/files/CONTRIBUTORS.html
    @@ -19,7 +19,7 @@
             
             
    • CONTRIBUTORS
    • -
    • Last modified: Wed Oct 07 01:37:58 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    @@ -31,10 +31,10 @@
  • Chris Wanstrath
  • -
  • Jeff Hodges +
  • Scott Taylor
  • -
  • Scott Taylor +
  • Jeff Hodges
  • Pat Nakajima @@ -52,17 +52,44 @@
  • Tymon Tobolski
  • -
  • msassak - -
  • -
  • Rob Sanheim +
  • Ben Mabey
  • Jon Yurek +
  • +
  • Scott Barron + +
  • +
  • dmathieu + +
  • +
  • Rob Sanheim +
  • David Reese +
  • +
  • msassak + +
  • +
  • Sam Goldstein + +
  • +
  • jameswilding + +
  • +
  • Greg Campbell + +
  • +
  • Thiago Marano + +
  • +
  • Víctor Martínez + +
  • +
  • Victor Costan +
  • diff --git a/files/LICENSE.html b/files/LICENSE.html index a99087c..845d8bc 100644 --- a/files/LICENSE.html +++ b/files/LICENSE.html @@ -19,7 +19,7 @@
    • LICENSE
    • -
    • Last modified: Tue Oct 06 21:44:09 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/README_markdown.html b/files/README_markdown.html index ebf6811..4c73e35 100644 --- a/files/README_markdown.html +++ b/files/README_markdown.html @@ -19,7 +19,7 @@
    • README.markdown
    • -
    • Last modified: Wed Oct 28 11:02:19 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    @@ -27,104 +27,184 @@
    -

    FakeFS

    +

    +FakeFS +

    +
    +

    +Mocha is great. But when your library is all about manipulating the +filesystem, you really want to test the behavior and not the +implementation. +

    +

    +If you’re mocking and stubbing every call to FileUtils or File, +you’re tightly coupling your tests with the implementation. +

    +
    +    def test_creates_directory
    +      FileUtils.expects(:mkdir).with("directory").once
    +      Library.add "directory"
    +    end
    +
    +

    +The above test will break if we decide to use `mkdir_p` in our code. +Refactoring code shouldn’t necessitate refactoring tests. +

    +

    +With FakeFS: +

    +
    +    def test_creates_directory
    +      Library.add "directory"
    +      assert File.directory?("directory")
    +    end
    +
    +

    +Woot. +

    +

    +Usage +

    +
    +    require 'fakefs'
     
    -

    Mocha is great. But when your library is all about manipulating the -filesystem, you really want to test the behavior and not the implementation.

    + # That's it. +
    +

    +Don’t Fake the FS Immediately +

    +
    +    require 'fakefs/safe'
     
    -

    If you're mocking and stubbing every call to FileUtils or File, you're -tightly coupling your tests with the implementation.

    + FakeFS.activate! + # your code + FakeFS.deactivate! -
    def test_creates_directory
    -  FileUtils.expects(:mkdir).with("directory").once
    -  Library.add "directory"
    -end
    -
    + # or + FakeFS do + # your code + end +
    +

    +RSpec +

    +

    +The above approach works with RSpec as well. In addition you may include FakeFS::SpecHelpers to turn +FakeFS on and off in a given example +group: +

    +
    +    require 'fakefs/spec_helpers'
     
    -

    The above test will break if we decide to use mkdir_p in our code. Refactoring -code shouldn't necessitate refactoring tests.

    + describe "my spec" do + include FakeFS::SpecHelpers + end +
    +

    +See `lib/fakefs/spec_helpers.rb` for +more info. +

    +

    +How is this different than MockFS? +

    +

    +FakeFS provides a test suite and works +with symlinks. It’s also strictly a test-time dependency: your actual +library does not need to use or know about FakeFS. +

    +

    +Caveats +

    +

    +FakeFS internally uses the `Pathname` +and `FileUtils` constants. If you use these in your app, be certain +you’re properly requiring them and not counting on FakeFS’ own +require. +

    +

    +Speed? +

    +

    +<gist.github.com/156091> +

    +

    +Installation +

    +

    +### [Gemcutter](gemcutter.org/) +

    +
    +    $ gem install fakefs
    +
    +

    +### [Rip](hellorip.com) +

    +
    +    $ rip install git://github.com/defunkt/fakefs.git
    +
    +

    +Contributing +

    +

    +Once you’ve made your great commits: +

    +
      +
    1. [Fork][0] FakeFS -

      With FakeFS:

      +
    2. +
    3. Create a topic branch - `git checkout -b my_branch` -
      def test_creates_directory
      -  Library.add "directory"
      -  assert File.directory?("directory")
      -end
      -
      +
    4. +
    5. Push to your branch - `git push origin my_branch` -

      Woot.

      +
    6. +
    7. Create an [Issue][1] with a link to your branch -

      Usage

      +
    8. +
    9. That’s it! -
      require 'fakefs'
      +
    10. +
    +

    +Meta +

    +
      +
    • Code: `git clone git://github.com/defunkt/fakefs.git` -# That's it. -
    + +
  • Home: <github.com/defunkt/fakefs> -

    Don't Fake the FS Immediately

    +
  • +
  • Docs: <defunkt.github.com/fakefs> -
    require 'fakefs/safe'
    +
  • +
  • Bugs: <github.com/defunkt/fakefs/issues> -FakeFS.activate! -# your code -FakeFS.deactivate! +
  • +
  • List: <groups.google.com/group/fakefs> -# or -FakeFS do - # your code -end -
  • + +
  • Test: <runcoderun.com/defunkt/fakefs> -

    RSpec

    +
  • +
  • Gems: <gemcutter.org/gems/fakefs> -

    The above approach works with RSpec as well. In addition to this you may use the -'use_fakefs' macro to turn FakeFS on and off in a given example group. See -lib/spec_helpers for more details on it's usage.

    - -

    How is this different than MockFS?

    - -

    FakeFS provides a test suite and works with symlinks. It's also strictly a -test-time dependency: your actual library does not need to use or know about -FakeFS.

    - -

    Caveats

    - -

    FakeFS internally uses the Pathname and FileUtils constants. If you use -these in your app, be certain you're properly requiring them and not counting -on FakeFS' own require.

    - -

    Speed?

    - -

    http://gist.github.com/156091

    - -

    Installation

    - -

    Gemcutter

    - -
    $ gem install fakefs
    -
    - -

    Rip

    - -
    $ rip install git://github.com/defunkt/fakefs.git
    -
    - -

    Meta

    - - - - +

    +[0]: help.github.com/forking/ +[1]: github.com/defunkt/fakefs/issues +

  • diff --git a/files/lib/fakefs/base_rb.html b/files/lib/fakefs/base_rb.html index 95a5508..d8a668f 100644 --- a/files/lib/fakefs/base_rb.html +++ b/files/lib/fakefs/base_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/base.rb
    • -
    • Last modified: Wed Oct 28 09:41:53 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    @@ -61,6 +61,13 @@ + + RealFileTest + = + FileTest + + + RealFileUtils = @@ -75,20 +82,6 @@ - - Dir - = - RealDir - - - - - File - = - RealFile - - - diff --git a/files/lib/fakefs/dir_rb.html b/files/lib/fakefs/dir_rb.html index 2f5d354..7558566 100644 --- a/files/lib/fakefs/dir_rb.html +++ b/files/lib/fakefs/dir_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/dir.rb
    • -
    • Last modified: Wed Oct 28 09:41:53 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/fake/dir_rb.html b/files/lib/fakefs/fake/dir_rb.html index 263da55..8bd42e7 100644 --- a/files/lib/fakefs/fake/dir_rb.html +++ b/files/lib/fakefs/fake/dir_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/fake/dir.rb
    • -
    • Last modified: Tue Oct 06 21:44:09 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/fake/file_rb.html b/files/lib/fakefs/fake/file_rb.html index 93a7c7e..b4b7bd6 100644 --- a/files/lib/fakefs/fake/file_rb.html +++ b/files/lib/fakefs/fake/file_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/fake/file.rb
    • -
    • Last modified: Thu Oct 29 09:14:12 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/fake/symlink_rb.html b/files/lib/fakefs/fake/symlink_rb.html index 4a580a5..e3d75d8 100644 --- a/files/lib/fakefs/fake/symlink_rb.html +++ b/files/lib/fakefs/fake/symlink_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/fake/symlink.rb
    • -
    • Last modified: Tue Oct 06 21:44:09 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/file_rb.html b/files/lib/fakefs/file_rb.html index 0a59647..ea4f1e9 100644 --- a/files/lib/fakefs/file_rb.html +++ b/files/lib/fakefs/file_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/file.rb
    • -
    • Last modified: Fri Oct 30 09:53:39 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    @@ -28,6 +28,13 @@ +
    Required Files
    +
      + +
    • stringio
    • + +
    + diff --git a/files/lib/fakefs/file_system_rb.html b/files/lib/fakefs/file_system_rb.html index ed8fdb5..2d924f2 100644 --- a/files/lib/fakefs/file_system_rb.html +++ b/files/lib/fakefs/file_system_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/file_system.rb
    • -
    • Last modified: Thu Oct 29 09:39:32 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/file_test_rb.html b/files/lib/fakefs/file_test_rb.html new file mode 100644 index 0000000..140ec58 --- /dev/null +++ b/files/lib/fakefs/file_test_rb.html @@ -0,0 +1,59 @@ + + + + + file_test.rb + + + + + + + + + + + +
    +
    + + + + + + + + + + + + + + + +
    Classes and Modules
    + + + + + + + + +
    +
    + + \ No newline at end of file diff --git a/files/lib/fakefs/fileutils_rb.html b/files/lib/fakefs/fileutils_rb.html index 1b3caca..77876fe 100644 --- a/files/lib/fakefs/fileutils_rb.html +++ b/files/lib/fakefs/fileutils_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/fileutils.rb
    • -
    • Last modified: Wed Oct 28 09:41:53 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/safe_rb.html b/files/lib/fakefs/safe_rb.html index 2726b40..8a3958b 100644 --- a/files/lib/fakefs/safe_rb.html +++ b/files/lib/fakefs/safe_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/safe.rb
    • -
    • Last modified: Tue Oct 06 21:44:09 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    @@ -49,6 +49,8 @@
  • fakefs/file
  • +
  • fakefs/file_test
  • +
  • fakefs/dir
  • diff --git a/files/lib/fakefs/spec_helpers_rb.html b/files/lib/fakefs/spec_helpers_rb.html index 7ca7c92..87a5075 100644 --- a/files/lib/fakefs/spec_helpers_rb.html +++ b/files/lib/fakefs/spec_helpers_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/spec_helpers.rb
    • -
    • Last modified: Fri Oct 30 09:54:42 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs/version_rb.html b/files/lib/fakefs/version_rb.html index 30c5eb6..58e9abd 100644 --- a/files/lib/fakefs/version_rb.html +++ b/files/lib/fakefs/version_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs/version.rb
    • -
    • Last modified: Fri Oct 30 09:56:05 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/files/lib/fakefs_rb.html b/files/lib/fakefs_rb.html index 683c353..f7086cd 100644 --- a/files/lib/fakefs_rb.html +++ b/files/lib/fakefs_rb.html @@ -19,7 +19,7 @@
    • lib/fakefs.rb
    • -
    • Last modified: Tue Oct 06 21:44:09 -0700 2009
    • +
    • Last modified: Sat Dec 18 14:13:57 -0500 2010
    diff --git a/panel/search_index.js b/panel/search_index.js index e06e915..215ce84 100644 --- a/panel/search_index.js +++ b/panel/search_index.js @@ -1 +1 @@ -var search_data = {"index":{"searchIndex":["fakefs","dir","fakedir","fakefile","inode","fakesymlink","file","stat","filesystem","fileutils","spechelpers","version","object","<<()","fakefs()","[]()","activate!()","add()","basename()","cd()","chdir()","chdir()","chdir()","chown()","chown_r()","chroot()","clear()","clone()","clone()","clone()","clone()","close()","close()","const_missing()","content()","content=()","cp()","cp_r()","current_dir()","deactivate!()","delete()","delete()","delete()","delete()","delete()","delete()","dir_levels()","directory?()","directory?()","dirname()","each()","entries()","entry()","entry()","entry()","exist?()","exists?()","expand_path()","extended()","extname()","file?()","files()","find()","flush()","foreach()","fs()","glob()","included()","inspect()","inspect()","inspect()","join()","link()","link()","link()","links()","ln_s()","ln_sf()","mkdir()","mkdir_p()","mkpath()","mtime()","mv()","new()","new()","new()","new()","new()","new()","new()","nlink()","normalize_path()","open()","open()","path()","path_parts()","pos()","pos=()","print()","puts()","pwd()","read()","read()","read()","readlines()","readlink()","respond_to?()","rewind()","rewind()","rm()","rm_f()","rm_r()","rm_rf()","rmdir()","seek()","seek()","size()","size?()","stat()","symlink()","symlink?()","symlink?()","tmpdir()","to_s()","to_s()","to_s()","touch()","unlink()","use_fakefs()","write()","contributors","license","readme.markdown","fakefs.rb","base.rb","dir.rb","dir.rb","file.rb","symlink.rb","file.rb","file_system.rb","fileutils.rb","safe.rb","spec_helpers.rb","version.rb"],"longSearchIndex":["lib/fakefs/version.rb","fakefs","fakefs","fakefs","fakefs::fakefile","fakefs","fakefs","fakefs::file","fakefs","fakefs","fakefs","fakefs","lib/fakefs/base.rb","fakefs::file","object","fakefs::dir","fakefs","fakefs::filesystem","fakefs::file","fakefs::fileutils","fakefs::dir","fakefs::filesystem","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::dir","fakefs::filesystem","fakefs::fakedir","fakefs::fakefile","fakefs::fakefile::inode","fakefs::filesystem","fakefs::dir","fakefs::file","fakefs::file","fakefs::fakefile","fakefs::fakefile","fakefs::fileutils","fakefs::fileutils","fakefs::filesystem","fakefs","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::filesystem","fakefs::filesystem","fakefs::file","fakefs::file::stat","fakefs::file","fakefs::dir","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::file","fakefs::file","fakefs::spechelpers","fakefs::file","fakefs::file","fakefs::filesystem","fakefs::filesystem","fakefs::file","fakefs::dir","fakefs::filesystem","fakefs::dir","fakefs::spechelpers","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::fakefile","fakefs::fakefile::inode","fakefs::file","fakefs::fakefile","fakefs::fileutils","fakefs::fileutils","fakefs::dir","fakefs::fileutils","fakefs::fileutils","fakefs::file","fakefs::fileutils","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakefile::inode","fakefs::fakesymlink","fakefs::file","fakefs::file::stat","fakefs::file::stat","fakefs::filesystem","fakefs::dir","fakefs::file","fakefs::dir","fakefs::filesystem","fakefs::dir","fakefs::dir","fakefs::file","fakefs::file","fakefs::dir","fakefs::dir","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::fakesymlink","fakefs::dir","fakefs::file","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::dir","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file::stat","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::version","fakefs::fileutils","fakefs::fakefile::inode","fakefs::spechelpers","fakefs::file","files/contributors.html","files/license.html","files/readme_markdown.html","files/lib/fakefs_rb.html","files/lib/fakefs/base_rb.html","files/lib/fakefs/dir_rb.html","files/lib/fakefs/fake/dir_rb.html","files/lib/fakefs/fake/file_rb.html","files/lib/fakefs/fake/symlink_rb.html","files/lib/fakefs/file_rb.html","files/lib/fakefs/file_system_rb.html","files/lib/fakefs/fileutils_rb.html","files/lib/fakefs/safe_rb.html","files/lib/fakefs/spec_helpers_rb.html","files/lib/fakefs/version_rb.html"],"info":[["FakeFS","lib/fakefs/version.rb","classes/FakeFS.html"," < ","",1],["Dir","FakeFS","classes/FakeFS/Dir.html"," < Object","",1],["FakeDir","FakeFS","classes/FakeFS/FakeDir.html"," < Hash","",1],["FakeFile","FakeFS","classes/FakeFS/FakeFile.html"," < Object","",1],["Inode","FakeFS::FakeFile","classes/FakeFS/FakeFile/Inode.html"," < Object","",1],["FakeSymlink","FakeFS","classes/FakeFS/FakeSymlink.html"," < Object","",1],["File","FakeFS","classes/FakeFS/File.html"," < Object","",1],["Stat","FakeFS::File","classes/FakeFS/File/Stat.html"," < Object","",1],["FileSystem","FakeFS","classes/FakeFS/FileSystem.html"," < ","",1],["FileUtils","FakeFS","classes/FakeFS/FileUtils.html"," < ","",1],["SpecHelpers","FakeFS","classes/FakeFS/SpecHelpers.html"," < ","",1],["Version","FakeFS","classes/FakeFS/Version.html"," < ","",1],["Object","lib/fakefs/base.rb","classes/Object.html"," < Object","",1],["<<","FakeFS::File","classes/FakeFS/File.html#M000096","(content)","Alias for #write",2],["FakeFS","Object","classes/Object.html#M000002","()","",2],["[]","FakeFS::Dir","classes/FakeFS/Dir.html#M000012","(pattern)","",2],["activate!","FakeFS","classes/FakeFS.html#M000000","()","",2],["add","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000062","(path, object=FakeDir.new)","",2],["basename","FakeFS::File","classes/FakeFS/File.html#M000067","(*args)","",2],["cd","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000122","(dir)","",2],["chdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000013","(dir, &blk)","",2],["chdir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000073","(dir, &blk)","",2],["chdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000123","(dir)","Alias for #cd",2],["chown","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000117","(user, group, list, options={})","",2],["chown_R","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000118","(user, group, list, options={})","",2],["chroot","FakeFS::Dir","classes/FakeFS/Dir.html#M000014","(string)","",2],["clear","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000055","()","",2],["clone","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000023","(parent = nil)","",2],["clone","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000044","(parent = nil)","",2],["clone","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000036","()","",2],["clone","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000065","(path)","copies directories and files from the real filesystem into our fake one ",2],["close","FakeFS::Dir","classes/FakeFS/Dir.html#M000004","()","",2],["close","FakeFS::File","classes/FakeFS/File.html#M000089","()","",2],["const_missing","FakeFS::File","classes/FakeFS/File.html#M000060","(name)","",2],["content","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000040","()","",2],["content=","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000041","(str)","",2],["cp","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000114","(src, dest)","",2],["cp_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000115","(src, dest)","",2],["current_dir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000079","()","",2],["deactivate!","FakeFS","classes/FakeFS.html#M000001","()","",2],["delete","FakeFS::Dir","classes/FakeFS/Dir.html#M000015","(string)","",2],["delete","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000028","(node = self)","",2],["delete","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000048","()","",2],["delete","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000033","()","",2],["delete","FakeFS::File","classes/FakeFS/File.html#M000078","(file_name, *additional_file_names)","",2],["delete","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000070","(path)","",2],["dir_levels","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000053","()","",2],["directory?","FakeFS::File","classes/FakeFS/File.html#M000061","(path)","",2],["directory?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000086","()","",2],["dirname","FakeFS::File","classes/FakeFS/File.html#M000068","(path)","",2],["each","FakeFS::Dir","classes/FakeFS/Dir.html#M000005","(&block)","",2],["entries","FakeFS::Dir","classes/FakeFS/Dir.html#M000016","(dirname)","",2],["entry","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000021","()","",2],["entry","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000045","()","",2],["entry","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000032","()","",2],["exist?","FakeFS::File","classes/FakeFS/File.html#M000051","(path)","",2],["exists?","FakeFS::File","classes/FakeFS/File.html#M000092","()","",2],["expand_path","FakeFS::File","classes/FakeFS/File.html#M000066","(*args)","",2],["extended","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000120","(example_group)","",2],["extname","FakeFS::File","classes/FakeFS/File.html#M000049","(path)","",2],["file?","FakeFS::File","classes/FakeFS/File.html#M000064","(path)","",2],["files","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000056","()","",2],["find","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000057","(path)","",2],["flush","FakeFS::File","classes/FakeFS/File.html#M000097","()","",2],["foreach","FakeFS::Dir","classes/FakeFS/Dir.html#M000017","(dirname, &block)","",2],["fs","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000054","()","",2],["glob","FakeFS::Dir","classes/FakeFS/Dir.html#M000018","(pattern)","",2],["included","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000121","(example_group)","",2],["inspect","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000022","()","",2],["inspect","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000046","()","",2],["inspect","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000031","()","",2],["join","FakeFS::File","classes/FakeFS/File.html#M000050","(*parts)","",2],["link","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000043","(other_file)","",2],["link","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000034","(file)","",2],["link","FakeFS::File","classes/FakeFS/File.html#M000075","(source, dest)","",2],["links","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000042","()","",2],["ln_s","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000112","(target, path, options = {})","",2],["ln_sf","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000113","(target, path)","",2],["mkdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000019","(string, integer = 0)","",2],["mkdir_p","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000105","(path)","",2],["mkpath","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000106","(path)","Alias for #mkdir_p",2],["mtime","FakeFS::File","classes/FakeFS/File.html#M000052","(path)","",2],["mv","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000116","(src, dest)","",2],["new","FakeFS::Dir","classes/FakeFS/Dir.html#M000003","(string)","",2],["new","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000020","(name = nil, parent = nil)","",2],["new","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000037","(name = nil, parent = nil)","",2],["new","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000029","(file_owner)","",2],["new","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000030","(target)","",2],["new","FakeFS::File","classes/FakeFS/File.html#M000088","(path, mode = READ_ONLY, perm = nil)","",2],["new","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000083","(file)","",2],["nlink","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000087","()","",2],["normalize_path","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000077","(path)","",2],["open","FakeFS::Dir","classes/FakeFS/Dir.html#M000024","(string, &block)","",2],["open","FakeFS::File","classes/FakeFS/File.html#M000071","(path, mode=READ_ONLY, perm = 0644)","",2],["path","FakeFS::Dir","classes/FakeFS/Dir.html#M000006","()","",2],["path_parts","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000076","(path)","",2],["pos","FakeFS::Dir","classes/FakeFS/Dir.html#M000007","()","",2],["pos=","FakeFS::Dir","classes/FakeFS/Dir.html#M000008","(integer)","",2],["print","FakeFS::File","classes/FakeFS/File.html#M000095","(content)","Alias for #write",2],["puts","FakeFS::File","classes/FakeFS/File.html#M000093","(*content)","",2],["pwd","FakeFS::Dir","classes/FakeFS/Dir.html#M000026","()","",2],["read","FakeFS::Dir","classes/FakeFS/Dir.html#M000009","()","",2],["read","FakeFS::File","classes/FakeFS/File.html#M000090","(chunk = nil)","",2],["read","FakeFS::File","classes/FakeFS/File.html#M000072","(path)","",2],["readlines","FakeFS::File","classes/FakeFS/File.html#M000074","(path)","",2],["readlink","FakeFS::File","classes/FakeFS/File.html#M000069","(path)","",2],["respond_to?","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000038","(method)","",2],["rewind","FakeFS::Dir","classes/FakeFS/Dir.html#M000010","()","",2],["rewind","FakeFS::File","classes/FakeFS/File.html#M000091","()","",2],["rm","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000108","(path)","",2],["rm_f","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000111","(path)","Alias for #rm",2],["rm_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000110","(path)","Alias for #rm",2],["rm_rf","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000109","(path)","Alias for #rm",2],["rmdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000107","(list, options = {})","",2],["seek","FakeFS::Dir","classes/FakeFS/Dir.html#M000011","(integer)","",2],["seek","FakeFS::File","classes/FakeFS/File.html#M000098","(amount, whence = SEEK_SET)","",2],["size","FakeFS::File","classes/FakeFS/File.html#M000058","(path)","",2],["size?","FakeFS::File","classes/FakeFS/File.html#M000059","(path)","",2],["stat","FakeFS::File","classes/FakeFS/File.html#M000082","(file)","",2],["symlink","FakeFS::File","classes/FakeFS/File.html#M000081","(source, dest)","",2],["symlink?","FakeFS::File","classes/FakeFS/File.html#M000063","(path)","",2],["symlink?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000085","()","",2],["tmpdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000025","()","",2],["to_s","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000027","()","",2],["to_s","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000047","()","",2],["to_s","FakeFS::Version","classes/FakeFS/Version.html#M000125","()","",2],["touch","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000119","(list, options={})","",2],["unlink","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000035","(file)","",2],["use_fakefs","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000124","(describe_block)","",2],["write","FakeFS::File","classes/FakeFS/File.html#M000094","(content)","",2],["CONTRIBUTORS","files/CONTRIBUTORS.html","files/CONTRIBUTORS.html","","* Chris Wanstrath * Jeff Hodges * Scott Taylor * Pat Nakajima * Myles Eftos * Matt Freels * Nick Quaranto",3],["LICENSE","files/LICENSE.html","files/LICENSE.html","","Copyright (c) 2009 Chris Wanstrath Permission is hereby granted, free of charge, to any person obtaining",3],["README.markdown","files/README_markdown.html","files/README_markdown.html","","FakeFS ====== Mocha is great. But when your library is all about manipulating the filesystem, you really",3],["fakefs.rb","files/lib/fakefs_rb.html","files/lib/fakefs_rb.html","","",3],["base.rb","files/lib/fakefs/base_rb.html","files/lib/fakefs/base_rb.html","","",3],["dir.rb","files/lib/fakefs/dir_rb.html","files/lib/fakefs/dir_rb.html","","",3],["dir.rb","files/lib/fakefs/fake/dir_rb.html","files/lib/fakefs/fake/dir_rb.html","","",3],["file.rb","files/lib/fakefs/fake/file_rb.html","files/lib/fakefs/fake/file_rb.html","","",3],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","files/lib/fakefs/fake/symlink_rb.html","","",3],["file.rb","files/lib/fakefs/file_rb.html","files/lib/fakefs/file_rb.html","","",3],["file_system.rb","files/lib/fakefs/file_system_rb.html","files/lib/fakefs/file_system_rb.html","","",3],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","files/lib/fakefs/fileutils_rb.html","","",3],["safe.rb","files/lib/fakefs/safe_rb.html","files/lib/fakefs/safe_rb.html","","",3],["spec_helpers.rb","files/lib/fakefs/spec_helpers_rb.html","files/lib/fakefs/spec_helpers_rb.html","","FakeFS::SpecHelpers provides a simple macro for RSpec example groups to turn FakeFS on and off. To use",3],["version.rb","files/lib/fakefs/version_rb.html","files/lib/fakefs/version_rb.html","","",3]]}} \ No newline at end of file +var search_data = {"index":{"searchIndex":["fakefs","dir","fakedir","fakefile","inode","fakesymlink","file","stat","filesystem","filetest","fileutils","spechelpers","version","object","fakefs()","[]()","activate!()","add()","atime()","autoclose?()","basename()","binmode?()","cd()","chdir()","chdir()","chdir()","chmod()","chown()","chown()","chown_r()","chroot()","clear()","clone()","clone()","clone()","clone()","close()","close_on_exec=()","close_on_exec?()","const_missing()","content()","content=()","cp()","cp_r()","ctime()","ctime()","current_dir()","deactivate!()","delete()","delete()","delete()","delete()","delete()","delete()","dir_levels()","directory?()","directory?()","dirname()","each()","entries()","entry()","entry()","entry()","exist?()","exist?()","exists?()","expand_path()","extended()","extname()","file?()","files()","find()","flock()","foreach()","fs()","glob()","included()","inspect()","inspect()","inspect()","ioctl()","join()","link()","link()","link()","links()","ln_s()","ln_sf()","lstat()","lstat()","mkdir()","mkdir_p()","mkpath()","mtime()","mtime()","mv()","new()","new()","new()","new()","new()","new()","new()","nlink()","normalize_path()","open()","path()","path_parts()","pos()","pos=()","pwd()","read()","read()","read_nonblock()","readlines()","readlink()","readpartial()","respond_to?()","rewind()","rm()","rm_f()","rm_r()","rm_rf()","rmdir()","seek()","size()","size()","size()","size?()","stat()","stat()","symlink()","symlink?()","symlink?()","sysseek()","tmpdir()","to_io()","to_path()","to_s()","to_s()","to_s()","touch()","unlink()","use_fakefs()","write_nonblock()","contributors","license","readme.markdown","fakefs.rb","base.rb","dir.rb","dir.rb","file.rb","symlink.rb","file.rb","file_system.rb","file_test.rb","fileutils.rb","safe.rb","spec_helpers.rb","version.rb"],"info":[["FakeFS","lib/fakefs/base.rb","classes/FakeFS.html"," < ","",1],["Dir","FakeFS","classes/FakeFS/Dir.html"," < Object","",1],["FakeDir","FakeFS","classes/FakeFS/FakeDir.html"," < Hash","",1],["FakeFile","FakeFS","classes/FakeFS/FakeFile.html"," < Object","",1],["Inode","FakeFS::FakeFile","classes/FakeFS/FakeFile/Inode.html"," < Object","",1],["FakeSymlink","FakeFS","classes/FakeFS/FakeSymlink.html"," < Object","",1],["File","FakeFS","classes/FakeFS/File.html"," < StringIO","",1],["Stat","FakeFS::File","classes/FakeFS/File/Stat.html"," < Object","",1],["FileSystem","FakeFS","classes/FakeFS/FileSystem.html"," < ","",1],["FileTest","FakeFS","classes/FakeFS/FileTest.html"," < Object","",1],["FileUtils","FakeFS","classes/FakeFS/FileUtils.html"," < ","",1],["SpecHelpers","FakeFS","classes/FakeFS/SpecHelpers.html"," < ","",1],["Version","FakeFS","classes/FakeFS/Version.html"," < ","",1],["Object","lib/fakefs/base.rb","classes/Object.html"," < Object","",1],["FakeFS","Object","classes/Object.html#M000004","()","",2],["[]","FakeFS::Dir","classes/FakeFS/Dir.html#M000012","(pattern)","",2],["activate!","FakeFS","classes/FakeFS.html#M000000","()","",2],["add","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000061","(path, object=FakeDir.new)","",2],["atime","FakeFS::File","classes/FakeFS/File.html#M000100","()","",2],["autoclose?","FakeFS::File","classes/FakeFS/File.html#M000110","()","",2],["basename","FakeFS::File","classes/FakeFS/File.html#M000070","(*args)","",2],["binmode?","FakeFS::File","classes/FakeFS/File.html#M000106","()","",2],["cd","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000137","(dir)","",2],["chdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000013","(dir, &blk)","",2],["chdir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000067","(dir, &blk)","",2],["chdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000138","(dir)","Alias for #cd",2],["chmod","FakeFS::File","classes/FakeFS/File.html#M000101","(mode_int)","",2],["chown","FakeFS::File","classes/FakeFS/File.html#M000102","(owner_int, group_int)","",2],["chown","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000134","(user, group, list, options={})","",2],["chown_R","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000135","(user, group, list, options={})","",2],["chroot","FakeFS::Dir","classes/FakeFS/Dir.html#M000014","(string)","",2],["clear","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000054","()","",2],["clone","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000026","(parent = nil)","",2],["clone","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000038","(parent = nil)","",2],["clone","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000032","()","",2],["clone","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000062","(path)","copies directories and files from the real filesystem into our fake one ",2],["close","FakeFS::Dir","classes/FakeFS/Dir.html#M000003","()","",2],["close_on_exec=","FakeFS::File","classes/FakeFS/File.html#M000107","(bool)","",2],["close_on_exec?","FakeFS::File","classes/FakeFS/File.html#M000108","()","",2],["const_missing","FakeFS::File","classes/FakeFS/File.html#M000063","(name)","",2],["content","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000034","()","",2],["content=","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000035","(str)","",2],["cp","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000128","(src, dest)","",2],["cp_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000129","(src, dest)","",2],["ctime","FakeFS::File","classes/FakeFS/File.html#M000103","()","",2],["ctime","FakeFS::File","classes/FakeFS/File.html#M000058","(path)","",2],["current_dir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000078","()","",2],["deactivate!","FakeFS","classes/FakeFS.html#M000001","()","",2],["delete","FakeFS::Dir","classes/FakeFS/Dir.html#M000015","(string)","",2],["delete","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000028","(node = self)","",2],["delete","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000042","()","",2],["delete","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000046","()","",2],["delete","FakeFS::File","classes/FakeFS/File.html#M000080","(file_name, *additional_file_names)","",2],["delete","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000066","(path)","",2],["dir_levels","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000052","()","",2],["directory?","FakeFS::File","classes/FakeFS/File.html#M000064","(path)","",2],["directory?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000087","()","",2],["dirname","FakeFS::File","classes/FakeFS/File.html#M000071","(path)","",2],["each","FakeFS::Dir","classes/FakeFS/Dir.html#M000005","(&block)","",2],["entries","FakeFS::Dir","classes/FakeFS/Dir.html#M000016","(dirname)","",2],["entry","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000024","()","",2],["entry","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000039","()","",2],["entry","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000045","()","",2],["exist?","FakeFS::File","classes/FakeFS/File.html#M000051","(path)","",2],["exist?","FakeFS::FileTest","classes/FakeFS/FileTest.html#M000118","(file_name)","",2],["exists?","FakeFS::File","classes/FakeFS/File.html#M000091","()","",2],["expand_path","FakeFS::File","classes/FakeFS/File.html#M000069","(*args)","",2],["extended","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000131","(example_group)","",2],["extname","FakeFS::File","classes/FakeFS/File.html#M000049","(path)","",2],["file?","FakeFS::File","classes/FakeFS/File.html#M000068","(path)","",2],["files","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000055","()","",2],["find","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000056","(path)","",2],["flock","FakeFS::File","classes/FakeFS/File.html#M000104","(locking_constant)","",2],["foreach","FakeFS::Dir","classes/FakeFS/Dir.html#M000017","(dirname, &block)","",2],["fs","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000053","()","",2],["glob","FakeFS::Dir","classes/FakeFS/Dir.html#M000018","(pattern)","",2],["included","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000132","(example_group)","",2],["inspect","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000025","()","",2],["inspect","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000040","()","",2],["inspect","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000044","()","",2],["ioctl","FakeFS::File","classes/FakeFS/File.html#M000092","(integer_cmd, arg)","",2],["join","FakeFS::File","classes/FakeFS/File.html#M000050","(*parts)","",2],["link","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000037","(other_file)","",2],["link","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000030","(file)","",2],["link","FakeFS::File","classes/FakeFS/File.html#M000077","(source, dest)","",2],["links","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000036","()","",2],["ln_s","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000126","(target, path, options = {})","",2],["ln_sf","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000127","(target, path)","",2],["lstat","FakeFS::File","classes/FakeFS/File.html#M000084","(file)","",2],["lstat","FakeFS::File","classes/FakeFS/File.html#M000095","()","",2],["mkdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000019","(string, integer = 0)","",2],["mkdir_p","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000119","(path, options = {})","",2],["mkpath","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000120","(path, options = {})","Alias for #mkdir_p",2],["mtime","FakeFS::File","classes/FakeFS/File.html#M000105","()","",2],["mtime","FakeFS::File","classes/FakeFS/File.html#M000057","(path)","",2],["mv","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000130","(src, dest, options={})","",2],["new","FakeFS::Dir","classes/FakeFS/Dir.html#M000002","(string)","",2],["new","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000023","(name = nil, parent = nil)","",2],["new","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000033","(name = nil, parent = nil)","",2],["new","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000029","(file_owner)","",2],["new","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000043","(target)","",2],["new","FakeFS::File","classes/FakeFS/File.html#M000090","(path, mode = READ_ONLY, perm = nil)","",2],["new","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000085","(file, __lstat = false)","",2],["nlink","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000088","()","",2],["normalize_path","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000074","(path)","",2],["open","FakeFS::Dir","classes/FakeFS/Dir.html#M000020","(string, &block)","",2],["path","FakeFS::Dir","classes/FakeFS/Dir.html#M000006","()","",2],["path_parts","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000073","(path)","",2],["pos","FakeFS::Dir","classes/FakeFS/Dir.html#M000007","()","",2],["pos=","FakeFS::Dir","classes/FakeFS/Dir.html#M000008","(integer)","",2],["pwd","FakeFS::Dir","classes/FakeFS/Dir.html#M000022","()","",2],["read","FakeFS::Dir","classes/FakeFS/Dir.html#M000009","()","",2],["read","FakeFS::File","classes/FakeFS/File.html#M000075","(path)","",2],["read_nonblock","FakeFS::File","classes/FakeFS/File.html#M000093","(maxlen, outbuf = nil)","",2],["readlines","FakeFS::File","classes/FakeFS/File.html#M000076","(path)","",2],["readlink","FakeFS::File","classes/FakeFS/File.html#M000072","(path)","",2],["readpartial","FakeFS::File","classes/FakeFS/File.html#M000099","(maxlen, outbuf = nil)","",2],["respond_to?","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000047","(method)","",2],["rewind","FakeFS::Dir","classes/FakeFS/Dir.html#M000010","()","",2],["rm","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000122","(list, options = {})","",2],["rm_f","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000125","(list, options = {})","Alias for #rm",2],["rm_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000124","(list, options = {})","Alias for #rm",2],["rm_rf","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000123","(list, options = {})","Alias for #rm",2],["rmdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000121","(list, options = {})","",2],["seek","FakeFS::Dir","classes/FakeFS/Dir.html#M000011","(integer)","",2],["size","FakeFS::File","classes/FakeFS/File.html#M000111","()","",2],["size","FakeFS::File","classes/FakeFS/File.html#M000059","(path)","",2],["size","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000089","()","",2],["size?","FakeFS::File","classes/FakeFS/File.html#M000060","(path)","",2],["stat","FakeFS::File","classes/FakeFS/File.html#M000083","(file)","",2],["stat","FakeFS::File","classes/FakeFS/File.html#M000094","()","",2],["symlink","FakeFS::File","classes/FakeFS/File.html#M000082","(source, dest)","",2],["symlink?","FakeFS::File","classes/FakeFS/File.html#M000065","(path)","",2],["symlink?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000086","()","",2],["sysseek","FakeFS::File","classes/FakeFS/File.html#M000096","(position, whence = SEEK_SET)","",2],["tmpdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000021","()","",2],["to_io","FakeFS::File","classes/FakeFS/File.html#M000097","()","",2],["to_path","FakeFS::File","classes/FakeFS/File.html#M000109","()","",2],["to_s","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000027","()","",2],["to_s","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000041","()","",2],["to_s","FakeFS::Version","classes/FakeFS/Version.html#M000139","()","",2],["touch","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000136","(list, options={})","",2],["unlink","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000031","(file)","",2],["use_fakefs","FakeFS::SpecHelpers","classes/FakeFS/SpecHelpers.html#M000133","(describe_block)","",2],["write_nonblock","FakeFS::File","classes/FakeFS/File.html#M000098","(string)","",2],["CONTRIBUTORS","files/CONTRIBUTORS.html","files/CONTRIBUTORS.html","","* Chris Wanstrath * Scott Taylor * Jeff Hodges * Pat Nakajima * Myles Eftos * Matt Freels * Nick Quaranto",3],["LICENSE","files/LICENSE.html","files/LICENSE.html","","Copyright (c) 2009 Chris Wanstrath Permission is hereby granted, free of charge, to any person obtaining",3],["README.markdown","files/README_markdown.html","files/README_markdown.html","","FakeFS ====== Mocha is great. But when your library is all about manipulating the filesystem, you really",3],["fakefs.rb","files/lib/fakefs_rb.html","files/lib/fakefs_rb.html","","",3],["base.rb","files/lib/fakefs/base_rb.html","files/lib/fakefs/base_rb.html","","",3],["dir.rb","files/lib/fakefs/dir_rb.html","files/lib/fakefs/dir_rb.html","","",3],["dir.rb","files/lib/fakefs/fake/dir_rb.html","files/lib/fakefs/fake/dir_rb.html","","",3],["file.rb","files/lib/fakefs/fake/file_rb.html","files/lib/fakefs/fake/file_rb.html","","",3],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","files/lib/fakefs/fake/symlink_rb.html","","",3],["file.rb","files/lib/fakefs/file_rb.html","files/lib/fakefs/file_rb.html","","",3],["file_system.rb","files/lib/fakefs/file_system_rb.html","files/lib/fakefs/file_system_rb.html","","",3],["file_test.rb","files/lib/fakefs/file_test_rb.html","files/lib/fakefs/file_test_rb.html","","",3],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","files/lib/fakefs/fileutils_rb.html","","",3],["safe.rb","files/lib/fakefs/safe_rb.html","files/lib/fakefs/safe_rb.html","","",3],["spec_helpers.rb","files/lib/fakefs/spec_helpers_rb.html","files/lib/fakefs/spec_helpers_rb.html","","FakeFS::SpecHelpers provides a simple macro for RSpec example groups to turn FakeFS on and off. To use",3],["version.rb","files/lib/fakefs/version_rb.html","files/lib/fakefs/version_rb.html","","",3]],"longSearchIndex":["lib/fakefs/version.rb","fakefs","fakefs","fakefs","fakefs::fakefile","fakefs","fakefs","fakefs::file","fakefs","fakefs","fakefs","fakefs","fakefs","lib/fakefs/base.rb","object","fakefs::dir","fakefs","fakefs::filesystem","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::fileutils","fakefs::dir","fakefs::filesystem","fakefs::fileutils","fakefs::file","fakefs::file","fakefs::fileutils","fakefs::fileutils","fakefs::dir","fakefs::filesystem","fakefs::fakedir","fakefs::fakefile","fakefs::fakefile::inode","fakefs::filesystem","fakefs::dir","fakefs::file","fakefs::file","fakefs::file","fakefs::fakefile","fakefs::fakefile","fakefs::fileutils","fakefs::fileutils","fakefs::file","fakefs::file","fakefs::filesystem","fakefs","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::filesystem","fakefs::filesystem","fakefs::file","fakefs::file::stat","fakefs::file","fakefs::dir","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::filetest","fakefs::file","fakefs::file","fakefs::spechelpers","fakefs::file","fakefs::file","fakefs::filesystem","fakefs::filesystem","fakefs::file","fakefs::dir","fakefs::filesystem","fakefs::dir","fakefs::spechelpers","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::file","fakefs::fakefile","fakefs::fakefile::inode","fakefs::file","fakefs::fakefile","fakefs::fileutils","fakefs::fileutils","fakefs::file","fakefs::file","fakefs::dir","fakefs::fileutils","fakefs::fileutils","fakefs::file","fakefs::file","fakefs::fileutils","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakefile::inode","fakefs::fakesymlink","fakefs::file","fakefs::file::stat","fakefs::file::stat","fakefs::filesystem","fakefs::dir","fakefs::dir","fakefs::filesystem","fakefs::dir","fakefs::dir","fakefs::dir","fakefs::dir","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::fakesymlink","fakefs::dir","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::dir","fakefs::file","fakefs::file","fakefs::file::stat","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file","fakefs::file::stat","fakefs::file","fakefs::dir","fakefs::file","fakefs::file","fakefs::fakedir","fakefs::fakefile","fakefs::version","fakefs::fileutils","fakefs::fakefile::inode","fakefs::spechelpers","fakefs::file","files/contributors.html","files/license.html","files/readme_markdown.html","files/lib/fakefs_rb.html","files/lib/fakefs/base_rb.html","files/lib/fakefs/dir_rb.html","files/lib/fakefs/fake/dir_rb.html","files/lib/fakefs/fake/file_rb.html","files/lib/fakefs/fake/symlink_rb.html","files/lib/fakefs/file_rb.html","files/lib/fakefs/file_system_rb.html","files/lib/fakefs/file_test_rb.html","files/lib/fakefs/fileutils_rb.html","files/lib/fakefs/safe_rb.html","files/lib/fakefs/spec_helpers_rb.html","files/lib/fakefs/version_rb.html"]}} \ No newline at end of file diff --git a/panel/tree.js b/panel/tree.js index e6d6618..6d936b9 100644 --- a/panel/tree.js +++ b/panel/tree.js @@ -1 +1 @@ -var tree = [["","","files",[["CONTRIBUTORS","files/CONTRIBUTORS.html","",[]],["LICENSE","files/LICENSE.html","",[]],["README.markdown","files/README_markdown.html","",[]],["","","lib",[["","","fakefs",[["base.rb","files/lib/fakefs/base_rb.html","",[]],["dir.rb","files/lib/fakefs/dir_rb.html","",[]],["","","fake",[["dir.rb","files/lib/fakefs/fake/dir_rb.html","",[]],["file.rb","files/lib/fakefs/fake/file_rb.html","",[]],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","",[]]]],["file.rb","files/lib/fakefs/file_rb.html","",[]],["file_system.rb","files/lib/fakefs/file_system_rb.html","",[]],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","",[]],["safe.rb","files/lib/fakefs/safe_rb.html","",[]],["spec_helpers.rb","files/lib/fakefs/spec_helpers_rb.html","",[]],["version.rb","files/lib/fakefs/version_rb.html","",[]]]],["fakefs.rb","files/lib/fakefs_rb.html","",[]]]]]],["FakeFS","classes/FakeFS.html","",[["Dir","classes/FakeFS/Dir.html"," < Object",[]],["FakeDir","classes/FakeFS/FakeDir.html"," < Hash",[]],["FakeFile","classes/FakeFS/FakeFile.html"," < Object",[["Inode","classes/FakeFS/FakeFile/Inode.html"," < Object",[]]]],["FakeSymlink","classes/FakeFS/FakeSymlink.html"," < Object",[]],["File","classes/FakeFS/File.html"," < Object",[["Stat","classes/FakeFS/File/Stat.html"," < Object",[]]]],["FileSystem","classes/FakeFS/FileSystem.html","",[]],["FileUtils","classes/FakeFS/FileUtils.html","",[]],["SpecHelpers","classes/FakeFS/SpecHelpers.html","",[]],["Version","classes/FakeFS/Version.html","",[]]]],["Object","classes/Object.html"," < Object",[]]] \ No newline at end of file +var tree = [["","","files",[["CONTRIBUTORS","files/CONTRIBUTORS.html","",[]],["LICENSE","files/LICENSE.html","",[]],["README.markdown","files/README_markdown.html","",[]],["","","lib",[["","","fakefs",[["base.rb","files/lib/fakefs/base_rb.html","",[]],["dir.rb","files/lib/fakefs/dir_rb.html","",[]],["","","fake",[["dir.rb","files/lib/fakefs/fake/dir_rb.html","",[]],["file.rb","files/lib/fakefs/fake/file_rb.html","",[]],["symlink.rb","files/lib/fakefs/fake/symlink_rb.html","",[]]]],["file.rb","files/lib/fakefs/file_rb.html","",[]],["file_system.rb","files/lib/fakefs/file_system_rb.html","",[]],["file_test.rb","files/lib/fakefs/file_test_rb.html","",[]],["fileutils.rb","files/lib/fakefs/fileutils_rb.html","",[]],["safe.rb","files/lib/fakefs/safe_rb.html","",[]],["spec_helpers.rb","files/lib/fakefs/spec_helpers_rb.html","",[]],["version.rb","files/lib/fakefs/version_rb.html","",[]]]],["fakefs.rb","files/lib/fakefs_rb.html","",[]]]]]],["FakeFS","classes/FakeFS.html","",[["Dir","classes/FakeFS/Dir.html"," < Object",[]],["FakeDir","classes/FakeFS/FakeDir.html"," < Hash",[]],["FakeFile","classes/FakeFS/FakeFile.html"," < Object",[["Inode","classes/FakeFS/FakeFile/Inode.html"," < Object",[]]]],["FakeSymlink","classes/FakeFS/FakeSymlink.html"," < Object",[]],["File","classes/FakeFS/File.html"," < StringIO",[["Stat","classes/FakeFS/File/Stat.html"," < Object",[]]]],["FileSystem","classes/FakeFS/FileSystem.html","",[]],["FileTest","classes/FakeFS/FileTest.html"," < Object",[]],["FileUtils","classes/FakeFS/FileUtils.html","",[]],["SpecHelpers","classes/FakeFS/SpecHelpers.html","",[]],["Version","classes/FakeFS/Version.html","",[]]]],["Object","classes/Object.html"," < Object",[]]] \ No newline at end of file