Skip to content

Commit

Permalink
Allow posting a public gist - I think github changed the default to b…
Browse files Browse the repository at this point in the history
…e private, because if the 'public' attribute is not there it seems to default that way
  • Loading branch information
Matt Conway authored and defunkt committed Mar 21, 2012
1 parent 9ad6b83 commit 5ff5953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def data(files, private_gist, description)

data = {"files" => file_data}
data.merge!({ 'description' => description }) unless description.nil?
data.merge!({ 'public' => false }) if private_gist
data.merge!({ 'public' => !private_gist })
data
end

Expand Down

0 comments on commit 5ff5953

Please sign in to comment.