diff --git a/Rakefile b/Rakefile index bc85c7d..a2613fe 100755 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,8 @@ #!/usr/bin/env ruby require "fileutils" +require 'rubygems' +gem 'rspec' +gem 'rspec-rails' Dir[File.expand_path(File.dirname(__FILE__)) + "/lib/tasks/**/*.rake"].sort.each { |ext| load ext } @@ -8,17 +11,10 @@ PLUGIN_ROOT = File.expand_path(File.dirname(__FILE__)) REDMINE_APP = File.expand_path(File.dirname(__FILE__) + '/../../../app') REDMINE_LIB = File.expand_path(File.dirname(__FILE__) + '/../../../lib') -# In rails 1.2, plugins aren't available in the path until they're loaded. -# Check to see if the rspec plugin is installed first and require -# it if it is. If not, use the gem version. -rspec_base = File.expand_path(File.dirname(__FILE__) + '/../rspec/lib') -$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) - require 'rake' require 'rake/clean' require 'rake/rdoctask' require 'spec/rake/spectask' -require 'spec/translator' PROJECT_NAME = 'budget_plugin' ZIP_FILE = PROJECT_NAME + ".zip"