samg / diffy

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

Diffy doesn't work on docker ruby Alpine Linux image #94

Open adrianodennanni opened 6 years ago

adrianodennanni commented 6 years ago

This happens when trying to run Diffy on docker ruby Alpine Linux image:

/ # gem install diffy
Fetching: diffy-3.2.0.gem (100%)
Successfully installed diffy-3.2.0
1 gem installed
/ # irb
irb(main):001:0> require 'diffy'
=> true
irb(main):002:0> Diffy::Diff.new("Hello!\n","Hallo!\n").to_s(:text)
=> ""

Diffy works well on other Ruby docker images, such as default Ruby.

v1ct0r commented 6 years ago

loos at solution here https://github.com/samg/diffy/issues/86#issuecomment-306061670

keo64 commented 6 years ago

try this https://github.com/samg/diffy/pull/95