lib/vendorer.rb in vendorer-0.1.5 vs lib/vendorer.rb in vendorer-0.1.6
- old
+ new
@@ -1,11 +1,14 @@
require 'tempfile'
class Vendorer
- def initialize(options)
+ def initialize(options={})
@options = options
@sub_path = []
- eval(File.read('Vendorfile'))
+ end
+
+ def parse(content)
+ eval(content)
end
def file(path, url)
path = complete_path(path)
update_or_not path do