lib/slim_lint/linter/rubocop.rb in slim_lint-0.11.0 vs lib/slim_lint/linter/rubocop.rb in slim_lint-0.12.0

- old
+ new

@@ -32,10 +32,10 @@ original_filename = document.file || 'ruby_script' filename = "#{File.basename(original_filename)}.slim_lint.tmp" directory = File.dirname(original_filename) - Tempfile.open(filename, directory) do |f| + Tempfile.open([filename, '.rb'], directory) do |f| begin f.write(ruby) f.close extract_lints_from_offenses(lint_file(rubocop, f.path), source_map) ensure