Sha256: ad786254eadbd1dedb707dc8b50f9f8064e0bf6f2fbaf85be8cd153cc4915ca8

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

$:.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'rubygems'
require 'hoe'
require 'rake'
require 'spec/rake/spectask'
require 'roodi'

Hoe.new('roodi', Roodi::VERSION) do |p|
  p.developer('Marty Andrews', 'marty@cogentconsulting.com.au')
  p.extra_deps = ['ParseTree', 'facets']
  p.remote_rdoc_dir = ''
end

def roodi(ruby_files)
  roodi = Roodi::Core::ParseTreeRunner.new
  ruby_files.each { |file| roodi.check_file(file) }
  roodi.errors.each {|error| puts error}
  puts "\nFound #{roodi.errors.size} errors."
end

desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/**/*spec.rb']
end

desc "Run Roodi against all source files"
task :roodi do
  pattern = File.join(File.dirname(__FILE__), "**", "*.rb")
  roodi(Dir.glob(pattern))
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roodi-0.5 Rakefile
roodi-1.2.0 Rakefile
roodi-1.3.0 Rakefile
roodi-1.1.1 Rakefile