Sha256: 5303cd437e593a09afac7fae14d954a0553b6ca58124ec1f6fbefbf855d92223

Contents?: true

Size: 857 Bytes

Versions: 3

Compression:

Stored size: 857 Bytes

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.1"
name="<%= project %>"

setup_gem(name, version) do |spec|
  spec.summary = "The <%= project %> GemPlugin"
  spec.description = spec.summary
  spec.author="Nobody"
  spec.add_dependency('gem_plugin', '>= <%= gem_plugin_version %>')
  spec.files += Dir.glob("resources/**/*")
end


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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gem_plugin-0.2 resources/Rakefile
gem_plugin-0.2.2 resources/Rakefile
gem_plugin-0.2.1 resources/Rakefile