This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Rakefile
56 lines (48 loc) · 1.66 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
52
53
54
55
56
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require "rake/gempackagetask"
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the paul revere plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the paul revere plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'PaulRevere'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification.new do |s|
s.name = "paul_revere"
s.version = "0.1.4"
s.summary = "Simple announcement plugin to include 'one off' style announcements in Rails web apps."
s.author = "Thoughtbot"
s.email = "support@thoughtbot.com"
s.homepage = "http://thoughtbot.com/community"
s.has_rdoc = true
s.extra_rdoc_files = %w(README.textile)
s.rdoc_options = %w(--main README.textile)
s.files = %w(init.rb MIT-LICENSE Rakefile README.textile) +
Dir.glob("{test,lib/**/*,app/**/*}")
s.require_paths = ["lib"]
s.add_dependency("rails", "~> 3.0.0")
s.add_development_dependency("bourne")
s.add_development_dependency("shoulda")
s.add_development_dependency("redgreen")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Build the gemspec file #{spec.name}.gemspec"
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, "w") {|f| f << spec.to_ruby }
end
task :package => :gemspec