Rakefile in omniauth-oauth2-1.1.1 vs Rakefile in omniauth-oauth2-1.1.2

- old
+ new

@@ -1,9 +1,18 @@ #!/usr/bin/env rake -require "bundler/gem_tasks" +require 'bundler/gem_tasks' require 'rspec/core/rake_task' -desc 'Default: run specs.' -task :default => :spec - -desc "Run specs" RSpec::Core::RakeTask.new + +task :test => :spec + +begin + require 'rubocop/rake_task' + Rubocop::RakeTask.new +rescue LoadError + task :rubocop do + $stderr.puts 'Rubocop is disabled' + end +end + +task :default => [:spec, :rubocop]