This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
forked from toretore/semacode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (46 loc) · 1.45 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
# frozen_string_literal: true
require 'rubygems'
require 'rubygems/package_task'
spec = Gem::Specification.new do |s|
s.name = 'semacode'
s.version = '0.7.6'
s.author = 'Guido Sohne'
s.email = 'guido@sohne.net'
s.homepage = 'http://sohne.net/projects/semafox/'
s.licenses = ["GPL-2.0".freeze]
s.platform = Gem::Platform::RUBY
s.summary = 'Create semacodes (2D barcodes) using Ruby.'
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.md',
'CHANGELOG',
'LICENSE.md',
'Rakefile'].to_a
s.require_path = 'lib'
s.test_files = FileList['{tests}/**/*test.rb'].to_a
end
Gem::PackageTask.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 $PROGRAM_NAME == __FILE__
Gem.manage_gems
Gem::Builder.new(spec).build
end