Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (56 sloc) 1.74 KB
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
NAME = "rqrcode"
VERS = "0.3.4"
CLEAN.include ['pkg', 'rdoc']
spec = do |s| = NAME
s.version = VERS = "Duncan Robertson" = ""
s.homepage = ""
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.
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"
task :build_package => [:repackage] do |pkg|
#pkg.need_zip = true
#pkg.need_tar = true
pkg.gem_spec = spec
desc "Default: run unit tests."
task :default => :test
desc "Run all the tests" do |t|
t.libs << "lib"
t.pattern = "test/runtest.rb"
t.verbose = true
desc "Generate documentation for the library""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}