summaryrefslogtreecommitdiffstats
path: root/vendor/gems/coderay-1.0.0/Rakefile
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-10-08 13:34:30 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-10-08 13:34:30 +0000
commitd1efb4f148330f29a297ed5da4cb90b9b6c9c40e (patch)
tree2f620f5ba410e6c815418e88f472e04988ec89e8 /vendor/gems/coderay-1.0.0/Rakefile
parent6ebb5e834cebeec9a5ead42d245b35dde55b3c76 (diff)
downloadredmine-d1efb4f148330f29a297ed5da4cb90b9b6c9c40e.tar.gz
redmine-d1efb4f148330f29a297ed5da4cb90b9b6c9c40e.zip
Update CodeRay version to 1.0 final (#4264).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7618 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/gems/coderay-1.0.0/Rakefile')
-rw-r--r--vendor/gems/coderay-1.0.0/Rakefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/gems/coderay-1.0.0/Rakefile b/vendor/gems/coderay-1.0.0/Rakefile
new file mode 100644
index 000000000..ba6c34ef8
--- /dev/null
+++ b/vendor/gems/coderay-1.0.0/Rakefile
@@ -0,0 +1,35 @@
+$:.unshift File.dirname(__FILE__) unless $:.include? '.'
+
+ROOT = '.'
+LIB_ROOT = File.join ROOT, 'lib'
+
+task :default => :test
+
+if File.directory? 'rake_tasks'
+
+ # load rake tasks from subfolder
+ for task_file in Dir['rake_tasks/*.rake'].sort
+ load task_file
+ end
+
+else
+
+ # fallback tasks when rake_tasks folder is not present (eg. in the distribution package)
+ desc 'Run CodeRay tests (basic)'
+ task :test do
+ ruby './test/functional/suite.rb'
+ ruby './test/functional/for_redcloth.rb'
+ end
+
+ gem 'rdoc' if defined? gem
+ require 'rdoc/task'
+ desc 'Generate documentation for CodeRay'
+ Rake::RDocTask.new :doc do |rd|
+ rd.title = 'CodeRay Documentation'
+ rd.main = 'README_INDEX.rdoc'
+ rd.rdoc_files.add Dir['lib']
+ rd.rdoc_files.add rd.main
+ rd.rdoc_dir = 'doc'
+ end
+
+end \ No newline at end of file