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 d9668ff commit 3951c2fCopy full SHA for 3951c2f
gist
@@ -266,12 +266,20 @@ private
266
def defaults
267
extension = config("gist.extension")
268
extension = nil if extension && extension.empty?
269
+
270
+ copy = config("gist.copy")
271
+ if copy.nil?
272
+ copy = true
273
+ else
274
+ # match optparse boolean true states
275
+ copy = copy =~ /^(true)|(on)|(\+)/
276
+ end
277
278
return {
279
"private" => config("gist.private"),
280
"browse" => config("gist.browse"),
281
"extension" => extension,
- "copy" => config("gist.copy"),
282
+ "copy" => copy,
283
}
284
end
285
0 commit comments