Skip to content

Commit

Permalink
add jeweler generated rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rlivsey committed May 8, 2009
1 parent 4db58a8 commit 639ad3a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions RakeFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "middleman"
gem.summary = %Q{TODO}
gem.email = "richard@livsey.org"
gem.homepage = "http://github.com/rlivsey/middleman"
gem.authors = ["Richard Livsey"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end

rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end


task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Middleman #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

0 comments on commit 639ad3a

Please sign in to comment.