Sha256: 9abac4a8b633f22f1620ea6839d002e6964aae04e78fcff48ca2f4f48a568ecf
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
# encoding: UTF-8 require 'rake' require 'rake/rdoctask' require 'rake/gempackagetask' <% if rspec? -%> require 'rspec/core' require 'rspec/core/rake_task' Rspec::Core::RakeTask.new(:spec) <% else -%> require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end <% end -%> task :default => :<%= test_path %> Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = '<%= camelized %>' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end spec = Gem::Specification.new do |s| s.name = "<%= underscored %>" s.summary = "Insert <%= camelized %> summary." s.description = "Insert <%= camelized %> description." s.files = FileList["[A-Z]*", "lib/**/*"] s.version = "0.0.1" end Rake::GemPackageTask.new(spec) do |pkg| end desc "Install the gem #{spec.name}-#{spec.version}.gem" task :install do system("gem install pkg/#{spec.name}-#{spec.version}.gem --no-ri --no-rdoc") end
Version data entries
10 entries across 10 versions & 1 rubygems