Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (41 sloc) 1.622 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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'hoe'
require './lib/calendar_helper.rb'

Hoe.new('calendar_helper', CalendarHelper::VERSION) do |p|
  p.rubyforge_name = 'seattlerb'
  p.author = 'Geoffrey Grosenbach'
  p.email = 'boss AT topfunky.com'
  p.summary = 'Generates a configurable, CSS-tagged HTML calendar.'
  p.description = "A simple method to create an HTML calendar for a single month. Can be styled with CSS. Usable with Ruby on Rails."
  p.url = "http://rubyforge.org/projects/seattlerb"
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
  p.clean_globs = ['test/output']
end

desc "Test task (actually runs specs)"
task "test" do
  system "spec --format specdoc --color spec/*_spec.rb"
end

# -- Rails-specific --

desc 'Generate documentation for the calendar_helper plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'CalendarHelper'
  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 |gem|
    gem.name = "calendar_helper"
    gem.summary = %Q{Makes it easier to create atom feeds through Builder.}
    gem.description = %Q{A simple method to create an HTML calendar for a single month. Can be styled with CSS. Usable with Ruby on Rails.}
    gem.email = "boss AT topfunky.com"
    gem.homepage = "http://rubyforge.org/projects/seattlerb"
    gem.authors = ["Geoffrey Grosenbach"]
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
Something went wrong with that request. Please try again.