Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor reading from stdin so --type option works #112

Closed
wants to merge 2 commits into from
Closed

Refactor reading from stdin so --type option works #112

wants to merge 2 commits into from

Commits on Jul 26, 2012

  1. When reading from stdin, a filename must be set with an extension sin…

    …ce the GitHub gist API infers file type from filename and not extension. Thanks to @ottomata for the original implementation. Fixes Issue #101.
    Simeon F. Willbanks committed Jul 26, 2012
    Copy the full SHA
    09a79f8 View commit details
    Browse the repository at this point in the history
  2. When creating a gist from stdin, if file type is not specified, gist_…

    …extension is nil. Therefore, call #to_s to avoid "can't convert nil into String" error.
    Simeon F. Willbanks committed Jul 26, 2012
    Copy the full SHA
    12e2c69 View commit details
    Browse the repository at this point in the history