[meta] make alfredworkflow.clean work w/OS X ruby

pull/28/head
Alpha Chen 8 years ago
parent 49f1e18bc9
commit 1611adcff9

@ -2,8 +2,15 @@
require 'tempfile' require 'tempfile'
def with_tempfile(name)
file = Tempfile.new(name)
yield file
ensure
file.close
end
plist = ARGF.read plist = ARGF.read
Tempfile.create('info.plist') do |f| with_tempfile('info.plist') do |f|
f << plist f << plist
f.flush f.flush

Loading…
Cancel
Save