Sha256: 7eebb79ae2dd24f4424ac4ac8793d508371816efc67307535fcd1da1a2163e38
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 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 => %i[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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws_assume_role-0.2.2 | Rakefile |