cheetah_qrcode 1.0.0 → 1.0.1
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/ext/cheetah_qrcode/cheetah_qrcode.c +8 -0
- data/lib/cheetah_qrcode/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105a2bf919646066ad19e7041d4b80017b23fdf389c65b02e84275f917dea5e0
|
4
|
+
data.tar.gz: 3854c8cdda670d87bb2c61071866cadb7cb6f3d505f7c0ce264ec718632f3a16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3227f3d6391afb7910d3c1c6840408d75fcdea6127b4a99f3c701b2b896ca14673047907a145c0464f2b27eb9ce5c8821cbf1e0ab527f54a86481c6cd770e549
|
7
|
+
data.tar.gz: 326643675bad85067387e93ff4da7bba491e2fa5eba01c919de97c6c385bf0d3c57876af2c7f38ba3987fb373846e7e082256c40097783568b2c5954c1316272
|
@@ -113,6 +113,14 @@ static VALUE encode_text(int argc, VALUE* argv, VALUE self) {
|
|
113
113
|
size_t iy_begin = (size_t)(qy * image_scale) + 1;
|
114
114
|
size_t iy_end = (size_t)((qy + 1) * image_scale) + 1;
|
115
115
|
|
116
|
+
// Fix offset for the first pixel
|
117
|
+
if (qx == 0) {
|
118
|
+
ix_begin = 0;
|
119
|
+
}
|
120
|
+
if (qy == 0) {
|
121
|
+
iy_begin = 0;
|
122
|
+
}
|
123
|
+
|
116
124
|
// For boundary safety
|
117
125
|
if (ix_end > image_size) {
|
118
126
|
ix_end = image_size;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheetah_qrcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- atitan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -54,7 +54,7 @@ files:
|
|
54
54
|
- ext/cheetah_qrcode/spng.h
|
55
55
|
- lib/cheetah_qrcode.rb
|
56
56
|
- lib/cheetah_qrcode/version.rb
|
57
|
-
homepage:
|
57
|
+
homepage: https://github.com/atitan/cheetah_qrcode
|
58
58
|
licenses:
|
59
59
|
- MIT
|
60
60
|
metadata: {}
|