We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1525c6b commit 881270eCopy full SHA for 881270e
lib/gist.rb
@@ -95,7 +95,7 @@ def execute(*args)
95
else
96
# Read from standard input.
97
input = $stdin.read
98
- files = [{:input => input}]
+ files = [{:input => input, :extension => gist_extension}]
99
end
100
101
url = write(files, private_gist)
@@ -169,7 +169,7 @@ def data(files, private_gist)
169
data = {}
170
files.each do |file|
171
i = data.size + 1
172
- data["file_ext[gistfile#{i}]"] = file[:extention] ? file[:extention] : '.txt'
+ data["file_ext[gistfile#{i}]"] = file[:extension] ? file[:extension] : '.txt'
173
data["file_name[gistfile#{i}]"] = file[:filename]
174
data["file_contents[gistfile#{i}]"] = file[:input]
175
0 commit comments