lib/vernacular/source_file.rb in vernacular-0.0.2 vs lib/vernacular/source_file.rb in vernacular-0.1.0

- old
+ new

@@ -8,15 +8,12 @@ @source_path = source_path @iseq_path = iseq_path end def dump - source = File.read(source_path) - Vernacular.modifiers.each do |modifier| - source = modifier.modify(source) - end - - iseq = RubyVM::InstructionSequence.compile(source) + source = Vernacular.modify(File.read(source_path)) + iseq = RubyVM::InstructionSequence.compile(source, source_path, + source_path) digest = ::Digest::MD5.file(source_path).digest File.binwrite(iseq_path, iseq.to_binary("MD5:#{digest}")) iseq rescue SyntaxError, RuntimeError nil