File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1
- # encoding: UTF-8
2
- require 'rubygems'
1
+ #!/usr/bin/env rake
3
2
begin
4
3
require 'bundler/setup'
5
4
rescue LoadError
6
5
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
6
end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc ::Task = Rake ::RDocTask
13
+ end
14
+
15
+ RDoc ::Task . new ( :rdoc ) do |rdoc |
16
+ rdoc . rdoc_dir = 'rdoc'
17
+ rdoc . title = 'Atreides'
18
+ rdoc . options << '--line-numbers'
19
+ rdoc . rdoc_files . include ( 'README.rdoc' )
20
+ rdoc . rdoc_files . include ( 'lib/**/*.rb' )
21
+ end
22
+
23
+ APP_RAKEFILE = File . expand_path ( "../spec/dummy/Rakefile" , __FILE__ )
24
+ load 'rails/tasks/engine.rake'
25
+
26
+ Bundler ::GemHelper . install_tasks
8
27
9
28
require 'rake'
10
29
require 'rspec/core'
@@ -22,10 +41,7 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
22
41
spec . rcov = true
23
42
end
24
43
25
-
26
44
load 'lib/tasks/cucumber.rake'
27
45
load 'lib/tasks/yard.rake'
28
46
29
47
task :default => [ :spec , :cucumber ]
30
-
31
- # Atreides::Application.load_tasks
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env rake
1
2
# Add your own tasks in files placed in lib/tasks ending in .rake,
2
3
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
4
4
5
require File . expand_path ( '../config/application' , __FILE__ )
5
- require 'rake'
6
6
7
7
Dummy ::Application . load_tasks
You can’t perform that action at this time.
0 commit comments