-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
51 lines (41 loc) · 1.28 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
49
50
51
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
spec = Gem::Specification.new do |s|
s.name = "popthis"
s.version = "0.3"
s.summary = "Run a pop server serving up the current dir."
s.description = "Run a pop server serving up the current dir."
s.files = FileList['[A-Z]*', 'lib/**/*.rb', 'test/**/*.rb', 'rails/*']
s.require_path = 'lib'
s.test_files = Dir[*['test/**/*_test.rb']]
s.bindir = 'bin'
s.executables = FileList["bin/*"].map { |f| File.basename(f) }
s.has_rdoc = true
s.extra_rdoc_files = ["README.markdown"]
s.rdoc_options = ['--line-numbers', '--inline-source', "--main", "README.textile"]
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