Sha256: 7874d0d2845f8817ead773beb5a71ef6683752dbcbb97238c33c3c9f3b55f362

Contents?: true

Size: 1.15 KB

Versions: 14

Compression:

Stored size: 1.15 KB

Contents

require 'bundler/gem_tasks'

begin
  require 'rspec'
  require 'rspec/core'
  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:account',
               '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(:account) do |t|
      t.pattern = 'spec/type/account_spec.rb'
    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

14 entries across 14 versions & 2 rubygems

Version Path
awspec-0.86.0 Rakefile
awspec-0.85.3 Rakefile
cmonson_2ndwatch_awspec-0.85.3 Rakefile
awspec-0.85.2 Rakefile
awspec-0.85.1 Rakefile
awspec-0.85.0 Rakefile
awspec-0.84.1 Rakefile
awspec-0.84.0 Rakefile
awspec-0.83.0 Rakefile
awspec-0.82.3 Rakefile
awspec-0.82.2 Rakefile
awspec-0.82.1 Rakefile
awspec-0.82.0 Rakefile
awspec-0.81.1 Rakefile