Rakefile in roadie-1.0.0.pre1 vs Rakefile in roadie-1.0.0.pre2
- old
+ new
@@ -1,60 +1,24 @@
# encoding: utf-8
require 'rubygems'
require 'bundler'
+Bundler::GemHelper.install_tasks
+
begin
- Bundler.setup(:default, :development)
+ require 'rspec'
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'rake'
-require 'jeweler'
-
-require 'rake/rdoctask'
require 'rspec/core/rake_task'
-NAME = "roadie"
-EXTRA_RDOC_FILES = %w[README.textile]
-Jeweler::Tasks.new do |t|
- t.name = NAME
- t.summary = %{Making HTML emails comfortable for the Rails rockstars}
- t.email = "magnus.bergmark@gmail.com"
- t.homepage = "http://github.com/Mange/roadie"
- t.description = %{Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.}
- t.author = "Magnus Bergmark"
-
- t.require_path = 'lib'
- t.files = %w(Rakefile) + EXTRA_RDOC_FILES + Dir.glob(File.join(*%w[{lib,spec} ** *]).to_s)
- t.extra_rdoc_files = EXTRA_RDOC_FILES
-
- # dependencies defined in Gemfile
-end
-
-Jeweler::RubygemsDotOrgTasks.new
-
-desc "Generate documentation for the #{NAME} plugin."
-Rake::RDocTask.new(:rdoc) do |t|
- t.rdoc_dir = 'rdoc'
- t.title = NAME
- t.options << '--line-numbers' << '--inline-source'
- t.rdoc_files.include(EXTRA_RDOC_FILES)
- t.rdoc_files.include('lib/**/*.rb')
-end
-
-desc "Run plugin specs for #{NAME}."
+desc "Run specs"
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ["-c"]
end
-desc "Run plugin specs for #{NAME} with specdoc formatting and colors"
-RSpec::Core::RakeTask.new('specdoc') do |t|
- t.pattern = 'spec/**/*_spec.rb'
- t.rspec_opts = ["--format specdoc", "-c"]
-end
-
-desc "Default: Run specs."
+desc "Default: Run specs"
task :default => :spec