Permalink
Browse files

Default gist.copy to "on", since that's historically what it has done.

  • Loading branch information...
1 parent d9668ff commit 3951c2fce1722d7bd24c199dea1e854dede1d5f2 @headius headius committed Jul 12, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 gist
View
10 gist
@@ -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

0 comments on commit 3951c2f

Please sign in to comment.