defunkt/gist — pull request #112 by simeonwillbanks (2012-07-26 16:56:48+00:00)
Title: Refactor reading from stdin so --type option works

When reading from stdin, a filename must be set with an extension since the GitHub gist API infers file type from filename and not extension. Thanks to @ottomata for the original implementation. Fixes Issue #101.