lib/penchant/file_processor.rb in penchant-0.2.27 vs lib/penchant/file_processor.rb in penchant-0.2.28

- old
+ new

@@ -183,9 +183,18 @@ def ruby(*args) passthrough :ruby, *args end + def bundler_encoding_fix! + self << (<<-RB) +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 + Encoding.default_internal = Encoding::UTF_8 +end + RB + end + def gemspec passthrough :gemspec end def source(*args)