Sha256: 348ed81cc1bade3b86fa2889cd867a627621d04b5e467a822b32378f5517e2ea
Contents?: true
Size: 1.69 KB
Versions: 12
Compression:
Stored size: 1.69 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'rake' require 'rake/gempackagetask' require 'rake/clean' $LOAD_PATH.unshift( File.join( File.dirname(__FILE__), '../../lib') ) require 'masterview' RUBY_FORGE_PROJECT = "masterview" RUBY_FORGE_USER = "jeffbski" RUBY_FORGE_GROUPID = "1290" desc "Default Task - package" task :default => [ 'masterview_generator:package' ] task :package => [ 'masterview_generator:package' ] task :repackage => ['masterview_generator:repackage' ] namespace 'masterview_generator' do module MasterViewGenerator PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'masterview_generator' PKG_VERSION = MasterView::VERSION::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}" RELEASE_NAME = "REL #{PKG_VERSION}" PKG_FILES = FileList[ "masterview_generator.rb", "templates/**/*", "[A-Z]*" ].exclude(/\bCVS\b|~$|\.svn|semantic.cache/) spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Generator for GEM" s.has_rdoc = false s.files = PKG_FILES s.require_path = '.' s.autorequire = 'masterview_generator' s.author = "Jeff Barczewski" s.email = "jeff.barczewski@gmail.com" s.homepage = "http://masterview.org/" end # Create Rubygem package Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = false p.need_zip = false p.package_dir = '../../pkg' end end end
Version data entries
12 entries across 12 versions & 1 rubygems