public
Description: A Ruby library that encodes QR Codes
Homepage: http://whomwah.github.com/rqrcode/
Clone URL: git://github.com/whomwah/rqrcode.git
Click here to lend your support to: rqrcode and make a donation at www.pledgie.com !
whomwah (author)
Sun Mar 15 08:16:08 -0700 2009
commit  e88f3f168b7e3872cccf32bcffc3e389a963b454
tree    5c80169b67f05823fdae2902117c010ea8a9aec6
parent  790b14bf5208455fc8bf4a60466a8cf7628c92bd
rqrcode / Rakefile
100644 66 lines (57 sloc) 1.795 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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