Skip to content

Releases: simonc/memfs

v1.0.0

01 Jan 18:50
Compare
Choose a tag to compare

⚠️ This version drops support for Ruby 1.9.

  • ADD: Support for Ruby 2.4.0
  • ADD: Support for Pathname in Dir.glob (PR #21 by @craigw)
  • ADD: MemFs.halt to switch back to the real file-system (PR #24 by @thsur)
  • ADD: Basic support for IO.write (PR #20 by @rmm5t)
  • FIX: Reset the file position when reopened (PR #23 by @jimpo)
  • FIX: Ignore trailing slashes when searching an entry (issue #26)
  • FIX: Making File inherit from IO to fix 3rd-party related issues
  • FIX: Ensure File.new on a symlink raises if target is absent

v0.5.0

13 Sep 18:22
Compare
Choose a tag to compare
  • ADD: Support for mode to Dir.mkdir, FileUtils.mkdir and FileUtils.mkdir_p (@raeno)
  • ADD: Support for Ruby 2.2 (@raeno)

v0.4.3

14 Feb 18:09
Compare
Choose a tag to compare
  • ADD: File::SEPARATOR and File::ALT_SEPARATOR
    • FIX: Support YAML.load_file by handling r:bom|utf-8 open mode

v0.4.2

14 Feb 16:49
Compare
Choose a tag to compare
  • ADD: File#external_encoding
  • FIX: Undefined local variable or method `fs' for MemFs::File

v0.4.1

24 Jul 14:34
Compare
Choose a tag to compare
  • FIX: Support for 1.9.3 broken by File::FNM_EXTGLOB

Headed in the right `Dir`ection

18 Jul 09:07
Compare
Choose a tag to compare

This release brings a lot of new stuff to the Dir class, completing the long list of methods present in Ruby's implementation.

Enjoy !

Changes

  • ADD: Dir.chroot
  • ADD: Dir.glob and Dir[]
  • ADD: Dir.open
  • ADD: Dir.tmpdir
  • ADD: Dir#close
  • ADD: Dir#path
  • ADD: Dir#pos=
  • ADD: Dir#pos
  • ADD: Dir#read
  • ADD: Dir#rewind
  • ADD: Dir#seek
  • ADD: Dir#tell
  • ADD: Dir#to_path
  • FIX: Internal implementation methods are now private

v.0.3.0

08 Mar 15:19
Compare
Choose a tag to compare

Now Ruby 1.9 compatible

Until now MemFs was only compatible with Ruby 2+. It's now fixed and working with Ruby 1.9+.

v0.2.0

07 Mar 19:08
Compare
Choose a tag to compare

Adding some magic

MemFs.touch is a shortcut you can now use to create files quickly:

MemFs.touch('/some/file.txt', '/some/other/file.rb')

Changes

  • ADD: Allowing magic creation of files with MemFs.touch
  • ADD: Dir#each
  • ADD: Dir.delete
  • ADD: Dir.exist?
  • ADD: Dir.foreach
  • ADD: Dir.home
  • ADD: Dir.new
  • ADD: Dir.unlink
  • FIX: File.new now truncates a file when opening mode says so

v0.1.0

25 Aug 19:57
Compare
Choose a tag to compare

File is a big boy now

This release adds a lot to the File class. Every class method of the original File class is present (expect some of the inherited ones from IO), 29 new methods have been added to it!

What's next?

File instances need some love too and will get it! Dir and Stat classes are next in the polishing line.