Sha256: adc29ed90d739c1fdfad64fa91d53244eefd14465aa7056daae69d780a538c97

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 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.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

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-1.4 Rakefile