Rakefile in dionysus-0.4.0 vs Rakefile in dionysus-1.0.0
- old
+ new
@@ -7,39 +7,36 @@
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
-$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
-
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "dionysus"
gem.summary = %Q{A helpful set of utility classes, generators, and command-line tools.}
gem.email = "warlickt@operissystems.com"
gem.homepage = "http://github.com/tekwiz/dionysus"
gem.authors = ["Travis D. Warlick, Jr."]
gem.add_bundler_dependencies(:default, :development)
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
-Jeweler::GemcutterTasks.new
+Jeweler::RubygemsDotOrgTasks.new
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
end
-
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
+RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
- spec.rcov_opts << '--exclude \/Library\/' << '--exclude /\.gem\/'
+ spec.rcov_opts = '--exclude \/Library\/ --exclude /\.gem\/ --exclude /\.rvm\/ --exclude /\.bundle\/'
end
-
-task :spec => :check_dependencies
-
task :default => :spec
+
+task :clobber_rcov do
+ FileUtils.rm_r 'coverage', :secure => true, :force => true, :verbose => true
+end
require 'rake/rdoctask'
require 'sdoc'
require 'dionysus/rdoc/markdown'
require 'dionysus/rdoc/no_markup'