samg / diffy

Easy Diffing in Ruby
http://rubygems.org/gems/diffy
MIT License
1.26k stars 103 forks source link

Empty @tempfiles variable after diff #89

Closed ngiger closed 4 years ago

ngiger commented 7 years ago

Hi First many thanks for your nice gem.

I am using a not very popular persistenc gem odba.

It has problems marshalling a Diffy::Diff object, when it encounters the (closed) tempfiles. Emptying the @tempfiles array after the diff fixes this problem for me.

I added also a spec test, which unfortunately breaks for unclear reasons with Ruby: 2.0.0-p648.

Best regards