Sha256: 51ad56218cadb710c5b003d2c9d5ad1088076b76ab94110003bfb46ed4ab5969

Contents?: true

Size: 1.28 KB

Versions: 53

Compression:

Stored size: 1.28 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',
               'spec:helper']

    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

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

    RuboCop::RakeTask.new
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
awspec-1.4.0 Rakefile
awspec-1.3.1 Rakefile
awspec-1.3.0 Rakefile
awspec-1.2.0 Rakefile
awspec-1.1.0 Rakefile
awspec-1.0.0 Rakefile
awspec-1.0.0.rc Rakefile
awspec-0.88.2 Rakefile
awspec-0.88.1 Rakefile
awspec-0.88.0 Rakefile
awspec-0.87.1 Rakefile
awspec-0.87.0 Rakefile
cmonson_2ndwatch_awspec-0.85.4 Rakefile