Sha256: b13691225d95194aa581eea13c4e770dd59b3c3d1d02578e2718b9cc6d6bdd63
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 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 run on your server' HOMEPAGE = 'http://stoneship.org/software/nanoc' EMAIL = 'denis.defreyne@stoneship.org' ##### CLEAN.include [ 'tmp', 'test/fixtures/*/output/*', 'test/fixtures/*/tmp' ] CLOBBER.include [ 'pkg' ] 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 ChangeLog Rakefile ) + Dir['{bin,lib}/**/*'] 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['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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.2 | Rakefile |
nanoc-1.3 | Rakefile |
nanoc-1.3.1 | Rakefile |