fastqr 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CMakeLists.txt +1 -1
- data/VERSION +1 -1
- data/bindings/nodejs/package.json +1 -1
- data/bindings/php/src/FastQR.php +14 -0
- data/bindings/ruby/lib/fastqr/version.rb +1 -1
- data/bindings/ruby/lib/fastqr.rb +14 -0
- data/bindings/ruby/prebuilt/linux-aarch64/bin/fastqr +0 -0
- data/bindings/ruby/prebuilt/linux-aarch64.tar.gz +0 -0
- data/bindings/ruby/prebuilt/linux-x86_64/bin/fastqr +0 -0
- data/bindings/ruby/prebuilt/linux-x86_64.tar.gz +0 -0
- data/bindings/ruby/prebuilt/macos-arm64/bin/fastqr +0 -0
- data/bindings/ruby/prebuilt/macos-arm64.tar.gz +0 -0
- data/src/fastqr.cpp +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d38538b3ab77a389f9ac271c1b4bdfc1277f76adc1324468bcdf392a66471648
|
|
4
|
+
data.tar.gz: f45caa2acee0da003483f5366864f3b860eb8e3049d3add4af205a0648a1e905
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82bfeed661e67bc5a2a32e990abfbc86a9430d3ba565b78979ea812afb1566e742f8ec00ad64a87f168d1e9e3a9065b5e470f1eabd685cbaa67066b6cacd63d9
|
|
7
|
+
data.tar.gz: c16fe7c9e48a41e5f8b40b6d8081a38321d20ca1a4dba21af53598e9ca5b595d64c84b2671bb69560110c6261ed391b3ebfa942432b5a0c8918bd7c595f2de3a
|
data/CMakeLists.txt
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.28
|
data/bindings/php/src/FastQR.php
CHANGED
|
@@ -183,6 +183,13 @@ class FastQR
|
|
|
183
183
|
$args[] = '-q ' . (int)$options['quality'];
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
// Margin options (margin_modules takes priority over margin)
|
|
187
|
+
if (isset($options['margin'])) {
|
|
188
|
+
$args[] = '-m ' . (int)$options['margin'];
|
|
189
|
+
} elseif (isset($options['marginModules'])) {
|
|
190
|
+
$args[] = '--margin-modules ' . (int)$options['marginModules'];
|
|
191
|
+
}
|
|
192
|
+
|
|
186
193
|
// Execute command
|
|
187
194
|
$cmd = implode(' ', $args) . ' 2>&1';
|
|
188
195
|
exec($cmd, $output, $returnCode);
|
|
@@ -288,6 +295,13 @@ class FastQR
|
|
|
288
295
|
$args[] = '-q ' . (int)$options['quality'];
|
|
289
296
|
}
|
|
290
297
|
|
|
298
|
+
// Margin options (margin_modules takes priority over margin)
|
|
299
|
+
if (isset($options['margin'])) {
|
|
300
|
+
$args[] = '-m ' . (int)$options['margin'];
|
|
301
|
+
} elseif (isset($options['marginModules'])) {
|
|
302
|
+
$args[] = '--margin-modules ' . (int)$options['marginModules'];
|
|
303
|
+
}
|
|
304
|
+
|
|
291
305
|
$cmd = implode(' ', $args) . ' 2>&1';
|
|
292
306
|
exec($cmd, $output, $returnCode);
|
|
293
307
|
|
data/bindings/ruby/lib/fastqr.rb
CHANGED
|
@@ -84,6 +84,13 @@ module FastQR
|
|
|
84
84
|
args += ['-l', options[:logo]] if options[:logo]
|
|
85
85
|
args += ['-p', options[:logo_size].to_s] if options[:logo_size]
|
|
86
86
|
args += ['-q', options[:quality].to_s] if options[:quality]
|
|
87
|
+
|
|
88
|
+
# Margin options (margin_modules takes priority over margin)
|
|
89
|
+
if options[:margin]
|
|
90
|
+
args += ['-m', options[:margin].to_s]
|
|
91
|
+
elsif options[:margin_modules]
|
|
92
|
+
args += ['--margin-modules', options[:margin_modules].to_s]
|
|
93
|
+
end
|
|
87
94
|
|
|
88
95
|
# Execute CLI binary
|
|
89
96
|
result = system(cli_path, *args, out: File::NULL, err: File::NULL)
|
|
@@ -131,6 +138,13 @@ module FastQR
|
|
|
131
138
|
cmd_parts += ['-l', options[:logo]] if options[:logo]
|
|
132
139
|
cmd_parts += ['-p', options[:logo_size].to_s] if options[:logo_size]
|
|
133
140
|
cmd_parts += ['-q', options[:quality].to_s] if options[:quality]
|
|
141
|
+
|
|
142
|
+
# Margin options (margin_modules takes priority over margin)
|
|
143
|
+
if options[:margin]
|
|
144
|
+
cmd_parts += ['-m', options[:margin].to_s]
|
|
145
|
+
elsif options[:margin_modules]
|
|
146
|
+
cmd_parts += ['--margin-modules', options[:margin_modules].to_s]
|
|
147
|
+
end
|
|
134
148
|
|
|
135
149
|
result = system(*cmd_parts, out: File::NULL, err: File::NULL)
|
|
136
150
|
raise Error, "Batch generation failed" unless result
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/src/fastqr.cpp
CHANGED