Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Convert Rakefile to rakegem style, and remove Jeweler
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhelmet committed Dec 31, 2010
1 parent 7968c27 commit 4105345
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ end
#
#############################################################################

task :default => :test
task :default => :spec

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.ruby_opts = ['-Ilib', '-Ispec']
t.pattern = 'spec/**/*_spec.rb'
end

desc "Open an irb session preloaded with this library"
Expand All @@ -63,25 +62,15 @@ end
#
#############################################################################

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.ruby_opts = ['-Ilib', '-Ispec']
t.pattern = 'spec/**/*_spec.rb'
end

RSpec::Core::RakeTask.new(:rcov) do |t|
t.ruby_opts = ['-Ilib', '-Ispec']
t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError
task :yardoc do
abort 'YARD is not available. In order to run yardoc, you must: `gem i yard`'
end
end

# task :spec => :check_dependencies

task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new

#############################################################################
#
# Packaging tasks
Expand Down

0 comments on commit 4105345

Please sign in to comment.