-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
46 lines (38 loc) · 1.23 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
46
require 'rake/clean'
require 'rubygems/package_task'
require 'time'
require 'date'
PROJECT_SPECS = FileList['spec/ffi-tk/**/*.rb']
PROJECT_MODULE = 'VER'
PROJECT_README = 'README.textile'
PROJECT_VERSION = (ENV['VERSION'] || Date.today.strftime('%Y.%m.%d')).dup
DEPENDENCIES = {
'ffi-tk' => {:version => '> 2010.02'},
}
DEVELOPMENT_DEPENDENCIES = {
'bacon' => {:version => '1.1.0'}
}
GEMSPEC = Gem::Specification.new{|s|
s.name = 'ver'
s.author = "Michael 'manveru' Fellinger"
s.summary = "VER is Vim & Emacs in Ruby"
s.description = "An advanced text editor using tk and bringing world peace."
s.email = '[email protected]'
s.homepage = 'http://github.com/manveru/ver'
s.platform = Gem::Platform::RUBY
s.version = PROJECT_VERSION
s.files = `git ls-files`.split("\n").sort
s.has_rdoc = true
s.require_path = 'lib'
s.bindir = 'bin'
s.executables = ['ver']
}
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('')