Rakefile in prawn-1.0.0 vs Rakefile in prawn-1.1.0
- old
+ new
@@ -3,12 +3,13 @@
require 'rake'
require 'rspec/core/rake_task'
require 'yard'
require 'rubygems/package_task'
+require 'rubocop/rake_task'
-task :default => [:spec]
+task :default => [:rubocop, :spec]
desc "Run all rspec files"
RSpec::Core::RakeTask.new("spec") do |c|
c.rspec_opts = "-t ~unresolved"
end
@@ -29,11 +30,11 @@
desc "Generate the 'Prawn by Example' manual"
task :manual do
puts "Building manual..."
require File.expand_path(File.join(File.dirname(__FILE__),
- %w[manual manual manual]))
+ %w[manual contents]))
puts "The Prawn manual is available at manual.pdf. Happy Prawning!"
end
spec = Gem::Specification.load "prawn.gemspec"
Gem::PackageTask.new(spec) do |pkg|
@@ -50,5 +51,6 @@
ARGV.clear
IRB.start
end
+Rubocop::RakeTask.new