# 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. # Gem specification comes first, other tasks rely on it. def spec Gem::Specification.new do |spec| spec.name = 'docter' spec.version = File.read(__FILE__.pathmap('%d/lib/docter.rb')).scan(/VERSION\s*=\s*(['"])(.*)\1/)[0][1] spec.author = 'Apache Buildr' spec.email = 'buildr-user@incubator.apache.org' spec.homepage = 'http://incubator.apache.org/buildr/' spec.summary = 'We has docs' spec.files = FileList['lib/**/*', 'README', 'CHANGELOG', 'LICENSE', 'NOTICE', 'DISCLAIMER', 'Rakefile'].collect spec.require_path = 'lib' spec.has_rdoc = true spec.extra_rdoc_files = ['README', 'CHANGELOG', 'LICENSE', 'NOTICE', 'DISCLAIMER'] spec.rdoc_options << '--title' << "Docter -- #{spec.summary}" << '--main' << 'README' << '--line-numbers' << '--inline-source' << '-p' << '--webcvs' << 'http://svn.apache.org/repos/asf/incubator/buildr/docter/trunk/' spec.rubyforge_project = 'buildr' # Tested against these dependencies. spec.add_dependency 'RedCloth', '~> 3.0' spec.add_dependency 'haml', '~> 1.8' spec.add_dependency 'mongrel', '~> 1.1' spec.add_dependency 'syntax', '~> 1.0' spec.add_dependency 'rake', '~> 0.8' end end namespace 'release' do # License requirement. task 'check'=>'apache:license' task 'make' do task('release:rubyforge').invoke end end