Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use File.basename(file) for filename

  • Loading branch information...
commit 398efec86990d1ffc94a3dc5d70137fd2136016d 1 parent e43e0ce
@sickill authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gist
View
2  gist
@@ -163,7 +163,7 @@ module Gist
files.push({
:input => File.read(file),
- :filename => file,
+ :filename => File.basename(file),
:extension => (File.extname(file) if file.include?('.'))
})
end
Please sign in to comment.
Something went wrong with that request. Please try again.