Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.1.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 62 lines (54 sloc) 1.897 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
require 'rubygems'
require 'rake'

PERENNIAL_MAIN_FILE = File.join(File.dirname(__FILE__), "lib", "perennial.rb")
require PERENNIAL_MAIN_FILE

begin
  require 'jeweler'
  require 'perennial/jeweler_ext'
  Jeweler.versioning_via PERENNIAL_MAIN_FILE, Perennial::VERSION
  Jeweler::Tasks.new do |gem|
    gem.name = "perennial"
    gem.summary = "A simple (generally event-oriented) application library for Ruby"
    gem.description = "Perennial is a platform for building different applications in Ruby. It uses a controller-based approach with mixins to provide different functionality."
    gem.email = 'sutto@sutto.net'
    gem.homepage = 'http://sutto.net/'
    gem.authors = ["Darcy Laycock"]
    gem.files = FileList["{bin,lib,templates}/**/*"].to_a
    gem.executables = FileList["bin/*"].to_a.map { |f| File.basename(f) }
    gem.platform = Gem::Platform::RUBY
    gem.add_development_dependency "thoughtbot-shoulda"
    gem.add_development_dependency "mocha"
    gem.add_development_dependency "yard"
  end
  Jeweler::GemcutterTasks.new
rescue LoadError => e
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end
Something went wrong with that request. Please try again.