Sha256: 907620d22c0ad2f8497f6e56ab9e7f58c7009382eaebd1f03281fc73c8675395

Contents?: true

Size: 939 Bytes

Versions: 6

Compression:

Stored size: 939 Bytes

Contents

require 'bundler/gem_tasks'

begin
  require 'rspec/core/rake_task'
  require 'octorelease'
  require 'rubocop/rake_task'
rescue LoadError
end

require 'awspec'

types = Awspec::Helper::Type::TYPES.map do |type|
  'spec:' + type
end

if defined?(RSpec)
  task spec: 'spec:all'
  namespace :spec do
    task all: ['spec:type', 'spec:core', 'spec:generator_spec', 'spec:generator_doc', 'spec:rubocop']

    task type: types

    Awspec::Helper::Type::TYPES.map do |type|
      RSpec::Core::RakeTask.new(type) do |t|
        t.pattern = 'spec/type/' + type + '_spec.rb'
      end
    end

    RSpec::Core::RakeTask.new(:core) do |t|
      t.pattern = 'spec/core/*_spec.rb'
    end

    RSpec::Core::RakeTask.new(:generator_spec) do |t|
      t.pattern = 'spec/generator/spec/*_spec.rb'
    end

    RSpec::Core::RakeTask.new(:generator_doc) do |t|
      t.pattern = 'spec/generator/doc/*_spec.rb'
    end

    RuboCop::RakeTask.new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
awspec-0.69.1 Rakefile
awspec-0.69.0 Rakefile
awspec-0.68.0 Rakefile
awspec-0.67.1 Rakefile
awspec-0.67.0 Rakefile
awspec-0.66.2 Rakefile