forked from xdotcommer/flotomatic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
32 lines (28 loc) · 954 Bytes
/
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
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :spec
desc 'Test the flotomatic plugin.'
task :spec do
system "spec spec/lib/*_spec.rb"
system "spec spec/helper/*_spec.rb"
end
# Spec::Rake::SpecTask.new do |t|
# t.spec_files = FileList['spec/lib/*_spec.rb'] # + FileList['spec/helper/*_spec.rb']
# end
desc 'Generate documentation for the flotomatic plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Flotomatic'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include('app/helpers/*.rb')
end
desc 'Copy the necessary css and javascript files into your project.'
task :install do
directory = File.dirname(__FILE__)
generate = File.join(directory, '..', '..', '..', 'script', 'generate')
system "ruby #{generate} flotomatic"
end