diff --git a/History.txt b/History.txt
index dc8048b..7764e92 100644
--- a/History.txt
+++ b/History.txt
@@ -4,7 +4,7 @@
trunk which passes a Spec::DSL::Description instead of a string
- Fix broken spec due to pending feature introduced in recent RSpec
- Fix compatibility for JRuby
-- Add stub.rake file as another way to wrap existing Rakefile
+- Add stub.rake file as another way to wrap existing Rakefile, with note in README
== 1.3.3
diff --git a/README.txt b/README.txt
index 0767819..cf00360 100644
--- a/README.txt
+++ b/README.txt
@@ -33,6 +33,11 @@ Report files are written, by default, to the test/reports
or
== Advanced Usage
+If you don't have control over the Rakefile or don't want to modify it, CI::Reporter has a substitute rake file that you can specify on the command-line. It assumes that the main project rake file is called +Rakefile+ and lives in the current directory. Run like so:
+
+ rake -f GEM_PATH/stub.rake ci:setup:testunit test
+ rake -f GEM_PATH/stub.rake ci:setup:rspec spec
+
If for some reason you can't use the above technique to inject CI::Reporter (e.g., you're not using Rake), you'll have to do one of these:
1. If you're using Test::Unit
, ensure the ci/reporter/rake/test_unit_loader.rb
file is loaded or required at some point before the tests are run.
diff --git a/Rakefile b/Rakefile
index c5884b8..e67ae24 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,7 @@
require 'spec/rake/spectask'
MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
- "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
+ "*.rake", "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
begin
require 'hoe'
diff --git a/lib/ci/reporter/rake/stub.rake b/stub.rake
similarity index 74%
rename from lib/ci/reporter/rake/stub.rake
rename to stub.rake
index 71fe3d4..e8f9de3 100644
--- a/lib/ci/reporter/rake/stub.rake
+++ b/stub.rake
@@ -8,6 +8,6 @@
# rake -f /path/to/ci_reporter/lib/ci/reporter/rake/stub.rake ci:setup:rspec default
#
-load File.dirname(__FILE__) + '/rspec.rb'
-load File.dirname(__FILE__) + '/test_unit.rb'
+load File.dirname(__FILE__) + '/lib/ci/reporter/rake/rspec.rb'
+load File.dirname(__FILE__) + '/lib/ci/reporter/rake/test_unit.rb'
load 'Rakefile'