Sha256: 03093612a3ddf7e42f028767f6f82e43f5c4d37923fd538f95567c2723ddd91c
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require 'rake' require 'rake/clean' require 'rake/gempackagetask' require 'rake/testtask' require File.dirname(__FILE__) + '/lib/nanoc.rb' ##### NAME = 'nanoc' VERS = Nanoc::VERSION SUMMARY = 'a CMS that doesn\'t even run on your server' HOMEPAGE = 'http://stoneship.org/software/nanoc' EMAIL = 'denis.defreyne@stoneship.org' ##### CLEAN.include [ '*.gem', 'pkg', 'tmp' ] spec = Gem::Specification.new do |s| s.name = NAME s.version = VERS s.platform = Gem::Platform::RUBY s.summary = SUMMARY s.description = s.summary s.homepage = HOMEPAGE s.email = EMAIL s.add_dependency('erubis') s.required_ruby_version = '>= 1.8.2' s.has_rdoc = false s.files = %w( README LICENSE Rakefile ) + Dir.glob('{bin,lib,test}/**/*') s.executables = [ 'nanoc' ] s.require_path = 'lib' s.bindir = 'bin' end Rake::GemPackageTask.new(spec) do |task| task.need_tar = true task.gem_spec = spec end Rake::TestTask.new(:test) do |test| test.test_files = Dir.glob('test/test_*.rb') end ##### task :default => [ :test ] task :install_gem do sh %{rake package} sh %{sudo gem install pkg/#{NAME}-#{VERS}} end task :uninstall_gem do sh %{sudo gem uninstall #{NAME}} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.0.1 | Rakefile |