Sha256: 5fbeba6e49e7fb91d5c7c2f0f3a0086eac11e77dd63ddfd91bf9dd570224a59f

Contents?: true

Size: 1.11 KB

Versions: 22

Compression:

Stored size: 1.11 KB

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: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

22 entries across 22 versions & 1 rubygems

Version Path
awspec-0.81.0 Rakefile
awspec-0.80.1 Rakefile
awspec-0.80.0 Rakefile
awspec-0.79.2 Rakefile
awspec-0.79.1 Rakefile
awspec-0.79.0 Rakefile
awspec-0.78.1 Rakefile
awspec-0.77.1 Rakefile
awspec-0.77.0 Rakefile
awspec-0.76.1 Rakefile
awspec-0.76.0 Rakefile
awspec-0.75.2 Rakefile
awspec-0.75.1 Rakefile
awspec-0.75.0 Rakefile
awspec-0.74.1 Rakefile
awspec-0.74.0 Rakefile
awspec-0.73.2 Rakefile
awspec-0.73.1 Rakefile
awspec-0.73.0 Rakefile
awspec-0.72.0 Rakefile