Sha256: d72f341b4763e6401debf38447aece75afd711df5ecb82348385cff84d031708
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 KB
Contents
require 'lib/micronaut/rake_task' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "micronaut" s.executables = "micronaut" s.summary = "An excellent replacement for the wheel..." s.email = "chad@spicycode.com" s.homepage = "http://github.com/spicycode/micronaut" s.description = "An excellent replacement for the wheel..." s.authors = ["Chad Humphries"] s.files = FileList["[A-Z]*", "{bin,lib,examples}/**/*"] end rescue LoadError puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end desc "List files that don't have examples" task :untested do code = Dir["lib/**/*.rb"].map { |g| Dir.glob(g) }.flatten examples = Dir["examples/**/*_example.rb"].map { |g| Dir.glob(g) }.flatten examples.map! { |f| f =~ /examples\/(.*)_example/; "#{$1}.rb" } puts "\nThe following files seem to be missing their examples:" (code - examples).each do |missing| puts " #{missing}" end end desc "Run all micronaut examples" Micronaut::RakeTask.new :examples do |t| t.pattern = "examples/**/*_example.rb" end namespace :examples do desc "Run all micronaut examples using rcov" Micronaut::RakeTask.new :coverage do |t| t.pattern = "examples/**/*_example.rb" t.rcov = true t.rcov_opts = %[--exclude "examples/*,gems/*,db/*,/Library/Ruby/*,config/*" --text-summary --sort coverage --no-validator-links] end end task :default => 'examples:coverage'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spicycode-micronaut-0.2.2 | Rakefile |
spicycode-micronaut-0.2.3 | Rakefile |
spicycode-micronaut-0.2.4 | Rakefile |