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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 866d0e478a45615cf1d5faf0bc7ecdabe498433b519482f41d675b571ae23b0b
4
- data.tar.gz: 83ee54578961cc01b2abb01bbaa340beac82c11fc75548adf9ce33d415a9523a
3
+ metadata.gz: d38538b3ab77a389f9ac271c1b4bdfc1277f76adc1324468bcdf392a66471648
4
+ data.tar.gz: f45caa2acee0da003483f5366864f3b860eb8e3049d3add4af205a0648a1e905
5
5
  SHA512:
6
- metadata.gz: 90f13d8fd8f729b010949f9f27e3fc6406cd7f368ccd02cd873c52b4cdc65988f0936bb16393df1255c8b4055adcf6998f10f42b9f9edc0c36d7cf555d3fc1fa
7
- data.tar.gz: 0c6ce4732fd19d6105a342e7a99a9b817a9f6fc2385fe3f3c5e857b6d30139c14634e4abc6890e5b149378af89235c383d79e96075c4d733fb52745f468adc62
6
+ metadata.gz: 82bfeed661e67bc5a2a32e990abfbc86a9430d3ba565b78979ea812afb1566e742f8ec00ad64a87f168d1e9e3a9065b5e470f1eabd685cbaa67066b6cacd63d9
7
+ data.tar.gz: c16fe7c9e48a41e5f8b40b6d8081a38321d20ca1a4dba21af53598e9ca5b595d64c84b2671bb69560110c6261ed391b3ebfa942432b5a0c8918bd7c595f2de3a
data/CMakeLists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
- project(fastqr VERSION 1.0.27 LANGUAGES CXX C)
2
+ project(fastqr VERSION 1.0.28 LANGUAGES CXX C)
3
3
 
4
4
  set(CMAKE_CXX_STANDARD 14)
5
5
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.27
1
+ 1.0.28
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastqr-pro",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Fast QR code generator with UTF-8 support, custom colors, logo embedding, and precise size control",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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
 
@@ -19,6 +19,6 @@
19
19
  # Homepage: https://github.com/tranhuucanh/fastqr
20
20
 
21
21
  module FastQR
22
- VERSION = "1.0.27"
22
+ VERSION = "1.0.28"
23
23
  end
24
24
 
@@ -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
data/src/fastqr.cpp CHANGED
@@ -31,7 +31,7 @@
31
31
  #include <algorithm>
32
32
  #include <cstdio>
33
33
 
34
- #define FASTQR_VERSION "1.0.27"
34
+ #define FASTQR_VERSION "1.0.28"
35
35
 
36
36
  namespace fastqr {
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.27
4
+ version: 1.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastQR Project