lib/firebrew/firefox/extension.rb in firebrew-0.1.1 vs lib/firebrew/firefox/extension.rb in firebrew-0.1.2
- old
+ new
@@ -40,10 +40,10 @@
def install(extension)
dir = File.join(self.profile.path, 'extensions')
FileUtils.mkdir_p dir
install_path = '%s.xpi' % File.join(dir, extension.guid)
- open(extension.uri, 'rb') do |i|
+ open([extension.uri].flatten.first, 'rb') do |i|
open(install_path, 'wb') do |o|
o.write i.read
end
end