Sha256: 8d53d4dd20f9e1aea1c1453b0b299800ad6d4616b0c0a8b4aac053f2ede35ce0

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils

setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]

setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']

desc "Does a full compile, test run"
task :default => [:test, :package]

version = "0.2.2"
name="gem_plugin"

setup_gem(name, version) do |spec|
  spec.author="Zed A. Shaw"
  spec.summary = "A plugin system based only on rubygems that uses dependencies only"
  spec.description = spec.summary
  spec.test_file = "test/test_plugins.rb"
  spec.files += Dir.glob("resources/**/*")
  spec.executables=["gpgen"]
  spec.add_dependency("rake", ">= 0.7")
end

task :install => [:test, :package] do
  sh %{gem install pkg/#{name}-#{version}}
end

task :uninstall => [:clean] do
  sh %{gem uninstall #{name}}
end

task :site => [:rerdoc] do
  sh %{ rsync -r doc/rdoc/* rubyforge.org:/var/www/gforge-projects/mongrel/gem_plugin_rdoc/ }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gem_plugin-0.2.2 Rakefile