Skip to content

Commit

Permalink
Default gist.copy to "on", since that's historically what it has done.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jul 12, 2011
1 parent d9668ff commit 3951c2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gist
Expand Up @@ -266,12 +266,20 @@ private
def defaults
extension = config("gist.extension")
extension = nil if extension && extension.empty?

copy = config("gist.copy")
if copy.nil?
copy = true
else
# match optparse boolean true states
copy = copy =~ /^(true)|(on)|(\+)/
end

return {
"private" => config("gist.private"),
"browse" => config("gist.browse"),
"extension" => extension,
"copy" => config("gist.copy"),
"copy" => copy,
}
end

Expand Down

0 comments on commit 3951c2f

Please sign in to comment.