Skip to content

Commit fca2200

Browse files
author
Andre Arko
committed
Merge pull request #59 from sickill/master
Use File.basename(file) for filename that is sent to API
2 parents e43e0ce + 398efec commit fca2200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ module Gist
163163

164164
files.push({
165165
:input => File.read(file),
166-
:filename => file,
166+
:filename => File.basename(file),
167167
:extension => (File.extname(file) if file.include?('.'))
168168
})
169169
end

0 commit comments

Comments
 (0)