forked from toretore/barby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (37 loc) · 1.02 KB
/
Rakefile
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
require 'rake'
require 'rake/gempackagetask'
require 'fileutils'
require 'rake'
require 'spec/rake/spectask'
include FileUtils
spec = Gem::Specification.new do |s|
s.name = "barby"
s.version = "0.2.1"
s.author = "Tore Darell"
s.email = "[email protected]"
s.homepage = "http://tore.darell.no/"
s.platform = Gem::Platform::RUBY
s.summary = "A pure-Ruby barcode generator"
s.rubyforge_project = "barby"
s.files = FileList["lib/**/*", "bin/*", "vendor/**/*"].to_a
s.require_path = "lib"
s.autorequire = "barby"
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = false
end
task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
puts "generated latest version"
end
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.libs << './lib'
t.ruby_opts << '-rubygems'
t.spec_files = FileList['spec/*.rb']
end
desc "Build RDoc"
task :doc do
system "rm -rf site/rdoc; rdoc -tBarby -xvendor -osite/rdoc -mREADME lib/**/* README"
end