ruby-zint 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +2 -0
  3. data/Gemfile +2 -0
  4. data/README.md +30 -8
  5. data/Rakefile +12 -0
  6. data/ext/ruby-zint/extconf.rb +86 -0
  7. data/lib/zint/aus_post.rb +1 -0
  8. data/lib/zint/aus_redirect.rb +1 -0
  9. data/lib/zint/aus_reply.rb +1 -0
  10. data/lib/zint/aus_route.rb +1 -0
  11. data/lib/zint/azrune.rb +1 -0
  12. data/lib/zint/aztec.rb +1 -0
  13. data/lib/zint/barcode.rb +439 -47
  14. data/lib/zint/{noascii.rb → bc_412.rb} +3 -2
  15. data/lib/zint/c25iata.rb +1 -0
  16. data/lib/zint/c25ind.rb +1 -0
  17. data/lib/zint/c25inter.rb +1 -0
  18. data/lib/zint/c25logic.rb +1 -0
  19. data/lib/zint/c25matrix.rb +1 -0
  20. data/lib/zint/c25standard.rb +1 -0
  21. data/lib/zint/{box.rb → cep_net.rb} +3 -2
  22. data/lib/zint/channel.rb +1 -0
  23. data/lib/zint/codabar.rb +1 -0
  24. data/lib/zint/codablock_f.rb +1 -0
  25. data/lib/zint/code11.rb +1 -0
  26. data/lib/zint/code128.rb +1 -0
  27. data/lib/zint/{dotty_mode.rb → code128ab.rb} +3 -2
  28. data/lib/zint/code128b.rb +2 -4
  29. data/lib/zint/code16k.rb +1 -0
  30. data/lib/zint/code32.rb +1 -0
  31. data/lib/zint/code39.rb +1 -0
  32. data/lib/zint/code49.rb +1 -0
  33. data/lib/zint/code93.rb +1 -0
  34. data/lib/zint/code_one.rb +1 -0
  35. data/lib/zint/constants/capability_flags.rb +14 -11
  36. data/lib/zint/constants/input_data_types.rb +8 -7
  37. data/lib/zint/constants/output_options.rb +14 -11
  38. data/lib/zint/constants/symbologies.rb +13 -6
  39. data/lib/zint/constants/warn_levels.rb +1 -1
  40. data/lib/zint/daft.rb +1 -0
  41. data/lib/zint/data_matrix.rb +1 -0
  42. data/lib/zint/dbarexp.rb +1 -0
  43. data/lib/zint/dbarexpstk.rb +1 -0
  44. data/lib/zint/dbarltd.rb +1 -0
  45. data/lib/zint/dbaromn.rb +1 -0
  46. data/lib/zint/dbaromnstk.rb +1 -0
  47. data/lib/zint/dbarstk.rb +1 -0
  48. data/lib/zint/dependencies.rb +8 -0
  49. data/lib/zint/dot_code.rb +1 -0
  50. data/lib/zint/dpd.rb +1 -0
  51. data/lib/zint/dpident.rb +1 -0
  52. data/lib/zint/dpleit.rb +1 -0
  53. data/lib/zint/ean128.rb +1 -0
  54. data/lib/zint/ean14.rb +1 -0
  55. data/lib/zint/eanx.rb +1 -0
  56. data/lib/zint/eanxchk.rb +1 -0
  57. data/lib/zint/excode39.rb +1 -0
  58. data/lib/zint/fim.rb +1 -0
  59. data/lib/zint/flat.rb +1 -0
  60. data/lib/zint/grid_matrix.rb +1 -0
  61. data/lib/zint/gs1_128.rb +1 -0
  62. data/lib/zint/hanxin.rb +1 -0
  63. data/lib/zint/hibc128.rb +1 -0
  64. data/lib/zint/hibc39.rb +1 -0
  65. data/lib/zint/hibcaztec.rb +1 -0
  66. data/lib/zint/hibcblockf.rb +1 -0
  67. data/lib/zint/hibcdm.rb +1 -0
  68. data/lib/zint/hibcmicpdf.rb +1 -0
  69. data/lib/zint/hibcpdf.rb +1 -0
  70. data/lib/zint/hibcqr.rb +1 -0
  71. data/lib/zint/isbnx.rb +1 -0
  72. data/lib/zint/itf14.rb +1 -0
  73. data/lib/zint/japan_post.rb +1 -0
  74. data/lib/zint/kix.rb +1 -0
  75. data/lib/zint/korea_post.rb +1 -0
  76. data/lib/zint/logmars.rb +1 -0
  77. data/lib/zint/mailmark.rb +1 -0
  78. data/lib/zint/mailmark_2d.rb +8 -0
  79. data/lib/zint/mailmark_4s.rb +8 -0
  80. data/lib/zint/maxi_code.rb +1 -0
  81. data/lib/zint/micro_pdf417.rb +1 -0
  82. data/lib/zint/micro_qr.rb +1 -0
  83. data/lib/zint/msiplessey.rb +1 -0
  84. data/lib/zint/native.rb +87 -0
  85. data/lib/zint/nve18.rb +1 -0
  86. data/lib/zint/one_code.rb +1 -0
  87. data/lib/zint/pdf417.rb +1 -0
  88. data/lib/zint/pdf417comp.rb +1 -0
  89. data/lib/zint/pdf417trunc.rb +1 -0
  90. data/lib/zint/pharma.rb +1 -0
  91. data/lib/zint/pharmatwo.rb +1 -0
  92. data/lib/zint/planet.rb +1 -0
  93. data/lib/zint/plessey.rb +1 -0
  94. data/lib/zint/postnet.rb +1 -0
  95. data/lib/zint/pzn.rb +1 -0
  96. data/lib/zint/qr.rb +1 -0
  97. data/lib/zint/rmqr.rb +1 -0
  98. data/lib/zint/rss14.rb +1 -0
  99. data/lib/zint/rss14stack.rb +1 -0
  100. data/lib/zint/rss14stackomni.rb +1 -0
  101. data/lib/zint/rssexp.rb +1 -0
  102. data/lib/zint/rssexpstack.rb +1 -0
  103. data/lib/zint/rssltd.rb +1 -0
  104. data/lib/zint/structs/structapp.rb +25 -0
  105. data/lib/zint/structs/symbol.rb +44 -36
  106. data/lib/zint/structs/vector.rb +47 -5
  107. data/lib/zint/structs/vector_circle.rb +32 -0
  108. data/lib/zint/structs/vector_hexagon.rb +31 -0
  109. data/lib/zint/structs/vector_rect.rb +37 -0
  110. data/lib/zint/structs/vector_string.rb +43 -8
  111. data/lib/zint/telepen.rb +1 -0
  112. data/lib/zint/telepennum.rb +1 -0
  113. data/lib/zint/ultra.rb +1 -0
  114. data/lib/zint/upc_a.rb +1 -0
  115. data/lib/zint/upc_a_chk.rb +1 -0
  116. data/lib/zint/upc_e.rb +1 -0
  117. data/lib/zint/upc_e_chk.rb +1 -0
  118. data/lib/zint/upnqr.rb +1 -0
  119. data/lib/zint/{bind.rb → upu_s10.rb} +3 -2
  120. data/lib/zint/uspsimail.rb +1 -0
  121. data/lib/zint/version.rb +1 -1
  122. data/lib/zint/vin.rb +1 -0
  123. data/lib/zint/zint_recipe.rb +27 -0
  124. data/lib/zint.rb +15 -83
  125. data/ports/archives/zint-2.12.0-src.tar.gz +0 -0
  126. metadata +34 -12
  127. data/Gemfile.lock +0 -79
  128. data/lib/zint/stdout.rb +0 -7
  129. data/lib/zint/structs/circle.rb +0 -11
  130. data/lib/zint/structs/hexagon.rb +0 -11
  131. data/lib/zint/structs/rect.rb +0 -12
data/lib/zint.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "ffi"
2
2
 
3
3
  require "zint/version"
4
+ require "zint/dependencies"
4
5
 
5
6
  # Zint constants
6
7
  require "zint/constants/capability_flags"
@@ -14,12 +15,14 @@ require "zint/constants/warn_levels"
14
15
  require "zint/constants/warnings"
15
16
 
16
17
  # Zint structs
17
- require "zint/structs/circle"
18
- require "zint/structs/hexagon"
19
- require "zint/structs/rect"
20
- require "zint/structs/symbol"
18
+ require "zint/structs/vector_circle"
19
+ require "zint/structs/vector_hexagon"
20
+ require "zint/structs/vector_rect"
21
21
  require "zint/structs/vector_string"
22
22
  require "zint/structs/vector"
23
+ require "zint/structs/structapp"
24
+ require "zint/structs/symbol"
25
+ require "zint/native"
23
26
 
24
27
  module Zint
25
28
  # Zint constants
@@ -34,6 +37,7 @@ module Zint
34
37
  include Constants::Warnings
35
38
 
36
39
  # Barcode
40
+ autoload :Bc412, "zint/bc_412"
37
41
  autoload :Bitmap, "zint/bitmap"
38
42
  autoload :BitmapPixel, "zint/bitmap_pixel"
39
43
  autoload :Barcode, "zint/barcode"
@@ -51,12 +55,14 @@ module Zint
51
55
  autoload :C25logic, "zint/c25logic"
52
56
  autoload :C25matrix, "zint/c25matrix"
53
57
  autoload :C25standard, "zint/c25standard"
58
+ autoload :CepNet, "zint/cep_net"
54
59
  autoload :Channel, "zint/channel"
55
60
  autoload :Codabar, "zint/codabar"
56
61
  autoload :CodablockF, "zint/codablock_f"
57
62
  autoload :Code11, "zint/code11"
58
63
  autoload :Code128, "zint/code128"
59
- autoload :Code128b, "zint/code128b"
64
+ autoload :Code128AB, "zint/code128ab"
65
+ autoload :Code128B, "zint/code128b"
60
66
  autoload :Code16k, "zint/code16k"
61
67
  autoload :Code32, "zint/code32"
62
68
  autoload :Code39, "zint/code39"
@@ -101,6 +107,8 @@ module Zint
101
107
  autoload :KoreaPost, "zint/korea_post"
102
108
  autoload :Logmars, "zint/logmars"
103
109
  autoload :Mailmark, "zint/mailmark"
110
+ autoload :Mailmark2D, "zint/mailmark_2d"
111
+ autoload :Mailmark4S, "zint/mailmark_4s"
104
112
  autoload :MaxiCode, "zint/maxi_code"
105
113
  autoload :MicroPdf417, "zint/micro_pdf417"
106
114
  autoload :MicroQr, "zint/micro_qr"
@@ -134,11 +142,10 @@ module Zint
134
142
  autoload :UpcE, "zint/upc_e"
135
143
  autoload :UpcEChk, "zint/upc_e_chk"
136
144
  autoload :Upnqr, "zint/upnqr"
145
+ autoload :UpuS10, "zint/upu_s10"
137
146
  autoload :UspsImail, "zint/uspsimail"
138
147
  autoload :Vin, "zint/vin"
139
148
 
140
- extend FFI::Library
141
-
142
149
  class Error < StandardError; end
143
150
 
144
151
  ERROR_CLASS_FOR_RESULT = {}
@@ -152,85 +159,10 @@ module Zint
152
159
  ERROR_CLASS_FOR_RESULT[v] = klass
153
160
  end
154
161
 
155
- # Raises specific error for API return code
156
- #
157
- # @param res [Symbol, Integer] API return code
158
- # @param text [String] error text
159
- # @raise [Error]
160
- def self.raise_error(res, text)
161
- klass = ERROR_CLASS_FOR_RESULT[res.is_a?(Symbol) ? Zint::ERRORS[res] : res]
162
- raise klass, text
163
- end
164
-
165
- ffi_lib %w[libzint.so.2.10 libzint zint]
166
-
167
- # Error codes (API return values)
168
- enum :error_code, [Zint::WARNINGS, Zint::ERRORS].map { |h| h.to_a }.flatten
169
-
170
- # Aliases for better method signatures
171
- typedef :pointer, :zint_symbol
172
- typedef :pointer, :filename
173
- typedef :int32, :length
174
- typedef :int32, :rotate_angle
175
- typedef :int32, :symbol_id
176
- typedef :uint32, :cap_flag
177
- typedef :string, :source
178
-
179
- # Create and initialize a symbol structure
180
- attach_function(:ZBarcode_Create, :ZBarcode_Create, [], :zint_symbol)
181
-
182
- # Free any output buffers that may have been created and initialize output fields
183
- attach_function(:ZBarcode_Clear, :ZBarcode_Clear, [:zint_symbol], :void)
184
-
185
- # Free a symbol structure, including any output buffers
186
- attach_function(:ZBarcode_Delete, :ZBarcode_Delete, [:zint_symbol], :void)
187
-
188
- # Encode a barcode. If `length` is 0, `source` must be NUL-terminated.
189
- attach_function(:ZBarcode_Encode, :ZBarcode_Encode, [:zint_symbol, :source, :length], :error_code)
190
-
191
- # Encode a barcode using input data from file `filename`
192
- attach_function(:ZBarcode_Encode_File, :ZBarcode_Encode_File, [:zint_symbol, :filename], :error_code)
193
-
194
- # Output a previously encoded symbol to file `symbol->outfile`
195
- attach_function(:ZBarcode_Print, :ZBarcode_Print, [:zint_symbol, :rotate_angle], :error_code)
196
-
197
- # Encode and output a symbol to file `symbol->outfile`
198
- attach_function(:ZBarcode_Encode_and_Print, :ZBarcode_Encode_and_Print, [:zint_symbol, :source, :length, :rotate_angle], :error_code)
199
-
200
- # Encode a symbol using input data from file `filename` and output to file `symbol->outfile`
201
- attach_function(:ZBarcode_Encode_File_and_Print, :ZBarcode_Encode_File_and_Print, [:zint_symbol, :filename, :rotate_angle], :error_code)
202
-
203
- # Output a previously encoded symbol to memory as raster (`symbol->bitmap`)
204
- attach_function(:ZBarcode_Buffer, :ZBarcode_Buffer, [:zint_symbol, :rotate_angle], :error_code)
205
-
206
- # Encode and output a symbol to memory as raster (`symbol->bitmap`)
207
- attach_function(:ZBarcode_Encode_and_Buffer, :ZBarcode_Encode_and_Buffer, [:zint_symbol, :source, :length, :rotate_angle], :error_code)
208
-
209
- # Encode a symbol using input data from file `filename` and output to memory as raster (`symbol->bitmap`)
210
- attach_function(:ZBarcode_Encode_File_and_Buffer, :ZBarcode_Encode_File_and_Buffer, [:zint_symbol, :filename, :rotate_angle], :error_code)
211
-
212
- # Output a previously encoded symbol to memory as vector (`symbol->vector`)
213
- attach_function(:ZBarcode_Buffer_Vector, :ZBarcode_Buffer_Vector, [:zint_symbol, :rotate_angle], :error_code)
214
-
215
- # Encode and output a symbol to memory as vector (`symbol->vector`)
216
- attach_function(:ZBarcode_Encode_and_Buffer_Vector, :ZBarcode_Encode_and_Buffer_Vector, [:zint_symbol, :source, :length, :rotate_angle], :error_code)
217
-
218
- # Encode a symbol using input data from file `filename` and output to memory as vector (`symbol->vector`)
219
- attach_function(:ZBarcode_Encode_File_and_Buffer_Vector, :ZBarcode_Encode_File_and_Buffer_Vector, [:zint_symbol, :filename, :rotate_angle], :error_code)
220
-
221
- # Is `symbol_id` a recognized symbology?
222
- attach_function(:ZBarcode_ValidID, :ZBarcode_ValidID, [:symbol_id], :bool)
223
-
224
- # Return the capability flags for symbology `symbol_id` that match `cap_flag`
225
- attach_function(:ZBarcode_Cap, :ZBarcode_Cap, [:symbol_id, :cap_flag], :uint32)
226
-
227
- # Return the version of Zint linked to
228
- attach_function(:ZBarcode_Version, :ZBarcode_Version, [], :int32)
229
-
230
162
  # Returns library version of the current zint
231
163
  #
232
164
  # @return [Integer] library version
233
165
  def self.library_version
234
- Zint.ZBarcode_Version
166
+ Native.ZBarcode_Version
235
167
  end
236
168
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-zint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elias Fröhner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -24,20 +24,35 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: mini_portile2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
27
41
  description:
28
42
  email:
29
43
  - apiwalker96@gmail.com
30
44
  executables: []
31
- extensions: []
45
+ extensions:
46
+ - ext/ruby-zint/extconf.rb
32
47
  extra_rdoc_files: []
33
48
  files:
34
49
  - ".rspec"
35
50
  - ".standard.yml"
36
51
  - Gemfile
37
- - Gemfile.lock
38
52
  - LICENSE.txt
39
53
  - README.md
40
54
  - Rakefile
55
+ - ext/ruby-zint/extconf.rb
41
56
  - lib/ruby-zint.rb
42
57
  - lib/zint.rb
43
58
  - lib/zint/aus_post.rb
@@ -47,21 +62,22 @@ files:
47
62
  - lib/zint/azrune.rb
48
63
  - lib/zint/aztec.rb
49
64
  - lib/zint/barcode.rb
50
- - lib/zint/bind.rb
65
+ - lib/zint/bc_412.rb
51
66
  - lib/zint/bitmap.rb
52
67
  - lib/zint/bitmap_pixel.rb
53
- - lib/zint/box.rb
54
68
  - lib/zint/c25iata.rb
55
69
  - lib/zint/c25ind.rb
56
70
  - lib/zint/c25inter.rb
57
71
  - lib/zint/c25logic.rb
58
72
  - lib/zint/c25matrix.rb
59
73
  - lib/zint/c25standard.rb
74
+ - lib/zint/cep_net.rb
60
75
  - lib/zint/channel.rb
61
76
  - lib/zint/codabar.rb
62
77
  - lib/zint/codablock_f.rb
63
78
  - lib/zint/code11.rb
64
79
  - lib/zint/code128.rb
80
+ - lib/zint/code128ab.rb
65
81
  - lib/zint/code128b.rb
66
82
  - lib/zint/code16k.rb
67
83
  - lib/zint/code32.rb
@@ -86,8 +102,8 @@ files:
86
102
  - lib/zint/dbaromn.rb
87
103
  - lib/zint/dbaromnstk.rb
88
104
  - lib/zint/dbarstk.rb
105
+ - lib/zint/dependencies.rb
89
106
  - lib/zint/dot_code.rb
90
- - lib/zint/dotty_mode.rb
91
107
  - lib/zint/dpd.rb
92
108
  - lib/zint/dpident.rb
93
109
  - lib/zint/dpleit.rb
@@ -116,11 +132,13 @@ files:
116
132
  - lib/zint/korea_post.rb
117
133
  - lib/zint/logmars.rb
118
134
  - lib/zint/mailmark.rb
135
+ - lib/zint/mailmark_2d.rb
136
+ - lib/zint/mailmark_4s.rb
119
137
  - lib/zint/maxi_code.rb
120
138
  - lib/zint/micro_pdf417.rb
121
139
  - lib/zint/micro_qr.rb
122
140
  - lib/zint/msiplessey.rb
123
- - lib/zint/noascii.rb
141
+ - lib/zint/native.rb
124
142
  - lib/zint/nve18.rb
125
143
  - lib/zint/one_code.rb
126
144
  - lib/zint/pdf417.rb
@@ -140,12 +158,12 @@ files:
140
158
  - lib/zint/rssexp.rb
141
159
  - lib/zint/rssexpstack.rb
142
160
  - lib/zint/rssltd.rb
143
- - lib/zint/stdout.rb
144
- - lib/zint/structs/circle.rb
145
- - lib/zint/structs/hexagon.rb
146
- - lib/zint/structs/rect.rb
161
+ - lib/zint/structs/structapp.rb
147
162
  - lib/zint/structs/symbol.rb
148
163
  - lib/zint/structs/vector.rb
164
+ - lib/zint/structs/vector_circle.rb
165
+ - lib/zint/structs/vector_hexagon.rb
166
+ - lib/zint/structs/vector_rect.rb
149
167
  - lib/zint/structs/vector_string.rb
150
168
  - lib/zint/telepen.rb
151
169
  - lib/zint/telepennum.rb
@@ -155,15 +173,19 @@ files:
155
173
  - lib/zint/upc_e.rb
156
174
  - lib/zint/upc_e_chk.rb
157
175
  - lib/zint/upnqr.rb
176
+ - lib/zint/upu_s10.rb
158
177
  - lib/zint/uspsimail.rb
159
178
  - lib/zint/version.rb
160
179
  - lib/zint/vin.rb
180
+ - lib/zint/zint_recipe.rb
181
+ - ports/archives/zint-2.12.0-src.tar.gz
161
182
  homepage: https://github.com/api-walker/ruby-zint
162
183
  licenses:
163
184
  - MIT
164
185
  metadata:
165
186
  homepage_uri: https://github.com/api-walker/ruby-zint
166
187
  source_code_uri: https://github.com/api-walker/ruby-zint
188
+ msys2_mingw_dependencies: cmake libpng
167
189
  post_install_message:
168
190
  rdoc_options: []
169
191
  require_paths:
data/Gemfile.lock DELETED
@@ -1,79 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ruby-zint (1.0.0)
5
- ffi (~> 1.15)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- byebug (11.1.3)
12
- chunky_png (1.4.0)
13
- diff-lcs (1.5.0)
14
- docile (1.4.0)
15
- ffi (1.15.5)
16
- json (2.6.3)
17
- language_server-protocol (3.17.0.3)
18
- parallel (1.22.1)
19
- parser (3.2.1.1)
20
- ast (~> 2.4.1)
21
- rainbow (3.1.1)
22
- rake (13.0.6)
23
- regexp_parser (2.7.0)
24
- rexml (3.2.5)
25
- rspec (3.12.0)
26
- rspec-core (~> 3.12.0)
27
- rspec-expectations (~> 3.12.0)
28
- rspec-mocks (~> 3.12.0)
29
- rspec-core (3.12.1)
30
- rspec-support (~> 3.12.0)
31
- rspec-expectations (3.12.2)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.12.0)
34
- rspec-mocks (3.12.5)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.12.0)
37
- rspec-support (3.12.0)
38
- rubocop (1.48.1)
39
- json (~> 2.3)
40
- parallel (~> 1.10)
41
- parser (>= 3.2.0.0)
42
- rainbow (>= 2.2.2, < 4.0)
43
- regexp_parser (>= 1.8, < 3.0)
44
- rexml (>= 3.2.5, < 4.0)
45
- rubocop-ast (>= 1.26.0, < 2.0)
46
- ruby-progressbar (~> 1.7)
47
- unicode-display_width (>= 2.4.0, < 3.0)
48
- rubocop-ast (1.28.0)
49
- parser (>= 3.2.1.0)
50
- rubocop-performance (1.16.0)
51
- rubocop (>= 1.7.0, < 2.0)
52
- rubocop-ast (>= 0.4.0)
53
- ruby-progressbar (1.13.0)
54
- simplecov (0.21.2)
55
- docile (~> 1.1)
56
- simplecov-html (~> 0.11)
57
- simplecov_json_formatter (~> 0.1)
58
- simplecov-html (0.12.3)
59
- simplecov_json_formatter (0.1.4)
60
- standard (1.25.3)
61
- language_server-protocol (~> 3.17.0.2)
62
- rubocop (~> 1.48.1)
63
- rubocop-performance (~> 1.16.0)
64
- unicode-display_width (2.4.2)
65
-
66
- PLATFORMS
67
- x86_64-linux
68
-
69
- DEPENDENCIES
70
- byebug
71
- chunky_png
72
- rake (~> 13.0)
73
- rspec (~> 3.0)
74
- ruby-zint!
75
- simplecov
76
- standard (~> 1.3)
77
-
78
- BUNDLED WITH
79
- 2.4.8
data/lib/zint/stdout.rb DELETED
@@ -1,7 +0,0 @@
1
- module Zint
2
- class Stdout < Barcode
3
- def initialize(value: nil, input_file: nil, options: {})
4
- super(value: value, input_file: input_file, type: Zint::BARCODE_STDOUT, options: options)
5
- end
6
- end
7
- end
@@ -1,11 +0,0 @@
1
- module Zint
2
- module Structs
3
- class Circle < FFI::Struct
4
- layout :x, :float,
5
- :y, :float,
6
- :diameter, :float,
7
- :colour, :int,
8
- :next, :pointer
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- module Zint
2
- module Structs
3
- class Hexagon < FFI::Struct
4
- layout :x, :float,
5
- :y, :float,
6
- :diameter, :float,
7
- :rotation, :int,
8
- :next, :pointer
9
- end
10
- end
11
- end
@@ -1,12 +0,0 @@
1
- module Zint
2
- module Structs
3
- class Rect < FFI::Struct
4
- layout :x, :float,
5
- :y, :float,
6
- :height, :float,
7
- :width, :float,
8
- :colour, :int,
9
- :next, :pointer
10
- end
11
- end
12
- end