Rakefile in vigetlabs-provisional-2.1.11 vs Rakefile in vigetlabs-provisional-2.1.12
- old
+ new
@@ -13,22 +13,25 @@
gem.rubyforge_project = "viget"
gem.add_dependency 'trollop', '>= 1.10.2'
gem.add_dependency 'rails', '>= 2.3.0'
gem.add_dependency 'git', '>= 1.0.5'
gem.add_dependency 'builder', '>= 2.1.2'
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
+
+ Jeweler::RubyforgeTasks.new do |rubyforge|
+ rubyforge.doc_task = "yardoc"
+ end
rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
- test.verbose = false
+ test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
@@ -41,10 +44,11 @@
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
+
begin
require 'reek/rake_task'
Reek::RakeTask.new do |t|
t.fail_on_error = true
t.verbose = false
@@ -65,48 +69,16 @@
rescue LoadError
task :roodi do
abort "Roodi is not available. In order to run roodi, you must: sudo gem install roodi"
end
end
-
+
task :default => :test
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION.yml')
- config = YAML.load(File.read('VERSION.yml'))
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
- else
- version = ""
- end
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "provisional #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
begin
- require 'rake/contrib/sshpublisher'
- namespace :rubyforge do
-
- desc "Release gem and RDoc documentation to RubyForge"
- task :release => ["rubyforge:release:gem"]
-
- namespace :release do
- desc "Publish RDoc to RubyForge."
- task :docs => [:rdoc] do
- config = YAML.load(
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
- )
-
- host = "#{config['username']}@rubyforge.org"
- remote_dir = "/var/www/gforge-projects/provisional/"
- local_dir = 'rdoc'
-
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
- end
- end
- end
+ require 'yard'
+ YARD::Rake::YardocTask.new
rescue LoadError
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
+ task :yardoc do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
end