Skip to content

Commit

Permalink
beef up Rakefile tasks set
Browse files Browse the repository at this point in the history
result :
> rake -T
rake build         # Build sentiment_analysis-0.0.1.gem into the pkg directory
rake clobber_rcov  # Remove rcov products for rcov
rake clobber_rdoc  # Remove RDoc HTML files
rake install       # Build and install sentiment_analysis-0.0.1.gem into system gems
rake rcov          # Run specs using RCov
rake rdoc          # Build RDoc HTML files
rake release       # Create tag v0.0.1 and build and push sentiment_analysis-0.0.1.gem to Rubygems
rake rerdoc        # Rebuild RDoc HTML files
rake spec          # Run specs
  • Loading branch information
alainravet committed Sep 13, 2011
1 parent 092d354 commit 5f2aaaa
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Rakefile
@@ -1 +1,22 @@
require "bundler/gem_tasks"
# encoding: UTF-8
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake'

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
task :default => :spec

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

require 'rdoc/task'
RDoc::Task.new do |rdoc|
end

0 comments on commit 5f2aaaa

Please sign in to comment.