Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Convert Rakefile to rakegem style, and remove Jeweler

  • Loading branch information...
commit 41053451070e12e64f51220b2f214599ea0adabb 1 parent 7968c27
Daniel Huckstep authored December 31, 2010

Showing 1 changed file with 12 additions and 23 deletions. Show diff stats Hide diff stats

  1. 35  Rakefile
35  Rakefile
@@ -43,13 +43,12 @@ end
43 43
 #
44 44
 #############################################################################
45 45
 
46  
-task :default => :test
  46
+task :default => :spec
47 47
 
48  
-require 'rake/testtask'
49  
-Rake::TestTask.new(:test) do |test|
50  
-  test.libs << 'lib' << 'test'
51  
-  test.pattern = 'test/**/test_*.rb'
52  
-  test.verbose = true
  48
+require 'rspec/core/rake_task'
  49
+RSpec::Core::RakeTask.new(:spec) do |t|
  50
+  t.ruby_opts = ['-Ilib', '-Ispec']
  51
+  t.pattern = 'spec/**/*_spec.rb'
53 52
 end
54 53
 
55 54
 desc "Open an irb session preloaded with this library"
@@ -63,25 +62,15 @@ end
63 62
 #
64 63
 #############################################################################
65 64
 
66  
-require 'rspec/core/rake_task'
67  
-RSpec::Core::RakeTask.new(:spec) do |t|
68  
-  t.ruby_opts = ['-Ilib', '-Ispec']
69  
-  t.pattern = 'spec/**/*_spec.rb'
70  
-end
71  
-
72  
-RSpec::Core::RakeTask.new(:rcov) do |t|
73  
-  t.ruby_opts = ['-Ilib', '-Ispec']
74  
-  t.pattern = 'spec/**/*_spec.rb'
75  
-  t.rcov = true
  65
+begin
  66
+  require 'yard'
  67
+  YARD::Rake::YardocTask.new
  68
+rescue LoadError
  69
+  task :yardoc do
  70
+    abort 'YARD is not available. In order to run yardoc, you must: `gem i yard`'
  71
+  end
76 72
 end
77 73
 
78  
-# task :spec => :check_dependencies
79  
-
80  
-task :default => :spec
81  
-
82  
-require 'yard'
83  
-YARD::Rake::YardocTask.new
84  
-
85 74
 #############################################################################
86 75
 #
87 76
 # Packaging tasks

0 notes on commit 4105345

Please sign in to comment.
Something went wrong with that request. Please try again.