-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (47 loc) · 1.49 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
43
44
45
46
47
48
49
50
51
52
require 'rubygems'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = "semacode"
s.version = "0.7.4"
s.author = "Guido Sohne"
s.email = "guido@sohne.net"
s.homepage = "http://sohne.net/projects/semafox/"
s.platform = Gem::Platform::RUBY
s.summary = "Create semacodes (2D barcodes) using Ruby."
s.rubyforge_project = "semacode"
s.description = <<DESC
This Ruby extension implements a DataMatrix encoder for Ruby. It is typically
used to create semacodes, which are barcodes, that contain URLs. This encoder
does not create image files or visual representations of the semacode. This is
because it can be used for more than creating images, such as rendering
semacodes to HTML, SVG, PDF or even stored in a database or file for later
use.
DESC
s.extensions << 'ext/extconf.rb'
s.add_dependency('rake', '>= 0.7.0')
s.files = FileList[
"{lib,ext}/**/*.rb",
"ext/**/*.c",
"ext/**/*.h",
"tests/**/*.rb",
"README",
"CHANGELOG",
"Rakefile"].to_a
s.require_path = "lib"
s.autorequire = "semacode"
s.test_files = FileList["{tests}/**/*test.rb"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar_gz = true
pkg.need_tar_bz2 = true
end
task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
puts "Successfully created #{spec.name}-#{spec.version} gem"
end
if $0 == __FILE__
Gem::manage_gems
Gem::Builder.new(spec).build
end