lib/ggem/template.rb in ggem-1.2.0 vs lib/ggem/template.rb in ggem-1.2.1

- old
+ new

@@ -43,9 +43,10 @@ def save_file(source, output) source_file = File.join(File.dirname(__FILE__), 'template_file', source) output_file = File.join(@gem.root_path, @gem.name, output) if File.exists?(source_file) + FileUtils.mkdir_p(File.dirname(output_file)) erb = ERB.new(File.read(source_file)) File.open(output_file, 'w') {|f| f << erb.result(binding) } else raise ArgumentError, "the source file '#{source_file}' does not exist" end