Sha256: e3f63841a29f9e0491845115cfde9dcabfa4345a2998fea6fa6e8788fe1625e6

Contents?: true

Size: 679 Bytes

Versions: 7

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
aws_assume_role-1.0.6 Rakefile
aws_assume_role-1.0.5 Rakefile
aws_assume_role-1.0.4 Rakefile
aws_assume_role-1.0.3 Rakefile
aws_assume_role-1.0.2 Rakefile
aws_assume_role-1.0.1 Rakefile
aws_assume_role-1.0.0 Rakefile