-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
41 lines (33 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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'date'
spec = Gem::Specification.new do |s|
s.name = %q{make-gem-now}
s.version = "0.5.0"
s.summary = %q{A tool to build all gems in a given dir, and index them appropriately.}
s.description = %q{A tool to build all gems in a given dir, and index them appropriately.}
s.files = FileList['[A-Z]*', 'lib/**/*.rb', 'test/**/*.rb', 'rails/*']
s.require_path = 'lib'
s.executables = ["make-gem-now"]
s.has_rdoc = true
s.extra_rdoc_files = ["README.markdown"]
s.rdoc_options = ['--line-numbers', '--inline-source', "--main", "README.markdown"]
s.authors = ["Tom Lea"]
s.email = %q{[email protected]}
s.platform = Gem::Platform::RUBY
end
Rake::GemPackageTask.new spec do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
desc "Clean files generated by rake tasks"
task :clobber => [:clobber_package]
desc "Generate a gemspec file"
task :gemspec do
File.open("#{spec.name}.gemspec", 'w') do |f|
f.write spec.to_ruby
end
end