public
Fork of mleung/feather
Description: The simplest blog that works. Make sure you check out the feather-plugins repo as well!
Homepage: http://www.least-significant-bit.com
Clone URL: git://github.com/joahking/feather.git
moving require statements needed in plugin model to init
edraper (author)
Fri Jun 06 18:06:06 -0700 2008
commit  d2df28409dee0f36cbfc2b4db517216bffd820a1
tree    7d90ffafbe265febc164dc8f5e89ad9770d2bb07
parent  2ecc3914c6a1d8e6e3525502a39840dae3726f2c
...
37
38
39
40
41
42
43
44
45
46
...
37
38
39
 
 
 
 
40
41
42
0
@@ -37,10 +37,6 @@ class Plugin < DataMapper::Base
0
     FileUtils.rm_rf(self.path)
0
     Dir.mkdir(self.path)
0
     # Download the package and untgz
0
- require 'zlib'
0
- require 'stringio'
0
- require 'archive/tar/minitar'
0
- # FIXME: should support full URLs too
0
     package_url = File.join(url.split('/').slice(0..-2).join('/'), manifest["package"])
0
     package = Net::HTTP.get(URI.parse(package_url))
0
     Archive::Tar::Minitar.unpack(Zlib::GzipReader.new(StringIO.new(package)), self.path)
...
63
64
65
 
 
 
66
67
68
...
63
64
65
66
67
68
69
70
71
0
@@ -63,6 +63,9 @@ Merb::BootLoader.after_app_loads do
0
   require "uri"
0
   require "cgi"
0
   require "erb"
0
+ require "zlib"
0
+ require "stringio"
0
+ require "archive/tar/minitar"
0
   require File.join("lib", "padding")
0
   require File.join("lib", "hooks")
0
   require File.join("lib", "database")

Comments

    No one has commented yet.