fastqr 1.0.5 → 1.0.6

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: b5bc87ad4009f758f9aff46c0d5917d86569ff4a33c8fe7214eebf5afe18e67d
4
- data.tar.gz: 7e20c35c5f4c3bddd0f0ab692f48e35c9d91c4a32e21687b6e149fa24921220a
3
+ metadata.gz: 64e5094926c2ab8b1364ab771d1f54c143ad6faff6bdd16a9628126580a33cc6
4
+ data.tar.gz: 2c2d8cf8992fcf4a8bd74a972831d5caad6ab13f8ca748a401bf0976412e7746
5
5
  SHA512:
6
- metadata.gz: 568507f82d04f70a416aedc03e5ec403149b2902f5d1a5d0a0a50c6b6738cc62462ad9120ca3b0979138fd9d1b3ae9b7fa44b944a2a995a32f5ee1023dc6fc6a
7
- data.tar.gz: d50ce130bcf016a74045de7ef7a441edb36f7f76a1a9b21a61bab01ee0f7b2aeeb831c9f404167351ca7ea81a0f71677233d3846a510936610c777d08fce3583
6
+ metadata.gz: 3f2d657235b53a9aca3cc7069c0067a85d1885dbe487e7ba0df6f455035ce0ffa2b933ef4dd189440465646bf2da34bfe0914c73d8e27c3748e78649c6f382d3
7
+ data.tar.gz: f51d20d88bd2c25edcec98f94905196688b5a4fae88b4e9500619b4ee85e6d0cd2dd5b515266aac950bacd998bb0f92adca4ccdfe50a16697322cdadcb8a1aeb
data/CMakeLists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
- project(fastqr VERSION 1.0.5 LANGUAGES CXX C)
2
+ project(fastqr VERSION 1.0.6 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.5
1
+ 1.0.6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tranhuucanh/fastqr",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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",
@@ -5,7 +5,7 @@ require 'rbconfig'
5
5
  def check_prebuilt_binary
6
6
  os = RbConfig::CONFIG['host_os']
7
7
  arch = RbConfig::CONFIG['host_cpu']
8
-
8
+
9
9
  platform = case os
10
10
  when /darwin/
11
11
  case arch
@@ -28,26 +28,28 @@ def check_prebuilt_binary
28
28
  else
29
29
  nil
30
30
  end
31
-
31
+
32
32
  return false unless platform
33
-
34
- prebuilt_dir = File.expand_path("../../prebuilt/#{platform}", __FILE__)
35
- binary_path = File.join(prebuilt_dir, 'fastqr')
36
-
33
+
34
+ # When installed as gem, binaries are in bindings/ruby/prebuilt/
35
+ # When running from repo, they're in ../../prebuilt/
36
+ prebuilt_dir = File.expand_path("./prebuilt/#{platform}", __dir__)
37
+ binary_path = File.join(prebuilt_dir, 'bin', 'fastqr')
38
+
37
39
  if File.exist?(binary_path)
38
40
  puts "✅ Found pre-built binary at #{binary_path}"
39
41
  puts "⏭️ Skipping compilation"
40
-
42
+
41
43
  # Create a dummy Makefile that does nothing
42
44
  File.open('Makefile', 'w') do |f|
43
45
  f.puts "all:\n\t@echo 'Using pre-built binary'\n"
44
46
  f.puts "install:\n\t@echo 'Using pre-built binary'\n"
45
47
  f.puts "clean:\n\t@echo 'Nothing to clean'\n"
46
48
  end
47
-
49
+
48
50
  return true
49
51
  end
50
-
52
+
51
53
  false
52
54
  end
53
55
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastQR
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
5
5
  end
6
6
 
data/src/fastqr.cpp CHANGED
@@ -25,7 +25,7 @@
25
25
  // Enable benchmarking
26
26
  // #define FASTQR_BENCHMARK
27
27
 
28
- #define FASTQR_VERSION "1.0.5"
28
+ #define FASTQR_VERSION "1.0.6"
29
29
 
30
30
  namespace fastqr {
31
31
 
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastQR Project