Sha256: 3bd9efdd40ee3dff1c0b61a1a3b1a69172a6c4e2475984547777897673abc963

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

require 'bundler/gem_tasks'

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

require 'awspec'

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
awspec-0.28.0 Rakefile
awspec-0.27.2 Rakefile
awspec-0.27.1 Rakefile
awspec-0.27.0 Rakefile