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.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +9 -0
  3. data/README.md +12 -4
  4. data/lib/zint/aus_post.rb +2 -2
  5. data/lib/zint/aus_redirect.rb +2 -2
  6. data/lib/zint/aus_reply.rb +2 -2
  7. data/lib/zint/aus_route.rb +2 -2
  8. data/lib/zint/azrune.rb +2 -2
  9. data/lib/zint/aztec.rb +2 -2
  10. data/lib/zint/barcode.rb +33 -75
  11. data/lib/zint/bc_412.rb +2 -2
  12. data/lib/zint/c25iata.rb +2 -2
  13. data/lib/zint/c25ind.rb +2 -2
  14. data/lib/zint/c25inter.rb +2 -2
  15. data/lib/zint/c25logic.rb +2 -2
  16. data/lib/zint/c25matrix.rb +2 -2
  17. data/lib/zint/c25standard.rb +2 -2
  18. data/lib/zint/cep_net.rb +2 -2
  19. data/lib/zint/channel.rb +2 -2
  20. data/lib/zint/codabar.rb +2 -2
  21. data/lib/zint/codablock_f.rb +2 -2
  22. data/lib/zint/code11.rb +2 -2
  23. data/lib/zint/code128.rb +2 -2
  24. data/lib/zint/code128ab.rb +2 -2
  25. data/lib/zint/code16k.rb +2 -2
  26. data/lib/zint/code32.rb +2 -2
  27. data/lib/zint/code39.rb +2 -2
  28. data/lib/zint/code49.rb +2 -2
  29. data/lib/zint/code93.rb +2 -2
  30. data/lib/zint/code_one.rb +2 -2
  31. data/lib/zint/daft.rb +2 -2
  32. data/lib/zint/data_matrix.rb +3 -3
  33. data/lib/zint/dbarexp.rb +2 -2
  34. data/lib/zint/dbarexpstk.rb +2 -2
  35. data/lib/zint/dbarltd.rb +2 -2
  36. data/lib/zint/dbaromn.rb +2 -2
  37. data/lib/zint/dbaromnstk.rb +2 -2
  38. data/lib/zint/dbarstk.rb +2 -2
  39. data/lib/zint/dependencies.rb +0 -1
  40. data/lib/zint/dot_code.rb +2 -2
  41. data/lib/zint/dpd.rb +2 -2
  42. data/lib/zint/dpident.rb +2 -2
  43. data/lib/zint/dpleit.rb +2 -2
  44. data/lib/zint/ean128.rb +2 -2
  45. data/lib/zint/ean14.rb +2 -2
  46. data/lib/zint/eanx.rb +2 -2
  47. data/lib/zint/eanxchk.rb +2 -2
  48. data/lib/zint/excode39.rb +2 -2
  49. data/lib/zint/fim.rb +2 -2
  50. data/lib/zint/flat.rb +2 -2
  51. data/lib/zint/grid_matrix.rb +2 -2
  52. data/lib/zint/gs1_128.rb +2 -2
  53. data/lib/zint/hanxin.rb +2 -2
  54. data/lib/zint/hibc128.rb +2 -2
  55. data/lib/zint/hibc39.rb +2 -2
  56. data/lib/zint/hibcaztec.rb +2 -2
  57. data/lib/zint/hibcblockf.rb +2 -2
  58. data/lib/zint/hibcdm.rb +2 -2
  59. data/lib/zint/hibcmicpdf.rb +2 -2
  60. data/lib/zint/hibcpdf.rb +2 -2
  61. data/lib/zint/hibcqr.rb +2 -2
  62. data/lib/zint/isbnx.rb +2 -2
  63. data/lib/zint/itf14.rb +2 -2
  64. data/lib/zint/japan_post.rb +2 -2
  65. data/lib/zint/kix.rb +2 -2
  66. data/lib/zint/korea_post.rb +2 -2
  67. data/lib/zint/logmars.rb +2 -2
  68. data/lib/zint/mailmark.rb +2 -2
  69. data/lib/zint/mailmark_2d.rb +2 -2
  70. data/lib/zint/mailmark_4s.rb +2 -2
  71. data/lib/zint/maxi_code.rb +2 -2
  72. data/lib/zint/micro_pdf417.rb +2 -2
  73. data/lib/zint/micro_qr.rb +2 -2
  74. data/lib/zint/msiplessey.rb +2 -2
  75. data/lib/zint/nve18.rb +2 -2
  76. data/lib/zint/one_code.rb +2 -2
  77. data/lib/zint/pdf417.rb +2 -2
  78. data/lib/zint/pdf417comp.rb +2 -2
  79. data/lib/zint/pdf417trunc.rb +2 -2
  80. data/lib/zint/pharma.rb +2 -2
  81. data/lib/zint/pharmatwo.rb +2 -2
  82. data/lib/zint/planet.rb +2 -2
  83. data/lib/zint/plessey.rb +2 -2
  84. data/lib/zint/postnet.rb +2 -2
  85. data/lib/zint/pzn.rb +2 -2
  86. data/lib/zint/qr.rb +2 -2
  87. data/lib/zint/rmqr.rb +2 -2
  88. data/lib/zint/rss14.rb +2 -2
  89. data/lib/zint/rss14stack.rb +2 -2
  90. data/lib/zint/rss14stackomni.rb +2 -2
  91. data/lib/zint/rssexp.rb +2 -2
  92. data/lib/zint/rssexpstack.rb +2 -2
  93. data/lib/zint/rssltd.rb +2 -2
  94. data/lib/zint/telepen.rb +2 -2
  95. data/lib/zint/telepennum.rb +2 -2
  96. data/lib/zint/ultra.rb +2 -2
  97. data/lib/zint/upc_a.rb +2 -2
  98. data/lib/zint/upc_a_chk.rb +2 -2
  99. data/lib/zint/upc_e.rb +2 -2
  100. data/lib/zint/upc_e_chk.rb +2 -2
  101. data/lib/zint/upnqr.rb +2 -2
  102. data/lib/zint/upu_s10.rb +2 -2
  103. data/lib/zint/uspsimail.rb +2 -2
  104. data/lib/zint/version.rb +1 -1
  105. data/lib/zint/vin.rb +2 -2
  106. 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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_CODE49, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_CODE93, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_CODEONE, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DAFT, options: options)
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
@@ -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, options: {})
14
- raise ArgumentError, "Invalid type for DataMatrix code" unless [Zint::BARCODE_DATAMATRIX, Zint::BARCODE_HIBC_DM].include?(type)
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, type: type, options: {option_3: Zint::DM_SQUARE}.merge(options))
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_EXP, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_EXPSTK, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_LTD, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_OMN, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_OMNSTK, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DBAR_STK, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DOTCODE, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DPD, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DPIDENT, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_DPLEIT, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_EAN128, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_EAN14, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_EANX, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_EANX_CHK, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_EXCODE39, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_FIM, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_FLAT, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_GRIDMATRIX, options: options)
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, options: {})
7
- super(value: value, input_file: input_file, type: Zint::BARCODE_GS1_128, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HANXIN, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_128, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_39, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_AZTEC, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_BLOCKF, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_DM, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_MICPDF, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_PDF, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_HIBC_QR, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_ISBNX, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_ITF14, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_JAPANPOST, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_KIX, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_KOREAPOST, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_LOGMARS, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MAILMARK, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MAILMARK_2D, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MAILMARK_4S, options: options)
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
@@ -1,8 +1,8 @@
1
1
  module Zint
2
2
  # MaxiCode
3
3
  class MaxiCode < Barcode
4
- def initialize(value: nil, input_file: nil, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MAXICODE, options: options)
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
@@ -1,8 +1,8 @@
1
1
  module Zint
2
2
  # MicroPDF417
3
3
  class MicroPdf417 < Barcode
4
- def initialize(value: nil, input_file: nil, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MICROPDF417, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MICROQR, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_MSI_PLESSEY, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_NVE18, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_ONECODE, options: options)
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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_PDF417, options: options)
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
@@ -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, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_PDF417COMP, options: options)
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
@@ -1,8 +1,8 @@
1
1
  module Zint
2
2
  # Legacy
3
3
  class Pdf417trunc < Barcode
4
- def initialize(value: nil, input_file: nil, options: {})
5
- super(value: value, input_file: input_file, type: Zint::BARCODE_PDF417TRUNC, options: options)
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