Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow posting a public gist - I think github changed the default to b…

…e private, because if the 'public' attribute is not there it seems to default that way
  • Loading branch information...
commit 5ff5953f82c4657c100801d6a930d1bb3ace621a 1 parent 9ad6b83
Matt Conway authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gist.rb
View
2  lib/gist.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.