# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # 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