Sha256: c6da74babe6427409c71bffa02432c1988433096db84aae6b86216690cbff0b9

Contents?: true

Size: 1.47 KB

Versions: 7

Compression:

Stored size: 1.47 KB

Contents

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

version="0.1"
name="<%= project %>"

spec = Gem::Specification.new do |s|
  s.name = name
  s.version = version
  s.description = s.summary = "The <%= project %> GemPlugin"
  s.author = "Nobody"
  s.add_dependency('gem_plugin', '>= <%= gem_plugin_version %>')
  
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README"]
  
  s.files = %w(COPYING LICENSE README Rakefile) +
    Dir.glob("{bin,doc/rdoc,test,lib}/**/*") + 
    Dir.glob("ext/**/*.{h,c,rb}") +
    Dir.glob("examples/**/*.rb") +
    Dir.glob("tools/*.rb") +
    Dir.glob("resources/**/*")
  
  s.require_path = "lib"
  s.bindir = "bin"
end

Rake::GemPackageTask.new(spec) do |p|
  p.need_tar = true if RUBY_PLATFORM !~ /mswin/
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

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc/rdoc'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.add ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
end

task :default => [:test, :package]

CLEAN.include ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log', 'pkg', 'lib/*.bundle', '*.gem', '.config']

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile
gem_plugin-0.2.3 resources/Rakefile