ruby-zint 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/README.md +12 -4
- data/lib/zint/aus_post.rb +2 -2
- data/lib/zint/aus_redirect.rb +2 -2
- data/lib/zint/aus_reply.rb +2 -2
- data/lib/zint/aus_route.rb +2 -2
- data/lib/zint/azrune.rb +2 -2
- data/lib/zint/aztec.rb +2 -2
- data/lib/zint/barcode.rb +33 -75
- data/lib/zint/bc_412.rb +2 -2
- data/lib/zint/c25iata.rb +2 -2
- data/lib/zint/c25ind.rb +2 -2
- data/lib/zint/c25inter.rb +2 -2
- data/lib/zint/c25logic.rb +2 -2
- data/lib/zint/c25matrix.rb +2 -2
- data/lib/zint/c25standard.rb +2 -2
- data/lib/zint/cep_net.rb +2 -2
- data/lib/zint/channel.rb +2 -2
- data/lib/zint/codabar.rb +2 -2
- data/lib/zint/codablock_f.rb +2 -2
- data/lib/zint/code11.rb +2 -2
- data/lib/zint/code128.rb +2 -2
- data/lib/zint/code128ab.rb +2 -2
- data/lib/zint/code16k.rb +2 -2
- data/lib/zint/code32.rb +2 -2
- data/lib/zint/code39.rb +2 -2
- data/lib/zint/code49.rb +2 -2
- data/lib/zint/code93.rb +2 -2
- data/lib/zint/code_one.rb +2 -2
- data/lib/zint/daft.rb +2 -2
- data/lib/zint/data_matrix.rb +3 -3
- data/lib/zint/dbarexp.rb +2 -2
- data/lib/zint/dbarexpstk.rb +2 -2
- data/lib/zint/dbarltd.rb +2 -2
- data/lib/zint/dbaromn.rb +2 -2
- data/lib/zint/dbaromnstk.rb +2 -2
- data/lib/zint/dbarstk.rb +2 -2
- data/lib/zint/dependencies.rb +0 -1
- data/lib/zint/dot_code.rb +2 -2
- data/lib/zint/dpd.rb +2 -2
- data/lib/zint/dpident.rb +2 -2
- data/lib/zint/dpleit.rb +2 -2
- data/lib/zint/ean128.rb +2 -2
- data/lib/zint/ean14.rb +2 -2
- data/lib/zint/eanx.rb +2 -2
- data/lib/zint/eanxchk.rb +2 -2
- data/lib/zint/excode39.rb +2 -2
- data/lib/zint/fim.rb +2 -2
- data/lib/zint/flat.rb +2 -2
- data/lib/zint/grid_matrix.rb +2 -2
- data/lib/zint/gs1_128.rb +2 -2
- data/lib/zint/hanxin.rb +2 -2
- data/lib/zint/hibc128.rb +2 -2
- data/lib/zint/hibc39.rb +2 -2
- data/lib/zint/hibcaztec.rb +2 -2
- data/lib/zint/hibcblockf.rb +2 -2
- data/lib/zint/hibcdm.rb +2 -2
- data/lib/zint/hibcmicpdf.rb +2 -2
- data/lib/zint/hibcpdf.rb +2 -2
- data/lib/zint/hibcqr.rb +2 -2
- data/lib/zint/isbnx.rb +2 -2
- data/lib/zint/itf14.rb +2 -2
- data/lib/zint/japan_post.rb +2 -2
- data/lib/zint/kix.rb +2 -2
- data/lib/zint/korea_post.rb +2 -2
- data/lib/zint/logmars.rb +2 -2
- data/lib/zint/mailmark.rb +2 -2
- data/lib/zint/mailmark_2d.rb +2 -2
- data/lib/zint/mailmark_4s.rb +2 -2
- data/lib/zint/maxi_code.rb +2 -2
- data/lib/zint/micro_pdf417.rb +2 -2
- data/lib/zint/micro_qr.rb +2 -2
- data/lib/zint/msiplessey.rb +2 -2
- data/lib/zint/nve18.rb +2 -2
- data/lib/zint/one_code.rb +2 -2
- data/lib/zint/pdf417.rb +2 -2
- data/lib/zint/pdf417comp.rb +2 -2
- data/lib/zint/pdf417trunc.rb +2 -2
- data/lib/zint/pharma.rb +2 -2
- data/lib/zint/pharmatwo.rb +2 -2
- data/lib/zint/planet.rb +2 -2
- data/lib/zint/plessey.rb +2 -2
- data/lib/zint/postnet.rb +2 -2
- data/lib/zint/pzn.rb +2 -2
- data/lib/zint/qr.rb +2 -2
- data/lib/zint/rmqr.rb +2 -2
- data/lib/zint/rss14.rb +2 -2
- data/lib/zint/rss14stack.rb +2 -2
- data/lib/zint/rss14stackomni.rb +2 -2
- data/lib/zint/rssexp.rb +2 -2
- data/lib/zint/rssexpstack.rb +2 -2
- data/lib/zint/rssltd.rb +2 -2
- data/lib/zint/telepen.rb +2 -2
- data/lib/zint/telepennum.rb +2 -2
- data/lib/zint/ultra.rb +2 -2
- data/lib/zint/upc_a.rb +2 -2
- data/lib/zint/upc_a_chk.rb +2 -2
- data/lib/zint/upc_e.rb +2 -2
- data/lib/zint/upc_e_chk.rb +2 -2
- data/lib/zint/upnqr.rb +2 -2
- data/lib/zint/upu_s10.rb +2 -2
- data/lib/zint/uspsimail.rb +2 -2
- data/lib/zint/version.rb +1 -1
- data/lib/zint/vin.rb +2 -2
- metadata +120 -4
data/lib/zint/code49.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Code 49
|
3
3
|
class Code49 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_CODE49, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/code93.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Code 93
|
3
3
|
class Code93 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_CODE93, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/code_one.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Code One
|
3
3
|
class CodeOne < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_CODEONE, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/daft.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# DAFT Code
|
3
3
|
class Daft < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DAFT, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/data_matrix.rb
CHANGED
@@ -10,10 +10,10 @@ module Zint
|
|
10
10
|
DM_EDIFACT = 5
|
11
11
|
DM_BASE256 = 6
|
12
12
|
|
13
|
-
def initialize(value: nil, input_file: nil, type: Zint::BARCODE_DATAMATRIX,
|
14
|
-
raise ArgumentError, "Invalid
|
13
|
+
def initialize(value: nil, input_file: nil, type: Zint::BARCODE_DATAMATRIX, symbology: type, **kwargs)
|
14
|
+
raise ArgumentError, "Invalid symbology for DataMatrix code" unless [Zint::BARCODE_DATAMATRIX, Zint::BARCODE_HIBC_DM].include?(symbology)
|
15
15
|
|
16
|
-
super(value: value, input_file: input_file,
|
16
|
+
super(value: value, input_file: input_file, symbology: symbology, option_3: Zint::DM_SQUARE, **kwargs)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/zint/dbarexp.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Expanded
|
3
3
|
class DbarExp < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_EXP, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dbarexpstk.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Expanded Stacked
|
3
3
|
class DbarExpstk < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_EXPSTK, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dbarltd.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Limited
|
3
3
|
class DbarLtd < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_LTD, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dbaromn.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Omnidirectional
|
3
3
|
class DbarOmn < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_OMN, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dbaromnstk.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Stacked Omnidirectional
|
3
3
|
class DbarOmnstk < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_OMNSTK, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dbarstk.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# GS1 DataBar Stacked
|
3
3
|
class DbarStk < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DBAR_STK, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dependencies.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
module Zint
|
2
2
|
ZINT_VERSION = ENV["ZINT_VERSION"] || "2.12.0"
|
3
|
-
# ZINT_SOURCE_URI = "file://#{File.join(File.expand_path("../../../", __FILE__))}/ports/archives/zint-#{ZINT_VERSION}-src.tar.gz"
|
4
3
|
ZINT_SOURCE_URI = "https://downloads.sourceforge.net/zint/zint-#{ZINT_VERSION}-src.tar.gz"
|
5
4
|
ZINT_SOURCE_SHA1 = "6e16036d9822895edededd96e65da755ef3fdb69"
|
6
5
|
|
data/lib/zint/dot_code.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# DotCode
|
3
3
|
class DotCode < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DOTCODE, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dpd.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# DPD Code
|
3
3
|
class Dpd < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DPD, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dpident.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Deutsche Post Identcode
|
3
3
|
class Dpident < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DPIDENT, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/dpleit.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Deutsche Post Leitcode
|
3
3
|
class Dpleit < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_DPLEIT, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/ean128.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Legacy
|
3
3
|
class Ean128 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_EAN128, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/ean14.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# EAN-14
|
3
3
|
class Ean14 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_EAN14, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/eanx.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# EAN (European Article Number)
|
3
3
|
class Eanx < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_EANX, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/eanxchk.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# EAN + Check Digit
|
3
3
|
class EanxChk < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_EANX_CHK, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/excode39.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Extended Code 39
|
3
3
|
class Excode39 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_EXCODE39, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/fim.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Facing Identification Mark
|
3
3
|
class Fim < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_FIM, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/flat.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Flattermarken
|
3
3
|
class Flat < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_FLAT, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/grid_matrix.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Grid Matrix
|
3
3
|
class GridMatrix < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_GRIDMATRIX, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/gs1_128.rb
CHANGED
@@ -3,8 +3,8 @@ module Zint
|
|
3
3
|
# GS1-128
|
4
4
|
class Gs1_128 < Barcode
|
5
5
|
# standard:enable Naming/ClassAndModuleCamelCase
|
6
|
-
def initialize(value: nil, input_file: nil,
|
7
|
-
super(value: value, input_file: input_file,
|
6
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
7
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_GS1_128, **kwargs)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/zint/hanxin.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Han Xin (Chinese Sensible) Code
|
3
3
|
class Hanxin < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HANXIN, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibc128.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC (Health Industry Barcode) Code 128
|
3
3
|
class Hibc128 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_128, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibc39.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC Code 39
|
3
3
|
class Hibc39 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_39, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcaztec.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC Aztec Code
|
3
3
|
class HibcAztec < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_AZTEC, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcblockf.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC Codablock-F
|
3
3
|
class HibcBlockf < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_BLOCKF, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcdm.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC Data Matrix
|
3
3
|
class HibcDm < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_DM, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcmicpdf.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC MicroPDF417
|
3
3
|
class HibcMicpdf < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_MICPDF, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcpdf.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC PDF417
|
3
3
|
class HibcPdf < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_PDF, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/hibcqr.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# HIBC QR Code
|
3
3
|
class HibcQr < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_HIBC_QR, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/isbnx.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# ISBN
|
3
3
|
class Isbnx < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_ISBNX, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/itf14.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# ITF-14
|
3
3
|
class Itf14 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_ITF14, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/japan_post.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Japanese Postal Code
|
3
3
|
class JapanPost < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_JAPANPOST, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/kix.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Dutch Post KIX Code
|
3
3
|
class Kix < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_KIX, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/korea_post.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Korea Post
|
3
3
|
class KoreaPost < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_KOREAPOST, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/logmars.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# LOGMARS
|
3
3
|
class Logmars < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_LOGMARS, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/mailmark.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Legacy
|
3
3
|
class Mailmark < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MAILMARK, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/mailmark_2d.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Royal Mail 2D Mailmark (CMDM) (Data Matrix)
|
3
3
|
class Mailmark2D < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MAILMARK_2D, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/mailmark_4s.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Royal Mail 4-State Mailmark
|
3
3
|
class Mailmark4S < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MAILMARK_4S, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/maxi_code.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# MaxiCode
|
3
3
|
class MaxiCode < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MAXICODE, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/micro_pdf417.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# MicroPDF417
|
3
3
|
class MicroPdf417 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MICROPDF417, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/micro_qr.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Micro QR Code
|
3
3
|
class MicroQr < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MICROQR, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/msiplessey.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# MSI Plessey
|
3
3
|
class MsiPlessey < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_MSI_PLESSEY, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/nve18.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# NVE-18 (SSCC-18)
|
3
3
|
class Nve18 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_NVE18, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/one_code.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Legacy
|
3
3
|
class OneCode < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_ONECODE, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/pdf417.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# PDF417
|
3
3
|
class Pdf417 < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_PDF417, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/pdf417comp.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Compact PDF417 (Truncated PDF417)
|
3
3
|
class Pdf417comp < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_PDF417COMP, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/zint/pdf417trunc.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Zint
|
2
2
|
# Legacy
|
3
3
|
class Pdf417trunc < Barcode
|
4
|
-
def initialize(value: nil, input_file: nil,
|
5
|
-
super(value: value, input_file: input_file,
|
4
|
+
def initialize(value: nil, input_file: nil, **kwargs)
|
5
|
+
super(value: value, input_file: input_file, symbology: Zint::BARCODE_PDF417TRUNC, **kwargs)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|