Rakefile in raffle_v1-0.0.5 vs Rakefile in raffle_v1-1.0.4
- old
+ new
@@ -1,19 +1,13 @@
-#!/usr/bin/env rake
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
+require 'rdoc/task'
+
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'RaffleV1'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.rdoc')
@@ -35,6 +29,6 @@
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
-task :default => :test
+task default: :test