qrscan 0.1.3 → 0.1.4
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/qrscan/extconf.rb +8 -4
- data/lib/qrscan/version.rb +1 -1
- data/lib/qrscan.rb +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: 32d0a6fc669acb081be2a80a127296e662ba7465462187a6c984fd9c09cf5efc
|
4
|
+
data.tar.gz: b4ba187392c578c77596c31f0f0fb64e828cf1fefe861b22756d8db64a184912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b198c06fa2d188d5b66c4bddedab55896dd93f96a95c8b7c49d096f065902b538a0e308a2d3c8d209eaffed0466ad351c2b32776dabe8e7eb6ce0040a7f05e28
|
7
|
+
data.tar.gz: 317f381d6c9885509f14b8aca8d706ede093ab6ec642beb8721b36d34e77d40d9826a309d34d3293c77e4d7bde8db62964236d928320e359ca51eeefd1ef363f
|
data/ext/qrscan/extconf.rb
CHANGED
@@ -2,13 +2,17 @@
|
|
2
2
|
# https://guides.rubygems.org/gems-with-extensions/
|
3
3
|
|
4
4
|
require "mkmf"
|
5
|
+
require "rbconfig"
|
6
|
+
host_os = RbConfig::CONFIG["host_os"]
|
5
7
|
|
6
|
-
dir_config("qrscan", "/opt/homebrew/include", "/opt/homebrew/lib")
|
7
|
-
|
8
|
-
dir_config("qrscan", "C:/Program Files
|
8
|
+
dir_config("qrscan", "/opt/homebrew/include", "/opt/homebrew/lib") if host_os.include?("darwin")
|
9
|
+
if host_os.match?(/mswin|mingw|cygwin/)
|
10
|
+
dir_config("qrscan", "C:/Program Files/ZBar/include", "C:/Program Files/ZBar/lib")
|
11
|
+
dir_config("qrscan", "C:/Program Files (x86)/ZBar/include", "C:/Program Files (x86)/ZBar/lib")
|
12
|
+
end
|
9
13
|
|
10
14
|
# Verifica la presenza dell'header e della libreria (opzionale)
|
11
15
|
have_header("zbar.h") or abort "zbar.h not found"
|
12
16
|
have_library("zbar") or abort "libzbar not found"
|
13
17
|
|
14
|
-
create_makefile("qrscan")
|
18
|
+
create_makefile("qrscan/qrscan")
|
data/lib/qrscan/version.rb
CHANGED
data/lib/qrscan.rb
CHANGED