Sha256: 37c0f24cdbc8a8f33306f144ac8be09d3a05ab2e979b91f00516505f5eefb766
Contents?: true
Size: 664 Bytes
Versions: 21
Compression:
Stored size: 664 Bytes
Contents
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',] task.options << '--display-cop-names' 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]
Version data entries
21 entries across 21 versions & 1 rubygems