diff --git a/classes/FakeFS.html b/classes/FakeFS.html index 9ae4927..0c55f38 100644 --- a/classes/FakeFS.html +++ b/classes/FakeFS.html @@ -21,10 +21,10 @@ @@ -59,7 +61,7 @@
@@ -68,7 +70,7 @@
@@ -88,6 +90,8 @@
  • MODULE FakeFS::FileUtils
  • +
  • MODULE FakeFS::SpecHelpers
  • +
  • MODULE FakeFS::Version
  • CLASS FakeFS::Dir
  • @@ -111,9 +115,9 @@
    Class Public methods
    -
    +
    - activate!() + activate!()
    @@ -122,12 +126,12 @@
    -
    +
    # File lib/fakefs/base.rb, line 8
       def self.activate!
         Object.class_eval do
    @@ -145,9 +149,9 @@
                 
    -
    +
    - deactivate!() + deactivate!()
    @@ -156,12 +160,12 @@
    -
    +
    # File lib/fakefs/base.rb, line 19
       def self.deactivate!
         Object.class_eval do
    diff --git a/classes/FakeFS/Dir.html b/classes/FakeFS/Dir.html
    index 86fe3b1..b9f4570 100644
    --- a/classes/FakeFS/Dir.html
    +++ b/classes/FakeFS/Dir.html
    @@ -62,7 +62,7 @@
                     
                     
  • chroot,
  • -
  • close
  • +
  • close
  • @@ -80,9 +80,9 @@
    @@ -91,7 +91,7 @@
    @@ -100,7 +100,7 @@
    @@ -109,7 +109,7 @@
    @@ -118,7 +118,7 @@
    @@ -136,13 +136,13 @@
    @@ -151,7 +151,7 @@
      -
    • read,
    • +
    • read,
    • rewind
    • @@ -171,7 +171,7 @@
      @@ -218,7 +218,7 @@
      @@ -245,7 +245,7 @@
      @@ -272,7 +272,7 @@
      @@ -299,7 +299,7 @@
      @@ -313,10 +313,38 @@
      +
      +
      + + entries(dirname) + +
      + + + + +
      + +
      +
      # File lib/fakefs/dir.rb, line 72
      +    def self.entries(dirname)
      +      raise SystemCallError, dirname unless FileSystem.find(dirname)
      +      Dir.new(dirname).map { |file| File.basename(file) }
      +    end
      +
      +
      + +
      +
      - entries(dirname) + foreach(dirname, &block)
      @@ -327,38 +355,10 @@
      -
      # File lib/fakefs/dir.rb, line 72
      -    def self.entries(dirname)
      -      raise SystemCallError, dirname unless FileSystem.find(dirname)
      -      Dir.new(dirname).map { |file| file }
      -    end
      -
      -
      - -
      - -
      -
      - - foreach(dirname, &block) - -
      - - - - -
      - -
      # File lib/fakefs/dir.rb, line 77
           def self.foreach(dirname, &block)
             Dir.open(dirname) { |file| yield file }
      @@ -369,9 +369,9 @@
                   
      -
      +
      - glob(pattern) + glob(pattern)
      @@ -380,12 +380,12 @@
      -
      +
      # File lib/fakefs/dir.rb, line 81
           def self.glob(pattern)
             [FileSystem.find(pattern) || []].flatten.map{|e| e.to_s}.sort
      @@ -396,9 +396,9 @@
                   
      -
      +
      - mkdir(string, integer = 0) + mkdir(string, integer = 0)
      @@ -407,12 +407,12 @@
      -
      +
      # File lib/fakefs/dir.rb, line 85
           def self.mkdir(string, integer = 0)
             parent = string.split('/')
      @@ -426,9 +426,9 @@
                   
      -
      +
      - new(string) + new(string)
      @@ -437,12 +437,12 @@
      -
      +
      # File lib/fakefs/dir.rb, line 5
           def initialize(string)
             raise Errno::ENOENT, string unless FileSystem.find(string)
      @@ -470,7 +470,7 @@
                           
                           
      @@ -487,37 +487,10 @@
      -
      -
      - - pwd() - -
      - - - - -
      - -
      -
      # File lib/fakefs/dir.rb, line 104
      -    def self.pwd
      -      FileSystem.current_dir.to_s
      -    end
      -
      -
      - -
      -
      - tmpdir() + pwd()
      @@ -528,10 +501,37 @@
      +
      # File lib/fakefs/dir.rb, line 104
      +    def self.pwd
      +      FileSystem.current_dir.to_s
      +    end
      +
      +
      + +
      + +
      +
      + + tmpdir() + +
      + + + + +
      + +
      # File lib/fakefs/dir.rb, line 100
           def self.tmpdir
             '/tmp'
      @@ -544,9 +544,9 @@
                   
      Instance Public methods
      -
      +
      - close() + close()
      @@ -555,12 +555,12 @@
      -
      +
      # File lib/fakefs/dir.rb, line 13
           def close
             @open = false
      @@ -574,9 +574,9 @@
                   
      -
      +
      - each(&block) + each(&block)
      @@ -585,12 +585,12 @@
      -
      +
      # File lib/fakefs/dir.rb, line 20
           def each(&block)
             while f = read
      @@ -602,37 +602,10 @@
                       
                   
      -
      -
      - - path() - -
      - - - - -
      - -
      -
      # File lib/fakefs/dir.rb, line 26
      -    def path
      -      @path
      -    end
      -
      -
      - -
      -
      - pos() + path()
      @@ -643,13 +616,13 @@
      -
      # File lib/fakefs/dir.rb, line 30
      -    def pos
      -      @pointer
      +                        
      # File lib/fakefs/dir.rb, line 26
      +    def path
      +      @path
           end
      @@ -659,7 +632,7 @@
      - pos=(integer) + pos()
      @@ -670,13 +643,13 @@
      -
      # File lib/fakefs/dir.rb, line 34
      -    def pos=(integer)
      -      @pointer = integer
      +                        
      # File lib/fakefs/dir.rb, line 30
      +    def pos
      +      @pointer
           end
      @@ -686,7 +659,7 @@
      - read() + pos=(integer)
      @@ -697,10 +670,37 @@
      +
      # File lib/fakefs/dir.rb, line 34
      +    def pos=(integer)
      +      @pointer = integer
      +    end
      +
      +
      + +
      + +
      +
      + + read() + +
      + + + + +
      + +
      # File lib/fakefs/dir.rb, line 38
           def read
             raise IOError, "closed directory" if @pointer == nil
      @@ -727,7 +727,7 @@
                           
                           
      @@ -754,7 +754,7 @@
      diff --git a/classes/FakeFS/FakeDir.html b/classes/FakeFS/FakeDir.html index 697a00c..08ae1d8 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 @@
      @@ -94,7 +94,7 @@
      @@ -137,9 +137,9 @@
      Class Public methods
      -
      +
      - new(name = nil, parent = nil) + new(name = nil, parent = nil)
      @@ -148,12 +148,12 @@
      -
      +
      # File lib/fakefs/fake/dir.rb, line 5
           def initialize(name = nil, parent = nil)
             @name = name
      @@ -167,9 +167,9 @@
                   
      Instance Public methods
      -
      +
      - clone(parent = nil) + clone(parent = nil)
      @@ -178,12 +178,12 @@
      -
      +
      # File lib/fakefs/fake/dir.rb, line 18
           def clone(parent = nil)
             clone = Marshal.load(Marshal.dump(self))
      @@ -230,9 +230,9 @@
                   
      -
      +
      - entry() + entry()
      @@ -241,12 +241,12 @@
      -
      +
      # File lib/fakefs/fake/dir.rb, line 10
           def entry
             self
      @@ -257,9 +257,9 @@
                   
      -
      +
      - inspect() + inspect()
      @@ -268,12 +268,12 @@
      -
      +
      # File lib/fakefs/fake/dir.rb, line 14
           def inspect
             "(FakeDir name:#{name.inspect} parent:#{parent.to_s.inspect} size:#{size})"
      @@ -284,9 +284,9 @@
                   
      -
      +
      - to_s() + to_s()
      @@ -295,12 +295,12 @@
      -
      +
      # File lib/fakefs/fake/dir.rb, line 27
           def to_s
             if parent && parent.to_s != '.'
      diff --git a/classes/FakeFS/FakeFile.html b/classes/FakeFS/FakeFile.html
      index 8ed7748..1b11b80 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 @@
      @@ -152,6 +152,22 @@ + + + [RW] + + content + + + + + + [RW] + + mtime + + + [RW] @@ -167,9 +183,9 @@
      Class Public methods
      -
      +
      - new(name = nil, parent = nil) + new(name = nil, parent = nil)
      @@ -178,17 +194,18 @@
      -
      -
      # File lib/fakefs/fake/file.rb, line 24
      +                    
      +
      # File lib/fakefs/fake/file.rb, line 30
           def initialize(name = nil, parent = nil)
             @name   = name
             @parent = parent
             @inode  = Inode.new(self)
      +      @mtime  = Time.now
           end
      @@ -198,9 +215,9 @@
      Instance Public methods
      -
      +
      - clone(parent = nil) + clone(parent = nil)
      @@ -209,13 +226,13 @@
      -
      -
      # File lib/fakefs/fake/file.rb, line 48
      +                    
      +
      # File lib/fakefs/fake/file.rb, line 55
           def clone(parent = nil)
             clone = super()
             clone.parent = parent if parent
      @@ -227,37 +244,10 @@
                       
                   
      -
      -
      - - content() - -
      - - - - -
      - -
      -
      # File lib/fakefs/fake/file.rb, line 32
      -    def content
      -      @inode.content
      -    end
      -
      -
      - -
      -
      - content=(str) + content()
      @@ -268,122 +258,13 @@
      -
      # File lib/fakefs/fake/file.rb, line 36
      -    def content=(str)
      -      @inode.content = str
      -    end
      -
      -
      - -
      - -
      -
      - - delete() - -
      - - - - -
      - -
      -
      # File lib/fakefs/fake/file.rb, line 67
      -    def delete
      -      inode.unlink(self)
      -      parent.delete(self)
      -    end
      -
      -
      - -
      - -
      -
      - - entry() - -
      - - - - -
      - -
      -
      # File lib/fakefs/fake/file.rb, line 55
      -    def entry
      -      self
      -    end
      -
      -
      - -
      - -
      -
      - - inspect() - -
      - - - - -
      - -
      -
      # File lib/fakefs/fake/file.rb, line 59
      -    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 44
      -    def link(other_file)
      -      @inode.link(other_file)
      +                        
      # File lib/fakefs/fake/file.rb, line 39
      +    def content
      +      @inode.content
           end
      @@ -393,7 +274,7 @@
      - links() + content=(str)
      @@ -404,13 +285,68 @@
      -
      # File lib/fakefs/fake/file.rb, line 40
      -    def links
      -      @inode.links
      +                        
      # File lib/fakefs/fake/file.rb, line 43
      +    def content=(str)
      +      @inode.content = str
      +    end
      +
      +
      + +
      + +
      +
      + + 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
      @@ -420,7 +356,7 @@
      - to_s() + inspect()
      @@ -431,11 +367,92 @@
      -
      # File lib/fakefs/fake/file.rb, line 63
      +                        
      # 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() + +
      + + + + +
      + +
      +
      # File lib/fakefs/fake/file.rb, line 47
      +    def links
      +      @inode.links
      +    end
      +
      +
      + +
      + +
      +
      + + to_s() + +
      + + + + +
      + +
      +
      # File lib/fakefs/fake/file.rb, line 70
           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 5f412d7..1163500 100644 --- a/classes/FakeFS/FakeFile/Inode.html +++ b/classes/FakeFS/FakeFile/Inode.html @@ -45,11 +45,20 @@
      Methods
      +
      C
      +
      + +
      +
      L
      @@ -67,7 +76,7 @@
      @@ -123,7 +132,7 @@
      @@ -140,9 +149,9 @@
      Instance Public methods
      -
      +
      - link(file) + clone()
      @@ -151,12 +160,41 @@
      -
      +
      +
      # File lib/fakefs/fake/file.rb, line 23
      +      def clone
      +        clone = super
      +        clone.content = content.dup
      +        clone
      +      end
      +
      +
      + +
      + +
      +
      + + link(file) + +
      + + + + +
      + +
      # File lib/fakefs/fake/file.rb, line 14
             def link(file)
               links << file unless links.include?(file)
      @@ -168,9 +206,9 @@
                   
      -
      +
      - unlink(file) + unlink(file)
      @@ -179,12 +217,12 @@
      -
      +
      # File lib/fakefs/fake/file.rb, line 19
             def unlink(file)
               links.delete(file)
      diff --git a/classes/FakeFS/FakeSymlink.html b/classes/FakeFS/FakeSymlink.html
      index 4a31649..7863f7b 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,12 @@
      -
      +
      # File lib/fakefs/fake/symlink.rb, line 6
           def initialize(target)
             @target = target
      @@ -157,9 +157,9 @@
                   
      Instance Public methods
      -
      +
      - delete() + delete()
      @@ -168,12 +168,12 @@
      -
      +
      # File lib/fakefs/fake/symlink.rb, line 18
           def delete
             parent.delete(self)
      @@ -184,9 +184,9 @@
                   
      -
      +
      - entry() + entry()
      @@ -195,12 +195,12 @@
      -
      +
      # File lib/fakefs/fake/symlink.rb, line 14
           def entry
             FileSystem.find(target)
      @@ -211,9 +211,9 @@
                   
      -
      +
      - inspect() + inspect()
      @@ -222,12 +222,12 @@
      -
      +
      # File lib/fakefs/fake/symlink.rb, line 10
           def inspect
             "symlink(#{target.split('/').last})"
      @@ -238,9 +238,9 @@
                   
      -
      +
      - respond_to?(method) + respond_to?(method)
      @@ -249,12 +249,12 @@
      -
      +
      # 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 c6f99fd..79852e3 100644
      --- a/classes/FakeFS/File.html
      +++ b/classes/FakeFS/File.html
      @@ -58,7 +58,7 @@
               
      @@ -67,9 +67,9 @@
      @@ -78,11 +78,11 @@
      @@ -91,13 +91,13 @@
      @@ -106,7 +106,7 @@
      @@ -164,13 +173,15 @@
      @@ -179,13 +190,17 @@
      @@ -241,23 +256,16 @@ - READ_ONLY_MODES + MODE_BITMASK = - [ READ_ONLY ] + RealFile::RDONLY | RealFile::WRONLY | RealFile::RDWR | RealFile::APPEND | RealFile::CREAT | RealFile::EXCL | RealFile::NONBLOCK | RealFile::TRUNC | RealFile::NOCTTY | RealFile::SYNC - WRITE_ONLY_MODES + FILE_CREATION_BITMASK = - [ WRITE_ONLY, APPEND_WRITE_ONLY ] - - - - - TRUNCATION_MODES - = - [ WRITE_ONLY, READ_WRITE_TRUNCATE ] + RealFile::CREAT @@ -283,9 +291,9 @@
      Class Public methods
      -
      +
      - basename(*args) + basename(*args)
      @@ -294,13 +302,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 84
      +                    
      +
      # File lib/fakefs/file.rb, line 103
           def self.basename(*args)
             RealFile.basename(*args)
           end
      @@ -310,9 +318,9 @@
      -
      +
      - const_missing(name) + const_missing(name)
      @@ -321,13 +329,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 50
      +                    
      +
      # File lib/fakefs/file.rb, line 69
           def self.const_missing(name)
             RealFile.const_get(name)
           end
      @@ -337,9 +345,9 @@
      -
      +
      - delete(file_name, *additional_file_names) + delete(file_name, *additional_file_names)
      @@ -348,13 +356,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 138
      +                    
      +
      # File lib/fakefs/file.rb, line 157
           def self.delete(file_name, *additional_file_names)
             if !exists?(file_name)
               raise Errno::ENOENT, "No such file or directory - #{file_name}"
      @@ -374,9 +382,9 @@
                   
      -
      +
      - directory?(path) + directory?(path)
      @@ -385,13 +393,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 54
      +                    
      +
      # File lib/fakefs/file.rb, line 73
           def self.directory?(path)
             if path.respond_to? :entry
               path.entry.is_a? FakeDir
      @@ -406,9 +414,9 @@
                   
      -
      +
      - dirname(path) + dirname(path)
      @@ -417,13 +425,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 88
      +                    
      +
      # File lib/fakefs/file.rb, line 107
           def self.dirname(path)
             RealFile.dirname(path)
           end
      @@ -432,64 +440,10 @@
      -
      -
      - - exist?(path) - -
      - - - - -
      - -
      -
      # File lib/fakefs/file.rb, line 38
      -    def self.exist?(path)
      -      !!FileSystem.find(path)
      -    end
      -
      -
      - -
      - -
      -
      - - expand_path(*args) - -
      - - - - -
      - -
      -
      # File lib/fakefs/file.rb, line 80
      -    def self.expand_path(*args)
      -      RealFile.expand_path(*args)
      -    end
      -
      -
      - -
      -
      - extname(path) + exist?(path)
      @@ -500,11 +454,65 @@
      -
      # File lib/fakefs/file.rb, line 30
      +                        
      # File lib/fakefs/file.rb, line 37
      +    def self.exist?(path)
      +      !!FileSystem.find(path)
      +    end
      +
      +
      + +
      + +
      +
      + + expand_path(*args) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 99
      +    def self.expand_path(*args)
      +      RealFile.expand_path(*args)
      +    end
      +
      +
      + +
      + +
      +
      + + extname(path) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 29
           def self.extname(path)
             RealFile.extname(path)
           end
      @@ -514,9 +522,9 @@
      -
      +
      - file?(path) + file?(path)
      @@ -525,13 +533,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 71
      +                    
      +
      # File lib/fakefs/file.rb, line 90
           def self.file?(path)
             if path.respond_to? :entry
               path.entry.is_a? FakeFile
      @@ -546,9 +554,9 @@
                   
      -
      +
      - join(*parts) + join(*parts)
      @@ -557,13 +565,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 34
      +                    
      +
      # File lib/fakefs/file.rb, line 33
           def self.join(*parts)
             parts * PATH_SEPARATOR
           end
      @@ -573,9 +581,9 @@
      -
      +
      - link(source, dest) + link(source, dest)
      @@ -584,13 +592,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 118
      +                    
      +
      # File lib/fakefs/file.rb, line 137
           def self.link(source, dest)
             if directory?(source)
               raise Errno::EPERM, "Operation not permitted - #{source} or #{dest}"
      @@ -599,11 +607,11 @@
             if !exists?(source)
               raise Errno::ENOENT, "No such file or directory - #{source} or #{dest}"
             end
      -      
      +
             if exists?(dest)
               raise Errno::EEXIST, "File exists - #{source} or #{dest}"
             end
      -      
      +
             source = FileSystem.find(source)
             dest = FileSystem.add(dest, source.entry.clone)
             source.link(dest)
      @@ -616,9 +624,9 @@
                   
      -
      +
      - new(path, mode = READ_ONLY, perm = nil) + mtime(path)
      @@ -627,22 +635,19 @@
      -
      -
      # File lib/fakefs/file.rb, line 188
      -    def initialize(path, mode = READ_ONLY, perm = nil)
      -      @path = path
      -      @mode = mode
      -      @file = FileSystem.find(path)
      -      @open = true
      -
      -      check_valid_mode
      -      file_creation_mode? ? create_missing_file : check_file_existence!
      -      truncate_file if truncation_mode?
      +                    
      +
      # File lib/fakefs/file.rb, line 49
      +    def self.mtime(path)
      +      if exists?(path)
      +        FileSystem.find(path).mtime
      +      else
      +        raise Errno::ENOENT
      +      end
           end
      @@ -650,9 +655,9 @@
      -
      +
      - open(path, mode=READ_ONLY, perm = 0644) + new(path, mode = READ_ONLY, perm = nil)
      @@ -661,13 +666,49 @@
      -
      -
      # File lib/fakefs/file.rb, line 97
      +                    
      +
      # File lib/fakefs/file.rb, line 207
      +    def initialize(path, mode = READ_ONLY, perm = nil)
      +      @path = path
      +      @mode = mode
      +      @file = FileSystem.find(path)
      +      @open = true
      +
      +      check_modes!
      +
      +      file_creation_mode? ? create_missing_file : check_file_existence!
      +
      +      @stream = StringIO.new(@file.content, mode)
      +    end
      +
      +
      + +
      + +
      +
      + + open(path, mode=READ_ONLY, perm = 0644) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 116
           def self.open(path, mode=READ_ONLY, perm = 0644)
             if block_given?
               yield new(path, mode, perm)
      @@ -681,9 +722,9 @@
                   
      -
      +
      - read(path) + read(path)
      @@ -692,13 +733,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 105
      +                    
      +
      # File lib/fakefs/file.rb, line 124
           def self.read(path)
             file = new(path)
             if file.exists?
      @@ -713,9 +754,9 @@
                   
      -
      +
      - readlines(path) + readlines(path)
      @@ -724,13 +765,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 114
      +                    
      +
      # File lib/fakefs/file.rb, line 133
           def self.readlines(path)
             read(path).split("\n")
           end
      @@ -740,9 +781,9 @@
      -
      +
      - readlink(path) + readlink(path)
      @@ -751,13 +792,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 92
      +                    
      +
      # File lib/fakefs/file.rb, line 111
           def self.readlink(path)
             symlink = FileSystem.find(path)
             FileSystem.find(symlink.target).to_s
      @@ -768,9 +809,9 @@
                   
      -
      +
      - size(path) + size(path)
      @@ -779,13 +820,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 46
      +                    
      +
      # File lib/fakefs/file.rb, line 57
           def self.size(path)
             read(path).length
           end
      @@ -795,9 +836,9 @@
      -
      +
      - stat(file) + size?(path)
      @@ -806,13 +847,44 @@
      -
      -
      # File lib/fakefs/file.rb, line 160
      +                    
      +
      # File lib/fakefs/file.rb, line 61
      +    def self.size?(path)
      +      if exists?(path) && !size(path).zero?
      +        true
      +      else
      +        nil
      +      end
      +    end
      +
      +
      + +
      + +
      +
      + + stat(file) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 179
           def self.stat(file)
             File::Stat.new(file)
           end
      @@ -822,9 +894,9 @@
      -
      +
      - symlink(source, dest) + symlink(source, dest)
      @@ -833,13 +905,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 156
      +                    
      +
      # File lib/fakefs/file.rb, line 175
           def self.symlink(source, dest)
             FileUtils.ln_s(source, dest)
           end
      @@ -849,9 +921,9 @@
      -
      +
      - symlink?(path) + symlink?(path)
      @@ -860,13 +932,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 63
      +                    
      +
      # File lib/fakefs/file.rb, line 82
           def self.symlink?(path)
             if path.respond_to? :entry
               path.is_a? FakeSymlink
      @@ -900,9 +972,9 @@ Alias for write
                   
      -
      +
      - close() + close()
      @@ -911,13 +983,13 @@ Alias for write
      -
      -
      # File lib/fakefs/file.rb, line 199
      +                    
      +
      # File lib/fakefs/file.rb, line 220
           def close
             @open = false
           end
      @@ -927,9 +999,9 @@ Alias for write
      -
      +
      - exists?() + exists?()
      @@ -938,15 +1010,15 @@ Alias for write
      -
      -
      # File lib/fakefs/file.rb, line 210
      +                    
      +
      # File lib/fakefs/file.rb, line 232
           def exists?
      -      @file
      +      true
           end
      @@ -967,11 +1039,11 @@ Alias for write
      -
      # File lib/fakefs/file.rb, line 229
      +                        
      # File lib/fakefs/file.rb, line 246
           def flush; self; end
      @@ -994,12 +1066,66 @@ Alias for write +
      + +
      +
      + + puts(*content) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 236
      +    def puts(*content)
      +      @stream.puts(*content)
      +    end
      +
      +
      + +
      + +
      +
      + + read(chunk = nil) + +
      + + + + +
      + +
      +
      # File lib/fakefs/file.rb, line 224
      +    def read(chunk = nil)
      +      @stream.read(chunk)
      +    end
      +
      +
      +
      - puts(*content) + rewind()
      @@ -1010,15 +1136,13 @@ Alias for write
      -
      # File lib/fakefs/file.rb, line 214
      -    def puts(*content)
      -      content.flatten.each do |obj|
      -        write(obj.to_s + "\n")
      -      end
      +                        
      # File lib/fakefs/file.rb, line 228
      +    def rewind
      +      @stream.rewind
           end
      @@ -1026,9 +1150,9 @@ Alias for write
      -
      +
      - read() + seek(amount, whence = SEEK_SET)
      @@ -1037,18 +1161,15 @@ Alias for write
      -
      -
      # File lib/fakefs/file.rb, line 203
      -    def read
      -      raise IOError, 'closed stream' unless @open
      -      raise IOError, 'not opened for reading' if write_only?
      -
      -      @file.content
      +                    
      +
      # File lib/fakefs/file.rb, line 248
      +    def seek(amount, whence = SEEK_SET)
      +      @stream.seek(amount, whence)
           end
      @@ -1078,16 +1199,13 @@ Alias for write
      -
      # File lib/fakefs/file.rb, line 220
      +                        
      # File lib/fakefs/file.rb, line 240
           def write(content)
      -      raise IOError, 'closed stream' unless @open
      -      raise IOError, 'not open for writing' if read_only?
      -
      -      @file.content += content
      +      @stream.write(content)
           end
      diff --git a/classes/FakeFS/File/Stat.html b/classes/FakeFS/File/Stat.html index 72efcab..832c199 100644 --- a/classes/FakeFS/File/Stat.html +++ b/classes/FakeFS/File/Stat.html @@ -49,7 +49,7 @@
      @@ -58,9 +58,9 @@
      @@ -69,7 +69,7 @@
      @@ -91,9 +91,9 @@
      Class Public methods
      -
      +
      - new(file) + new(file)
      @@ -102,13 +102,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 165
      +                    
      +
      # File lib/fakefs/file.rb, line 184
             def initialize(file)
               if !File.exists?(file)
                 raise(Errno::ENOENT, "No such file or directory - #{file}")
      @@ -124,9 +124,9 @@
                   
      Instance Public methods
      -
      +
      - directory?() + directory?()
      @@ -135,13 +135,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 177
      +                    
      +
      # File lib/fakefs/file.rb, line 196
             def directory?
               File.directory?(@file)
             end
      @@ -151,9 +151,9 @@
      -
      +
      - nlink() + nlink()
      @@ -162,13 +162,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 181
      +                    
      +
      # File lib/fakefs/file.rb, line 200
             def nlink
               FileSystem.find(@file).links.size
             end
      @@ -178,9 +178,9 @@
      -
      +
      - symlink?() + symlink?()
      @@ -189,13 +189,13 @@
      -
      -
      # File lib/fakefs/file.rb, line 173
      +                    
      +
      # File lib/fakefs/file.rb, line 192
             def symlink?
               File.symlink?(@file)
             end
      diff --git a/classes/FakeFS/FileSystem.html b/classes/FakeFS/FileSystem.html index efc3f2b..4d7fb07 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,12 @@
      -
      +
      # File lib/fakefs/file_system.rb, line 35
           def add(path, object=FakeDir.new)
             parts = path_parts(normalize_path(path))
      @@ -157,9 +157,9 @@
                   
      -
      +
      - chdir(dir, &blk) + chdir(dir, &blk)
      @@ -168,12 +168,12 @@
      -
      +
      # File lib/fakefs/file_system.rb, line 74
           def chdir(dir, &blk)
             new_dir = find(dir)
      @@ -192,9 +192,9 @@
                   
      -
      +
      - clear() + clear()
      @@ -203,12 +203,12 @@
      -
      +
      # File lib/fakefs/file_system.rb, line 13
           def clear
             @dir_levels = nil
      @@ -220,9 +220,9 @@
                   
      -
      +
      - clone(path) + clone(path)
      @@ -238,12 +238,12 @@ 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 +269,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - current_dir() + current_dir()
      @@ -280,12 +280,12 @@ 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 +296,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - delete(path) + delete(path)
      @@ -307,12 +307,12 @@ 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 +325,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - dir_levels() + dir_levels()
      @@ -336,12 +336,12 @@ 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 +352,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - files() + files()
      @@ -363,12 +363,12 @@ 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 +379,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - find(path) + find(path)
      @@ -390,12 +390,12 @@ 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 +415,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - fs() + fs()
      @@ -426,12 +426,12 @@ 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 +442,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - normalize_path(path) + normalize_path(path)
      @@ -453,12 +453,12 @@ 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 +474,9 @@ copies directories and files from the real filesystem into our fake one
                   
      -
      +
      - path_parts(path) + path_parts(path)
      @@ -485,12 +485,12 @@ 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/FileUtils.html b/classes/FakeFS/FileUtils.html
      index ebacf32..18028a7 100644
      --- a/classes/FakeFS/FileUtils.html
      +++ b/classes/FakeFS/FileUtils.html
      @@ -43,17 +43,17 @@
               
      @@ -62,7 +62,9 @@
      @@ -71,11 +73,11 @@
      @@ -84,13 +86,15 @@
      @@ -99,7 +103,7 @@
      @@ -121,9 +125,9 @@
      Instance Public methods
      -
      +
      - cd(dir) + cd(dir)
      @@ -131,7 +135,7 @@
      This method is also aliased as - chdir + chdir
      @@ -139,13 +143,13 @@
      -
      -
      # File lib/fakefs/fileutils.rb, line 117
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 124
           def cd(dir)
             FileSystem.chdir(dir)
           end
      @@ -155,15 +159,15 @@
      -
      +
      - chdir(dir) + chdir(dir)

      -Alias for cd +Alias for cd

      @@ -173,9 +177,9 @@ Alias for cd
      -
      +
      - chown(user, group, list, options={}) + chown(user, group, list, options={})
      @@ -184,13 +188,13 @@ Alias for cd
      -
      -
      # File lib/fakefs/fileutils.rb, line 91
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 98
           def chown(user, group, list, options={})
             list = Array(list)
             list.each do |f|
      @@ -206,9 +210,9 @@ Alias for cd
                   
      -
      +
      - chown_R(user, group, list, options={}) + chown_R(user, group, list, options={})
      @@ -217,13 +221,13 @@ Alias for cd
      -
      -
      # File lib/fakefs/fileutils.rb, line 101
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 108
           def chown_R(user, group, list, options={})
             chown(user, group, list, options={})
           end
      @@ -233,9 +237,9 @@ Alias for cd
      -
      +
      - cp(src, dest) + cp(src, dest)
      @@ -244,13 +248,13 @@ Alias for cd
      -
      -
      # File lib/fakefs/fileutils.rb, line 34
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 41
           def cp(src, dest)
             dst_file = FileSystem.find(dest)
             src_file = FileSystem.find(src)
      @@ -276,9 +280,9 @@ Alias for cd
                   
      -
      +
      - cp_r(src, dest) + cp_r(src, dest)
      @@ -287,13 +291,13 @@ Alias for cd
      -
      -
      # File lib/fakefs/fileutils.rb, line 54
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 61
           def cp_r(src, dest)
             # This error sucks, but it conforms to the original Ruby
             # method.
      @@ -327,9 +331,9 @@ Alias for cd
                   
      -
      +
      - ln_s(target, path) + ln_s(target, path, options = {})
      @@ -338,15 +342,16 @@ Alias for cd
      -
      -
      # File lib/fakefs/fileutils.rb, line 29
      -    def ln_s(target, path)
      -      raise Errno::EEXIST, path if FileSystem.find(path)
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 30
      +    def ln_s(target, path, options = {})
      +      options = { :force => false }.merge(options)
      +      (FileSystem.find(path) and !options[:force]) ? raise(Errno::EEXIST, path) : FileSystem.delete(path)
             FileSystem.add(path, FakeSymlink.new(target))
           end
      @@ -355,9 +360,36 @@ Alias for cd
      -
      +
      - mkdir_p(path) + ln_sf(target, path) + +
      + + + + +
      + +
      +
      # File lib/fakefs/fileutils.rb, line 35
      +    def ln_sf(target, path)
      +      ln_s(target, path, { :force => true })
      +    end
      +
      +
      + +
      + +
      +
      + + mkdir_p(path)
      @@ -365,7 +397,7 @@ Alias for cd
      This method is also aliased as - mkpath + mkpath
      @@ -373,12 +405,12 @@ Alias for cd
      -
      +
      # File lib/fakefs/fileutils.rb, line 5
           def mkdir_p(path)
             FileSystem.add(path, FakeDir.new)
      @@ -389,15 +421,15 @@ Alias for cd
                   
      -
      +
      - mkpath(path) + mkpath(path)

      -Alias for mkdir_p +Alias for mkdir_p

      @@ -407,9 +439,9 @@ Alias for mkdir_p
      -
      +
      - mv(src, dest) + mv(src, dest)
      @@ -418,13 +450,13 @@ Alias for mkdir_p
      -
      -
      # File lib/fakefs/fileutils.rb, line 82
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 89
           def mv(src, dest)
             if target = FileSystem.find(src)
               FileSystem.add(dest, target.entry.clone)
      @@ -439,9 +471,9 @@ Alias for mkdir_p
                   
      -
      +
      - rm(path) + rm(path)
      @@ -449,9 +481,11 @@ Alias for mkdir_p
      This method is also aliased as - rm_rf + rm_rf - rm_r + rm_r + + rm_f
      @@ -459,12 +493,12 @@ Alias for mkdir_p
      -
      +
      # File lib/fakefs/fileutils.rb, line 22
           def rm(path)
             FileSystem.delete(path)
      @@ -475,15 +509,15 @@ Alias for mkdir_p
                   
      -
      +
      - rm_r(path) + rm_f(path)

      -Alias for rm +Alias for rm

      @@ -493,15 +527,15 @@ Alias for rm
      -
      +
      - rm_rf(path) + rm_r(path)

      -Alias for rm +Alias for rm

      @@ -511,9 +545,27 @@ Alias for rm
      -
      +
      - rmdir(list, options = {}) + rm_rf(path) + +
      + +
      +

      +Alias for rm +

      + +
      + + + +
      + +
      +
      + + rmdir(list, options = {})
      @@ -522,12 +574,12 @@ Alias for rm
      -
      +
      # File lib/fakefs/fileutils.rb, line 10
           def rmdir(list, options = {})
             list = [ list ] unless list.is_a?(Array)
      @@ -546,9 +598,9 @@ Alias for rm
                   
      -
      +
      - touch(list, options={}) + touch(list, options={})
      @@ -557,13 +609,13 @@ Alias for rm
      -
      -
      # File lib/fakefs/fileutils.rb, line 105
      +                    
      +
      # File lib/fakefs/fileutils.rb, line 112
           def touch(list, options={})
             Array(list).each do |f|
               directory = File.dirname(f)
      diff --git a/classes/FakeFS/SpecHelpers.html b/classes/FakeFS/SpecHelpers.html
      new file mode 100644
      index 0000000..d6682a7
      --- /dev/null
      +++ b/classes/FakeFS/SpecHelpers.html
      @@ -0,0 +1,178 @@
      +
      +
      +
      +
      +    FakeFS::SpecHelpers
      +    
      +    
      +    
      +    
      +    
      +    
      +
      +
      +     
      +    
      +    
      +
      + + + + + + + + + +
      Methods
      +
      + +
      E
      +
      + +
      + +
      I
      +
      + +
      + +
      U
      +
      + +
      + +
      + + + + + + + + + + + + + +
      Class Public methods
      + +
      +
      + + extended(example_group) + +
      + + + + +
      + +
      +
      # File lib/fakefs/spec_helpers.rb, line 27
      +    def self.extended(example_group)
      +      example_group.use_fakefs(example_group)
      +    end
      +
      +
      + +
      + +
      +
      + + included(example_group) + +
      + + + + +
      + +
      +
      # File lib/fakefs/spec_helpers.rb, line 31
      +    def self.included(example_group)
      +      example_group.extend self
      +    end
      +
      +
      + +
      + +
      Instance Public methods
      + +
      +
      + + use_fakefs(describe_block) + +
      + + + + +
      + +
      +
      # File lib/fakefs/spec_helpers.rb, line 35
      +    def use_fakefs(describe_block)
      +      describe_block.before :each do
      +        FakeFS.activate!
      +      end
      +
      +      describe_block.after :each do
      +        FakeFS.deactivate!
      +        FakeFS::FileSystem.clear
      +      end
      +    end
      +
      +
      + +
      + +
      +
      + + \ No newline at end of file diff --git a/classes/FakeFS/Version.html b/classes/FakeFS/Version.html index 38cf3ec..d46d391 100644 --- a/classes/FakeFS/Version.html +++ b/classes/FakeFS/Version.html @@ -43,7 +43,7 @@
      @@ -64,7 +64,7 @@ VERSION = - "0.1.1" + "0.2.1" @@ -77,9 +77,9 @@
      Class Public methods
      -
      +
      - to_s() + to_s()
      @@ -88,12 +88,12 @@
      -
      +
      # File lib/fakefs/version.rb, line 5
           def self.to_s
             VERSION
      diff --git a/classes/Object.html b/classes/Object.html
      index ca22f1e..57ac1fb 100644
      --- a/classes/Object.html
      +++ b/classes/Object.html
      @@ -47,7 +47,7 @@
               
      @@ -69,9 +69,9 @@
      Instance Public methods
      -
      +
      - FakeFS() + FakeFS()
      @@ -80,19 +80,19 @@
      -
      +
      # File lib/fakefs/base.rb, line 31
       def FakeFS
         return ::FakeFS unless block_given?
         ::FakeFS.activate!
      -  result = yield
      -  ::FakeFS.deactivate!
      -  result
      +  yield
      +ensure
      +::FakeFS.deactivate!
       end
      diff --git a/created.rid b/created.rid index 3fab944..0a3000b 100644 --- a/created.rid +++ b/created.rid @@ -1 +1 @@ -Tue, 06 Oct 2009 21:44:00 -0700 +Fri, 30 Oct 2009 10:03:17 -0700 diff --git a/files/CONTRIBUTORS.html b/files/CONTRIBUTORS.html new file mode 100644 index 0000000..f558539 --- /dev/null +++ b/files/CONTRIBUTORS.html @@ -0,0 +1,94 @@ + + + + + CONTRIBUTORS + + + + + + + + + + + +
      +
      + +
      +
        +
      • Chris Wanstrath + +
      • +
      • Jeff Hodges + +
      • +
      • Scott Taylor + +
      • +
      • Pat Nakajima + +
      • +
      • Myles Eftos + +
      • +
      • Matt Freels + +
      • +
      • Nick Quaranto + +
      • +
      • Tymon Tobolski + +
      • +
      • msassak + +
      • +
      • Rob Sanheim + +
      • +
      • Jon Yurek + +
      • +
      • David Reese + +
      • +
      + +
      + + + + + + + + + + + + + + + + + + + + + +
      +
      + + \ No newline at end of file diff --git a/files/LICENSE.html b/files/LICENSE.html index 2e68c8e..a99087c 100644 --- a/files/LICENSE.html +++ b/files/LICENSE.html @@ -19,7 +19,7 @@
      • LICENSE
      • -
      • Last modified: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Tue Oct 06 21:44:09 -0700 2009
      diff --git a/files/README_markdown.html b/files/README_markdown.html index e8c8777..ebf6811 100644 --- a/files/README_markdown.html +++ b/files/README_markdown.html @@ -19,7 +19,7 @@
      • README.markdown
      • -
      • Last modified: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Wed Oct 28 11:02:19 -0700 2009
      @@ -75,12 +75,24 @@ FakeFS do end
      +

      RSpec

      + +

      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

      @@ -97,27 +109,11 @@ FakeFS.

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

      Contributors

      - -
        -
      • Chris Wanstrath
      • -
      • David Reese
      • -
      • Jeff Hodges
      • -
      • Jon Yurek
      • -
      • Matt Freels
      • -
      • Myles Eftos
      • -
      • Pat Nakajima
      • -
      • Rob Sanheim
      • -
      • Scott Taylor
      • -
      • Tymon Tobolski
      • -
      • msassak
      • -
      - -

      Meta

      diff --git a/files/lib/fakefs/dir_rb.html b/files/lib/fakefs/dir_rb.html index f3decd9..2f5d354 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Wed Oct 28 09:41:53 -0700 2009
      diff --git a/files/lib/fakefs/fake/dir_rb.html b/files/lib/fakefs/fake/dir_rb.html index fca0835..263da55 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:17:21 -0700 2009
      • +
      • Last modified: Tue Oct 06 21:44:09 -0700 2009
      diff --git a/files/lib/fakefs/fake/file_rb.html b/files/lib/fakefs/fake/file_rb.html index 2eec27a..93a7c7e 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Thu Oct 29 09:14:12 -0700 2009
      diff --git a/files/lib/fakefs/fake/symlink_rb.html b/files/lib/fakefs/fake/symlink_rb.html index 2865cff..4a580a5 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:17:21 -0700 2009
      • +
      • Last modified: Tue Oct 06 21:44:09 -0700 2009
      diff --git a/files/lib/fakefs/file_rb.html b/files/lib/fakefs/file_rb.html index 28e0f16..0a59647 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Fri Oct 30 09:53:39 -0700 2009
      diff --git a/files/lib/fakefs/file_system_rb.html b/files/lib/fakefs/file_system_rb.html index fe92e87..ed8fdb5 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Thu Oct 29 09:39:32 -0700 2009
      diff --git a/files/lib/fakefs/fileutils_rb.html b/files/lib/fakefs/fileutils_rb.html index c25f572..1b3caca 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Wed Oct 28 09:41:53 -0700 2009
      diff --git a/files/lib/fakefs/safe_rb.html b/files/lib/fakefs/safe_rb.html index 2cb187c..2726b40 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:17:21 -0700 2009
      • +
      • Last modified: Tue Oct 06 21:44:09 -0700 2009
      diff --git a/files/lib/fakefs/spec_helpers_rb.html b/files/lib/fakefs/spec_helpers_rb.html new file mode 100644 index 0000000..7ca7c92 --- /dev/null +++ b/files/lib/fakefs/spec_helpers_rb.html @@ -0,0 +1,104 @@ + + + + + spec_helpers.rb + + + + + + + + + + + +
      +
      + +
      +

      +FakeFS::SpecHelpers +provides a simple macro for RSpec example groups to turn FakeFS on and off. To use it simply +require ‘fakefs/spec_helpers’, then include FakeFS::SpecHelpers +into any example groups that you wish to use FakeFS in. For example: +

      +
      +  require 'fakefs/spec_helpers'
      +
      +  describe "Some specs that deal with files" do
      +    include FakeFS::SpecHelpers
      +    ...
      +  end
      +
      +

      +Alternatively, you can include FakeFS::SpecHelpers in +all your example groups using RSpec’s configuration block in your +spec helper: +

      +
      +  require 'fakefs/spec_helpers'
      +
      +  Spec::Runner.configure do |config|
      +    config.include FakeFS::SpecHelpers
      +  end
      +
      +

      +If you do the above then use_fakefs will be available in all of your +example groups. +

      + +
      + + + +
      Required Files
      +
        + +
      • fakefs/safe
      • + +
      + + + + + + + + + + + + + +
      Classes and Modules
      + + + + + + + + +
      +
      + + \ No newline at end of file diff --git a/files/lib/fakefs/version_rb.html b/files/lib/fakefs/version_rb.html index a0c2c7e..30c5eb6 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: Tue Oct 06 21:17:21 -0700 2009
      • +
      • Last modified: Fri Oct 30 09:56:05 -0700 2009
      diff --git a/files/lib/fakefs_rb.html b/files/lib/fakefs_rb.html index b63965a..683c353 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:17:21 -0700 2009
      • +
      • Last modified: Tue Oct 06 21:44:09 -0700 2009
      diff --git a/panel/search_index.js b/panel/search_index.js index 1a65fe8..e06e915 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","version","object","<<()","fakefs()","[]()","activate!()","add()","basename()","cd()","chdir()","chdir()","chdir()","chown()","chown_r()","chroot()","clear()","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()","extname()","file?()","files()","find()","flush()","foreach()","fs()","glob()","inspect()","inspect()","inspect()","join()","link()","link()","link()","links()","ln_s()","mkdir()","mkdir_p()","mkpath()","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()","rm()","rm_r()","rm_rf()","rmdir()","seek()","size()","stat()","symlink()","symlink?()","symlink?()","tmpdir()","to_s()","to_s()","to_s()","touch()","unlink()","write()","license","readme.markdown","fakefs.rb","base.rb","dir.rb","dir.rb","file.rb","symlink.rb","file.rb","file_system.rb","fileutils.rb","safe.rb","version.rb"],"longSearchIndex":["lib/fakefs/version.rb","fakefs","fakefs","fakefs","fakefs::fakefile","fakefs","fakefs","fakefs::file","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::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::file","fakefs::file","fakefs::filesystem","fakefs::filesystem","fakefs::file","fakefs::dir","fakefs::filesystem","fakefs::dir","fakefs::fakedir","fakefs::fakefile","fakefs::fakesymlink","fakefs::file","fakefs::fakefile","fakefs::fakefile::inode","fakefs::file","fakefs::fakefile","fakefs::fileutils","fakefs::dir","fakefs::fileutils","fakefs::fileutils","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::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::fileutils","fakefs::dir","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::file","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/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],["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#M000009","()","",2],["[]","FakeFS::Dir","classes/FakeFS/Dir.html#M000012","(pattern)","",2],["activate!","FakeFS","classes/FakeFS.html#M000002","()","",2],["add","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000056","(path, object=FakeDir.new)","",2],["basename","FakeFS::File","classes/FakeFS/File.html#M000064","(*args)","",2],["cd","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000115","(dir)","",2],["chdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000013","(dir, &blk)","",2],["chdir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000069","(dir, &blk)","",2],["chdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000116","(dir)","Alias for #cd",2],["chown","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000112","(user, group, list, options={})","",2],["chown_R","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000113","(user, group, list, options={})","",2],["chroot","FakeFS::Dir","classes/FakeFS/Dir.html#M000014","(string)","",2],["clear","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000050","()","",2],["clone","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000022","(parent = nil)","",2],["clone","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000043","(parent = nil)","",2],["clone","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000061","(path)","copies directories and files from the real filesystem into our fake one ",2],["close","FakeFS::Dir","classes/FakeFS/Dir.html#M000001","()","",2],["close","FakeFS::File","classes/FakeFS/File.html#M000088","()","",2],["const_missing","FakeFS::File","classes/FakeFS/File.html#M000058","(name)","",2],["content","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000039","()","",2],["content=","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000040","(str)","",2],["cp","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000100","(src, dest)","",2],["cp_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000102","(src, dest)","",2],["current_dir","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000076","()","",2],["deactivate!","FakeFS","classes/FakeFS.html#M000003","()","",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#M000047","()","",2],["delete","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000036","()","",2],["delete","FakeFS::File","classes/FakeFS/File.html#M000075","(file_name, *additional_file_names)","",2],["delete","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000068","(path)","",2],["dir_levels","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000048","()","",2],["directory?","FakeFS::File","classes/FakeFS/File.html#M000059","(path)","",2],["directory?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000082","()","",2],["dirname","FakeFS::File","classes/FakeFS/File.html#M000065","(path)","",2],["each","FakeFS::Dir","classes/FakeFS/Dir.html#M000004","(&block)","",2],["entries","FakeFS::Dir","classes/FakeFS/Dir.html#M000017","(dirname)","",2],["entry","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000018","()","",2],["entry","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000044","()","",2],["entry","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000035","()","",2],["exist?","FakeFS::File","classes/FakeFS/File.html#M000053","(path)","",2],["exists?","FakeFS::File","classes/FakeFS/File.html#M000090","()","",2],["expand_path","FakeFS::File","classes/FakeFS/File.html#M000063","(*args)","",2],["extname","FakeFS::File","classes/FakeFS/File.html#M000051","(path)","",2],["file?","FakeFS::File","classes/FakeFS/File.html#M000062","(path)","",2],["files","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000054","()","",2],["find","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000055","(path)","",2],["flush","FakeFS::File","classes/FakeFS/File.html#M000097","()","",2],["foreach","FakeFS::Dir","classes/FakeFS/Dir.html#M000020","(dirname, &block)","",2],["fs","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000049","()","",2],["glob","FakeFS::Dir","classes/FakeFS/Dir.html#M000021","(pattern)","",2],["inspect","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000019","()","",2],["inspect","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000045","()","",2],["inspect","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000034","()","",2],["join","FakeFS::File","classes/FakeFS/File.html#M000052","(*parts)","",2],["link","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000042","(other_file)","",2],["link","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000030","(file)","",2],["link","FakeFS::File","classes/FakeFS/File.html#M000074","(source, dest)","",2],["links","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000041","()","",2],["ln_s","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000099","(target, path)","",2],["mkdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000023","(string, integer = 0)","",2],["mkdir_p","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000084","(path)","",2],["mkpath","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000086","(path)","Alias for #mkdir_p",2],["mv","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000111","(src, dest)","",2],["new","FakeFS::Dir","classes/FakeFS/Dir.html#M000000","(string)","",2],["new","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000016","(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#M000031","(target)","",2],["new","FakeFS::File","classes/FakeFS/File.html#M000085","(path, mode = READ_ONLY, perm = nil)","",2],["new","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000080","(file)","",2],["nlink","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000083","()","",2],["normalize_path","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000073","(path)","",2],["open","FakeFS::Dir","classes/FakeFS/Dir.html#M000024","(string, &block)","",2],["open","FakeFS::File","classes/FakeFS/File.html#M000067","(path, mode=READ_ONLY, perm = 0644)","",2],["path","FakeFS::Dir","classes/FakeFS/Dir.html#M000005","()","",2],["path_parts","FakeFS::FileSystem","classes/FakeFS/FileSystem.html#M000071","(path)","",2],["pos","FakeFS::Dir","classes/FakeFS/Dir.html#M000006","()","",2],["pos=","FakeFS::Dir","classes/FakeFS/Dir.html#M000007","(integer)","",2],["print","FakeFS::File","classes/FakeFS/File.html#M000095","(content)","Alias for #write",2],["puts","FakeFS::File","classes/FakeFS/File.html#M000091","(*content)","",2],["pwd","FakeFS::Dir","classes/FakeFS/Dir.html#M000027","()","",2],["read","FakeFS::Dir","classes/FakeFS/Dir.html#M000008","()","",2],["read","FakeFS::File","classes/FakeFS/File.html#M000070","(path)","",2],["read","FakeFS::File","classes/FakeFS/File.html#M000089","()","",2],["readlines","FakeFS::File","classes/FakeFS/File.html#M000072","(path)","",2],["readlink","FakeFS::File","classes/FakeFS/File.html#M000066","(path)","",2],["respond_to?","FakeFS::FakeSymlink","classes/FakeFS/FakeSymlink.html#M000037","(method)","",2],["rewind","FakeFS::Dir","classes/FakeFS/Dir.html#M000010","()","",2],["rm","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000092","(path)","",2],["rm_r","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000098","(path)","Alias for #rm",2],["rm_rf","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000093","(path)","Alias for #rm",2],["rmdir","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000087","(list, options = {})","",2],["seek","FakeFS::Dir","classes/FakeFS/Dir.html#M000011","(integer)","",2],["size","FakeFS::File","classes/FakeFS/File.html#M000057","(path)","",2],["stat","FakeFS::File","classes/FakeFS/File.html#M000079","(file)","",2],["symlink","FakeFS::File","classes/FakeFS/File.html#M000078","(source, dest)","",2],["symlink?","FakeFS::File","classes/FakeFS/File.html#M000060","(path)","",2],["symlink?","FakeFS::File::Stat","classes/FakeFS/File/Stat.html#M000081","()","",2],["tmpdir","FakeFS::Dir","classes/FakeFS/Dir.html#M000026","()","",2],["to_s","FakeFS::FakeDir","classes/FakeFS/FakeDir.html#M000025","()","",2],["to_s","FakeFS::FakeFile","classes/FakeFS/FakeFile.html#M000046","()","",2],["to_s","FakeFS::Version","classes/FakeFS/Version.html#M000117","()","",2],["touch","FakeFS::FileUtils","classes/FakeFS/FileUtils.html#M000114","(list, options={})","",2],["unlink","FakeFS::FakeFile::Inode","classes/FakeFS/FakeFile/Inode.html#M000032","(file)","",2],["write","FakeFS::File","classes/FakeFS/File.html#M000094","(content)","",2],["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],["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","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 diff --git a/panel/tree.js b/panel/tree.js index cd7c8d7..e6d6618 100644 --- a/panel/tree.js +++ b/panel/tree.js @@ -1 +1 @@ -var tree = [["","","files",[["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","",[]],["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","",[]],["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","",[]],["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