Rakefile in manveru-innate-2009.06.12 vs Rakefile in manveru-innate-2009.07

- old
+ new

@@ -7,10 +7,20 @@ PROJECT_SPECS = FileList['spec/{innate,example}/**/*.rb'].exclude('common.rb') PROJECT_MODULE = 'Innate' PROJECT_README = 'README.md' PROJECT_VERSION = ENV['VERSION'] || Date.today.strftime('%Y.%m.%d') +DEPENDENCIES = { + 'rack' => {:version => '~> 1.0.0'}, +} + +DEVELOPMENT_DEPENDENCIES = { + 'bacon' => {:version => '>= 1.1.0'}, + 'json' => {:version => '~> 1.1.7'}, + 'rack-test' => {:version => '>= 0.4.0', :lib => 'rack/test'} +} + GEMSPEC = Gem::Specification.new{|s| s.name = 'innate' s.author = "Michael 'manveru' Fellinger" s.summary = "Powerful web-framework wrapper for Rack." s.description = "Simple, straight-forward base for web-frameworks." @@ -20,17 +30,19 @@ s.version = PROJECT_VERSION s.files = `git ls-files`.split("\n").sort s.has_rdoc = true s.require_path = 'lib' s.rubyforge_project = "innate" + s.required_rubygems_version = '>= 1.3.1' +} - s.add_dependency('rack', '~> 1.0.0') +DEPENDENCIES.each do |name, options| + GEMSPEC.add_dependency(name, options[:version]) +end - # rip those out if they cause you trouble - s.add_development_dependency('bacon', '>= 1.1.0') - s.add_development_dependency('json', '~> 1.1.6') - s.add_development_dependency('rack-test', '>= 0.3.0') -} +DEVELOPMENT_DEPENDENCIES.each do |name, options| + GEMSPEC.add_development_dependency(name, options[:version]) +end Dir['tasks/*.rake'].each{|f| import(f) } task :default => [:bacon]