Sha256: 495444e43afd2a1630e4c9651799486fa6c773af5a63a347f933311cbf5242e9
Contents?: true
Size: 1.39 KB
Versions: 5
Compression:
Stored size: 1.39 KB
Contents
# frozen_string_literal: true require 'rubygems' require 'bundler' require 'bundler/gem_tasks' require 'rake/testtask' begin Bundler.setup(:default, :development, :test) rescue Bundler::BundlerError => e warn e.message warn 'Run `bundle install` to install missing gems' exit e.status_code end require 'rake' require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end task default: :spec require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : '' rdoc.rdoc_dir = 'rdoc' rdoc.title = "puppet-debugger #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end desc 'Creates generic input_responder spec files' task :make_input_responder_tests do files = Dir.glob('lib/plugins/**/*.rb') files.collect do |pathname| orig_file = File.basename(pathname, '.*') test_file = File.join('spec', 'input_responders', "#{orig_file}_spec.rb") next if File.exist?(test_file) # new_file = File.new(test_file, "w") contents = <<-OUT require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :#{orig_file} do include_examples 'plugin_tests' let(:args) { [] } end OUT File.write(test_file, contents) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
puppet-debugger-1.4.0 | Rakefile |
puppet-debugger-1.3.0 | Rakefile |
puppet-debugger-1.2.0 | Rakefile |
puppet-debugger-1.1.0 | Rakefile |
puppet-debugger-1.0.0 | Rakefile |