Sha256: 488da1c68ec80d83ddf4d61f7cccc51660f3c922c0da65e7d465cdecb9494e0e
Contents?: true
Size: 1.75 KB
Versions: 9
Compression:
Stored size: 1.75 KB
Contents
require 'rubygems' require 'rake' require 'rake/clean' require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' NAME = "rqrcode" VERS = "0.3.2" CLEAN.include ['pkg', 'rdoc'] Gem::manage_gems spec = Gem::Specification.new do |s| s.name = NAME s.version = VERS s.author = "Duncan Robertson" s.email = "duncan@whomwah.com" s.homepage = "http://rqrcode.rubyforge.org" s.platform = Gem::Platform::RUBY s.summary = "A library to encode QR Codes" s.rubyforge_project = NAME s.description = <<EOF rQRCode is a library for encoding QR Codes. The simple interface allows you to create QR Code data structures ready to be displayed in the way you choose. EOF s.files = FileList["lib/**/*", "test/*"].exclude("rdoc").to_a s.require_path = "lib" s.has_rdoc = true s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"] s.test_file = "test/runtest.rb" end task :build_package => [:repackage] Rake::GemPackageTask.new(spec) do |pkg| #pkg.need_zip = true #pkg.need_tar = true pkg.gem_spec = spec end desc "Default: run unit tests." task :default => :test desc "Run all the tests" Rake::TestTask.new(:test) do |t| t.libs << "lib" t.pattern = "test/runtest.rb" t.verbose = true end desc "Generate documentation for the library" Rake::RDocTask.new("rdoc") { |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = "rQRCode Documentation" rdoc.template = "~/bin/jamis.rb" rdoc.options << '--line-numbers' << '--inline-source' rdoc.main = "README" rdoc.rdoc_files.include("README", "CHANGELOG", "COPYING", 'lib/**/*.rb') } desc "rdoc to rubyforge" task :rubyforge => [:rdoc] do sh %{/usr/bin/scp -r -p rdoc/* rubyforge:/var/www/gforge-projects/rqrcode} end
Version data entries
9 entries across 9 versions & 3 rubygems