Rakefile in inforouter-0.1.0 vs Rakefile in inforouter-0.2.0

- old
+ new

@@ -1,19 +1,38 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' +require 'rake/testtask' + +gemspec = eval(File.read(Dir['*.gemspec'].first)) + +Rake::TestTask.new(:test) do |test| + test.libs << 'lib' << 'test' + test.pattern = 'test/test_*.rb' + test.verbose = false +end + +desc 'Validate the gemspec.' +task :gemspec do + puts gemspec.validate +end + +require 'rubocop/rake_task' +Rubocop::RakeTask.new(:rubocop) + +task :default => [:rubocop, :test]