Sha256: 5f8ed02d1c19584944ea36e3913a97c657bc7178bbe4d7f6ae026a5442794431
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require "bundler/gem_tasks" task default: :test begin require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) rescue LoadError # rubocop:disable Lint/HandleExceptions end begin require "rubocop/rake_task" RuboCop::RakeTask.new(:rubocop) rescue LoadError # rubocop:disable Lint/HandleExceptions end task :test => [:no_pry, :rubocop, :spec] # rubocop:disable Style/HashSyntax task :no_pry do files = Dir.glob("**/**").reject { |x| x.match(/^spec|Gemfile|coverage|\.gemspec$|Rakefile/) || File.directory?(x) } files.each do |file| raise "Use of pry found in #{file}." if File.read(file) =~ /"pry"/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws_assume_role-0.2.0 | Rakefile |
aws_assume_role-0.1.2 | Rakefile |