forked from stouset/version
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (36 loc) · 1.09 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
47
48
$: << 'lib'
require 'rake/rake-versioning'
require 'rubygems'
require 'rubygems/package_task'
require 'rdoc/task'
require 'spec/rake/spectask'
spec = Gem::Specification.new do |s|
s.name = 'rake-versioning'
s.version = RakeVersioning::Version.current || '0.0.0'
s.summary = 'simple version-number encapsulation'
s.author = 'Stephen Touset'
s.email = '[email protected]'
s.files = Dir['[A-Z]*', 'lib/**/*.rb', 'spec/**/*']
s.extra_rdoc_files = Dir['*.rdoc']
s.rdoc_options = %w{ --main README.rdoc }
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~> 1'
end
Gem::PackageTask.new(spec) do |gem|
gem.need_tar = true
end
Rake::RDocTask.new do |doc|
doc.title = "version #{RakeVersioning::Version.current}"
doc.rdoc_dir = 'doc'
doc.main = 'README.rdoc'
doc.rdoc_files.include('*.rdoc')
doc.rdoc_files.include('lib/**/*.rb')
end
Spec::Rake::SpecTask.new(:spec) do |task|
task.spec_files = FileList['spec/**/*_spec.rb']
end
Rake::RakeVersioning.new do |v|
v.with_git_tag = true
v.with_gemspec = spec
end
task :default => :spec