lib/inch/codebase/serializer.rb in inch-0.4.10 vs lib/inch/codebase/serializer.rb in inch-0.5.0.rc1

- old
+ new

@@ -7,15 +7,15 @@ File.join(INCH_DB_DIR, revision) end def self.save(codebase, filename) content = Marshal.dump(codebase) - FileUtils.mkdir_p(File.dirname(filename)) - File.open(filename, "wb") { |file| file.write(content) } + FileUtils.mkdir_p( File.dirname(filename) ) + File.open(filename, 'wb') { |file| file.write(content) } end def self.load(filename) - codebase = Marshal.load(File.binread(filename)) + codebase = Marshal.load( File.binread(filename) ) codebase.objects.each do |object| object.object_lookup = codebase.objects end codebase end