Sha256: 8943405a7f61fbfe23d9626063fdde1d7f13f0cc7595d9ff1da9c2a852e3f538

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

begin 
  require 'jeweler' 
  Jeweler::Tasks.new do |s| 
    s.name = "micronaut-rails" 
    s.summary = "An excellent replacement for the wheel on rails..."
    s.email = "chad@spicycode.com" 
    s.homepage = "http://github.com/spicycode/micronaut-rails" 
    s.description = "An excellent replacement for the wheel on rails..."
    s.authors = ["Chad Humphries"] 
    s.files =  FileList["[A-Z]*", "{bin,lib,examples}/**/*"] 
    s.add_dependency "actionpack", '>= 2.3.0'
    s.add_dependency "micronaut", '>= 0.3.0'
  end 
  Jeweler::GemcutterTasks.new
rescue LoadError 
  puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler" 
end

gem 'micronaut'
require 'micronaut/rake_task'

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]
  end
end

task :default => [:check_dependencies, :examples]

begin
  %w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
  require 'sdoc_helpers'
rescue LoadError => ex
  puts "sdoc support not enabled:"
  puts ex.inspect
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ''
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "micronaut rails #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
micronaut-rails-1.0.1 Rakefile
micronaut-rails-1.0.0 Rakefile