Permalink
Browse files

Merge pull request #59 from sickill/master

Use File.basename(file) for filename that is sent to API
  • Loading branch information...
2 parents e43e0ce + 398efec commit fca220093a10f1efe43b14e56e3b587fee082413 Andre Arko committed Aug 28, 2011
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

0 comments on commit fca2200

Please sign in to comment.