Skip to content

Commit daba6ce

Browse files
committed
Re-add standard Rake tasks.
1 parent c8ebe39 commit daba6ce

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

Rakefile

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
# encoding: UTF-8
2-
require 'rubygems'
1+
#!/usr/bin/env rake
32
begin
43
require 'bundler/setup'
54
rescue LoadError
65
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
76
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
827

928
require 'rake'
1029
require 'rspec/core'
@@ -22,10 +41,7 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
2241
spec.rcov = true
2342
end
2443

25-
2644
load 'lib/tasks/cucumber.rake'
2745
load 'lib/tasks/yard.rake'
2846

2947
task :default => [:spec, :cucumber]
30-
31-
# Atreides::Application.load_tasks

spec/dummy/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
#!/usr/bin/env rake
12
# Add your own tasks in files placed in lib/tasks ending in .rake,
23
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
34

45
require File.expand_path('../config/application', __FILE__)
5-
require 'rake'
66

77
Dummy::Application.load_tasks

0 commit comments

Comments
 (0)