Sha256: 3265acdf5993fdfdc9a35bc8e3e5e1380fdebdbb3e6f5764c5cf3b7307b47d09

Contents?: true

Size: 1.89 KB

Versions: 12

Compression:

Stored size: 1.89 KB

Contents

require 'rake'
require 'rspec/core/rake_task'
require 'rdoc/task'

desc 'Default: run specs.'
task :default => :spec

desc 'Run the specs'
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = ['--colour --format progress']
end

namespace :spec do
  desc "Run all specs with RCov"
  RSpec::Core::RakeTask.new(:rcov) do |t|
    t.rspec_opts = ['--colour --format progress']
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec,/Users/']
  end
end

desc 'Generate documentation for the simple_navigation plugin.'
RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'SimpleNavigation'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "simple-navigation"
    gemspec.summary = "simple-navigation is a ruby library for creating navigations (with multiple levels) for your Rails2, Rails3, Sinatra or Padrino application."
    gemspec.email = "andreas.schacke@gmail.com"
    gemspec.homepage = "http://github.com/andi/simple-navigation"
    gemspec.description = "With the simple-navigation gem installed you can easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions."
    gemspec.authors = ["Andi Schacke", "Mark J. Titorenko"]
    gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
    gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log", "Gemfile.lock"]
    gemspec.rubyforge_project = 'andi'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError => e
  puts "Jeweler not available (#{e}). Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
jordanyeo-simple-navigation-3.11.1 Rakefile
jordanyeo-simple-navigation-3.11.0 Rakefile
simple-navigation-3.11.0 Rakefile
simple-navigation-3.10.1 Rakefile
simple-navigation-3.10.0 Rakefile
simple-navigation-3.9.0 Rakefile
simple-navigation-3.8.0 Rakefile
simple-navigation-3.7.0 Rakefile
simple-navigation-3.6.0 Rakefile
simple-navigation-3.5.1 Rakefile
simple-navigation-3.5.0 Rakefile
simple-navigation-3.4.2 Rakefile