diff --git a/lib/bundix/commandline.rb b/lib/bundix/commandline.rb index e0dce71..da93386 100644 --- a/lib/bundix/commandline.rb +++ b/lib/bundix/commandline.rb @@ -157,6 +157,7 @@ def save_gemset(gemset) tempfile = Tempfile.new('gemset.nix', encoding: 'UTF-8') begin tempfile.write(object2nix(gemset)) + tempfile.write("\n") tempfile.flush FileUtils.cp(tempfile.path, options[:gemset]) FileUtils.chmod(0644, options[:gemset])