forked from manveru/innate
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
45 lines (36 loc) · 1.27 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'rake/clean'
require 'rubygems/package_task'
require 'time'
require 'date'
PROJECT_SPECS = FileList['spec/{innate,example}/**/*.rb'].exclude('spec/innate/cache/common.rb')
PROJECT_MODULE = 'Innate'
PROJECT_README = 'README.md'
PROJECT_VERSION = (ENV['VERSION'] || Date.today.strftime('%Y.%m.%d')).dup
DEPENDENCIES = {
'rack' => {:version => '~> 3.0'},
}
DEVELOPMENT_DEPENDENCIES = {
'bacon' => {:version => '~> 1.2.0'},
'rack-test' => {:version => '~> 0.6.3', :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."
s.email = '[email protected]'
s.homepage = 'http://github.com/manveru/innate'
s.platform = Gem::Platform::RUBY
s.version = PROJECT_VERSION
s.files = `git ls-files`.split("\n").sort
s.require_path = 'lib'
}
DEPENDENCIES.each do |name, options|
GEMSPEC.add_dependency(name, options[:version])
end
DEVELOPMENT_DEPENDENCIES.each do |name, options|
GEMSPEC.add_development_dependency(name, options[:version])
end
Dir['tasks/*.rake'].each{|f| import(f) }
task :default => [:bacon]
CLEAN.include('')