Sha256: e2cb78bc842344adfa22aee1c4f131ab472826c48b92300159e5a95cade6270a

Contents?: true

Size: 760 Bytes

Versions: 6

Compression:

Stored size: 760 Bytes

Contents

require 'bundler/gem_tasks'

begin
  require 'rspec/core/rake_task'
  require 'octorelease'
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: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

6 entries across 6 versions & 1 rubygems

Version Path
awspec-0.33.0 Rakefile
awspec-0.32.0 Rakefile
awspec-0.31.0 Rakefile
awspec-0.30.0 Rakefile
awspec-0.29.0 Rakefile
awspec-0.28.1 Rakefile