lib/fontist/import/create_formula.rb in fontist-1.8.1 vs lib/fontist/import/create_formula.rb in fontist-1.8.2

- old
+ new

@@ -48,12 +48,13 @@ Fontist::Utils::Downloader.download(url, progress_bar: true).path end def save(hash) filename = Import.name_to_filename(hash[:name]) + path = @options[:formula_dir] ? File.join(@options[:formula_dir], filename) : filename yaml = YAML.dump(Helpers::HashHelper.stringify_keys(hash)) - File.write(filename, yaml) - filename + File.write(path, yaml) + path end end end end