tasks/setup.rake in ramaze-2011.01.30 vs tasks/setup.rake in ramaze-2011.07.25

- old
+ new

@@ -1,12 +1,14 @@ +require File.expand_path('../../lib/ramaze/setup', __FILE__) + desc 'install all possible dependencies' -task :setup => [:gem_setup] do - GemSetup.new :verbose => false do - DEPENDENCIES.each do |name, options| - gem(name, options) - end +task :setup do + Ramaze.setup(:verbose => false) do + deps = Ramaze::DEPENDENCIES + Ramaze::DEVELOPMENT_DEPENDENCIES - DEVELOPMENT_DEPENDENCIES.each do |name, options| - gem(name, options) + deps.each do |dep| + if dep[:setup] != false + gem(dep[:name], dep[:version], :lib => dep.delete(:lib)) + end end end -end +end # task :setup