Rakefile in digest-crc-0.4.1 vs Rakefile in digest-crc-0.4.2
- old
+ new
@@ -1,40 +1,21 @@
require 'rubygems'
-require 'rake'
begin
- gem 'rubygems-tasks', '~> 0.1'
- require 'rubygems/tasks'
-
- Gem::Tasks.new
+ require 'bundler/setup'
rescue LoadError => e
- warn e.message
- warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
+ abort e.message
end
-begin
- gem 'rspec', '~> 2.4'
- require 'rspec/core/rake_task'
+require 'rake'
+require 'rubygems/tasks'
+Gem::Tasks.new
- RSpec::Core::RakeTask.new
-rescue LoadError => e
- task :spec do
- puts e.message
- end
-end
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new
task :test => :spec
task :default => :spec
-begin
- gem 'yard', '~> 0.8'
- gem 'redcarpet'
- gem 'github-markup'
- require 'yard'
- require 'redcarpet'
- require 'github-markup'
-
- YARD::Rake::YardocTask.new
-rescue LoadError => e
- task :yard do
- puts e.message
- end
-end
+require 'yard'
+require 'redcarpet'
+require 'github-markup'
+YARD::Rake::YardocTask.new