require 'rake' require 'raven' require 'rubygems/package_task' require 'bundler/gem_tasks' gemspec = Gem::Specification.load(Dir['*.gemspec'].first) Gem::PackageTask.new(gemspec).define begin require 'rubygems' require 'rspec/core/rake_task' require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop) do |task| task.patterns = ['lib/**/*.rb','spec/**/*.rb',] end RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/**/*_spec.rb' end rescue LoadError task :spec do abort "Rspec is not available. bundle install to run unit tests" end end task :default => [:rubocop, :spec]