Permalink
Browse files

Convert Rakefile to rakegem style, and remove Jeweler

  • Loading branch information...
1 parent 7968c27 commit 41053451070e12e64f51220b2f214599ea0adabb @darkhelmet darkhelmet committed Dec 31, 2010
Showing with 12 additions and 23 deletions.
  1. +12 −23 Rakefile
View
@@ -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"
@@ -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

0 comments on commit 4105345

Please sign in to comment.