+2
−1
+2
−1
+2
−1
lib/jsduck/io.rb
0 → 100644
+18
−0
+2
−1
Loading
In Ruby 1.9 reading files through builtin IO class attempted to auto-detect the encoding which sometimes failed. Created JsDuck::IO to be used instead of it, which forces all files to be treated as UTF-8. It also behaves well in Ruby 1.8 - just doing nothing with the input and causing no errors.